Home
last modified time | relevance | path

Searched refs:audioState (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DAudioSelectMenu.java57 CallAudioState audioState = inCallButtonUiDelegate.getCurrentAudioState(); in AudioSelectMenu() local
62 initItem(bluetoothButton, CallAudioState.ROUTE_BLUETOOTH, audioState); in AudioSelectMenu()
63 initItem(speakerButton, CallAudioState.ROUTE_SPEAKER, audioState); in AudioSelectMenu()
64 initItem(headsetButton, CallAudioState.ROUTE_WIRED_HEADSET, audioState); in AudioSelectMenu()
65 initItem(earpieceButton, CallAudioState.ROUTE_EARPIECE, audioState); in AudioSelectMenu()
68 private void initItem(RttCheckableButton item, final int itemRoute, CallAudioState audioState) { in initItem() argument
69 if ((audioState.getSupportedRouteMask() & itemRoute) == 0) { in initItem()
71 } else if (audioState.getRoute() == itemRoute) { in initItem()
80 void setAudioState(CallAudioState audioState) { in setAudioState() argument
81 bluetoothButton.setChecked(audioState.getRoute() == CallAudioState.ROUTE_BLUETOOTH); in setAudioState()
[all …]
DRttChatFragment.java561 public void setAudioState(CallAudioState audioState) { in setAudioState() argument
562 LogUtil.i("RttChatFragment.setAudioState", "audioState: " + audioState); in setAudioState()
563 overflowMenu.setMuteButtonChecked(audioState.isMuted()); in setAudioState()
564 overflowMenu.setAudioState(audioState); in setAudioState()
566 audioSelectMenu.setAudioState(audioState); in setAudioState()
DRttOverflowMenu.java88 void setAudioState(CallAudioState audioState) { in setAudioState() argument
89 SpeakerButtonInfo info = new SpeakerButtonInfo(audioState); in setAudioState()
/packages/apps/Dialer/java/com/android/incallui/audiomode/
DAudioModeProvider.java37 private CallAudioState audioState = field in AudioModeProvider
44 public void onAudioStateChanged(CallAudioState audioState) { in onAudioStateChanged() argument
45 if (!this.audioState.equals(audioState)) { in onAudioStateChanged()
46 this.audioState = audioState; in onAudioStateChanged()
48 listener.onAudioStateChanged(audioState); in onAudioStateChanged()
56 listener.onAudioStateChanged(audioState); in addListener()
65 return audioState; in getAudioState()
112 void onAudioStateChanged(CallAudioState audioState); in onAudioStateChanged() argument
/packages/apps/Dialer/java/com/android/incallui/audioroute/
DAudioRouteSelectorDialogFragment.java63 public static AudioRouteSelectorDialogFragment newInstance(CallAudioState audioState) { in newInstance() argument
66 args.putParcelable(ARG_AUDIO_STATE, audioState); in newInstance()
99 CallAudioState audioState = getArguments().getParcelable(ARG_AUDIO_STATE); in onCreateView() local
103 Collection<BluetoothDevice> bluetoothDeviceSet = audioState.getSupportedBluetoothDevices(); in onCreateView()
106 (audioState.getRoute() == CallAudioState.ROUTE_BLUETOOTH) in onCreateView()
108 || device.equals(audioState.getActiveBluetoothDevice())); in onCreateView()
120 audioState, in onCreateView()
128 audioState, in onCreateView() local
133 audioState, in onCreateView() local
138 audioState, in onCreateView() local
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DUiCallManager.java115 CallAudioState audioState = mInCallService.getCallAudioState(); in getMuted() local
116 return audioState != null && audioState.isMuted(); in getMuted()
130 CallAudioState audioState = getCallAudioStateOrNull(); in getSupportedAudioRouteMask() local
131 return audioState != null ? audioState.getSupportedRouteMask() : 0; in getSupportedAudioRouteMask()
178 CallAudioState audioState = getCallAudioStateOrNull(); in getAudioRoute() local
179 int audioRoute = audioState != null ? audioState.getRoute() : 0; in getAudioRoute()
DInCallServiceImpl.java137 public void onCallAudioStateChanged(CallAudioState audioState) { in onCallAudioStateChanged() argument
139 callback.onCallAudioStateChanged(audioState); in onCallAudioStateChanged()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSpeakerButtonController.java70 public void setAudioState(CallAudioState audioState) { in setAudioState() argument
71 LogUtil.i("SpeakerButtonController.setSupportedAudio", "audioState: " + audioState); in setAudioState()
74 if ((audioState.getSupportedRouteMask() & CallAudioState.ROUTE_BLUETOOTH) in setAudioState()
79 if ((audioState.getRoute() & CallAudioState.ROUTE_BLUETOOTH) in setAudioState()
83 } else if ((audioState.getRoute() & CallAudioState.ROUTE_SPEAKER) in setAudioState()
87 } else if ((audioState.getRoute() & CallAudioState.ROUTE_WIRED_HEADSET) in setAudioState()
97 isChecked = audioState.getRoute() == CallAudioState.ROUTE_SPEAKER; in setAudioState()
DSurfaceViewVideoCallFragment.java792 public void setAudioState(CallAudioState audioState) { in setAudioState() argument
793 LogUtil.i("SurfaceViewVideoCallFragment.setAudioState", "audioState: " + audioState); in setAudioState()
794 speakerButtonController.setAudioState(audioState); in setAudioState()
795 muteButton.setChecked(audioState.isMuted()); in setAudioState()
DVideoCallFragment.java904 public void setAudioState(CallAudioState audioState) { in setAudioState() argument
905 LogUtil.i("VideoCallFragment.setAudioState", "audioState: " + audioState); in setAudioState()
906 speakerButtonController.setAudioState(audioState); in setAudioState()
907 muteButton.setChecked(audioState.isMuted()); in setAudioState()
/packages/apps/Dialer/java/com/android/incallui/speakerbuttonlogic/
DSpeakerButtonInfo.java45 public SpeakerButtonInfo(CallAudioState audioState) { in SpeakerButtonInfo() argument
46 if ((audioState.getSupportedRouteMask() & CallAudioState.ROUTE_BLUETOOTH) in SpeakerButtonInfo()
51 if ((audioState.getRoute() & CallAudioState.ROUTE_BLUETOOTH) in SpeakerButtonInfo()
56 } else if ((audioState.getRoute() & CallAudioState.ROUTE_SPEAKER) in SpeakerButtonInfo()
61 } else if ((audioState.getRoute() & CallAudioState.ROUTE_WIRED_HEADSET) in SpeakerButtonInfo()
73 isChecked = audioState.getRoute() == CallAudioState.ROUTE_SPEAKER; in SpeakerButtonInfo()
/packages/apps/Dialer/java/com/android/incallui/
DReturnToCallController.java72 private CallAudioState audioState; field in ReturnToCallController
102 audioState = AudioModeProvider.getInstance().getAudioState(); in ReturnToCallController()
252 public void onAudioStateChanged(CallAudioState audioState) { in onAudioStateChanged() argument
258 this.audioState = audioState; in onAudioStateChanged()
318 SpeakerButtonInfo speakerButtonInfo = new SpeakerButtonInfo(audioState); in generateActions()
333 .setChecked(audioState.isMuted()) in generateActions()
DCallButtonPresenter.java176 public void onAudioStateChanged(CallAudioState audioState) { in onAudioStateChanged() argument
178 inCallButtonUi.setAudioState(audioState); in onAudioStateChanged()
199 CallAudioState audioState = getCurrentAudioState(); in toggleSpeakerphone() local
200 if (0 != (CallAudioState.ROUTE_BLUETOOTH & audioState.getSupportedRouteMask())) { in toggleSpeakerphone()
204 inCallButtonUi.setAudioState(audioState); in toggleSpeakerphone()
209 if (audioState.getRoute() == CallAudioState.ROUTE_SPEAKER) { in toggleSpeakerphone()
DReturnToCallActionReceiver.java79 CallAudioState audioState = AudioModeProvider.getInstance().getAudioState(); in toggleSpeaker() local
81 if ((audioState.getSupportedRouteMask() & CallAudioState.ROUTE_BLUETOOTH) in toggleSpeaker()
92 if (audioState.getRoute() == CallAudioState.ROUTE_SPEAKER) { in toggleSpeaker()
DInCallServiceImpl.java52 public void onCallAudioStateChanged(CallAudioState audioState) { in onCallAudioStateChanged() argument
54 AudioModeProvider.getInstance().onAudioStateChanged(audioState); in onCallAudioStateChanged()
DProximitySensor.java133 public void onAudioStateChanged(CallAudioState audioState) { in onAudioStateChanged() argument
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestCallDiagnosticService.java83 public void onCallAudioStateChanged(@NonNull CallAudioState audioState) { in onCallAudioStateChanged() argument
84 Log.i(this, "onCallAudioStateChanged %s", audioState); in onCallAudioStateChanged()
DSelfManagedCallListAdapter.java173 CallAudioState audioState = connection.getCallAudioState(); in getView() local
175 if (audioState != null) { in getView()
176 switch (audioState.getRoute()) { in getView()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DInCallFragment.java462 public void setAudioState(CallAudioState audioState) { in setAudioState() argument
463 LogUtil.i("InCallFragment.setAudioState", "audioState: " + audioState); in setAudioState()
465 .setAudioState(audioState); in setAudioState()
466 getButtonController(InCallButtonIds.BUTTON_MUTE).setChecked(audioState.isMuted()); in setAudioState()
DButtonController.java380 public void setAudioState(CallAudioState audioState) { in setAudioState() argument
381 SpeakerButtonInfo info = new SpeakerButtonInfo(audioState); in setAudioState()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallServiceFixture.java103 public void onCallAudioStateChanged(CallAudioState audioState) throws RemoteException { in onCallAudioStateChanged() argument
104 mCallAudioState = audioState; in onCallAudioStateChanged()
/packages/apps/Dialer/java/com/android/incallui/incall/protocol/
DInCallButtonUi.java38 void setAudioState(CallAudioState audioState); in setAudioState() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/telephony/
DBluetoothInCallService.java538 public void onCallAudioStateChanged(CallAudioState audioState) { in onCallAudioStateChanged() argument
539 super.onCallAudioStateChanged(audioState); in onCallAudioStateChanged()
540 Log.d(TAG, "onCallAudioStateChanged, audioState == " + audioState); in onCallAudioStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java1038 int audioState = entry.getValue().getAudioState(entry.getKey()); in isScoRouted() local
1039 if (audioState == BluetoothHeadsetClient.STATE_AUDIO_CONNECTED) { in isScoRouted()
1041 Log.d(TAG, "Device " + entry.getKey() + " audio state " + audioState in isScoRouted()
/packages/apps/Dialer/java/com/android/incallui/call/
DDialerCall.java1594 CallAudioState audioState = AudioModeProvider.getInstance().getAudioState(); in onUpgradedToVideo() local
1596 if (0 != (CallAudioState.ROUTE_BLUETOOTH & audioState.getSupportedRouteMask())) { in onUpgradedToVideo()
1603 if (audioState.getRoute() == CallAudioState.ROUTE_SPEAKER) { in onUpgradedToVideo()

12