/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/ |
D | sl4a_manager_test.py | 35 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 …]
|
D | rpc_client_test.py | 38 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/test_utils/gnss/ |
D | gnss_test_utils.py | 50 remount_result = ad.adb.remount() 54 if ad.adb.getprop("ro.boot.veritymode") == "enforcing": 56 disable_verity_result = ad.adb.disable_verity() 69 ad.adb.shell("echo DEBUG_LEVEL = 5 >> /vendor/etc/gps.conf") 70 ad.adb.shell("echo log.tag.LocationManagerService=VERBOSE >> /data/local.prop") 71 ad.adb.shell("echo log.tag.GnssLocationProvider=VERBOSE >> /data/local.prop") 72 ad.adb.shell("echo log.tag.GnssMeasurementsProvider=VERBOSE >> /data/local.prop") 73 ad.adb.shell("chmod 644 /data/local.prop") 74 ad.adb.shell("setprop persist.logd.logpersistd logcatd") 75 ad.adb.shell("setprop persist.vendor.radio.adb_log_on 1") [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | android_device.py | 32 from acts.controllers import adb 188 out = adb.AdbProxy().devices() 380 self.adb = adb.AdbProxy(serial, ssh_connection=ssh_connection) 389 self._sl4a_manager = sl4a_manager.Sl4aManager(self.adb) 436 out = self.adb.devices() 456 build_id = self.adb.getprop("ro.build.id") 457 incremental_build_id = self.adb.getprop("ro.build.version.incremental") 469 "build_type": self.adb.getprop("ro.build.type") 496 self.adb.shell('getprop ro.build.version.sdk')) 510 return "0" == self.adb.shell("id -u") [all …]
|
/tools/test/connectivity/acts/framework/acts/ |
D | utils.py | 35 from acts.controllers import adb 501 ad.adb.shell("settings global put auto_time 0", ignore_status=True) 502 ad.adb.shell("settings global put auto_time_zone 0", ignore_status=True) 604 ad.adb.wait_for_device() 608 ad.adb.shell("settings put global airplane_mode_on {}".format( 610 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE") 627 adb_shell_result = ad.adb.shell("dumpsys deviceidle get charging") 642 ad.adb.shell("dumpsys battery unplug") 660 ad.adb.shell("dumpsys battery reset") 678 ad.adb.shell("dumpsys battery unplug") [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/ |
D | sl4a_manager.py | 75 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 …]
|
D | error_reporter.py | 79 (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 …]
|
D | sl4a_session.py | 22 from acts.controllers.adb import AdbError 53 adb, argument 74 self.adb = adb 77 return '[SL4A Session|%s|%s] %s' % (self.adb.serial, self.uid, 90 self.adb.serial, 119 if self.adb.get_version_number() < 37 and hinted_port == 0: 127 return self.adb.tcp_forward(hinted_port, server_port) 162 self.adb, ports, client_socket, fd, uid=uid)
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiPowerTest.py | 24 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 …]
|
D | WifiConnectedMacRandomizationTest.py | 64 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))
|
D | WifiIFSTwTest.py | 174 out = self.dut.adb.shell("bugreportz", timeout=240) 181 self.dut.adb.pull("%s %s" % (br_out_path, self.dut.log_path)) 182 self.dut.adb.pull("/data/anr {}".format(current_path), timeout=600) 183 self.dut.adb._exec_adb_cmd("shell", "mount > {}".format( 185 self.dut.adb._exec_adb_cmd("shell", "ps > {}".format( 187 self.dut.adb.pull("/data/misc/logd {}".format(current_path)) 188 self.dut.adb.pull( 246 ping_result = self.dut.adb.shell("ping -c 1 {}".format(ip_addr))
|
/tools/test/connectivity/acts/framework/acts/test_utils/power/ |
D | PowerBaseTest.py | 140 self.dut.adb.shell('mv /vendor/bin/chre /vendor/bin/chre_renamed') 141 self.dut.adb.shell('pkill chre') 251 self.dut.adb.shell(AOD_OFF) 254 self.dut.adb.shell(LIFT) 255 self.dut.adb.shell(DOUBLE_TAP) 256 self.dut.adb.shell(JUMP_TO_CAMERA) 257 self.dut.adb.shell(RAISE_TO_CAMERA) 258 self.dut.adb.shell(FLIP_CAMERA) 259 self.dut.adb.shell(ASSIST_GESTURE) 260 self.dut.adb.shell(ASSIST_GESTURE_ALERT) [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/tel/ |
D | tel_test_utils.py | 33 from acts.controllers.adb import AdbError 239 ad.adb.shell("service call iphonesubinfo 13")) 243 return ad.adb.shell("service call iphonesubinfo 11") 247 operator = ad.adb.getprop("gsm.sim.operator.alpha") 254 plmn_id = ad.adb.getprop("gsm.sim.operator.numeric") 261 return ad.adb.shell("service call iphonesubinfo 5") 566 cur_state = bool(int(ad.adb.shell("settings get global airplane_mode_on"))) 573 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state)) 574 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE") 622 if ad.adb.getprop("ro.build.version.release")[0] in ("9", "P"): [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/adb/ |
D | AdbStopServerPreparer.java | 16 package com.android.tradefed.targetprep.adb; 82 File adb = null; in setUp() local 85 adb = new File(hostOut, "bin/adb"); in setUp() 86 if (adb.exists()) { in setUp() 87 adb.setExecutable(true); in setUp() 89 adb = null; in setUp() 93 if (adb == null && buildInfo.getFile("adb") != null) { in setUp() 94 adb = buildInfo.getFile("adb"); in setUp() 95 adb = renameAdbBinary(adb); in setUp() 97 buildInfo.setFile(ADB_BINARY_KEY, adb, "adb"); in setUp() [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/net/ |
D | net_test_utils.py | 18 from acts.controllers import adb 21 from acts.controllers.adb import AdbError 71 ad.adb.shell(cmd) 87 ping_result = ad.adb.shell("ping -c 3 -W 2 %s" % vpn_ping_addr) 113 ad.adb.shell("ip xfrm state flush") 125 ip_xfrm_state = ad.adb.shell("ip xfrm state") 172 ad.adb.push("%s sdcard/" % local_file_path) 235 ad.adb.shell("killall -9 tcpdump") 238 out = ad.adb.shell("ls -l %s" % TCPDUMP_PATH) 240 ad.adb.shell("mkdir %s" % TCPDUMP_PATH) [all …]
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_utils_test.py | 24 from acts.controllers.adb import AdbError 47 ad.adb.shell.side_effect = [ 53 ad.adb.return_state = BypassSetupWizardReturn.NO_COMPLICATIONS 56 ad.adb.root_adb.called, 63 ad.adb.shell.side_effect = [ 72 ad.adb.root_adb.called, 79 ad.adb.shell.side_effect = [ 91 ad.adb.root_adb_called, 98 ad.adb.shell.side_effect = [ 107 self.assertTrue(ad.adb.root_adb_called) [all …]
|
/tools/test/connectivity/acts/tests/google/tel/live/ |
D | TelLiveEmergencyBase.py | 84 output = self.dut.adb.shell("dumpsys carrier_config") 93 self.dut.adb.shell(" ".join( 120 output = self.dut.adb.shell("dumpsys carrier_config") 124 self.dut.adb.shell(" ".join( 131 output = self.dut.adb.getprop("ril.test.emergencynumber") 135 self.dut.adb.shell(cmd) 137 existing = self.dut.adb.getprop("ril.ecclist") 145 self.dut.adb.shell(cmd) 157 qcril_database_path = self.dut.adb.shell("find /data -iname qcril.db") 162 self.dut.adb.shell( [all …]
|
D | TelLiveProjectFiTest.py | 107 ad.adb.install("-r %s" % account_util, timeout=300, ignore_status=True) 117 ad.adb.shell(cmd) 139 ad.adb.shell( 148 ad.adb.shell('pm enable %s' % _TYCHO_PKG) 163 elif "Fi Network" in ad.adb.getprop("gsm.sim.operator.alpha"): 226 if ad.adb.shell( 229 ad.adb.shell( 233 if ad.adb.getprop("ro.build.version.release")[0] not in ("8", 394 return "isInSilentMode\" value=\"true" in ad.adb.shell( 407 return "switchingInProgress\" value=\"true" in ad.adb.shell( [all …]
|
/tools/test/connectivity/acts/tests/google/nfc/ |
D | NfcBasicFunctionalityTest.py | 32 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/google/usb/ |
D | UsbTetheringThroughputTest.py | 59 self.dut.adb.shell(USB_CHARGE_MODE) 60 self.dut.adb.wait_for_device() 81 self.dut.adb.shell(USB_TETHERING_MODE, ignore_status=True) 82 self.dut.adb.wait_for_device() 84 if 'rndis' not in self.dut.adb.shell(DEVICE_IP_ADDRESS): 115 check_usb_tethering = self.dut.adb.shell('ifconfig') 158 ping = self.dut.adb.shell( 179 result = self.dut.adb.shell(cmd, ignore_status=True)
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/ |
D | wifi_power_test_utils.py | 174 ini_file_phone = ad.adb.shell('ls /vendor/firmware/wlan/*/*.ini') 178 ad.adb.pull('{} {}'.format(ini_file_phone, ini_file_local)) 209 ad.adb.shell('dumpsys battery set level 100') 222 ad.adb.root() 223 cmd_out = ad.adb.remount() 226 ad.adb.disable_verity() 230 ad.adb.root() 231 ad.adb.remount() 233 ad.adb.push('{} {}'.format(file_local, file_phone)) 361 ad.adb.shell_nb("nohup >/dev/null 2>&1 sh -c 'iperf3 -c {} {} &'".format(
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | shell_commands_lib.py | 31 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 &")
|
/tools/test/connectivity/acts/tests/google/tel/lab/ |
D | TelLabProjectFiTest.py | 124 self.ad.adb.shell("settings put secure cmas_additional_broadcast_pkg " 204 ad.adb.install("-r %s" % account_util, timeout=300, ignore_status=True) 214 ad.adb.shell(cmd) 236 ad.adb.shell( 245 ad.adb.shell('pm enable %s' % _TYCHO_PKG) 260 elif "Fi Network" in ad.adb.getprop("gsm.sim.operator.alpha"): 323 if ad.adb.shell( 326 ad.adb.shell( 330 if ad.adb.getprop("ro.build.version.release")[0] not in ("8", 502 return "isInSilentMode\" value=\"true" in ad.adb.shell( [all …]
|
/tools/tradefederation/core/tests/res/testtype/ |
D | python_output3.txt | 4 Make sure 'adb tcpip' parsing is sane. ... ok 6 Get a version number out of the output of adb. ... ok 10 Ensure that `adb connect localhost:1234` will try both IPv4 and IPv6. ... ok 15 Ensure that `adb disconnect` takes effect immediately. ... ok 17 Ensure that adb emu kill works. ... ok 36 subprocess.CalledProcessError: Command '['adb', '-s', 'localhost:36551', 'get-state']' returned non…
|
/tools/test/connectivity/acts/framework/acts/test_utils/users/ |
D | users.py | 28 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")
|