Home
last modified time | relevance | path

Searched refs:syncHandler (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java363 private void syncHandler(int... what) { in syncHandler() method in AdapterServiceTest
364 TestUtils.syncHandler(mLooper, what); in syncHandler()
408 TestUtils.syncHandler(looper, 0); // when fastBindToApp is enable init need to be run in offToBleOn()
410 TestUtils.syncHandler(looper, AdapterState.BLE_TURN_ON); in offToBleOn()
414 TestUtils.syncHandler(looper, MESSAGE_PROFILE_SERVICE_REGISTERED); in offToBleOn()
416 TestUtils.syncHandler(looper, MESSAGE_PROFILE_SERVICE_STATE_CHANGED); in offToBleOn()
421 TestUtils.syncHandler(looper, AdapterState.BLE_STARTED); in offToBleOn()
434 TestUtils.syncHandler(looper, AdapterState.USER_TURN_OFF); in onToBleOn()
443 TestUtils.syncHandler(looper, MESSAGE_PROFILE_SERVICE_STATE_CHANGED); in onToBleOn()
447 TestUtils.syncHandler(looper, AdapterState.BREDR_STOPPED); in onToBleOn()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachineTest.java76 syncHandler(-2 /* SM_INIT_CMD */); in setUp()
92 private void syncHandler(int... what) { in syncHandler() method in A2dpSinkStateMachineTest
93 TestUtils.syncHandler(mLooper, what); in syncHandler()
104 syncHandler(A2dpSinkStateMachine.STACK_EVENT); in sendConnectionEvent()
111 syncHandler(A2dpSinkStateMachine.STACK_EVENT); in sendAudioConfigChangedEvent()
121 syncHandler(A2dpSinkStateMachine.CONNECT); in testConnectInDisconnected()
129 syncHandler(A2dpSinkStateMachine.DISCONNECT); in testDisconnectInDisconnected()
178 syncHandler(A2dpSinkStateMachine.CLEANUP); in testIncomingDisconnectInDisconnected()
199 syncHandler(UNHANDLED_MESSAGE, UNHANDLED_MESSAGE); in testUnhandledMessageInDisconnected()
237 syncHandler(A2dpSinkStateMachine.CLEANUP); in testDisconnectedInConnecting()
[all …]
DA2dpSinkServiceTest.java120 private void syncHandler(int... what) { in syncHandler() method in A2dpSinkServiceTest
121 TestUtils.syncHandler(mLooper, what); in syncHandler()
131 syncHandler(-2 /* SM_INIT_CMD */, A2dpSinkStateMachine.CONNECT); in setupDeviceConnection()
135 syncHandler(A2dpSinkStateMachine.STACK_EVENT); in setupDeviceConnection()
211 syncHandler(A2dpSinkStateMachine.DISCONNECT); in testDisconnect()
215 syncHandler(A2dpSinkStateMachine.CLEANUP, -1 /* SM_QUIT_CMD */); in testDisconnect()
266 syncHandler(A2dpSinkStateMachine.STACK_EVENT); in testGetAudioConfiguration()
430 syncHandler(A2dpSinkStateMachine.DISCONNECT); in testSetConnectionPolicyDeviceForbiddenWhileConnected()
435 syncHandler(A2dpSinkStateMachine.CLEANUP, -1 /* SM_QUIT_CMD */); in testSetConnectionPolicyDeviceForbiddenWhileConnected()
/packages/modules/Bluetooth/service/tests/src/com/android/server/bluetooth/
DBluetoothManagerServiceTest.java180 private void syncHandler(int... what) { in syncHandler() method in BluetoothManagerServiceTest
210 syncHandler(MESSAGE_DISABLE); in onUserRestrictionsChanged_disallowBluetooth_onlySendDisableMessageOnSystemUser()
223 syncHandler(MESSAGE_ENABLE); in enable_bindFailure_removesTimeout()
233 syncHandler(MESSAGE_ENABLE); in enable_bindTimeout()
236 syncHandler(MESSAGE_TIMEOUT_BIND); in enable_bindTimeout()
256 syncHandler(MESSAGE_BLUETOOTH_SERVICE_CONNECTED); in acceptBluetoothBinding()
281 syncHandler(MESSAGE_BLUETOOTH_STATE_CHANGE); in transition_offToBleOn()
289 syncHandler(MESSAGE_BLUETOOTH_STATE_CHANGE); in transition_offToBleOn()
304 syncHandler(MESSAGE_BLUETOOTH_STATE_CHANGE); in transition_offToOn()
307 syncHandler(MESSAGE_BLUETOOTH_STATE_CHANGE); in transition_offToOn()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/
DTestUtils.java219 public static void syncHandler(TestLooper looper, int... what) { in syncHandler() method in TestUtils