Searched refs:CarAudioFocus (Results 1 – 4 of 4) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioFocusUnitTest.java | 163 new CarAudioFocus(mMockAudioManager, mMockPackageManager, mFocusInteraction, in constructor_withNullCarAudioZone_fails() 176 new CarAudioFocus(/* audioManager= */ null, mMockPackageManager, in constructor_withNullAudioManager_fails() 189 new CarAudioFocus(mMockAudioManager, /* packageManager= */ null, in constructor_withNullPackageManager_fails() 202 new CarAudioFocus(mMockAudioManager, mMockPackageManager, /* focusInteraction= */ null, in constructor_withNullFocusInteractions_fails() 216 new CarAudioFocus(mMockAudioManager, mMockPackageManager, mFocusInteraction, in constructor_withNullVolumeInfoWrapper_fails() 227 CarAudioFocus carAudioFocus = getCarAudioFocus(); in onAudioFocusRequest_withNoCurrentFocusHolder_requestGranted() 238 CarAudioFocus carAudioFocus = getCarAudioFocus(); in onAudioFocusRequest_withSameClientIdSameUsage_requestGranted() 252 CarAudioFocus carAudioFocus = getCarAudioFocus(); in onAudioFocusRequest_withSameCallClientIdDifferentUsage_requestGranted() 270 CarAudioFocus carAudioFocus = getCarAudioFocus(); in onAudioFocusAbandon_whileMediaWaitsForRingerAndCall_focusRegained() 289 CarAudioFocus carAudioFocus = getCarAudioFocus(); in onAudioFocusAbandon_whileMediaWaitsOnCallOnly_focusRegained() [all …]
|
D | CarZonesAudioFocusUnitTest.java | 73 private final SparseArray<CarAudioFocus> mFocusMocks = generateMockFocus(); 512 private static SparseArray<CarAudioFocus> generateMockFocus() { in generateMockFocus() 513 SparseArray<CarAudioFocus> mockFocusZones = new SparseArray<>(); in generateMockFocus() 514 mockFocusZones.put(PRIMARY_ZONE_ID, mock(CarAudioFocus.class)); in generateMockFocus() 515 mockFocusZones.put(SECONDARY_ZONE_ID, mock(CarAudioFocus.class)); in generateMockFocus()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarZonesAudioFocus.java | 71 private final SparseArray<CarAudioFocus> mFocusZones; 85 SparseArray<CarAudioFocus> audioFocusPerZone = new SparseArray<>(); in createCarZonesAudioFocus() 95 CarAudioFocus zoneFocusListener = new CarAudioFocus(audioManager, packageManager, in createCarZonesAudioFocus() 103 CarZonesAudioFocus(SparseArray<CarAudioFocus> focusZones, CarFocusCallback carFocusCallback) { in CarZonesAudioFocus() 115 CarAudioFocus focus = mFocusZones.get(zoneId); in getAudioFocusLosersForUid() 126 CarAudioFocus focus = mFocusZones.get(zoneId); in getAudioFocusHoldersForUid() 137 CarAudioFocus focus = mFocusZones.get(zoneId); in transientlyLoseAllFocusHoldersInZone() 151 CarAudioFocus focus = mFocusZones.get(zoneId); in transientlyLoseInFocusInZone() 157 CarAudioFocus focus) { in transientlyLoseInFocusInZone() 273 private CarAudioFocus getCarAudioFocusForZoneId(int zoneId) { in getCarAudioFocusForZoneId() [all …]
|
D | CarAudioFocus.java | 75 class CarAudioFocus extends AudioPolicy.AudioPolicyFocusListener { class 77 private static final String TAG = CarLog.tagFor(CarAudioFocus.class); 120 CarAudioFocus(AudioManagerWrapper audioManager, PackageManager packageManager, in CarAudioFocus() method in CarAudioFocus
|