Home
last modified time | relevance | path

Searched refs:adb (Results 1 – 25 of 91) sorted by relevance

1234

/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Dsl4a_manager_test.py35 adb = mock.Mock()
36 adb.serial = 'SERIAL'
37 sl4a_man = sl4a_manager.create_sl4a_manager(adb)
38 self.assertEqual(sl4a_man.adb, adb)
46 adb = mock.Mock()
47 adb.serial = 'SERIAL'
48 first_manager = sl4a_manager.create_sl4a_manager(adb)
52 second_manager = sl4a_manager.create_sl4a_manager(adb)
126 adb = mock.Mock()
127 manager = sl4a_manager.Sl4aManager(adb)
[all …]
Drpc_client_test.py38 client = rpc_client.RpcClient(session.uid, session.adb.serial,
55 client = rpc_client.RpcClient(session.uid, session.adb.serial,
82 client = rpc_client.RpcClient(session.uid, session.adb.serial,
115 client = rpc_client.RpcClient(session.uid, session.adb.serial,
143 client = rpc_client.RpcClient(session.uid, session.adb.serial,
173 client = rpc_client.RpcClient(session.uid, session.adb.serial,
190 client = rpc_client.RpcClient(session.uid, session.adb.serial,
202 client = rpc_client.RpcClient(session.uid, session.adb.serial,
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Dsl4a_manager.py75 def create_sl4a_manager(adb): argument
81 if adb.serial in _all_sl4a_managers:
82 _all_sl4a_managers[adb.serial].log.warning(
85 return _all_sl4a_managers[adb.serial]
87 manager = Sl4aManager(adb)
88 _all_sl4a_managers[adb.serial] = manager
108 def __init__(self, adb): argument
111 self.adb = adb
113 lambda msg: '[SL4A Manager|%s] %s' % (adb.serial, msg))
117 'SL4A %s' % adb.serial)
[all …]
Derror_reporter.py79 (self.report_on_adb(sl4a_manager.adb, report)
80 and self.report_device_processes(sl4a_manager.adb, report) and
81 self.report_sl4a_state(rpc_connection, sl4a_manager.adb, report)
88 def report_on_adb(self, adb, report): argument
99 devices_output = adb.devices()
100 if adb.serial not in devices_output:
105 elif re.findall(r'%s\s+offline' % adb.serial, devices_output):
115 def report_device_processes(self, adb, report): argument
121 zygote_uptime = utils.get_device_process_uptime(adb, 'zygote')
133 netd_uptime = utils.get_device_process_uptime(adb, 'netd')
[all …]
Dsl4a_session.py51 adb, argument
72 self.adb = adb
75 return '[SL4A Session|%s|%s] %s' % (self.adb.serial, self.uid,
88 self.adb.serial,
126 ports.forwarded_port = int(self.adb.tcp_forward(0, ports.server_port))
129 self.adb, ports, client_socket, fd, uid=uid)
Drpc_connection.py51 def __init__(self, adb, ports, client_socket, socket_fd, uid=UNKNOWN_UID): argument
56 self.adb = adb
61 return '[SL4A Client|%s|%s] %s' % (self.adb.serial, self.uid,
136 self.adb.remove_tcp_forward(self.ports.forwarded_port)
/tools/test/connectivity/acts/tests/google/wifi/
DWifiPowerTest.py24 from acts.controllers import adb
78 self.dut.adb.shell("settings put system screen_brightness 0")
122 self.dut.adb.shell(start_pmc_cmd)
123 self.dut.adb.shell("setprop log.tag.PMC VERBOSE")
126 self.dut.adb.shell("%sServerIP %s" % (pmc_set_params,
128 self.dut.adb.shell("%sServerPort %s" % (pmc_set_params,
131 self.dut.adb.shell("rm %s" % pmc_iperf_json_file)
132 except adb.AdbError:
142 self.dut.adb.pull(pmc_iperf_json_file, " ", dest)
144 self.dut.adb.shell("rm %s" % pmc_iperf_json_file)
[all …]
DWifiConnectedMacRandomizationTest.py64 self.dut.adb.shell(TURN_ON_MAC_RANDOMIZATION)
66 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "1",
119 return ad.adb.shell(GET_MAC_ADDRESS)
138 self.dut.adb.shell(TURN_OFF_MAC_RANDOMIZATION)
140 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "0",
241 self.dut_softap.adb.shell(LOG_CLEAR)
256 log = self.dut_softap.adb.shell(LOG_GREP.format(mac))
258 log = self.dut_softap.adb.shell(LOG_GREP.format(self.dut_factory_mac))
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dshell_commands_lib.py31 self.dut.adb.shell("dumpsys battery set level {}".format(level))
35 self.dut.adb.shell("settings put global ble_scan_always_enabled 0")
39 self.dut.adb.shell("settings put global ble_scan_always_enabled 1")
43 self.dut.adb.shell("echo $$ > /dev/cpuset/top-app/tasks")
44 self.dut.adb.shell("cat /dev/urandom > /dev/null &")
Dconfig_lib.py46 self.dut.adb.push("{} {}".format(self.reset_config_path,
51 self.dut.adb.push("{} {}".format(self.non_bond_config_path,
56 self.dut.adb.push("{} {}".format(self.disable_mitm_config_path,
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py33 from acts.controllers import adb
197 out = adb.AdbProxy().devices()
388 self.adb = adb.AdbProxy(serial, ssh_connection=ssh_connection)
397 self._sl4a_manager = sl4a_manager.Sl4aManager(self.adb)
446 out = self.adb.devices()
466 build_id = self.adb.getprop("ro.build.id")
473 build_id = self.adb.getprop("ro.build.version.incremental")
477 "build_type": self.adb.getprop("ro.build.type")
492 return "0" == self.adb.shell("id -u")
493 except adb.AdbError:
[all …]
Dnative_android_device.py69 self.adb.forward("--remove tcp:%d" % self.h_port)
99 self.adb.tcp_forward(self.h_port, self.d_port)
100 pid = self.adb.shell("pidof -s sl4n", ignore_status=True)
102 self.adb.shell("kill {}".format(pid))
103 pid = self.adb.shell("pidof -s sl4n", ignore_status=True)
/tools/test/connectivity/acts/tests/google/nfc/
DNfcBasicFunctionalityTest.py32 self.dut.adb.shell("setprop nfc.app_log_level 255")
33 self.dut.adb.shell("setprop nfc.enable_protocol_log 255")
34 self.dut.adb.shell("setprop nfc.nxp_log_level_global 5")
35 self.dut.adb.shell("setprop nfc.nxp_log_level_extns 5")
36 self.dut.adb.shell("setprop nfc.nxp_log_level_hal 5")
37 self.dut.adb.shell("setprop nfc.nxp_log_level_nci 5")
38 self.dut.adb.shell("setprop nfc.nxp_log_level_tml 5")
39 self.dut.adb.shell("setprop nfc.nxp_log_level_dnld 5")
/tools/test/connectivity/acts/framework/acts/test_utils/power/
DPowerBaseTest.py135 self.dut.adb.shell('mv /vendor/bin/chre /vendor/bin/chre_renamed')
136 self.dut.adb.shell('pkill chre')
244 self.dut.adb.shell(AOD_OFF)
247 self.dut.adb.shell(LIFT)
248 self.dut.adb.shell(DOUBLE_TAP)
249 self.dut.adb.shell(JUMP_TO_CAMERA)
250 self.dut.adb.shell(RAISE_TO_CAMERA)
251 self.dut.adb.shell(FLIP_CAMERA)
252 self.dut.adb.shell(ASSIST_GESTURE)
253 self.dut.adb.shell(ASSIST_GESTURE_ALERT)
[all …]
DPowerBTBaseTest.py45 self.dut.adb.shell(START_PMC_CMD)
46 self.dut.adb.shell(PMC_VERBOSE_CMD)
56 self.dut.adb.shell(BLE_LOCATION_SCAN_DISABLE)
77 self.dut.adb.shell(BLE_LOCATION_SCAN_ENABLE)
135 self.dut.adb.shell(msg)
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_tools/
Dadb_sideload_ota_tool.py38 ota_runner.android_device.adb.reboot('sideload')
39 ota_runner.android_device.adb.wait_for_sideload()
43 ota_runner.android_device.adb.sideload(
46 ota_runner.android_device.adb.wait_for_recovery()
/tools/test/connectivity/acts/tests/google/bt/setup/
DBtPreFlightTest.py53 remount_result = ad.adb.remount()
58 ad.adb.disable_verity()
62 remount_result = ad.adb.remount()
69 ad.adb.push("{} /system/etc/bluetooth/bt_stack.conf".format(
71 result = ad.adb.shell("cat /system/etc/bluetooth/bt_stack.conf")
/tools/test/connectivity/acts/framework/tests/
Dacts_adb_test.py19 from acts.controllers import adb
29 class MockAdbProxy(adb.AdbProxy):
41 with self.assertRaises(adb.AdbError):
49 with self.assertRaises(adb.AdbError):
/tools/test/connectivity/acts/tests/google/net/
DCoreNetworkingTest.py18 from acts.controllers import adb
58 self.dut.adb.shell("cmd netpolicy set restrict-background true")
66 self.dut.adb.shell("cmd netpolicy set restrict-background false")
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
DTelephonyBaseTest.py79 ad.adb.shell("killall -9 tcpdump")
89 ad.adb.shell("input keyevent 82")
95 ad.adb.shell("mkdir %s" % qxdm_mask_path)
98 ad.adb.push("%s %s" % (qxdm_log_mask_cfg, qxdm_mask_path))
103 ad.adb.pull(
202 ad.adb.shell("setprop dbg.vzw.force_wfc_nv_enabled true")
203 ad.adb.shell("am start --ei EXTRA_LAUNCH_CARRIER_APP 0 -n "
226 ad.adb.shell(cmd)
230 if int(ad.adb.getprop("ro.product.first_api_level")) >= 25:
231 out = ad.adb.shell("/data/curl --version")
[all …]
Dtel_test_utils.py31 from acts.controllers.adb import AdbError
186 ad.adb.shell("service call iphonesubinfo 13"))
190 return ad.adb.shell("service call iphonesubinfo 11")
194 return ad.adb.getprop("gsm.sim.operator.alpha")
198 return ad.adb.getprop("gsm.sim.operator.numeric")
202 return ad.adb.shell("service call iphonesubinfo 5")
452 cur_state = bool(int(ad.adb.shell("settings get global airplane_mode_on")))
459 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state))
460 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE")
492 out = ad.adb.shell("dumpsys telephony.registry | grep -i signalstrength")
[all …]
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLiveProjectFiTest.py87 output = ad.adb.shell(
106 ad.adb.install("-r %s" % account_util, timeout=180)
113 output = ad.adb.shell(
128 ad.adb.install("-r %s" % account_util, timeout=180)
157 ad.adb.shell(
163 ad.adb.shell('pm enable %s' % _TYCHO_PKG)
168 elif "Fi Network" in ad.adb.getprop("gsm.sim.operator.alpha"):
229 if ad.adb.getprop("ro.build.version.release")[0] not in ("8", "O"):
389 return "isInSilentMode\" value=\"true" in ad.adb.shell(
402 return "switchingInProgress\" value=\"true" in ad.adb.shell(
[all …]
/tools/test/connectivity/acts/tests/google/ble/power/
DGattPowerTest.py66 self.per_ad.adb.shell(PowerBaseTest.START_PMC_CMD)
67 self.per_ad.adb.shell(self.PMC_VERBOSE_CMD)
106 self.per_ad.adb.shell(self.GATT_SERVER_MSG)
115 self.cen_ad.adb.shell(clientmsg)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_power_test_utils.py174 ini_file_phone = ad.adb.shell('ls /vendor/firmware/wlan/*/*.ini')
178 ad.adb.pull('{} {}'.format(ini_file_phone, ini_file_local))
221 ad.adb.root()
222 cmd_out = ad.adb.remount()
225 ad.adb.disable_verity()
229 ad.adb.root()
230 ad.adb.remount()
232 ad.adb.push('{} {}'.format(file_local, file_phone))
346 ad.adb.shell_nb("nohup iperf3 -c {} {} &".format(server_host, extra_args))
/tools/tradefederation/core/python-lib/tradefed_py/
Dandroid_device.py29 self.adb = adb_handler.AdbHandler(serial)
40 return self.adb.exec_shell_command(cmd)

1234