/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 523 case HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED: in processConnectionEvent() 527 case HeadsetHalConstants.CONNECTION_STATE_CONNECTED: in processConnectionEvent() 528 case HeadsetHalConstants.CONNECTION_STATE_CONNECTING: in processConnectionEvent() 545 case HeadsetHalConstants.CONNECTION_STATE_DISCONNECTING: in processConnectionEvent() 691 case HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED: in processConnectionEvent() 695 case HeadsetHalConstants.CONNECTION_STATE_CONNECTED: in processConnectionEvent() 698 case HeadsetHalConstants.CONNECTION_STATE_SLC_CONNECTED: in processConnectionEvent() 702 case HeadsetHalConstants.CONNECTION_STATE_CONNECTING: in processConnectionEvent() 705 case HeadsetHalConstants.CONNECTION_STATE_DISCONNECTING: in processConnectionEvent() 787 case HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED: in processConnectionEvent() [all …]
|
D | HeadsetPhoneState.java | 58 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()
|
D | AtPhonebook.java | 164 int atCommandResult = HeadsetHalConstants.AT_RESPONSE_ERROR; in handleCscsCommand() 171 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCscsCommand() 176 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCscsCommand() 190 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; in handleCscsCommand() 209 int atCommandResult = HeadsetHalConstants.AT_RESPONSE_ERROR; in handleCpbsCommand() 218 atCommandResult = HeadsetHalConstants.AT_RESPONSE_OK; 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() [all …]
|
D | HeadsetService.java | 310 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 …]
|
D | HeadsetSystemInterface.java | 350 > 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()
|
D | HeadsetHalConstants.java | 23 public final class HeadsetHalConstants { class
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 303 HeadsetHalConstants.CONNECTION_STATE_SLC_CONNECTED, device); in testConnectFromApi() 341 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, device); in testUnbondDevice_disconnectBeforeUnbond() 384 HeadsetHalConstants.CONNECTION_STATE_SLC_CONNECTED, device); in testUnbondDevice_disconnectAfterUnbond() 407 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, device); in testUnbondDevice_disconnectAfterUnbond() 492 mHeadsetServiceBinder.phoneStateChanged(0, 0, HeadsetHalConstants.CALL_STATE_INCOMING, in testVirtualCall_preemptedByTelecomCall() 497 new HeadsetCallState(0, 0, HeadsetHalConstants.CALL_STATE_INCOMING, in testVirtualCall_preemptedByTelecomCall() 583 HeadsetHalConstants.AT_RESPONSE_ERROR, 0); in testDialingOutCall_NormalDialingOut() 591 verify(mNativeInterface).atResponseCode(activeDevice, HeadsetHalConstants.AT_RESPONSE_ERROR, in testDialingOutCall_NormalDialingOut() 600 mHeadsetServiceBinder.phoneStateChanged(0, 0, HeadsetHalConstants.CALL_STATE_DIALING, in testDialingOutCall_NormalDialingOut() 603 new HeadsetCallState(0, 0, HeadsetHalConstants.CALL_STATE_DIALING, in testDialingOutCall_NormalDialingOut() [all …]
|
D | HeadsetStateMachineTest.java | 191 HeadsetHalConstants.CONNECTION_STATE_CONNECTED, mTestDevice)); in testStateTransition_DisconnectedToConnecting_StackConnected() 209 HeadsetHalConstants.CONNECTION_STATE_CONNECTING, mTestDevice)); in testStateTransition_DisconnectedToConnecting_StackConnecting() 230 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTING, mTestDevice)); in testStateTransition_ConnectingToDisconnected_StackDisconnected() 241 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, mTestDevice)); in testStateTransition_ConnectingToDisconnected_StackDisconnected() 283 HeadsetHalConstants.CONNECTION_STATE_CONNECTING, mTestDevice)); in testStateTransition_ConnectingToConnected_StackSlcConnected() 294 HeadsetHalConstants.CONNECTION_STATE_CONNECTED, mTestDevice)); in testStateTransition_ConnectingToConnected_StackSlcConnected() 306 HeadsetHalConstants.CONNECTION_STATE_SLC_CONNECTED, mTestDevice)); in testStateTransition_ConnectingToConnected_StackSlcConnected() 329 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTED, mTestDevice)); in testStateTransition_DisconnectingToDisconnected_StackDisconnected() 372 HeadsetHalConstants.CONNECTION_STATE_SLC_CONNECTED, mTestDevice)); in testStateTransition_DisconnectingToConnected_StackSlcCconnected() 415 HeadsetHalConstants.CONNECTION_STATE_DISCONNECTING, mTestDevice)); in testStateTransition_ConnectedToDisconnecting_StackDisconnecting() [all …]
|
D | HeadsetServiceTest.java | 274 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()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | RemoteDevicesTest.java | 22 import com.android.bluetooth.hfp.HeadsetHalConstants; 313 HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS)); in testHfIndicatorParser_testCorrectValue()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | RemoteDevices.java | 46 import com.android.bluetooth.hfp.HeadsetHalConstants; 799 if (indicatorId == HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS) { in onHfIndicatorValueChanged()
|