Searched refs:mAudioPolicy (Results 1 – 5 of 5) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioFocusUnitTest.java | 74 private AudioPolicy mAudioPolicy; field in CarAudioFocusUnitTest 93 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_withNoCurrentFocusHolder_requestGranted() 106 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_withSameClientIdSameUsage_requestGranted() 119 AUDIOFOCUS_REQUEST_FAILED, mAudioPolicy); in onAudioFocusRequest_withSameClientIdDifferentUsage_requestFailed() 131 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_concurrentRequest_requestGranted() 143 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in onAudioFocusRequest_concurrentRequestWithoutDucking_holderLosesFocus() 155 anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_concurrentRequestMayDuck_holderRetainsFocus() 167 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_exclusiveRequest_requestGranted() 179 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in onAudioFocusRequest_exclusiveRequest_holderLosesFocus() 191 AudioManager.AUDIOFOCUS_LOSS_TRANSIENT, mAudioPolicy); in onAudioFocusRequest_exclusiveRequestMayDuck_holderLosesFocusTransiently() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarZonesAudioFocusTest.java | 76 private AudioPolicy mAudioPolicy; field in CarZonesAudioFocusTest 106 .dispatchAudioFocusChange(eq(audioFocusInfo), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_withNoCurrentFocusHolder_requestGranted() 127 .dispatchAudioFocusChange(eq(audioFocusInfoClient1), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_requestGranted() 130 .dispatchAudioFocusChange(eq(audioFocusInfoClient2), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_requestGranted() 153 .dispatchAudioFocusChange(eq(audioFocusInfoClient1), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_abandonInOne_requestGranted() 156 .dispatchAudioFocusChange(eq(audioFocusInfoClient2), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_abandonInOne_requestGranted() 175 .dispatchAudioFocusChange(eq(audioFocusInfoClient), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_withBundleFocusRequest_requestGranted() 198 anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_repeatForSameZone_requestGranted() 202 anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_repeatForSameZone_requestGranted() 231 AUDIOFOCUS_REQUEST_FAILED, mAudioPolicy); in onAudioFocusRequest_forNavigationWhileOnCall_rejectNavOnCall_requestFailed() [all …]
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioService.java | 211 private AudioPolicy mAudioPolicy; field in CarAudioService 271 if (mAudioPolicy != null) { in release() 272 mAudioManager.unregisterAudioPolicyAsync(mAudioPolicy); in release() 273 mAudioPolicy = null; in release() 548 mAudioPolicy = builder.build(); in setupDynamicRoutingLocked() 551 mFocusHandler.setOwningPolicy(this, mAudioPolicy); in setupDynamicRoutingLocked() 554 int r = mAudioManager.registerAudioPolicy(mAudioPolicy); in setupDynamicRoutingLocked() 1010 if (mAudioPolicy.setUidDeviceAffinity(uid, mCarAudioZones[zoneId].getAudioDeviceInfos())) { in setZoneIdForUidNoCheckLocked() 1031 if (mAudioPolicy.removeUidDeviceAffinity(uid)) { in checkAndRemoveUidLocked() 1196 if (!mAudioPolicy.setUserIdDeviceAffinity(userId, zone.getAudioDeviceInfos())) { in setUserIdDeviceAffinitiesLocked() [all …]
|
D | CarAudioFocus.java | 40 private AudioPolicy mAudioPolicy; // Dynamically assigned just after construction field in CarAudioFocus 80 mAudioPolicy = parentPolicy; in setOwningPolicy() 87 mAudioPolicy); in sendFocusLossLocked() 360 policy = mAudioPolicy; in onAudioFocusRequest() 519 mAudioPolicy); in dispatchFocusGainedLocked()
|
D | CarZonesAudioFocus.java | 48 private AudioPolicy mAudioPolicy; // Dynamically assigned just after construction field in CarZonesAudioFocus 134 mAudioPolicy = parentPolicy; in setOwningPolicy() 138 mFocusZones.get(zoneId).setOwningPolicy(mAudioPolicy); in setOwningPolicy()
|