/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | AudioServiceTest.java | 72 private AudioService mAudioService; field in AudioServiceTest 88 mAudioService = new AudioService(mContext, mSpyAudioSystem, mSpySystemServer, in setUp() 100 Assert.assertNotNull(mAudioService); in testMuteMicrophone() 105 mAudioService.setMicrophoneMute(muted, mContext.getOpPackageName(), in testMuteMicrophone() 108 muted, mAudioService.isMicrophoneMuted()); in testMuteMicrophone() 125 Assert.assertNotNull(mAudioService); in testMuteMicrophoneWhenFail() 130 mAudioService.setMicrophoneMute(muted, mContext.getOpPackageName(), in testMuteMicrophoneWhenFail() 133 !muted, mAudioService.isMicrophoneMuted()); in testMuteMicrophoneWhenFail() 145 Assert.assertNotNull(mAudioService); in testRingNotifAlias() 150 mAudioService.setNotifAliasRingForTest(true); in testRingNotifAlias() [all …]
|
D | VolumeHelperTest.java | 121 private MyAudioService mAudioService; field in VolumeHelperTest 216 mAudioService = new MyAudioService(mContext, mSpyAudioSystem, mSpySystemServer, in setUp() 255 mAudioService.setStreamVolume(streamType, streamVolume, /*flags=*/0, in prepareAudioServiceState() 259 mAudioService.setRingerModeInternal(RINGER_MODE_NORMAL, mContext.getOpPackageName()); in prepareAudioServiceState() 260 mAudioService.setRingerModeExternal(RINGER_MODE_NORMAL, mContext.getOpPackageName()); in prepareAudioServiceState() 289 mAudioService.setDeviceForStream(STREAM_MUSIC, DEVICE_OUT_USB_DEVICE); in setStreamVolume_callsASSetStreamVolumeIndex() 290 mAudioService.setStreamVolume(STREAM_MUSIC, newIndex, /*flags=*/0, in setStreamVolume_callsASSetStreamVolumeIndex() 300 mAudioService.setStreamVolume(STREAM_RING, 0, /*flags=*/0, in setStreamRingVolume0_setsRingerModeVibrate() 304 assertEquals(RINGER_MODE_VIBRATE, mAudioService.getRingerModeExternal()); in setStreamRingVolume0_setsRingerModeVibrate() 309 mAudioService.setDeviceForStream(STREAM_MUSIC, DEVICE_OUT_USB_DEVICE); in adjustStreamVolume_callsASSetStreamVolumeIndex() [all …]
|
D | AbsoluteVolumeBehaviorTest.java | 77 private AudioService mAudioService; field in AbsoluteVolumeBehaviorTest 101 mAudioService = new AudioService(mContext, mSpyAudioSystem, mSystemServer, in setUp() 119 mAudioService.registerDeviceVolumeDispatcherForAbsoluteVolume(true, in registerDispatcher_setsVolumeBehaviorToAbsolute() 124 assertThat(mAudioService.getDeviceVolumeBehavior(DEVICE_SPEAKER_OUT)) in registerDispatcher_setsVolumeBehaviorToAbsolute() 137 mAudioService.setDeviceVolumeBehavior(DEVICE_SPEAKER_OUT, in registerDispatcherAfterSetDeviceVolumeBehavior_setsVolumeBehaviorToAbsolute() 141 mAudioService.registerDeviceVolumeDispatcherForAbsoluteVolume(true, in registerDispatcherAfterSetDeviceVolumeBehavior_setsVolumeBehaviorToAbsolute() 146 assertThat(mAudioService.getDeviceVolumeBehavior(DEVICE_SPEAKER_OUT)) in registerDispatcherAfterSetDeviceVolumeBehavior_setsVolumeBehaviorToAbsolute() 159 mAudioService.registerDeviceVolumeDispatcherForAbsoluteVolume(true, in registerDispatcher_setsVolume() 164 assertThat(mAudioService.getStreamVolume(AudioManager.STREAM_MUSIC)) in registerDispatcher_setsVolume() 165 .isEqualTo(mAudioService.getStreamMaxVolume(AudioManager.STREAM_MUSIC)); in registerDispatcher_setsVolume() [all …]
|
D | DeviceVolumeBehaviorTest.java | 59 private AudioService mAudioService; field in DeviceVolumeBehaviorTest 78 mAudioService = new AudioService(mContext, mAudioSystem, mSystemServer, in setUp() 87 mAudioService.setDeviceVolumeBehavior(DEVICE_SPEAKER_OUT, in setDeviceVolumeBehavior_changesDeviceVolumeBehavior() 92 mAudioService.setDeviceVolumeBehavior(DEVICE_SPEAKER_OUT, behavior, PACKAGE_NAME); in setDeviceVolumeBehavior_changesDeviceVolumeBehavior() 95 int actualBehavior = mAudioService.getDeviceVolumeBehavior(DEVICE_SPEAKER_OUT); in setDeviceVolumeBehavior_changesDeviceVolumeBehavior() 107 mAudioService.registerDeviceVolumeBehaviorDispatcher(true, dispatcher); in setToNewBehavior_triggersDeviceVolumeBehaviorDispatcher() 109 mAudioService.setDeviceVolumeBehavior(DEVICE_SPEAKER_OUT, in setToNewBehavior_triggersDeviceVolumeBehaviorDispatcher() 115 mAudioService.setDeviceVolumeBehavior(DEVICE_SPEAKER_OUT, behavior, PACKAGE_NAME); in setToNewBehavior_triggersDeviceVolumeBehaviorDispatcher() 128 mAudioService.setDeviceVolumeBehavior(DEVICE_SPEAKER_OUT, in setToSameBehavior_doesNotTriggerDeviceVolumeBehaviorDispatcher() 134 mAudioService.registerDeviceVolumeBehaviorDispatcher(true, dispatcher); in setToSameBehavior_doesNotTriggerDeviceVolumeBehaviorDispatcher() [all …]
|
D | AudioDeviceVolumeManagerTest.java | 65 private AudioService mAudioService; field in AudioDeviceVolumeManagerTest 78 mAudioService = new AudioService(mContext, mSpyAudioSystem, mSystemServer, in setUp() 107 mAudioService.setDeviceVolume(volMin, usbDevice, mPackageName); in setDeviceVolume_checkIndex() 112 mAudioService.setDeviceVolume(volMid, usbDevice, mPackageName); in setDeviceVolume_checkIndex() 147 mAudioService.setDeviceVolume(volCur, bleDevice, mPackageName); in configurablePreScaleAbsoluteVolume_checkIndex() 159 mAudioService.setDeviceVolume(volIndex4, bleDevice, mPackageName); in configurablePreScaleAbsoluteVolume_checkIndex() 185 mAudioService.setDeviceVolume(volCur, bleDevice, mPackageName); in disablePreScaleAbsoluteVolume_checkIndex() 197 mAudioService.setDeviceVolume(volIndex4, bleDevice, mPackageName); in disablePreScaleAbsoluteVolume_checkIndex()
|
D | LoudnessCodecHelperTest.java | 86 private AudioService mAudioService; field in LoudnessCodecHelperTest 96 mLoudnessHelper = new LoudnessCodecHelper(mAudioService); in setUp() 99 when(mAudioService.getActivePlaybackConfigurations()).thenReturn( in setUp()
|
/frameworks/base/media/tests/LoudnessCodecApiTest/src/com/android/loudnesscodecapitest/ |
D | LoudnessCodecControllerTest.java | 80 private IAudioService mAudioService; field in LoudnessCodecControllerTest 97 }, mAudioService); in setUp() 103 verify(mAudioService).startLoudnessCodecUpdates(eq(mSessionId)); in createLcc_callsAudioServiceStart() 109 when(mAudioService.getLoudnessParams(any())).thenReturn(new PersistableBundle()); in getLoudnessCodecParams_callsAudioServiceGetLoudness() 116 verify(mAudioService).getLoudnessParams(any()); in getLoudnessCodecParams_callsAudioServiceGetLoudness() 131 verify(mAudioService).stopLoudnessCodecUpdates(eq(mSessionId)); in release_stopCodecUpdates() 172 verify(mAudioService).removeLoudnessCodecInfo(eq(mSessionId), any()); in removeAddedMediaCodecAfterSetTrack_callsAudioServiceRemoveCodec() 185 verify(mAudioService).addLoudnessCodecInfo(eq(mSessionId), anyInt(), any()); in addMediaCodec_callsAudioServiceAdd() 198 verify(mAudioService).addLoudnessCodecInfo(eq(mSessionId), anyInt(), any()); in removeMediaCodec_callsAudioServiceRemove() 201 verify(mAudioService).removeLoudnessCodecInfo(eq(mSessionId), any()); in removeMediaCodec_callsAudioServiceRemove() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/media/ |
D | LegacyDeviceRouteControllerTest.java | 80 private AudioService mAudioService; field in LegacyDeviceRouteControllerTest.DefaultDeviceRouteValueTest 98 when(mAudioService.startWatchingRoutes(any())).thenReturn(null); in initialize_noRoutesInfo_defaultRouteIsNotNull() 103 mAudioService, in initialize_noRoutesInfo_defaultRouteIsNotNull() 123 when(mAudioService.startWatchingRoutes(any())).thenReturn(fakeBluetoothAudioRoute); in initialize_bluetoothRouteAvailable_deviceRouteReturnsDefaultRoute() 128 mAudioService, in initialize_bluetoothRouteAvailable_deviceRouteReturnsDefaultRoute() 197 private AudioService mAudioService; field in LegacyDeviceRouteControllerTest.DeviceRouteInitializationTest 234 when(mAudioService.startWatchingRoutes(any())).thenReturn(audioRoutesInfo); in initialize_wiredRouteAvailable_deviceRouteReturnsWiredRoute() 242 mAudioService, in initialize_wiredRouteAvailable_deviceRouteReturnsWiredRoute() 265 private AudioService mAudioService; field in LegacyDeviceRouteControllerTest.VolumeAndDeviceRoutesChangesTest 287 when(mAudioService.startWatchingRoutes(mAudioRoutesObserverCaptor.capture())) in setUp() [all …]
|
/frameworks/base/media/java/android/media/ |
D | LoudnessCodecDispatcher.java | 205 @NonNull private final IAudioService mAudioService; field in LoudnessCodecDispatcher 209 mAudioService = Objects.requireNonNull(audioService); in LoudnessCodecDispatcher() 216 mAudioService.registerLoudnessCodecUpdatesDispatcher( in register() 219 mAudioService.unregisterLoudnessCodecUpdatesDispatcher( in register() 243 mAudioService.startLoudnessCodecUpdates(sessionId); in startLoudnessCodecUpdates() 252 mAudioService.stopLoudnessCodecUpdates(sessionId); in stopLoudnessCodecUpdates() 262 mAudioService.addLoudnessCodecInfo(sessionId, mediaCodecHash, mcInfo); in addLoudnessCodecInfo() 271 mAudioService.removeLoudnessCodecInfo(sessionId, mcInfo); in removeLoudnessCodecInfo() 281 loudnessParams = new Bundle(mAudioService.getLoudnessParams(mcInfo)); in getLoudnessCodecParams()
|
D | MediaRouter.java | 87 final IAudioService mAudioService; field in MediaRouter.Static 124 mIsBluetoothA2dpOn = mAudioService.isBluetoothA2dpOn(); 144 mAudioService = IAudioService.Stub.asInterface(b); in Static() 190 mIsBluetoothA2dpOn = mAudioService.isBluetoothA2dpOn(); in startMonitoringRoutes() 191 newAudioRoutes = mAudioService.startWatchingRoutes(mAudioRoutesObserver); in startMonitoringRoutes() 288 volume = mAudioService.getStreamVolume(streamType); in getStreamVolume() 2023 sStatic.mAudioService.setStreamVolumeWithAttribution(mPlaybackStream, volume, 0, in requestSetVolume() 2042 sStatic.mAudioService.setStreamVolumeWithAttribution(mPlaybackStream, volume, 0, in requestUpdateVolume() 2060 volMax = sStatic.mAudioService.getStreamMaxVolume(mPlaybackStream); in getVolumeMax()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioDeviceBroker.java | 97 private final @NonNull AudioService mAudioService; field in AudioDeviceBroker 185 mAudioService = service; in AudioDeviceBroker() 202 mAudioService = service; in AudioDeviceBroker() 254 mAudioModeOwner = mAudioService.getAudioModeOwner(); in onSystemReady() 438 final int streamType = mAudioService.getBluetoothContextualVolumeStream(); in setCommunicationRouteForClient() 578 client.setPlaybackActive(mAudioService.isPlaybackActiveForUid(client.getUid())); in updateCommunicationRouteClientState() 579 client.setRecordingActive(mAudioService.isRecordingActiveForUid(client.getUid())); in updateCommunicationRouteClientState() 689 if (mAudioService.isPlatformVoice()) { in updateActiveCommunicationDevice() 1341 return mAudioService.anonymizeAudioDeviceAttributesListUnchecked(devices); in anonymizeAudioDeviceAttributesListUnchecked() 1389 mAudioService.postAccessoryPlugMediaUnmute(device); in postAccessoryPlugMediaUnmute() [all …]
|
D | SoundDoseHelper.java | 201 @NonNull private final AudioService mAudioService; field in SoundDoseHelper 290 mAudioService.postLowerVolumeToRs1(); 316 mAudioService = audioService; in SoundDoseHelper() 557 mSettings.putSecureIntForUser(mAudioService.getContentResolver(), in setCsdAsAFeatureEnabled() 619 mSettings.getSecureIntForUser(mAudioService.getContentResolver(), in restoreMusicActiveMs() 635 AudioService.VolumeStreamState streamState = mAudioService.getVssVolumeForStream( in enforceSafeMediaVolume() 692 mAudioService.onSetStreamVolume(mPendingVolumeCommand.mStreamType, in disableSafeMediaVolume() 719 int device = mAudioService.getDeviceForStream(AudioSystem.STREAM_MUSIC); in onCheckMusicActive() 722 int index = mAudioService.getVssVolumeForDevice(AudioSystem.STREAM_MUSIC, in onCheckMusicActive() 811 mSettings.putSecureIntForUser(mAudioService.getContentResolver(), in handleMessage() [all …]
|
D | LoudnessCodecHelper.java | 159 private final AudioService mAudioService; field in LoudnessCodecHelper 338 mAudioService = Objects.requireNonNull(audioService); in LoudnessCodecHelper() 371 mAudioService.getActivePlaybackConfigurations().stream().filter( in startLoudnessCodecUpdates() 439 mAudioService.getActivePlaybackConfigurations().stream().filter( in addLoudnessCodecInfo() 495 mAudioService.getDevicesForAttributesInt(new AudioAttributes.Builder() in getLoudnessParams() 680 deviceCategory = mAudioService.getBluetoothAudioDeviceCategory(address); in getDeviceSplRange() 682 deviceCategory = mAudioService.getBluetoothAudioDeviceCategory_legacy( in getDeviceSplRange() 694 if (mAudioService.isPlatformAutomotive() || mAudioService.isPlatformTelevision()) { in getDeviceSplRange()
|
D | SpatializerHelper.java | 82 private final @NonNull AudioService mAudioService; field in SpatializerHelper 178 mAudioService = mother; in SpatializerHelper() 424 mAudioService.postResetSpatializer(); in postReset() 1490 mAudioService.postInitSpatializerHeadTrackingSensors(); in postInitSensors() 1510 mAudioService.mContext.getSystemService(Context.SENSOR_SERVICE); in onInitSensors() 1621 + mAudioService.mContext.getPackageManager().hasSystemFeature( in dump() 1651 List<String> deviceAddresses = mAudioService.getDeviceIdentityAddresses(currentDevice); in getHeadSensorHandleUpdateTracker()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | LegacyDeviceRouteController.java | 68 private final IAudioService mAudioService; field in LegacyDeviceRouteController 93 mAudioService = audioService; in LegacyDeviceRouteController() 100 newAudioRoutes = mAudioService.startWatchingRoutes(mAudioRoutesObserver); in LegacyDeviceRouteController()
|
D | MediaRouterService.java | 128 private final IAudioService mAudioService; field in MediaRouterService 163 mAudioService = IAudioService.Stub.asInterface( in MediaRouterService() 170 mAudioService.startWatchingRoutes(new AudioRoutesObserverImpl()); in MediaRouterService() 305 mAudioService.setBluetoothA2dpOn(on); in setBluetoothA2dpOn() 688 mAudioService.setBluetoothA2dpOn(a2dpOn); in restoreBluetoothA2dp()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbAlsaDevice.java | 57 private IAudioService mAudioService; field in UsbAlsaDevice 67 mAudioService = audioService; in UsbAlsaDevice() 308 mAudioService.setWiredDeviceConnectionState(attributes, state, TAG); in updateWiredDeviceConnectionState()
|
D | UsbAlsaManager.java | 69 private IAudioService mAudioService; field in UsbAlsaManager 161 mAudioService = IAudioService.Stub.asInterface( in systemReady() 330 if (mAudioService == null) { in usbDeviceAdded() 336 new UsbAlsaDevice(mAudioService, cardRec.getCardNum(), 0 /*device*/, in usbDeviceAdded()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | RingtonePlayer.java | 61 private IAudioService mAudioService; field in RingtonePlayer 75 mAudioService = IAudioService.Stub.asInterface( in start() 78 mAudioService.setRingtonePlayer(mCallback); in start()
|
/frameworks/av/services/oboeservice/ |
D | AAudioServiceStreamBase.cpp | 56 , mAudioService(audioService) { in AAudioServiceStreamBase() 167 mServiceEndpoint = mEndpointManager.openEndpoint(mAudioService, in open()
|
D | AAudioServiceStreamBase.h | 420 android::AAudioService &mAudioService; variable
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImpl.java | 134 private final IAudioService mAudioService; field in VolumeDialogControllerImpl 216 mAudioService = iAudioService; in VolumeDialogControllerImpl() 404 mAudioService.playSoundEffect(AudioManager.FX_KEYPRESS_STANDARD, in playTouchFeedback()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 28466 Landroid/media/MediaRouter$Static;->mAudioService:Landroid/media/IAudioService;
|