Home
last modified time | relevance | path

Searched refs:audioState (Results 1 – 25 of 33) 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()
113 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/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/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/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/audio/telecom/
DInCallServiceImpl.java79 public void onCallAudioStateChanged(CallAudioState audioState) { in onCallAudioStateChanged() argument
80 if (DEBUG) Log.d(TAG, "onCallAudioStateChanged: " + audioState); in onCallAudioStateChanged()
82 listener.onCallAudioStateChanged(audioState); in onCallAudioStateChanged()
153 void onCallAudioStateChanged(CallAudioState audioState); in onCallAudioStateChanged() argument
/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()
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()
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()
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.java175 CallAudioState audioState = connection.getCallAudioState(); in getView() local
177 if (audioState != null) { in getView()
178 switch (audioState.getRoute()) { in getView()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/audio/
DInCallModel.java257 public void onCallAudioStateChanged(CallAudioState audioState) { in onCallAudioStateChanged() argument
260 if (updateMuteButtonIconState(audioState)) { in onCallAudioStateChanged()
270 boolean updateMuteButtonIconState(CallAudioState audioState) { in updateMuteButtonIconState() argument
275 if (selectedStateExists == audioState.isMuted()) { in updateMuteButtonIconState()
280 if (audioState.isMuted()) { in updateMuteButtonIconState()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallServiceFixture.java113 public void onCallAudioStateChanged(CallAudioState audioState) throws RemoteException { in onCallAudioStateChanged() argument
114 mCallAudioState = audioState; in onCallAudioStateChanged()
/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/apps/Dialer/java/com/android/incallui/incall/protocol/
DInCallButtonUi.java38 void setAudioState(CallAudioState audioState); in setAudioState() argument
/packages/services/Telecomm/src/com/android/server/telecom/
DCallEndpointController.java149 public boolean hasSameBluetoothAddress(CallAudioState audioState, String requestedAddress) { in hasSameBluetoothAddress() argument
150 boolean hasActiveBtDevice = audioState.getActiveBluetoothDevice() != null; in hasSameBluetoothAddress()
152 audioState.getActiveBluetoothDevice().getAddress()); in hasSameBluetoothAddress()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java1267 int audioState = entry.getValue().getAudioState(entry.getKey()); in isScoRouted() local
1268 if (audioState == HeadsetClientHalConstants.AUDIO_STATE_CONNECTED) { in isScoRouted()
1274 + audioState in isScoRouted()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/telephony/
DBluetoothInCallService.java710 public void onCallAudioStateChanged(CallAudioState audioState) { in onCallAudioStateChanged() argument
711 super.onCallAudioStateChanged(audioState); in onCallAudioStateChanged()
712 Log.d(TAG, "onCallAudioStateChanged, audioState == " + audioState); in onCallAudioStateChanged()

12