/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/ |
D | rpc_client_test.py | 38 client = rpc_client.RpcClient(session.uid, session.adb.serial, 41 client._log = mock.Mock() 42 client._working_connections = [mock.Mock()] 44 client.terminate() 46 self.assertTrue(client._log.warning.called) 55 client = rpc_client.RpcClient(session.uid, session.adb.serial, 58 client._log = mock.Mock() 61 client._free_connections = free_connections 62 client._working_connections = working_connections 64 client.terminate() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | chameleon_controller.py | 19 import xmlrpc.client 108 self.client = xmlrpc.client.ServerProxy( 114 self.client.Reset() 133 self.client.StartCapturingAudio(port_id, has_file) 145 return self.client.StopCapturingAudio(port_id) 154 self.client.AudioBoardConnect(bus_number, endpoint) 163 self.client.AudioBoardDisconnect(bus_number, endpoint) 167 self.client.AudioBoardDisableBluetooth() 175 self.client.AudioBoardClearRoutes(bus_number)
|
D | native.py | 57 self.client.write(request.encode("utf8") + b'\n') 58 self.client.flush() 59 response = self.client.readline()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactoryTest.java | 60 IKeyStoreClient client = mFactory.createKeyStoreClient(); in testLoadKeyStore_same() local 61 assertNotNull(client); in testLoadKeyStore_same() 63 assertSame(client, client2); in testLoadKeyStore_same() 71 IKeyStoreClient client = mFactory.createKeyStoreClient(); in testLoadKeyStore_modified() local 72 assertNotNull(client); in testLoadKeyStore_modified() 76 assertNotSame(client, client2); in testLoadKeyStore_modified() 87 IKeyStoreClient client = mFactory.createKeyStoreClient(); in testLoadKeyStore_null() local 88 assertNotNull(client); in testLoadKeyStore_null() 92 assertSame(client, client2); in testLoadKeyStore_null()
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | LocationServiceParserTest.java | 66 LocationInfoItem client = locationClients.getLocationClients().iterator().next(); in testLocationClientParser() local 67 assertEquals(client.getPackage(), "com.google.android.gms"); in testLocationClientParser() 68 assertEquals(client.getEffectiveInterval(), 1); in testLocationClientParser() 69 assertEquals(client.getMinInterval(), 0); in testLocationClientParser() 70 assertEquals(client.getMaxInterval(), 0); in testLocationClientParser() 71 assertEquals(client.getPriority(), "PRIORITY_NO_POWER"); in testLocationClientParser() 72 assertEquals(client.getDuration(), 140); in testLocationClientParser()
|
/tools/acloud/internal/lib/ |
D | gstorage_client_test.py | 27 self.client = gstorage_client.StorageClient(mock.MagicMock()) 28 self.client._service = mock.MagicMock() 34 self.client._service.objects = mock.MagicMock( 37 self.client.Get(self.BUCKET, self.OBJECT) 50 self.client._service.objects = mock.MagicMock( 52 items = self.client.List(self.BUCKET, self.OBJECT) 53 self.client.ListWithMultiPages.assert_called_once_with( 73 self.client._service.objects = mock.MagicMock( 79 response = self.client.Upload(self.LOCAL_SRC, self.BUCKET, self.OBJECT, 93 self.assertRaises(errors.DriverError, self.client.Upload, [all …]
|
D | base_cloud_client_test.py | 99 client = self._SetupInitMocks() 109 results = client.BatchExecute( 119 client.RETRY_COUNT + 1) 121 client.RETRY_COUNT + 1) 134 client = self._SetupInitMocks() 135 items = client.ListWithMultiPages( 142 client = self._SetupInitMocks() 146 self.assertRaises(errors.HttpError, client.Execute, api_mock) 152 client.Execute, 155 self.assertEqual(api_mock.execute.call_count, client.RETRY_COUNT + 1)
|
D | android_build_client_test.py | 45 self.client = android_build_client.AndroidBuildClient(mock.MagicMock()) 46 self.client._service = mock.MagicMock() 64 self.client._service.buildartifact = mock.MagicMock( 68 self.client.DownloadArtifact(self.BUILD_TARGET, self.BUILD_ID, 88 self.assertRaises(errors.DriverError, self.client.DownloadArtifact, 95 self.client._service.buildartifact = mock.MagicMock( 97 self.client.CopyTo( 106 attemptId=self.client.DEFAULT_ATTEMPT_ID, 117 self.client._service.buildartifact.return_value = mock_resource 122 self.client.CopyTo,
|
D | base_cloud_client.py | 31 from oauth2client import client 61 RETRIABLE_AUTH_ERRORS = (client.AccessTokenRefreshError, )
|
D | auth.py | 45 from oauth2client import client as oauth2_client
|
/tools/loganalysis/tests/src/com/android/loganalysis/item/ |
D | LocationDumpsItemTest.java | 71 LocationInfoItem client = item.getLocationClients().iterator().next(); in testGetLocationDumps() local 72 assertNotNull(client); in testGetLocationDumps() 73 assertEquals(client.getPackage(), "com.google.android.gms"); in testGetLocationDumps() 74 assertEquals(client.getEffectiveInterval(), 500); in testGetLocationDumps() 75 assertEquals(client.getMinInterval(), 60); in testGetLocationDumps() 76 assertEquals(client.getMaxInterval(), 1000); in testGetLocationDumps() 77 assertEquals(client.getPriority(), "PRIORITY_ACCURACY"); in testGetLocationDumps() 78 assertEquals(client.getDuration(), 45); in testGetLocationDumps()
|
/tools/test/connectivity/acts/tests/google/wifi/rtt/functional/ |
D | RangeSoftApTest.py | 50 client = self.android_devices[1] 51 client.pretty_name = "Client" 59 wutils.start_wifi_connection_scan_and_ensure_network_found(client, 61 scans = client.droid.wifiGetScanResults() 82 events = rutils.run_ranging(client, [scanned_softap], self.NUM_ITER, 0)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/ |
D | FakeSocketServerHelper.java | 52 Socket client = null; in run() local 56 client = mSocket.accept(); in run() 58 new InputStreamReader(client.getInputStream())); in run() 59 out = new PrintWriter(client.getOutputStream(), true); in run()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | BluetoothUtils.java | 213 Sl4aClient client = new Sl4aClient(device, sl4aApkFile); in enableBtsnoopLogging() local 214 return toggleBtsnoopLogging(client, true); in enableBtsnoopLogging() 245 Sl4aClient client = new Sl4aClient(device, sl4aApkFile); in disableBtsnoopLogging() local 246 return toggleBtsnoopLogging(client, false); in disableBtsnoopLogging() 249 public static boolean toggleBtsnoopLogging(Sl4aClient client, boolean onOff) in toggleBtsnoopLogging() argument 252 client.startSl4A(); in toggleBtsnoopLogging() 253 client.rpcCall(BTSNOOP_API, onOff); in toggleBtsnoopLogging() 259 client.close(); in toggleBtsnoopLogging()
|
D | SubprocessTestResultsParser.java | 124 Socket client = null; in run() local 127 client = mSocket.accept(); in run() 128 in = new BufferedReader(new InputStreamReader(client.getInputStream())); in run()
|
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/ |
D | rpc_client.py | 153 client = self._free_connections.pop() 154 self._working_connections.append(client) 155 return client 164 client = self._create_connection_func(self.uid) 165 self._working_connections.append(client) 166 return client
|
D | sl4a_session.py | 128 client = rpc_connection.RpcConnection( 130 client.open() 132 self.uid = client.uid 133 return client
|
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
D | WifiMonitorService.java | 28 import org.apache.http.client.HttpClient; 29 import org.apache.http.client.methods.HttpGet; 30 import org.apache.http.impl.client.DefaultHttpClient;
|
D | WifiConnector.java | 27 import org.apache.http.client.HttpClient; 28 import org.apache.http.client.methods.HttpGet; 29 import org.apache.http.impl.client.DefaultHttpClient;
|
/tools/tradefederation/core/remote/ |
D | Android.mk | 25 LOCAL_MODULE := tf-remote-client
|
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/ |
D | Sl4aEventDispatcher.java | 46 public Sl4aEventDispatcher(Sl4aClient client, long timeout) { in Sl4aEventDispatcher() argument 49 mClient = client; in Sl4aEventDispatcher()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | ShardHelper.java | 168 IKeyStoreClient client = null; in cloneConfigObject() local 170 client = getGlobalConfiguration().getKeyStoreFactory().createKeyStoreClient(); in cloneConfigObject() 184 client); in cloneConfigObject()
|
/tools/tradefederation/core/ |
D | Android.mk | 55 LOCAL_STATIC_JAVA_LIBRARIES := junit-host junit-params-host kxml2-2.3.0 jline-1.0 tf-remote-client … 132 …atests emmalib jack-jacoco-reporter loganalysis loganalysis-tests tf-remote-client tradefed-contrib
|
/tools/test/connectivity/acts/tests/google/tel/live/ |
D | TelLiveDataTest.py | 787 for client in self.clients: 788 if not (pair_pri_to_sec(self.provider, client)): 789 client.log.error("Client failed to pair with provider") 792 client.log.info("Client paired with provider") 810 for client in clients: 811 client.droid.bluetoothConnectBonded( 820 for client in self.clients: 823 client, 826 client.log.error("client internet connection state is not %s", 830 client.log.info("client internet connection state is %s", [all …]
|
/tools/acloud/internal/proto/ |
D | user_config.proto | 49 // client_id and client secret are required when user authenticates via
|