Searched refs:rpcCall (Results 1 – 9 of 9) sorted by relevance
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | Sl4aBluetoothUtilTest.java | 100 when(mPrimaryClient.rpcCall(eq(Commands.BLUETOOTH_CHECK_STATE))).thenReturn(Boolean.TRUE); in testEnable_alreadyEnabled() 107 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_CHECK_STATE)).thenReturn(Boolean.FALSE); in testEnable_notEnabled() 108 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_TOGGLE_STATE, Boolean.TRUE)) in testEnable_notEnabled() 117 when(mPrimaryClient.rpcCall(eq(Commands.BLUETOOTH_CHECK_STATE))).thenReturn(Boolean.FALSE); in testDisable_alreadyDisabled() 124 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_CHECK_STATE)).thenReturn(Boolean.TRUE); in testDisable_notDisabled() 125 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_TOGGLE_STATE, Boolean.FALSE)) in testDisable_notDisabled() 134 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_GET_LOCAL_ADDRESS)).thenReturn("address"); in testGetAddress() 140 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_GET_LOCAL_ADDRESS)).thenReturn("address"); in testGetAddress_calledTwice() 143 verify(mPrimaryClient, times(1)).rpcCall(Commands.BLUETOOTH_GET_LOCAL_ADDRESS); in testGetAddress_calledTwice() 149 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_GET_BONDED_DEVICES)) in testGetBondedDevices() [all …]
|
D | BluetoothUtilsTest.java | 90 Mockito.doReturn(null).when(mSpyClient).rpcCall(BluetoothUtils.BTSNOOP_API, true); in testEnableBtsnoopLogging() 101 .rpcCall(BluetoothUtils.BTSNOOP_API, true); in testEnableBtsnoopLoggingFailed() 110 Mockito.doReturn(null).when(mSpyClient).rpcCall(BluetoothUtils.BTSNOOP_API, false); in testDisableBtsnoopLogging() 119 Mockito.doReturn(null).when(mSpyClient).rpcCall(BluetoothUtils.BTSNOOP_API, false); in testDisableBtsnoopLoggingFailed()
|
/tools/tradefederation/contrib/src/com/android/tradefed/ |
D | Sl4aBluetoothDiscovery.java | 63 clientDut.rpcCall("bluetoothToggleState", false); in setup() 65 clientDut.rpcCall("bluetoothToggleState", true); in setup() 67 clientDiscoverer.rpcCall("bluetoothToggleState", false); in setup() 69 clientDiscoverer.rpcCall("bluetoothToggleState", true); in setup() 77 Object rep = clientDut.rpcCall("bluetoothCheckState"); in setup() 80 clientDut.rpcCall("bluetoothSetLocalName", BLUETOOTH_NAME); in setup() 81 rep = clientDut.rpcCall("bluetoothGetLocalName"); in setup() 102 dutClient.rpcCall("bluetoothMakeDiscoverable"); in run() 103 Object rep = dutClient.rpcCall("bluetoothGetScanMode"); in run() 108 discovererClient.rpcCall("bluetoothStartDiscovery"); in run() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/sl4a/ |
D | Sl4aEventDispatcherTest.java | 63 .when(mClient).rpcCall("eventWait", FAKE_TIMEOUT_MS); in testPollEvents() 74 .when(mClient).rpcCall("eventWait", FAKE_TIMEOUT_MS); in testPollEvents_shutdown() 86 .when(mClient).rpcCall("eventWait", FAKE_TIMEOUT_MS); in testPopEvent() 113 .when(mClient).rpcCall("eventWait", FAKE_TIMEOUT_MS); in testPopAllEvents() 137 .when(mClient).rpcCall("eventWait", FAKE_TIMEOUT_MS); in testClearEvents() 142 .when(mClient).rpcCall("eventWait", FAKE_TIMEOUT_MS); in testClearEvents() 169 .when(mClient).rpcCall("eventWait", FAKE_TIMEOUT_MS); in testWaitForEvent() 194 .when(mClient).rpcCall("eventWait", FAKE_TIMEOUT_MS); in testWaitForEvent_notMatching()
|
D | Sl4aClientTest.java | 167 Object rep = mClient.rpcCall("getBoolean", false); in testRpcCall_booleanResponse()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | Sl4aBluetoothUtil.java | 279 address = (String) client.rpcCall(Commands.BLUETOOTH_GET_LOCAL_ADDRESS); in getAddress() 300 Object response = client.rpcCall(Commands.BLUETOOTH_GET_BONDED_DEVICES); in getBondedDevices() 334 secondaryClient.rpcCall(Commands.BLUETOOTH_MAKE_DISCOVERABLE); in pair() 335 Integer response = (Integer) secondaryClient.rpcCall(Commands.BLUETOOTH_GET_SCAN_MODE); in pair() 343 primaryClient.rpcCall(Commands.BLUETOOTH_START_PAIRING_HELPER); in pair() 344 secondaryClient.rpcCall(Commands.BLUETOOTH_START_PAIRING_HELPER); in pair() 349 primaryClient.rpcCall(Commands.BLUETOOTH_DISCOVER_AND_BOND, getAddress(secondary)); in pair() 375 Boolean res = (Boolean) client.rpcCall(Commands.BLUETOOTH_UNBOND, address); in unpairAll() 412 primaryClient.rpcCall( in connect() 414 primaryClient.rpcCall(Commands.BLUETOOTH_CONNECT_BONDED, address); in connect() [all …]
|
D | BluetoothUtils.java | 253 client.rpcCall(BTSNOOP_API, onOff); in toggleBtsnoopLogging()
|
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/ |
D | Sl4aEventDispatcher.java | 70 Object response = mClient.rpcCall("eventWait", mTimeout); in internalPolling()
|
D | Sl4aClient.java | 294 public Object rpcCall(String methodName, Object... args) throws IOException { in rpcCall() method in Sl4aClient
|