Searched refs:mAudioPolicy (Results 1 – 6 of 6) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioFocusUnitTest.java | 80 private AudioPolicy mAudioPolicy; field in CarAudioFocusUnitTest 99 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_withNoCurrentFocusHolder_requestGranted() 112 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_withSameClientIdSameUsage_requestGranted() 125 AUDIOFOCUS_REQUEST_FAILED, mAudioPolicy); in onAudioFocusRequest_withSameClientIdDifferentUsage_requestFailed() 137 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_concurrentRequest_requestGranted() 149 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in onAudioFocusRequest_concurrentRequestWithoutDucking_holderLosesFocus() 161 anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_concurrentRequestMayDuck_holderRetainsFocus() 173 AUDIOFOCUS_REQUEST_GRANTED, mAudioPolicy); in onAudioFocusRequest_exclusiveRequest_requestGranted() 185 AudioManager.AUDIOFOCUS_LOSS, mAudioPolicy); in onAudioFocusRequest_exclusiveRequest_holderLosesFocus() 197 AudioManager.AUDIOFOCUS_LOSS_TRANSIENT, mAudioPolicy); in onAudioFocusRequest_exclusiveRequestMayDuck_holderLosesFocusTransiently() [all …]
|
D | CarZonesAudioFocusUnitTest.java | 66 private AudioPolicy mAudioPolicy; field in CarZonesAudioFocusUnitTest 272 carZonesAudioFocus.setOwningPolicy(mCarAudioService, mAudioPolicy); in getCarZonesAudioFocus()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarZonesAudioFocusTest.java | 76 private AudioPolicy mAudioPolicy; field in CarZonesAudioFocusTest 104 .dispatchAudioFocusChange(eq(audioFocusInfo), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_withNoCurrentFocusHolder_requestGranted() 123 .dispatchAudioFocusChange(eq(audioFocusInfoClient1), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_requestGranted() 126 .dispatchAudioFocusChange(eq(audioFocusInfoClient2), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_requestGranted() 146 .dispatchAudioFocusChange(eq(audioFocusInfoClient1), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_abandonInOne_requestGranted() 149 .dispatchAudioFocusChange(eq(audioFocusInfoClient2), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_forTwoDifferentZones_abandonInOne_requestGranted() 167 .dispatchAudioFocusChange(eq(audioFocusInfoClient), anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_withBundleFocusRequest_requestGranted() 187 anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_repeatForSameZone_requestGranted() 191 anyInt(), eq(mAudioPolicy)); in onAudioFocusRequest_repeatForSameZone_requestGranted() 220 AUDIOFOCUS_REQUEST_FAILED, mAudioPolicy); in onAudioFocusRequest_forNavigationWhileOnCall_rejectNavOnCall_requestFailed() [all …]
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioService.java | 180 private AudioPolicy mAudioPolicy; field in CarAudioService 276 if (mAudioPolicy != null) { in release() 277 mAudioManager.unregisterAudioPolicyAsync(mAudioPolicy); in release() 278 mAudioPolicy = null; in release() 641 mAudioPolicy = builder.build(); in setupDynamicRoutingLocked() 644 mFocusHandler.setOwningPolicy(this, mAudioPolicy); in setupDynamicRoutingLocked() 646 int r = mAudioManager.registerAudioPolicy(mAudioPolicy); in setupDynamicRoutingLocked() 1158 if (mAudioPolicy.setUidDeviceAffinity(uid, deviceInfos)) { in setZoneIdForUidNoCheckLocked() 1179 if (mAudioPolicy.removeUidDeviceAffinity(uid)) { in checkAndRemoveUidLocked() 1453 if (!mAudioPolicy.setUserIdDeviceAffinity(userId, zone.getAudioDeviceInfos())) { in setUserIdDeviceAffinitiesLocked() [all …]
|
D | CarAudioFocus.java | 48 private AudioPolicy mAudioPolicy; // Dynamically assigned just after construction field in CarAudioFocus 90 mAudioPolicy = parentPolicy; in setOwningPolicy() 140 mAudioPolicy); in sendFocusLossLocked() 418 policy = mAudioPolicy; in onAudioFocusRequest() 578 mAudioPolicy); in dispatchFocusGainedLocked()
|
D | CarZonesAudioFocus.java | 54 private AudioPolicy mAudioPolicy; // Dynamically assigned just after construction field in CarZonesAudioFocus 145 mAudioPolicy = parentPolicy; in setOwningPolicy() 149 mFocusZones.valueAt(i).setOwningPolicy(mAudioPolicy); in setOwningPolicy()
|