Home
last modified time | relevance | path

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

1234567

/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 adb.serial, msg))
117 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.py53 adb, argument
77 self.adb = adb
80 return '[SL4A Session|%s|%s] %s' % (self.adb.serial, self.uid,
93 self.adb.serial,
122 if self.adb.get_version_number() < 37 and hinted_port == 0:
130 return self.adb.tcp_forward(hinted_port, server_port)
165 client = rpc_connection.RpcConnection(self.adb,
183 self.adb.serial, self.rpc_client)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/
Ddut_log_test_utils.py49 device_mask_file = ad.adb.shell('test -e %s && echo exists' % cfg_path)
62 ad.adb.shell(NOHUP_CMD.format(cfg_path, DEVICE_DIAGMDLOG_FOLDER))
74 mask_folder_exists = ad.adb.shell(
76 diag_folder_exists = ad.adb.shell(
79 ad.adb.shell("mkdir " + DEVICE_CFG_FOLDER)
80 ad.adb.shell("mkdir " + DEVICE_DIAGMDLOG_FOLDER)
107 ad.adb.push("{} {}".format(maskfile, DEVICE_CFG_FOLDER))
109 output = ad.adb.shell("pgrep diag_mdlog")
128 ps_output = ad.adb.shell("pgrep diag_mdlog")
131 output = ad.adb.shell("diag_mdlog -k")
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py32 from acts.controllers import adb
189 out = adb.AdbProxy().devices()
422 self.adb = adb.AdbProxy(serial, ssh_connection=ssh_connection)
431 self._sl4a_manager = sl4a_manager.Sl4aManager(self.adb)
478 out = self.adb.devices()
498 build_id = self.adb.getprop("ro.build.id")
499 incremental_build_id = self.adb.getprop("ro.build.version.incremental")
511 "build_type": self.adb.getprop("ro.build.type")
539 self.adb.shell('getprop ro.build.version.sdk'))
553 return "0" == self.adb.shell("id -u")
[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/framework/tests/
Dacts_android_device_test.py468 ad.adb.return_value = "does_not_contain_value"
480 ad.adb.return_multiple = True
481 ad.adb.return_value = ["", "system 1 2 3 4 S com.some_package"]
492 ad.adb.return_value = "bad_return_index_error"
503 ad.adb.return_value = "bad return value error"
517 ad.adb.get_user_id = mock.MagicMock()
518 ad.adb.get_user_id.return_value = root_user_id
520 ad.adb.getprop = mock.MagicMock(side_effect=[
524 ad.adb.ensure_user = mock.MagicMock()
529 ad.adb.ensure_user.assert_called_with(root_user_id)
[all …]
Dacts_utils_test.py195 ad.adb.shell.side_effect = [
201 ad.adb.return_state = BypassSetupWizardReturn.NO_COMPLICATIONS
204 ad.adb.root_adb.called,
211 ad.adb.shell.side_effect = [
220 ad.adb.root_adb.called,
227 ad.adb.shell.side_effect = [
239 ad.adb.root_adb_called,
246 ad.adb.shell.side_effect = [
255 self.assertTrue(ad.adb.root_adb_called)
260 ad.adb.shell.side_effect = [
[all …]
/tools/aadevtools/performance/
Dtime_to_init_disp.sh35 adb shell am force-stop "$PKG_NAME"
57 adb shell getprop ro.build.fingerprint
62 adb root
63 adb logcat -c
66 adb shell "echo 3 > /proc/sys/vm/drop_caches"
71 adb shell am start -S -W -n "$ACTIVITY"
77 adb logcat -d | grep Displayed
/tools/test/connectivity/acts/framework/acts/
Dutils.py525 ad.adb.shell("settings put global auto_time 0", ignore_status=True)
526 ad.adb.shell("settings put global auto_time_zone 0", ignore_status=True)
627 ad.adb.wait_for_device()
631 ad.adb.shell("settings put global airplane_mode_on {}".format(
633 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE")
646 output = ad.adb.shell("dumpsys battery")
662 adb_shell_result = ad.adb.shell("dumpsys deviceidle get charging")
677 ad.adb.shell("dumpsys battery unplug")
695 ad.adb.shell("dumpsys battery reset")
713 ad.adb.shell("dumpsys battery unplug")
[all …]
/tools/test/connectivity/acts_tests/tests/google/usb/
DUsbTetheringThroughputTest.py57 self.dut.adb.wait_for_device()
85 self.dut.adb.shell(USB_TETHERING_MODE, ignore_status=True)
86 self.dut.adb.wait_for_device()
88 if 'rndis' not in self.dut.adb.shell(DEVICE_IP_ADDRESS):
119 check_usb_tethering = self.dut.adb.shell('ifconfig')
162 ping = self.dut.adb.shell(
183 result = self.dut.adb.shell(cmd, ignore_status=True)
202 self.dut.adb.wait_for_device()
225 usb_controller_address = self.dut.adb.shell(
227 usb_speed = self.dut.adb.shell(
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Dnet_test_utils.py25 from acts.controllers import adb
82 ad.adb.shell(cmd)
101 ping_result = ad.adb.shell("ping -c 3 -W 2 %s" % vpn_ping_addr)
128 ad.adb.shell("ip xfrm state flush")
140 ip_xfrm_state = ad.adb.shell("ip xfrm state")
191 ad.adb.push("%s sdcard/" % local_file_path)
298 ad.adb.shell("killall -9 tcpdump", ignore_status=True)
299 ad.adb.shell("mkdir %s" % TCPDUMP_PATH, ignore_status=True)
300 ad.adb.shell("rm -rf %s/*" % TCPDUMP_PATH, ignore_status=True)
318 adb_pull_timeout=adb.DEFAULT_ADB_PULL_TIMEOUT):
[all …]
/tools/test/connectivity/acts_tests/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_tests/acts_contrib/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 &")
Dbt_power_test_utils.py67 self.android_device.adb.shell(PLAY)
124 dut.adb.shell_nb(adv_command)
161 dut.adb.shell_nb(scan_command)
175 server_ad.adb.shell(START_BLE_ADV)
177 client_ad.adb.shell(START_BLE_SCAN)
180 client_ad.adb.shell(
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dwifi_power_test_utils.py45 ini_file_phone = ad.adb.shell('ls /vendor/firmware/wlan/*/*.ini')
49 ad.adb.pull('{} {}'.format(ini_file_phone, ini_file_local))
80 ad.adb.shell('dumpsys battery set level 100')
93 ad.adb.root()
94 cmd_out = ad.adb.remount()
97 ad.adb.disable_verity()
101 ad.adb.root()
102 ad.adb.remount()
104 ad.adb.push('{} {}'.format(file_local, file_phone))
160 ad.adb.shell_nb("nohup >/dev/null 2>&1 sh -c 'iperf3 -c {} {} &'".format(
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveEmergencyBase.py82 output = self.dut.adb.shell("dumpsys carrier_config")
91 self.dut.adb.shell(" ".join(
118 output = self.dut.adb.shell("dumpsys carrier_config")
122 self.dut.adb.shell(" ".join(
129 output = self.dut.adb.getprop("ril.test.emergencynumber")
133 self.dut.adb.shell(cmd)
135 existing = self.dut.adb.getprop("ril.ecclist")
143 self.dut.adb.shell(cmd)
155 qcril_database_path = self.dut.adb.shell("find /data -iname qcril.db")
160 self.dut.adb.shell(
[all …]
/tools/test/connectivity/acts_tests/tests/google/gnss/
DLocationPlatinumTest.py69 if int(self.ad.adb.shell('settings get secure location_mode')) != 3:
70 self.ad.adb.shell('settings put secure location_mode 3')
74 if int(self.ad.adb.shell('settings get global mobile_data')) != 1:
77 self.ad.adb.shell('pm grant com.android.gpstool %s' %
166 self.ad.adb.shell('settings put secure location_mode 0')
167 self.ad.adb.shell('settings put secure location_mode 3')
179 self.ad.adb.shell('settings put secure location_mode 0')
220 self.ad.adb.shell('pm revoke com.android.gpstool %s' %
227 self.ad.adb.shell('input keyevent 3')
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/users/
Dusers.py28 out = android_device.adb.shell("pm list users")
37 out = android_device.adb.shell("pm create-user {}".format(user_name))
43 android_device.adb.shell("am switch-user {}".format(user_id))
51 return "Success" in android_device.adb.shell("pm remove-user {}".format(user_id))
55 out = android_device.adb.shell("dumpsys activity")
/tools/test/connectivity/acts_tests/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/acloud/create/
Dgoldfish_local_image_local_instance.py118 if not self._CheckRunningEmulator(ins.adb, no_prompts):
203 self._WaitForEmulatorToStart(ins.adb, proc, boot_timeout_secs)
339 def _IsEmulatorRunning(adb): argument
348 return adb.EmuCommand() == 0
350 def _CheckRunningEmulator(self, adb, no_prompts): argument
363 if not self._IsEmulatorRunning(adb):
367 if adb.EmuCommand("kill") != 0:
369 self._WaitForEmulatorToStop(adb)
524 def _WaitForEmulatorToStop(self, adb): argument
535 utils.PollAndWait(func=lambda: self._IsEmulatorRunning(adb),
[all …]
/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/tests/google/wifi/
DWifiConnectedMacRandomizationTest.py63 self.dut.adb.shell(TURN_ON_MAC_RANDOMIZATION)
65 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "1",
116 return ad.adb.shell(GET_MAC_ADDRESS)
135 self.dut.adb.shell(TURN_OFF_MAC_RANDOMIZATION)
137 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "0",
238 self.dut_softap.adb.shell(LOG_CLEAR)
253 log = self.dut_softap.adb.shell(LOG_GREP.format(mac))
255 log = self.dut_softap.adb.shell(LOG_GREP.format(self.dut_factory_mac))

1234567