Home
last modified time | relevance | path

Searched refs:callAudioState (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailAudioManager.java39 private CallAudioState callAudioState; field in VoicemailAudioManager
49 callAudioState = getInitialAudioState(); in VoicemailAudioManager()
51 "VoicemailAudioManager.VoicemailAudioManager", "Initial audioState = " + callAudioState); in VoicemailAudioManager()
85 int newRoute = callAudioState.getRoute(); // start out with existing route in onWiredHeadsetPluggedInChanged()
176 int newRoute = selectWiredOrEarpiece(route, callAudioState.getSupportedRouteMask()); in setAudioRoute()
179 if ((callAudioState.getSupportedRouteMask() | newRoute) == 0) { in setAudioRoute()
190 new CallAudioState(false /* muted */, newRoute, callAudioState.getSupportedRouteMask())); in setAudioRoute()
226 private void setSystemAudioState(CallAudioState callAudioState) { in setSystemAudioState() argument
227 CallAudioState oldAudioState = this.callAudioState; in setSystemAudioState()
228 this.callAudioState = callAudioState; in setSystemAudioState()
[all …]
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/homescreen/audio/
DInCallModelTest.java178 CallAudioState callAudioState = new CallAudioState(true, in onCallAudioStateChanged_callsPresenterWhenMuteButtonIsOutOfSync() local
181 mInCallModel.onCallAudioStateChanged(callAudioState); in onCallAudioStateChanged_callsPresenterWhenMuteButtonIsOutOfSync()
191 CallAudioState callAudioState = new CallAudioState(false, in onCallAudioStateChanged_doesNotCallPresenterWhenMuteButtonIsInSync() local
194 mInCallModel.onCallAudioStateChanged(callAudioState); in onCallAudioStateChanged_doesNotCallPresenterWhenMuteButtonIsInSync()
201 CallAudioState callAudioState; in updateMuteButtonIconState_outOfSync_updatesIconState() local
205 callAudioState = new CallAudioState(true, in updateMuteButtonIconState_outOfSync_updatesIconState()
208 isUpdateRequired = mInCallModel.updateMuteButtonIconState(callAudioState); in updateMuteButtonIconState_outOfSync_updatesIconState()
215 callAudioState = new CallAudioState(false, in updateMuteButtonIconState_outOfSync_updatesIconState()
218 isUpdateRequired = mInCallModel.updateMuteButtonIconState(callAudioState); in updateMuteButtonIconState_outOfSync_updatesIconState()
227 CallAudioState callAudioState; in updateMuteButtonIconState_inSync_doesNotUpdateIconState() local
[all …]
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/homescreen/audio/telecom/
DInCallServiceImplTest.java82 CallAudioState callAudioState = new CallAudioState(false, in onCallAudioStateChanged_callsListeners() local
85 mService.onCallAudioStateChanged(callAudioState); in onCallAudioStateChanged_callsListeners()
87 verify(mInCallModel).onCallAudioStateChanged(callAudioState); in onCallAudioStateChanged_callsListeners()
/packages/apps/Dialer/java/com/android/incallui/
DStatusBarNotifier.java283 final CallAudioState callAudioState = AudioModeProvider.getInstance().getAudioState(); in buildAndSendNotification() local
328 callAudioState)) { in buildAndSendNotification()
405 createIncomingCallNotification(call, callState, callAudioState, builder); in buildAndSendNotification()
444 DialerCall call, int state, CallAudioState callAudioState, Notification.Builder builder) { in createIncomingCallNotification() argument
452 addSpeakerAction(builder, callAudioState); in createIncomingCallNotification()
492 CallAudioState callAudioState) { in checkForChangeAndSaveData() argument
517 || !Objects.equals(savedCallAudioState, callAudioState); in checkForChangeAndSaveData()
530 !Objects.equals(savedCallAudioState, callAudioState), in checkForChangeAndSaveData()
549 savedCallAudioState = callAudioState; in checkForChangeAndSaveData()
973 private void addSpeakerAction(Notification.Builder builder, CallAudioState callAudioState) { in addSpeakerAction() argument
[all …]