/frameworks/av/media/libaudioclient/ |
D | RecordingActivityTracker.cpp | 31 mAudioManager = interface_cast<IAudioManager>(binder); in RecordingActivityTracker() 39 if (mRIId != RECORD_RIID_INVALID && mAudioManager) { in ~RecordingActivityTracker() 40 mAudioManager->releaseRecorder(mRIId); in ~RecordingActivityTracker() 46 if (mRIId == RECORD_RIID_INVALID && mAudioManager) { in getRiid() 47 mRIId = mAudioManager->trackRecorder(mToken); in getRiid() 54 if (getRiid() != RECORD_RIID_INVALID && mAudioManager) { in recordingStarted() 55 mAudioManager->recorderEvent(mRIId, RECORDER_STATE_STARTED); in recordingStarted() 61 if (getRiid() != RECORD_RIID_INVALID && mAudioManager) { in recordingStopped() 62 mAudioManager->recorderEvent(mRIId, RECORDER_STATE_STOPPED); in recordingStopped()
|
D | PlayerBase.cpp | 39 mAudioManager = interface_cast<IAudioManager>(binder); in PlayerBase() 50 if (mAudioManager == 0) { in init() 53 mPIId = mAudioManager->trackPlayer(playerType, usage, AUDIO_CONTENT_TYPE_UNKNOWN, this); in init() 59 if (mAudioManager != 0) { in baseDestroy() 60 mAudioManager.clear(); in baseDestroy() 66 if (mAudioManager != 0) { in servicePlayerEvent() 72 mAudioManager->playerEvent(mPIId, event); in servicePlayerEvent() 78 if (mAudioManager != 0 in serviceReleasePlayer() 80 mAudioManager->releasePlayer(mPIId); in serviceReleasePlayer()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaAudioManagerTest.java | 38 private AudioManager mAudioManager; field in MediaAudioManagerTest 57 mAudioManager = (AudioManager)getActivity().getSystemService(Context.AUDIO_SERVICE); in initializeAudioManagerWithLooper() 98 int getRingtone = mAudioManager.getRingerMode(); in validateSetRingTone() 113 mAudioManager.setRingerMode(ringtoneMode[i]); in testSetRingtoneMode() 145 int result = mAudioManager.requestAudioFocus(mAudioFocusListener, in verifyAudioFocusLoss() 151 result = mAudioManager.requestAudioFocus(null, AudioManager.STREAM_MUSIC, in verifyAudioFocusLoss() 168 mAudioManager.abandonAudioFocus(mAudioFocusListener); in cleanupAudioFocusListener() 216 int result = mAudioManager.requestAudioFocus(mAudioFocusListener, in testAudioFocusStressListenerRequestAbandon() 231 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in testAudioFocusStressNoListenerRequestAbandon() 235 mAudioManager.requestAudioFocus(null, AudioManager.STREAM_MUSIC, in testAudioFocusStressNoListenerRequestAbandon() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarVolumizer.java | 94 private final AudioManager mAudioManager; field in SeekBarVolumizer 147 mAudioManager = context.getSystemService(AudioManager.class); in SeekBarVolumizer() 157 mAffectedByRingerMode = mAudioManager.isStreamAffectedByRingerMode(mStreamType); in SeekBarVolumizer() 160 mRingerMode = mAudioManager.getRingerModeInternal(); in SeekBarVolumizer() 170 mMaxStreamVolume = mAudioManager.getStreamMaxVolume(mStreamType); in SeekBarVolumizer() 172 mOriginalStreamVolume = mAudioManager.getStreamVolume(mStreamType); in SeekBarVolumizer() 173 mLastAudibleStreamVolume = mAudioManager.getLastAudibleStreamVolume(mStreamType); in SeekBarVolumizer() 174 mMuted = mAudioManager.isStreamMute(mStreamType); in SeekBarVolumizer() 276 mAudioManager.adjustStreamVolume(mStreamType, AudioManager.ADJUST_UNMUTE, 0); in handleMessage() 278 mAudioManager.adjustStreamVolume(mStreamType, AudioManager.ADJUST_MUTE, 0); in handleMessage() [all …]
|
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/ |
D | FixVibrateSetting.java | 32 AudioManager mAudioManager; field in FixVibrateSetting 45 mAudioManager = (AudioManager)getSystemService(AUDIO_SERVICE); in onCreate() 68 int setting = mAudioManager.getVibrateSetting(vibrateType); in getSettingValue() 102 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION, in fix() 107 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION, in unfix()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeHelperTest.java | 442 AudioManagerInternal mAudioManager = mock(AudioManagerInternal.class); in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() local 443 mZenModeHelperSpy.mAudioManager = mAudioManager; in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 448 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_NORMAL); in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 459 verify(mAudioManager, never()).setRingerModeInternal(AudioManager.RINGER_MODE_SILENT, in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 463 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_SILENT); in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 466 verify(mAudioManager, atLeastOnce()).setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL, in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 529 AudioManagerInternal mAudioManager = mock(AudioManagerInternal.class); in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_StartNormal() local 530 mZenModeHelperSpy.mAudioManager = mAudioManager; in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_StartNormal() 535 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_NORMAL); in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_StartNormal() 541 verify(mAudioManager, atLeastOnce()).setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL, in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_StartNormal() [all …]
|
D | BuzzBeepBlinkTest.java | 89 @Mock AudioManager mAudioManager; field in BuzzBeepBlinkTest 133 when(mAudioManager.isAudioFocusExclusive()).thenReturn(false); in setUp() 134 when(mAudioManager.getRingtonePlayer()).thenReturn(mRingtonePlayer); in setUp() 135 when(mAudioManager.getStreamVolume(anyInt())).thenReturn(10); in setUp() 136 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_NORMAL); in setUp() 149 mService.setAudioManager(mAudioManager); in setUp() 699 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_VIBRATE); in testNoDemoteSoundToVibrateIfVibrateGiven() 700 when(mAudioManager.getStreamVolume(anyInt())).thenReturn(0); in testNoDemoteSoundToVibrateIfVibrateGiven() 720 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_VIBRATE); in testNoDemoteSoundToVibrateIfNonNotificationStream() 721 when(mAudioManager.getStreamVolume(anyInt())).thenReturn(1); in testNoDemoteSoundToVibrateIfNonNotificationStream() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | SafetyWarningDialog.java | 40 private final AudioManager mAudioManager; field in SafetyWarningDialog 49 mAudioManager = audioManager; in SafetyWarningDialog() 85 mAudioManager.disableSafeMediaVolume(); in onKeyUp() 93 mAudioManager.disableSafeMediaVolume(); in onClick()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardHostView.java | 53 private AudioManager mAudioManager; field in KeyguardHostView 358 if (mAudioManager == null) { in interceptMediaKey() 359 mAudioManager = (AudioManager) getContext().getSystemService( in interceptMediaKey() 365 mAudioManager.adjustSuggestedStreamVolume( in interceptMediaKey() 401 if (mAudioManager == null) { in handleMediaKeyEvent() 402 mAudioManager = (AudioManager) getContext().getSystemService( in handleMediaKeyEvent() 406 mAudioManager.dispatchMediaKeyEvent(keyEvent); in handleMediaKeyEvent()
|
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
D | ScoAudioTest.java | 61 AudioManager mAudioManager; field in ScoAudioTest 109 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() 152 mCurrentMode = mAudioManager.getMode(); in onCreate() 186 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO, in onPause() 195 mOriginalVoiceVolume = mAudioManager.getStreamVolume( in onResume() 198 mCurrentMode = mAudioManager.getMode(); in onResume() 209 AudioManager mngr = mAudioManager; 569 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO, in onUtteranceCompleted() 580 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO, in onUtteranceCompleted() 602 mOriginalVoiceVolume = mAudioManager.getStreamVolume( [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | UtilsTest.java | 71 private AudioManager mAudioManager; field in UtilsTest 84 mAudioManager = mContext.getSystemService(AudioManager.class); in setUp() 185 mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in isAudioModeOngoingCall_modeInCommunication_returnTrue() 192 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in isAudioModeOngoingCall_modeInCall_returnTrue() 199 mAudioManager.setMode(AudioManager.MODE_RINGTONE); in isAudioModeOngoingCall_modeRingtone_returnTrue() 206 mAudioManager.setMode(AudioManager.MODE_NORMAL); in isAudioModeOngoingCall_modeNormal_returnFalse()
|
/frameworks/wilhelm/src/objects/ |
D | CEngine.cpp | 82 thiz->mAudioManager = android::interface_cast<android::IAudioManager>(binder); in CEngine_Realize() 141 if (thiz->mAudioManager != 0) { in CEngine_Destroy() 142 thiz->mAudioManager.clear(); in CEngine_Destroy()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | LegacyGlobalActions.java | 101 private final AudioManager mAudioManager; field in LegacyGlobalActions 130 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in LegacyGlobalActions() 221 mSilentModeAction = new SilentModeTriStateAction(mContext, mAudioManager, mHandler); in createDialog() 597 mAudioManager.getRingerMode() != AudioManager.RINGER_MODE_NORMAL; 646 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT); 648 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); 667 private final AudioManager mAudioManager; 672 mAudioManager = audioManager; 697 int selectedIndex = ringerModeToIndex(mAudioManager.getRingerMode()); 735 mAudioManager.setRingerMode(indexToRingerMode(index));
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHardwareManager.java | 96 private final AudioManager mAudioManager; field in TvInputHardwareManager 122 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in TvInputHardwareManager() 502 mCurrentMaxIndex = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in updateVolume() 503 mCurrentIndex = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in updateVolume() 757 mAudioManager.releaseAudioPatch(mAudioPatch); 781 mAudioManager.registerAudioPortUpdateListener(mAudioListener); in TvInputHardwareImpl() 791 if (mAudioManager.listAudioDevicePorts(devicePorts) != AudioManager.SUCCESS) { in findAudioSinkFromAudioPolicy() 794 int sinkDevice = mAudioManager.getDevicesForStream(AudioManager.STREAM_MUSIC); in findAudioSinkFromAudioPolicy() 808 if (mAudioManager.listAudioDevicePorts(devicePorts) != AudioManager.SUCCESS) { in findAudioDevicePort() 821 mAudioManager.unregisterAudioPortUpdateListener(mAudioListener); in release() [all …]
|
/frameworks/base/media/java/android/media/ |
D | Ringtone.java | 63 private final AudioManager mAudioManager; field in Ringtone 97 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in Ringtone() 99 mRemotePlayer = allowRemote ? mAudioManager.getRingtonePlayer() : null; in Ringtone() 371 if (mAudioManager.getStreamVolume( in play() 462 if (mAudioManager.getStreamVolume(AudioAttributes.toLegacyStreamType(mAudioAttributes)) in playFallbackRingtone()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | PhoneFallbackEventHandler.java | 50 AudioManager mAudioManager; field in PhoneFallbackEventHandler 314 if (mAudioManager == null) { in getAudioManager() 315 mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); in getAudioManager() 317 return mAudioManager; in getAudioManager()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | RecordingActivityTracker.h | 37 sp<IAudioManager> mAudioManager;
|
D | PlayerBase.h | 77 android::sp<android::IAudioManager> mAudioManager; variable
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 54 private AudioManager mAudioManager; field in SettingsHelper 104 mAudioManager = (AudioManager) context in SettingsHelper() 295 mAudioManager.loadSoundEffects(); in setSoundEffects() 297 mAudioManager.unloadSoundEffects(); in setSoundEffects()
|
/frameworks/base/core/java/android/widget/ |
D | VideoView.java | 139 private AudioManager mAudioManager; field in VideoView 167 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in VideoView() 369 mAudioManager.abandonAudioFocus(null); in stopPlayback() 384 mAudioManager.requestAudioFocus(null, mAudioAttributes, mAudioFocusType, 0 /*flags*/); in openVideo() 553 mAudioManager.abandonAudioFocus(null); 721 mAudioManager.abandonAudioFocus(null); in release()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceTest.java | 69 private AudioManager mAudioManager; field in CachedBluetoothDeviceTest 77 mAudioManager = mContext.getSystemService(AudioManager.class); in setUp() 235 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in getConnectionSummary_testA2dpInCall_returnNull() 251 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in getConnectionSummary_testA2dpBatteryInCall_returnBattery() 267 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in getConnectionSummary_testSingleProfileActiveDeviceHfp() 385 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in getConnectionSummary_testHearingAidInCall_returnActive() 400 mAudioManager.setMode(AudioManager.MODE_IN_CALL); in getConnectionSummary_testHearingAidBatteryInCall_returnActiveBattery()
|
/frameworks/base/services/core/java/com/android/server/ |
D | WiredAccessoryManager.java | 81 private final AudioManager mAudioManager; field in WiredAccessoryManager 97 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in WiredAccessoryManager() 313 mAudioManager.setWiredDeviceConnectionState(outDevice, state, "", headsetName); in setDeviceStateLocked() 316 mAudioManager.setWiredDeviceConnectionState(inDevice, state, "", headsetName); in setDeviceStateLocked()
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
D | LocalRenderer.java | 191 private AudioManager mAudioManager; field in LocalRenderer 226 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in LocalRenderer() 477 int result = mAudioManager.requestAudioFocus(this, AudioManager.STREAM_MUSIC, in requestAudioFocus() 700 mAudioManager.abandonAudioFocus(this); in cleanUpPlayer()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonView.java | 73 private AudioManager mAudioManager; field in KeyButtonView 129 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in KeyButtonView() 322 mAudioManager.playSoundEffect(soundConstant, ActivityManager.getCurrentUser()); in playSoundEffect()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsDialog.java | 141 private final AudioManager mAudioManager; field in GlobalActionsDialog 176 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in GlobalActionsDialog() 295 mSilentModeAction = new SilentModeTriStateAction(mAudioManager, mHandler); in createDialog() 906 mAudioManager.getRingerMode() != AudioManager.RINGER_MODE_NORMAL; 1313 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT); 1315 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); 1332 private final AudioManager mAudioManager; 1336 mAudioManager = audioManager; 1359 int selectedIndex = ringerModeToIndex(mAudioManager.getRingerMode()); 1392 mAudioManager.setRingerMode(indexToRingerMode(index));
|