Home
last modified time | relevance | path

Searched refs:HeadsetHalConstants (Results 1 – 11 of 11) sorted by relevance

/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetStateMachine.java1123 case HeadsetHalConstants.AUDIO_STATE_CONNECTED: in processAudioEvent()
1137 case HeadsetHalConstants.AUDIO_STATE_CONNECTING: in processAudioEvent()
1209 case HeadsetHalConstants.AUDIO_STATE_CONNECTING: in processAudioEvent()
1215 case HeadsetHalConstants.AUDIO_STATE_CONNECTED: in processAudioEvent()
1442 case HeadsetHalConstants.AUDIO_STATE_CONNECTED: in processAudioEvent()
1446 case HeadsetHalConstants.AUDIO_STATE_CONNECTING: in processAudioEvent()
1643 if (state == HeadsetHalConstants.VR_STATE_STARTED) { in processVrEvent()
1664 if (volumeType == HeadsetHalConstants.VOLUME_TYPE_SPK) { in processVolumeEvent()
1691 case HeadsetHalConstants.BTHF_WBS_YES: in processWBSEvent()
1694 case HeadsetHalConstants.BTHF_WBS_NO: in processWBSEvent()
[all …]
H A DHeadsetPhoneState.java58 private int mCindService = HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE;
62 private int mCallState = HeadsetHalConstants.CALL_STATE_IDLE;
68 private int mCindRoam = HeadsetHalConstants.SERVICE_TYPE_HOME;
242 int signal = mCindService == HeadsetHalConstants.NETWORK_STATE_AVAILABLE ? mCindSignal : 0; in sendDeviceStateChanged()
265 mCindService = HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE; in onSubscriptionsChanged()
284 ? HeadsetHalConstants.NETWORK_STATE_AVAILABLE in onServiceStateChanged()
285 : HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE; in onServiceStateChanged()
286 int newRoam = serviceState.getRoaming() ? HeadsetHalConstants.SERVICE_TYPE_ROAMING in onServiceStateChanged()
287 : HeadsetHalConstants.SERVICE_TYPE_HOME; in onServiceStateChanged()
301 if (mCindService == HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE) { in onSignalStrengthsChanged()
H A DAtPhonebook.java164 int atCommandResult = HeadsetHalConstants.AT_RESPONSE_ERROR; in handleCscsCommand()
171 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCscsCommand()
176 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCscsCommand()
209 int atCommandResult = HeadsetHalConstants.AT_RESPONSE_ERROR; in handleCpbsCommand()
232 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCpbsCommand()
237 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCpbsCommand()
262 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCpbsCommand()
277 int atCommandResult = HeadsetHalConstants.AT_RESPONSE_ERROR; in handleCpbrCommand()
505 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in processCpbrCommand()
523 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in processCpbrCommand()
[all …]
H A DHeadsetSystemInterface.java350 > 0) || ((mHeadsetPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_IDLE) in isInCall()
351 && (mHeadsetPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_INCOMING))); in isInCall()
361 return mHeadsetPhoneState.getCallState() == HeadsetHalConstants.CALL_STATE_INCOMING; in isRinging()
H A DHeadsetService.java310 case HeadsetHalConstants.CONNECTION_STATE_CONNECTED: in messageFromNative()
311 case HeadsetHalConstants.CONNECTION_STATE_CONNECTING: { in messageFromNative()
1369 phoneStateChanged(0, 0, HeadsetHalConstants.CALL_STATE_DIALING, "", 0, "", true); in startScoUsingVirtualVoiceCall()
1370 phoneStateChanged(0, 0, HeadsetHalConstants.CALL_STATE_ALERTING, "", 0, "", true); in startScoUsingVirtualVoiceCall()
1371 phoneStateChanged(1, 0, HeadsetHalConstants.CALL_STATE_IDLE, "", 0, "", true); in startScoUsingVirtualVoiceCall()
1387 phoneStateChanged(0, 0, HeadsetHalConstants.CALL_STATE_IDLE, "", 0, "", true); in stopScoUsingVirtualVoiceCall()
1594 if ((numActive + numHeld) > 0 || callState != HeadsetHalConstants.CALL_STATE_IDLE) { in phoneStateChanged()
1606 if (callState == HeadsetHalConstants.CALL_STATE_DIALING) { in phoneStateChanged()
1613 } else if (callState == HeadsetHalConstants.CALL_STATE_ACTIVE in phoneStateChanged()
1614 || callState == HeadsetHalConstants.CALL_STATE_IDLE) { in phoneStateChanged()
[all …]
H A DHeadsetHalConstants.java23 public final class HeadsetHalConstants { class
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetServiceAndStateMachineTest.java583 HeadsetHalConstants.AT_RESPONSE_ERROR, 0); in testDialingOutCall_NormalDialingOut()
607 HeadsetHalConstants.AT_RESPONSE_OK, 0); in testDialingOutCall_NormalDialingOut()
722 HeadsetHalConstants.AT_RESPONSE_OK, 0); in testVoiceRecognition_SingleHfStopSuccess()
754 HeadsetHalConstants.AT_RESPONSE_ERROR, 0); in testVoiceRecognition_SingleHfInitiatedFailedToActivate()
786 HeadsetHalConstants.AT_RESPONSE_ERROR, 0); in testVoiceRecognition_SingleHfInitiatedTimeout()
953 HeadsetHalConstants.AT_RESPONSE_ERROR, 0); in testVoiceRecognition_MultiHfInitiatedSwitchActiveDeviceSuccess()
957 HeadsetHalConstants.AT_RESPONSE_OK, 0); in testVoiceRecognition_MultiHfInitiatedSwitchActiveDeviceSuccess()
1006 HeadsetHalConstants.AT_RESPONSE_ERROR, 0); in testVoiceRecognition_MultiHfInitiatedSwitchActiveDeviceReplyWrongHfSuccess()
1011 HeadsetHalConstants.AT_RESPONSE_OK, 0); in testVoiceRecognition_MultiHfInitiatedSwitchActiveDeviceReplyWrongHfSuccess()
1056 HeadsetHalConstants.AT_RESPONSE_ERROR, 0); in testVoiceRecognition_MultiAgInitiatedSuccess()
[all …]
H A DHeadsetStateMachineTest.java191 HeadsetHalConstants.CONNECTION_STATE_CONNECTED, mTestDevice)); in testStateTransition_DisconnectedToConnecting_StackConnected()
294 HeadsetHalConstants.CONNECTION_STATE_CONNECTED, mTestDevice)); in testStateTransition_ConnectingToConnected_StackSlcConnected()
481 HeadsetHalConstants.AUDIO_STATE_CONNECTING, mTestDevice)); in testStateTransition_ConnectedToAudioConnecting_StackAudioConnecting()
503 HeadsetHalConstants.AUDIO_STATE_CONNECTED, mTestDevice)); in testStateTransition_ConnectedToAudioOn_StackAudioConnected()
545 HeadsetHalConstants.AUDIO_STATE_DISCONNECTED, mTestDevice)); in testStateTransition_AudioConnectingToConnected_StackAudioDisconnected()
620 HeadsetHalConstants.AUDIO_STATE_CONNECTED, mTestDevice)); in testStateTransition_AudioConnectingToAudioOn_StackAudioConnected()
680 HeadsetHalConstants.AUDIO_STATE_DISCONNECTED, mTestDevice)); in testStateTransition_AudioOnToConnected_StackAudioDisconnected()
775 HeadsetHalConstants.AUDIO_STATE_DISCONNECTED, mTestDevice)); in testStateTransition_AudioDisconnectingToConnected_StackAudioDisconnected()
798 HeadsetHalConstants.AUDIO_STATE_CONNECTED, mTestDevice)); in testStateTransition_AudioDisconnectingToAudioOn_StackAudioConnected()
1022 Assert.assertEquals(HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS, in testAtBindEventWithBatteryLevelEventWhenConnecting()
[all …]
H A DHeadsetServiceTest.java274 HeadsetHalConstants.CONNECTION_STATE_CONNECTED, mCurrentDevice); in testMessageFromNative_deviceConnected()
291 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, mCurrentDevice); in testMessageFromNative_deviceConnected()
311 HeadsetHalConstants.CONNECTION_STATE_CONNECTING, mCurrentDevice); in testMessageFromNative_deviceConnectingUnknown()
329 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, mCurrentDevice); in testMessageFromNative_deviceDisconnectedUnknown()
670 new HeadsetCallState(1, 0, HeadsetHalConstants.CALL_STATE_ALERTING, in testConnectAudio_deviceDisconnected()
702 new HeadsetCallState(1, 0, HeadsetHalConstants.CALL_STATE_ALERTING, in testPhoneStateChange_noDeviceSaveState()
723 new HeadsetCallState(0, 0, HeadsetHalConstants.CALL_STATE_IDLE, in testPhoneStateChange_oneDeviceSaveState()
779 headsetCallState.mCallState = HeadsetHalConstants.CALL_STATE_ALERTING; in testPhoneStateChange_oneDeviceSaveState()
802 new HeadsetCallState(1, 0, HeadsetHalConstants.CALL_STATE_ALERTING, in testPhoneStateChange_multipleDevicesSaveState()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
H A DRemoteDevicesTest.java22 import com.android.bluetooth.hfp.HeadsetHalConstants;
313 HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS)); in testHfIndicatorParser_testCorrectValue()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DRemoteDevices.java46 import com.android.bluetooth.hfp.HeadsetHalConstants;
799 if (indicatorId == HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS) { in onHfIndicatorValueChanged()