Home
last modified time | relevance | path

Searched refs:client (Results 1 – 25 of 26) sorted by relevance

12

/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Drpc_client_test.py38 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/
Dchameleon_controller.py19 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)
Dnative.py57 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/
DJSONFileKeyStoreFactoryTest.java60 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/
DLocationServiceParserTest.java66 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/
Dgstorage_client_test.py27 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 …]
Dbase_cloud_client_test.py99 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)
Dandroid_build_client_test.py45 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,
Dbase_cloud_client.py31 from oauth2client import client
61 RETRIABLE_AUTH_ERRORS = (client.AccessTokenRefreshError, )
Dauth.py45 from oauth2client import client as oauth2_client
/tools/loganalysis/tests/src/com/android/loganalysis/item/
DLocationDumpsItemTest.java71 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/
DRangeSoftApTest.py50 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/
DFakeSocketServerHelper.java52 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/
DBluetoothUtils.java213 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()
DSubprocessTestResultsParser.java124 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/
Drpc_client.py153 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
Dsl4a_session.py128 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/
DWifiMonitorService.java28 import org.apache.http.client.HttpClient;
29 import org.apache.http.client.methods.HttpGet;
30 import org.apache.http.impl.client.DefaultHttpClient;
DWifiConnector.java27 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/
DAndroid.mk25 LOCAL_MODULE := tf-remote-client
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aEventDispatcher.java46 public Sl4aEventDispatcher(Sl4aClient client, long timeout) { in Sl4aEventDispatcher() argument
49 mClient = client; in Sl4aEventDispatcher()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardHelper.java168 IKeyStoreClient client = null; in cloneConfigObject() local
170 client = getGlobalConfiguration().getKeyStoreFactory().createKeyStoreClient(); in cloneConfigObject()
184 client); in cloneConfigObject()
/tools/tradefederation/core/
DAndroid.mk55 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/
DTelLiveDataTest.py787 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/
Duser_config.proto49 // client_id and client secret are required when user authenticates via

12