Home
last modified time | relevance | path

Searched refs:audioManager (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DRingerModeTrackerImpl.kt35 audioManager: AudioManager,
44 audioManager::getRingerMode
51 audioManager::getRingerModeInternal
/frameworks/base/services/core/java/com/android/server/hdmi/
DVolumeControlAction.java162 AudioManager audioManager = tv().getService().getAudioManager(); in shouldUpdateAudioVolume() local
163 int currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in shouldUpdateAudioVolume()
165 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in shouldUpdateAudioVolume()
DHdmiCecLocalDeviceAudioSystem.java599 AudioManager audioManager = mService.getContext().getSystemService(AudioManager.class); in getSystemAudioDeviceInfo() local
600 if (audioManager == null) { in getSystemAudioDeviceInfo()
605 AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in getSystemAudioDeviceInfo()
DHdmiControlService.java1331 AudioManager audioManager = getAudioManager(); in setAudioStatus() local
1332 boolean muted = audioManager.isStreamMute(AudioManager.STREAM_MUSIC); in setAudioStatus()
1335 audioManager.setStreamMute(AudioManager.STREAM_MUSIC, true); in setAudioStatus()
1339 audioManager.setStreamMute(AudioManager.STREAM_MUSIC, false); in setAudioStatus()
1347 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, flag); in setAudioStatus()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DNotificationPlayer.java91 AudioManager audioManager = in run() local
109 if (!audioManager.isMusicActiveRemotely()) { in run()
117 mNotificationRampTimeMs = audioManager.getFocusRampTimeMs( in run()
119 audioManager.requestAudioFocus(null, mCmd.attributes, in run()
121 mAudioManagerWithAudioFocus = audioManager; in run()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DSafetyWarningDialog.java46 public SafetyWarningDialog(Context context, AudioManager audioManager) { in SafetyWarningDialog() argument
49 mAudioManager = audioManager; in SafetyWarningDialog()
DVolumeDialogControllerImpl.java174 AudioManager audioManager, in VolumeDialogControllerImpl() argument
191 mAudio = audioManager; in VolumeDialogControllerImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/systemsounds/
DHomeSoundEffectController.java64 AudioManager audioManager, in HomeSoundEffectController() argument
69 mAudioManager = audioManager; in HomeSoundEffectController()
/frameworks/base/services/core/java/com/android/server/audio/
DSoundEffectsHelper.java395 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in loadSoundAssets() local
396 if (audioManager != null && navigationRepeatFxParsed) { in loadSoundAssets()
397 audioManager.setNavigationRepeatSoundEffectsEnabled(true); in loadSoundAssets()
399 if (audioManager != null && homeSoundParsed) { in loadSoundAssets()
400 audioManager.setHomeSoundEffectEnabled(true); in loadSoundAssets()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogControllerImplTest.java182 AudioManager audioManager, in TestableVolumeDialogControllerImpl() argument
190 super(context, broadcastDispatcher, ringerModeTracker, theadFactory, audioManager, in TestableVolumeDialogControllerImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java116 AudioManager audioManager, in AppOpsControllerImpl() argument
128 mAudioManager = audioManager; in AppOpsControllerImpl()
130 mMicMuted = audioManager.isMicrophoneMute() in AppOpsControllerImpl()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardHostViewController.java167 AudioManager audioManager, in KeyguardHostViewController() argument
174 mAudioManager = audioManager; in KeyguardHostViewController()
/frameworks/base/media/java/android/media/
DRingtone.java304 AudioManager audioManager = in getTitle()
306 mRemotePlayer = audioManager.getRingtonePlayer(); in getTitle()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DHotwordDetectionConnection.java914 final AudioManagerInternal audioManager = in updateServiceUidForAudioPolicy() local
916 if (audioManager != null) { in updateServiceUidForAudioPolicy()
917 audioManager.setHotwordDetectionServiceUid(uid); in updateServiceUidForAudioPolicy()
/frameworks/base/services/core/java/com/android/server/camera/
DCameraServiceProxy.java875 AudioManager audioManager = getContext().getSystemService(AudioManager.class); in updateActivityCount() local
876 if (audioManager != null) { in updateActivityCount()
881 audioManager.setParameters(facingParameter); in updateActivityCount()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java147 AudioManager audioManager, in GlobalActionsDialog() argument
179 audioManager, in GlobalActionsDialog()
DGlobalActionsDialogLite.java313 AudioManager audioManager, in GlobalActionsDialogLite() argument
344 mAudioManager = audioManager; in GlobalActionsDialogLite()
1915 SilentModeTriStateAction(AudioManager audioManager, Handler handler) {
1916 mAudioManager = audioManager;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java468 final AudioManager audioManager = context.getSystemService(AudioManager.class); in isAudioModeOngoingCall() local
469 final int audioMode = audioManager.getMode(); in isAudioModeOngoingCall()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java670 SilentModeTriStateAction(Context context, AudioManager audioManager, Handler handler) {
671 mAudioManager = audioManager;
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java285 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in getOpUsageData() local
288 if (hasPhoneCall && usedPermGroups.contains(MICROPHONE) && audioManager.getMode() in getOpUsageData()
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java1078 AudioManager audioManager = mContextSpy.getSystemService(AudioManager.class);
1079 audioManager.setRingerModeInternal(ringerMode);
1080 assertEquals(ringerMode, audioManager.getRingerModeInternal());
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhone.java361 … AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setEchoSuppressionEnabled() local
362 String echoSuppression = audioManager.getParameters("ec_supported"); in setEchoSuppressionEnabled()
/frameworks/base/core/java/android/view/
DViewRootImpl.java844 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in ViewRootImpl()
845 mFastScrollSoundEffectsEnabled = audioManager.areNavigationRepeatSoundEffectsEnabled(); in ViewRootImpl()
7895 final AudioManager audioManager = getAudioManager(); in playSoundEffect() local
7899 audioManager.playSoundEffect( in playSoundEffect()
7906 audioManager.playSoundEffect(AudioManager.FX_KEY_CLICK); in playSoundEffect()
7910 audioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN); in playSoundEffect()
7914 audioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT); in playSoundEffect()
7918 audioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT); in playSoundEffect()
7922 audioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP); in playSoundEffect()
/frameworks/base/core/java/com/android/internal/policy/
DPhoneWindow.java1153 AudioManager audioManager = (AudioManager) getContext().getSystemService( in onKeyUpPanel() local
1155 if (audioManager != null) { in onKeyUpPanel()
1156 audioManager.playSoundEffect(AudioManager.FX_KEY_CLICK); in onKeyUpPanel()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java1948 final AudioManagerInternal audioManager = in updateServicesLocked() local
1950 if (audioManager != null) { in updateServicesLocked()
1951 audioManager.setAccessibilityServiceUids(mTempIntArray); in updateServicesLocked()

12