Home
last modified time | relevance | path

Searched refs:mHeadsetPhoneState (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetPhoneStateTest.java58 private HeadsetPhoneState mHeadsetPhoneState; field in HeadsetPhoneStateTest
86 mHeadsetPhoneState = new HeadsetPhoneState(mHeadsetService); in setUp()
91 mHeadsetPhoneState.cleanup(); in tearDown()
107 mHeadsetPhoneState.listenForPhoneState(device1, PhoneStateListener.LISTEN_NONE); in testListenForPhoneState_NoneResultsNoListen()
118 mHeadsetPhoneState.listenForPhoneState(device1, PhoneStateListener.LISTEN_SERVICE_STATE); in testListenForPhoneState_ServiceOnly()
131 mHeadsetPhoneState.listenForPhoneState(device1, PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_ServiceAndSignalStrength()
144 mHeadsetPhoneState.listenForPhoneState(device1, PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffSignalStrengh()
148 mHeadsetPhoneState.listenForPhoneState(device1, PhoneStateListener.LISTEN_SERVICE_STATE); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffSignalStrengh()
159 mHeadsetPhoneState.listenForPhoneState(device1, PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffAll()
163 mHeadsetPhoneState.listenForPhoneState(device1, PhoneStateListener.LISTEN_NONE); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffAll()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetSystemInterface.java53 private final HeadsetPhoneState mHeadsetPhoneState; field in HeadsetSystemInterface
89 mHeadsetPhoneState = new HeadsetPhoneState(mHeadsetService); in HeadsetSystemInterface()
151 mHeadsetPhoneState.cleanup(); in stop()
182 return mHeadsetPhoneState; in getHeadsetPhoneState()
371 return ((mHeadsetPhoneState.getNumActiveCall() > 0) || (mHeadsetPhoneState.getNumHeldCall() in isInCall()
372 > 0) || ((mHeadsetPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_IDLE) in isInCall()
373 && (mHeadsetPhoneState.getCallState() != HeadsetHalConstants.CALL_STATE_INCOMING))); in isInCall()
383 return mHeadsetPhoneState.getCallState() == HeadsetHalConstants.CALL_STATE_INCOMING; in isRinging()