Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java486 + HeadsetHalConstants.getConnectionStateName(state) in processConnectionEvent()
524 HeadsetHalConstants.BTHF_SWB_CODEC_VENDOR_APTX, true, mDevice); in setAptxVoice()
525 } else if ((callState.mCallState == HeadsetHalConstants.CALL_STATE_DIALING) in setAptxVoice()
526 || (callState.mCallState == HeadsetHalConstants.CALL_STATE_INCOMING) in setAptxVoice()
527 || ((callState.mCallState == HeadsetHalConstants.CALL_STATE_IDLE) in setAptxVoice()
532 HeadsetHalConstants.BTHF_SWB_CODEC_VENDOR_APTX, false, mDevice); in setAptxVoice()
537 HeadsetHalConstants.BTHF_SWB_CODEC_VENDOR_APTX, true, mDevice); in setAptxVoice()
649 case HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED: in processConnectionEvent()
653 case HeadsetHalConstants.CONNECTION_STATE_CONNECTED: in processConnectionEvent()
654 case HeadsetHalConstants.CONNECTION_STATE_CONNECTING: in processConnectionEvent()
[all …]
DHeadsetPhoneState.java55 private int mCindService = HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE;
59 private int mCallState = HeadsetHalConstants.CALL_STATE_IDLE;
65 private int mCindRoam = HeadsetHalConstants.SERVICE_TYPE_HOME;
267 int signal = mCindService == HeadsetHalConstants.NETWORK_STATE_AVAILABLE ? mCindSignal : 0; in sendDeviceStateChanged()
297 mCindService = HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE; in onSubscriptionsChanged()
317 ? HeadsetHalConstants.NETWORK_STATE_AVAILABLE in onServiceStateChanged()
318 : HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE; in onServiceStateChanged()
321 ? HeadsetHalConstants.SERVICE_TYPE_ROAMING in onServiceStateChanged()
322 : HeadsetHalConstants.SERVICE_TYPE_HOME; in onServiceStateChanged()
336 if (mCindService == HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE) { in onSignalStrengthsChanged()
DAtPhonebook.java163 int atCommandResult = HeadsetHalConstants.AT_RESPONSE_ERROR; in handleCscsCommand()
170 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCscsCommand()
175 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCscsCommand()
191 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCscsCommand()
210 int atCommandResult = HeadsetHalConstants.AT_RESPONSE_ERROR; in handleCpbsCommand()
219 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCpbsCommand()
237 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCpbsCommand()
242 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCpbsCommand()
265 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCpbsCommand()
280 int atCommandResult = HeadsetHalConstants.AT_RESPONSE_ERROR; in handleCpbrCommand()
[all …]
DHeadsetService.java214 HeadsetHalConstants.BTHF_SWB_CODEC_VENDOR_APTX, in HeadsetService()
367 case HeadsetHalConstants.CONNECTION_STATE_CONNECTED: in messageFromNative()
368 case HeadsetHalConstants.CONNECTION_STATE_CONNECTING: in messageFromNative()
1181 enableSwbCodec(HeadsetHalConstants.BTHF_SWB_CODEC_VENDOR_APTX, true, device); in startVoiceRecognition()
1223 enableSwbCodec(HeadsetHalConstants.BTHF_SWB_CODEC_VENDOR_APTX, false, device); in stopVoiceRecognition()
1685 phoneStateChanged(0, 0, HeadsetHalConstants.CALL_STATE_DIALING, "", 0, "", true); in startScoUsingVirtualVoiceCall()
1686 phoneStateChanged(0, 0, HeadsetHalConstants.CALL_STATE_ALERTING, "", 0, "", true); in startScoUsingVirtualVoiceCall()
1687 phoneStateChanged(1, 0, HeadsetHalConstants.CALL_STATE_IDLE, "", 0, "", true); in startScoUsingVirtualVoiceCall()
1703 phoneStateChanged(0, 0, HeadsetHalConstants.CALL_STATE_IDLE, "", 0, "", true); in stopScoUsingVirtualVoiceCall()
1895 enableSwbCodec(HeadsetHalConstants.BTHF_SWB_CODEC_VENDOR_APTX, true, fromDevice); in startVoiceRecognitionByHeadset()
[all …]
DHeadsetSystemInterface.java322 || ((mHeadsetPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_IDLE) in isInCall()
324 != HeadsetHalConstants.CALL_STATE_INCOMING))); in isInCall()
334 return mHeadsetPhoneState.getCallState() == HeadsetHalConstants.CALL_STATE_INCOMING; in isRinging()
DHeadsetHalConstants.java19 public final class HeadsetHalConstants { class
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java193 eq(HeadsetHalConstants.BTHF_SWB_CODEC_VENDOR_APTX), in setUp()
258 HeadsetHalConstants.CONNECTION_STATE_SLC_CONNECTED, in testConnectFromApi()
301 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, in testUnbondDevice_disconnectBeforeUnbond()
347 HeadsetHalConstants.CONNECTION_STATE_SLC_CONNECTED, in testUnbondDevice_disconnectAfterUnbond()
365 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, in testUnbondDevice_disconnectAfterUnbond()
453 0, 0, HeadsetHalConstants.CALL_STATE_INCOMING, TEST_PHONE_NUMBER, 128, "", false); in testVirtualCall_preemptedByTelecomCall()
459 0, 0, HeadsetHalConstants.CALL_STATE_INCOMING, TEST_PHONE_NUMBER, 128, ""), in testVirtualCall_preemptedByTelecomCall()
543 .atResponseCode(dialingOutDevice, HeadsetHalConstants.AT_RESPONSE_ERROR, 0); in testDialingOutCall_NormalDialingOut()
552 .atResponseCode(activeDevice, HeadsetHalConstants.AT_RESPONSE_ERROR, 0); in testDialingOutCall_NormalDialingOut()
572 0, 0, HeadsetHalConstants.CALL_STATE_DIALING, TEST_PHONE_NUMBER, 128, "", false); in testDialingOutCall_NormalDialingOut()
[all …]
DHeadsetStateMachineTest.java226 HeadsetHalConstants.CONNECTION_STATE_CONNECTED, in testStateTransition_DisconnectedToConnecting_StackConnected()
253 HeadsetHalConstants.CONNECTION_STATE_CONNECTING, in testStateTransition_DisconnectedToConnecting_StackConnecting()
283 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTING, in testStateTransition_ConnectingToDisconnected_StackDisconnected()
298 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, in testStateTransition_ConnectingToDisconnected_StackDisconnected()
351 HeadsetHalConstants.CONNECTION_STATE_CONNECTING, in testStateTransition_ConnectingToConnected_StackSlcConnected()
366 HeadsetHalConstants.CONNECTION_STATE_CONNECTED, in testStateTransition_ConnectingToConnected_StackSlcConnected()
382 HeadsetHalConstants.CONNECTION_STATE_SLC_CONNECTED, in testStateTransition_ConnectingToConnected_StackSlcConnected()
413 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, in testStateTransition_DisconnectingToDisconnected_StackDisconnected()
468 HeadsetHalConstants.CONNECTION_STATE_SLC_CONNECTED, in testStateTransition_DisconnectingToConnected_StackSlcCconnected()
522 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTING, in testStateTransition_ConnectedToDisconnecting_StackDisconnecting()
[all …]
DAtPhonebookTest.java114 .atResponseCode(mTestDevice, HeadsetHalConstants.AT_RESPONSE_ERROR, -1); in handleCscsCommand()
118 .atResponseCode(mTestDevice, HeadsetHalConstants.AT_RESPONSE_OK, -1); in handleCscsCommand()
124 HeadsetHalConstants.AT_RESPONSE_ERROR, in handleCscsCommand()
131 HeadsetHalConstants.AT_RESPONSE_ERROR, in handleCscsCommand()
151 HeadsetHalConstants.AT_RESPONSE_ERROR, in handleCpbsCommand()
158 HeadsetHalConstants.AT_RESPONSE_ERROR, in handleCpbsCommand()
163 .atResponseCode(mTestDevice, HeadsetHalConstants.AT_RESPONSE_OK, -1); in handleCpbsCommand()
169 HeadsetHalConstants.AT_RESPONSE_ERROR, in handleCpbsCommand()
182 .atResponseCode(mTestDevice, HeadsetHalConstants.AT_RESPONSE_OK, -1); in handleCpbrCommand()
186 .atResponseCode(mTestDevice, HeadsetHalConstants.AT_RESPONSE_ERROR, -1); in handleCpbrCommand()
[all …]
DHeadsetServiceTest.java324 HeadsetHalConstants.CONNECTION_STATE_CONNECTED, in testMessageFromNative_deviceConnected()
349 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, in testMessageFromNative_deviceConnected()
372 HeadsetHalConstants.CONNECTION_STATE_CONNECTING, in testMessageFromNative_deviceConnectingUnknown()
397 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, in testMessageFromNative_deviceDisconnectedUnknown()
882 1, 0, HeadsetHalConstants.CALL_STATE_ALERTING, TEST_PHONE_NUMBER, 128, ""); in testPhoneStateChange_noDeviceSaveState()
909 0, 0, HeadsetHalConstants.CALL_STATE_IDLE, TEST_PHONE_NUMBER, 128, ""); in testPhoneStateChange_oneDeviceSaveState()
982 headsetCallState.mCallState = HeadsetHalConstants.CALL_STATE_ALERTING; in testPhoneStateChange_oneDeviceSaveState()
1012 1, 0, HeadsetHalConstants.CALL_STATE_ALERTING, TEST_PHONE_NUMBER, 128, ""); in testPhoneStateChange_multipleDevicesSaveState()
DBluetoothHeadsetBinderTest.java186 int callState = HeadsetHalConstants.CALL_STATE_IDLE; in phoneStateChanged()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java28 import com.android.bluetooth.hfp.HeadsetHalConstants;
403 mDevice1, HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS, batteryLevel); in testHfIndicatorParser_testCorrectValue()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DRemoteDevices.java53 import com.android.bluetooth.hfp.HeadsetHalConstants;
1436 if (indicatorId == HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS) { in onHfIndicatorValueChanged()