Home
last modified time | relevance | path

Searched refs:prevState (Results 1 – 25 of 50) sorted by relevance

12

/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoAudioPermissionTest.java89 boolean prevState = mAudioManager.isSpeakerphoneOn(); in testRouting()
90 mAudioManager.setSpeakerphoneOn(!prevState); in testRouting()
91 assertEquals(prevState, mAudioManager.isSpeakerphoneOn()); in testRouting()
94 prevState = mAudioManager.isBluetoothScoOn(); in testRouting()
95 mAudioManager.setBluetoothScoOn(!prevState); in testRouting()
96 assertEquals(prevState, mAudioManager.isBluetoothScoOn()); in testRouting()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pan/
DPanService.java624 int prevState; in handlePanDeviceStateChange() local
629 prevState = BluetoothProfile.STATE_DISCONNECTED; in handlePanDeviceStateChange()
633 prevState = panDevice.mState; in handlePanDeviceStateChange()
644 if (prevState == BluetoothProfile.STATE_DISCONNECTED in handlePanDeviceStateChange()
646 Log.d(TAG, "Ignoring state change from " + prevState + " to " + state); in handlePanDeviceStateChange()
651 Log.d(TAG, "handlePanDeviceStateChange preState: " + prevState + " state: " + state); in handlePanDeviceStateChange()
652 if (prevState == state) { in handlePanDeviceStateChange()
702 + prevState); in handlePanDeviceStateChange()
721 device, BluetoothProfile.PAN, state, prevState); in handlePanDeviceStateChange()
726 Log.d(TAG, "Pan Device state : device: " + device + " State:" + prevState + "->" + state); in handlePanDeviceStateChange()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterProperties.java777 BluetoothDevice device, int profile, int newState, int prevState) { in updateOnProfileConnectionChanged() argument
781 + (" state [" + prevState + " -> " + newState + "]"); in updateOnProfileConnectionChanged()
783 if (!isNormalStateTransition(prevState, newState)) { in updateOnProfileConnectionChanged()
796 || !validateProfileConnectionState(prevState)) { in updateOnProfileConnectionChanged()
806 updateProfileConnectionState(profile, newState, prevState); in updateOnProfileConnectionChanged()
808 if (updateCountersAndCheckForConnectionStateChange(newState, prevState)) { in updateOnProfileConnectionChanged()
810 int prevAdapterState = convertToAdapterState(prevState); in updateOnProfileConnectionChanged()
853 private static boolean isNormalStateTransition(int prevState, int nextState) { in isNormalStateTransition() argument
854 switch (prevState) { in isNormalStateTransition()
868 private boolean updateCountersAndCheckForConnectionStateChange(int state, int prevState) { in updateCountersAndCheckForConnectionStateChange() argument
[all …]
DAdapterState.java179 int prevState = mPrevState; in enter() local
181 if (prevState == BluetoothAdapter.STATE_BLE_TURNING_OFF) { in enter()
DPhonePolicy.java99 public void onBluetoothStateChange(int prevState, int newState) { in onBluetoothStateChange() argument
696 BluetoothDevice device, int profileId, int nextState, int prevState) { in processProfileStateChanged() argument
703 + prevState in processProfileStateChanged()
727 if (prevState == BluetoothProfile.STATE_CONNECTING in processProfileStateChanged()
728 || prevState == BluetoothProfile.STATE_DISCONNECTING) { in processProfileStateChanged()
DSilenceDeviceManager.java136 int prevState = msg.arg1; in handleMessage() local
145 } else if (prevState == BluetoothProfile.STATE_CONNECTED) { in handleMessage()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothHealthCallback.java81 int prevState, in onHealthChannelStateChange() argument
92 + prevState in onHealthChannelStateChange()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachine.java332 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { in onConnectionStateChanged() argument
337 if (prevState != state && state == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
340 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + state); in onConnectionStateChanged()
344 device, BluetoothProfile.PBAP_CLIENT, state, prevState); in onConnectionStateChanged()
347 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in onConnectionStateChanged()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hid/
DHidHostService.java632 int prevState = getState(device, transport); in handleMessageConnectStateChanged() local
665 + (" prevState=" + prevState)); in handleMessageConnectStateChanged()
678 + (" prevState=" + prevState)); in handleMessageConnectStateChanged()
682 if (prevState == BluetoothProfile.STATE_DISCONNECTED in handleMessageConnectStateChanged()
1339 int prevState = BluetoothProfile.STATE_DISCONNECTED; in updateConnectionState() local
1361 prevState = inputDevice.getState(transport); in updateConnectionState()
1367 prevState = inputDevice.getState(); in updateConnectionState()
1372 if (prevState == newState) { in updateConnectionState()
1388 broadcastConnectionState(device, transport, prevState, newState); in updateConnectionState()
1393 BluetoothDevice device, int transport, int prevState, int newState) { in broadcastConnectionState() argument
[all …]
DHidDeviceService.java869 int prevState = mHidDeviceState; in setAndBroadcastConnectionState() local
872 if (prevState == newState) { in setAndBroadcastConnectionState()
880 device, BluetoothProfile.HID_DEVICE, newState, prevState); in setAndBroadcastConnectionState()
888 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in setAndBroadcastConnectionState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java783 private void broadcastConnectionState(int newState, int prevState) { in broadcastConnectionState() argument
788 + profileStateToString(prevState) in broadcastConnectionState()
793 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
799 mA2dpService.handleConnectionStateChanged(mDevice, prevState, newState); in broadcastConnectionState()
804 private void broadcastAudioState(int newState, int prevState) { in broadcastAudioState() argument
809 + audioStateToString(prevState) in broadcastAudioState()
814 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastAudioState()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBluetoothManagerService.java278 public void onBluetoothStateChange(int prevState, int newState)
280 mHandler.obtainMessage(MESSAGE_BLUETOOTH_STATE_CHANGE, prevState, newState)
1716 int prevState = msg.arg1; in handleMessage() local
1721 + (" prevState=" + BluetoothAdapter.nameForState(prevState)) in handleMessage()
1724 bluetoothStateChangeHandler(prevState, newState); in handleMessage()
1727 if ((prevState == STATE_BLE_TURNING_ON) in handleMessage()
1733 if ((prevState == STATE_TURNING_ON) in handleMessage()
1742 if (prevState == STATE_BLE_TURNING_OFF && newState == STATE_OFF) { in handleMessage()
2074 private void broadcastIntentStateChange(String action, int prevState, int newState) { in broadcastIntentStateChange() argument
2079 + (" prevState=" + BluetoothAdapter.nameForState(prevState)) in broadcastIntentStateChange()
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/
DSocketReaderNode.cpp146 kBaseNodeState prevState = mNodeState; in UpdateConfig() local
161 if (isUpdateNode && prevState == kNodeStateRunning) in UpdateConfig()
DBaseNode.cpp171 kBaseNodeState prevState = mNodeState; in UpdateConfig() local
181 if (isUpdateNode && prevState == kNodeStateRunning) in UpdateConfig()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java541 private void broadcastConnectionState(int newState, int prevState) { in broadcastConnectionState() argument
546 + profileStateToString(prevState) in broadcastConnectionState()
550 mService.connectionStateChanged(mDevice, prevState, newState); in broadcastConnectionState()
553 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/
DVolumeControlStateMachine.java545 private void broadcastConnectionState(int newState, int prevState) { in broadcastConnectionState() argument
550 + profileStateToString(prevState) in broadcastConnectionState()
554 mService.handleConnectionStateChanged(mDevice, prevState, newState); in broadcastConnectionState()
556 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/
DCsipSetCoordinatorStateMachine.java557 private void csipConnectionState(int newState, int prevState) { in csipConnectionState() argument
562 + profileStateToString(prevState) in csipConnectionState()
565 mService.handleConnectionStateChanged(mDevice, prevState, newState); in csipConnectionState()
569 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in csipConnectionState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/
DHapClientStateMachine.java164 private void broadcastConnectionState(int newState, int prevState) { in broadcastConnectionState() argument
169 + profileStateToString(prevState) in broadcastConnectionState()
173 mService.connectionStateChanged(mDevice, prevState, newState); in broadcastConnectionState()
175 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DQuickstepOnboardingPrefs.java59 LauncherState prevState = stateManager.getLastState(); in setup()
62 && finalState == ALL_APPS && prevState == NORMAL) || in setup()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothCallback.aidl27 void onBluetoothStateChange(int prevState, int newState); in onBluetoothStateChange() argument
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskThumbnailCache.java91 boolean prevState = mHighResLoadingEnabled; in updateState()
93 if (prevState != mHighResLoadingEnabled) { in updateState()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/nodes/
DIVideoSourceNode.cpp222 kBaseNodeState prevState = mNodeState; in UpdateConfig() local
231 if (prevState == kNodeStateRunning) in UpdateConfig()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioStateMachine.java539 private void broadcastConnectionState(int newState, int prevState) { in broadcastConnectionState() argument
544 + profileStateToString(prevState) in broadcastConnectionState()
547 mService.notifyConnectionStateChanged(mDevice, newState, prevState); in broadcastConnectionState()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java374 private void verifyStateChange(int prevState, int currState) { in verifyStateChange() argument
376 verify(mIBluetoothCallback).onBluetoothStateChange(prevState, currState); in verifyStateChange()
382 private void verifyStateChange(int prevState, int currState, int timeoutMs) { in verifyStateChange() argument
385 .onBluetoothStateChange(prevState, currState); in verifyStateChange()
391 private static void verifyStateChange(IBluetoothCallback cb, int prevState, int currState) { in verifyStateChange() argument
393 verify(cb).onBluetoothStateChange(prevState, currState); in verifyStateChange()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sap/
DSapService.java515 int prevState = mState; in setState() local
518 mRemoteDevice, BluetoothProfile.SAP, mState, prevState); in setState()
522 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in setState()
704 public void onBluetoothStateChange(int prevState, int newState) { in onBluetoothStateChange() argument

12