Commit fef0661
committed
refactor: improve audio port insertion logic
1. Changed port insertion order from reverse to sequential to maintain
natural priority order
2. Enhanced InsertPort method to accept all card ports for better
clustering and ordering
3. Implemented weight-based ordering within card clusters using port
order mapping
4. Simplified insertion logic by removing complex priority comparison
algorithm
5. Updated test cases to reflect new clustering behavior and insertion
strategy
Log: Improved audio device port management for better user experience
Influence:
1. Test audio device switching between different ports
2. Verify Bluetooth device port ordering (A2DP vs HSP)
3. Check multi-card scenarios with mixed port types
4. Test port priority handling when devices are connected/disconnected
5. Verify stability when refreshing audio ports
6. Test edge cases with equal priority ports
refactor: 改进音频端口插入逻辑
1. 将端口插入顺序从倒序改为顺序以保持自然优先级顺序
2. 增强 InsertPort 方法以接受所有卡端口,实现更好的集群和排序
3. 使用端口顺序映射实现卡集群内基于权重的排序
4. 通过移除复杂的优先级比较算法简化插入逻辑
5. 更新测试用例以反映新的集群行为和插入策略
Log: 改进音频设备端口管理以提升用户体验
Influence:
1. 测试不同端口间的音频设备切换
2. 验证蓝牙设备端口排序(A2DP vs HSP)
3. 检查多声卡混合端口类型的场景
4. 测试设备连接/断开时的端口优先级处理
5. 验证刷新音频端口时的稳定性
6. 测试优先级相等端口的边缘情况
PMS: BUG-353339
Change-Id: I8db970fc8bc5e6d54055e4757f1cb60015b2ddcf1 parent 31e53ee commit fef0661
3 files changed
Lines changed: 105 additions & 373 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
248 | 248 | | |
249 | | - | |
250 | | - | |
| 249 | + | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 180 | + | |
| 181 | + | |
184 | 182 | | |
185 | 183 | | |
| 184 | + | |
186 | 185 | | |
187 | 186 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 187 | + | |
| 188 | + | |
192 | 189 | | |
| 190 | + | |
193 | 191 | | |
194 | | - | |
195 | | - | |
196 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
197 | 202 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
211 | 215 | | |
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
227 | 224 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 225 | | |
232 | 226 | | |
233 | 227 | | |
| |||
0 commit comments