Home
last modified time | relevance | path

Searched refs:mPrevState (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java127 private HeadsetStateBase mPrevState; field in HeadsetStateMachine
227 ProfileService.println(sb, " mPrevState: " + mPrevState); in dump()
259 if (!(this instanceof Disconnected) && mPrevState == null) { in enter()
267 mPrevState = this; in exit()
280 if (mPrevState == null) { in broadcastStateTransitions()
284 if (getAudioStateInt() != mPrevState.getAudioStateInt() || ( in broadcastStateTransitions()
285 mPrevState instanceof AudioDisconnecting && this instanceof AudioOn)) { in broadcastStateTransitions()
286 stateLogD("audio state changed: " + mDevice + ": " + mPrevState + " -> " + this); in broadcastStateTransitions()
287 broadcastAudioState(mDevice, mPrevState.getAudioStateInt(), getAudioStateInt()); in broadcastStateTransitions()
289 if (getConnectionStateInt() != mPrevState.getConnectionStateInt()) { in broadcastStateTransitions()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DPbapStateMachine.java84 private PbapStateBase mPrevState; field in PbapStateMachine
138 if (!(this instanceof WaitingForAuth) && mPrevState == null) { in enter()
146 mPrevState = this; in exit()
166 if (mPrevState != null) { in broadcastStateTransitions()
167 prevStateInt = mPrevState.getConnectionStateInt(); in broadcastStateTransitions()
170 stateLogD("connection state changed: " + mRemoteDevice + ": " + mPrevState + " -> " in broadcastStateTransitions()
187 isValidTransition = mPrevState == null; in enforceValidConnectionStateTransition()
189 isValidTransition = mPrevState == mConnected || mPrevState == mWaitingForAuth; in enforceValidConnectionStateTransition()
191 isValidTransition = mPrevState == mFinished || mPrevState == mWaitingForAuth; in enforceValidConnectionStateTransition()
195 "Invalid state transition from " + mPrevState + " to " + this in enforceValidConnectionStateTransition()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java133 private State mPrevState; field in HeadsetClientStateMachine
813 if (mPrevState == mConnecting) { in enter()
816 } else if (mPrevState == mConnected || mPrevState == mAudioOn) { in enter()
819 } else if (mPrevState != null) { // null is the default state before Disconnected in enter()
820 Log.e(TAG, "Connected: Illegal state transition from " + mPrevState.getName() in enter()
905 mPrevState = this; in exit()
917 if (mPrevState == mDisconnected) { in enter()
921 String prevStateName = mPrevState == null ? "null" : mPrevState.getName(); in enter()
1056 mPrevState = this; in exit()
1068 if (mPrevState == mConnecting) { in enter()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterState.java87 private int mPrevState = BluetoothAdapter.STATE_OFF; field in AdapterState
155 mAdapterService.updateAdapterState(mPrevState, currState); in enter()
156 mPrevState = currState; in enter()