Searched refs:_adb (Results 1 – 12 of 12) sorted by relevance
21 self._adb = devices[0]22 self._adb.WaitForDevice()40 output = self._adb.Shell('echo test', expect_rc=0)42 output = self._adb.Shell('echo test')44 self.assertRaises(device_errors.CommandFailedError, self._adb.Shell,51 self._adb.Push(path, device_path)52 self.assertEqual(self._adb.Shell('cat %s' % device_path), 'foo')53 self._adb.Pull(device_path, local_tmpdir)59 self.assertRaises(device_errors.CommandFailedError, self._adb.Install, path)62 self.assertRaises(device_errors.CommandFailedError, self._adb.Forward, 0, 0)[all …]
191 self._adb = backend_settings.adb200 self._adb.CloseApplication(self._backend_settings.package)202 if self._adb.device().old_interface.CanAccessProtectedFileContents():209 self._adb, use_rndis_forwarder)219 if self._adb.IsUserBuild():221 self._adb.device().RunShellCommand(248 if self._adb.device().old_interface.FileExistsOnDevice(name):249 return not self._adb.device().old_interface.IsFileWritableOnDevice(name)258 if not self._adb.device().old_interface.CanAccessProtectedFileContents():263 self._adb.device().old_interface.GetProtectedFileContents([all …]
28 self._adb = adb31 self._rndis_configurator = AndroidRndisConfigurator(self._adb)35 return AndroidRndisForwarder(self._adb, self.host_ip,38 return AndroidForwarder(self._adb, port_pairs)72 self._adb = adb91 self._adb.RunShellCommand('iptables -F -t nat') # Flush any old nat rules.96 self._adb.RunShellCommand(107 self._adb.RunShellCommand('route add default gw %s dev %s' %122 self._adb.system_properties['net.dns1'] = dns1123 self._adb.system_properties['net.dns2'] = dns2[all …]
28 self._adb = adb30 self._adb.RunShellCommand('mkdir -p ' +33 ['adb', '-s', self._adb.device_serial(),39 tcpdump_pid = self._adb.ExtractPid('tcpdump')44 self._adb.RunShellCommand('kill -term ' + tcpdump_pid[0])48 self._adb.device().old_interface.Adb().Pull(self._DEVICE_DUMP_FILE,
306 self._adb = adb_interface.AdbInterface()308 self._adb.SetTargetSerial(device)345 return self._adb357 out = self._adb.SendCommand('get-state')376 return_value = self._adb.EnableAdbRoot()380 self._adb.SendCommand('wait-for-device')406 self._adb.WaitForDevicePm()432 self._adb.SendCommand('reboot')450 self._adb.SendCommand('reboot -p')465 return self._adb.SendCommand(uninstall_command, timeout_time=60)[all …]
18 self._adb = android_commands30 self._adb.SendShellCommand('setprop %s "%s"' % (key, value), retry_count=3)40 return self._adb.SendShellCommand('getprop %s' % key, retry_count=3).strip()
99 self.ac._adb.Push('%s/%d.txt' % (self.host_data_dir, i),111 self.ac._adb.Push('%s/%d.txt' % (self.host_data_dir, i),123 self.ac._adb.Push('%s/%d.txt' % (self.host_data_dir, i),146 self.ac._adb.Push('%s/%d.txt' % (self.host_data_dir, i),
321 …SN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, (const ASN1_ITEM *)&(tblname##_adb) }322 …N1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, (const ASN1_ITEM *)&(tblname##_adb) }324 #define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, tblname##_adb }325 #define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, tblname##_adb }403 static const ASN1_ADB name##_adb = {\417 static const ASN1_ITEM *name##_adb(void) \
86 return self._adb('shell', command_args, echo)89 return self._adb('pull', [source, dest], echo)91 def _adb(self, command, command_args, echo): member in Adb