/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/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 …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/gnss/ |
D | dut_log_test_utils.py | 48 device_mask_file = ad.adb.shell('test -e %s && echo exists' % cfg_path) 61 ad.adb.shell(NOHUP_CMD.format(cfg_path, DEVICE_DIAGMDLOG_FOLDER)) 73 mask_folder_exists = ad.adb.shell( 75 diag_folder_exists = ad.adb.shell( 78 ad.adb.shell("mkdir " + DEVICE_CFG_FOLDER) 79 ad.adb.shell("mkdir " + DEVICE_DIAGMDLOG_FOLDER) 106 ad.adb.push("{} {}".format(maskfile, DEVICE_CFG_FOLDER)) 108 output = ad.adb.shell("pgrep diag_mdlog") 127 ps_output = ad.adb.shell("pgrep diag_mdlog") 130 output = ad.adb.shell("diag_mdlog -k") [all …]
|
D | gnss_test_utils.py | 67 remount_result = ad.adb.remount() 71 if ad.adb.getprop("ro.boot.veritymode") == "enforcing": 72 disable_verity_result = ad.adb.disable_verity() 85 if not int(ad.adb.shell("settings get global mobile_data")) == 1: 98 ad.adb.shell("echo DEBUG_LEVEL = 5 >> /vendor/etc/gps.conf") 99 ad.adb.shell("echo %r >> /data/local.prop" % LOCAL_PROP_FILE_CONTENTS) 100 ad.adb.shell("chmod 644 /data/local.prop") 101 ad.adb.shell("setprop persist.logd.logpersistd.size 20000") 102 ad.adb.shell("setprop persist.logd.size 16777216") 103 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 181 out = adb.AdbProxy().devices() 372 self.adb = adb.AdbProxy(serial, ssh_connection=ssh_connection) 381 self._sl4a_manager = sl4a_manager.Sl4aManager(self.adb) 428 out = self.adb.devices() 448 build_id = self.adb.getprop("ro.build.id") 449 incremental_build_id = self.adb.getprop("ro.build.version.incremental") 461 "build_type": self.adb.getprop("ro.build.type") 489 self.adb.shell('getprop ro.build.version.sdk')) 503 return "0" == self.adb.shell("id -u") [all …]
|
D | native_android_device.py | 69 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/tradefederation/core/test_framework/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 testInfo.executionFiles().put(FilesKey.ADB_BINARY, adb); in setUp() [all …]
|
/tools/test/connectivity/acts/framework/acts/ |
D | utils.py | 39 from acts.controllers import adb 522 ad.adb.shell("settings put global auto_time 0", ignore_status=True) 523 ad.adb.shell("settings put global auto_time_zone 0", ignore_status=True) 624 ad.adb.wait_for_device() 628 ad.adb.shell("settings put global airplane_mode_on {}".format( 630 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE") 643 output = ad.adb.shell("dumpsys battery") 659 adb_shell_result = ad.adb.shell("dumpsys deviceidle get charging") 674 ad.adb.shell("dumpsys battery unplug") 692 ad.adb.shell("dumpsys battery reset") [all …]
|
/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/framework/tests/ |
D | acts_android_device_test.py | 464 ad.adb.return_value = "does_not_contain_value" 472 ad.adb.return_multiple = True 473 ad.adb.return_value = ["", "system 1 2 3 4 S com.some_package"] 481 ad.adb.return_value = "bad_return_index_error" 489 ad.adb.return_value = "bad return value error" 499 ad.adb.get_user_id = mock.MagicMock() 500 ad.adb.get_user_id.return_value = root_user_id 502 ad.adb.getprop = mock.MagicMock(side_effect=[ 506 ad.adb.ensure_user = mock.MagicMock() 511 ad.adb.ensure_user.assert_called_with(root_user_id) [all …]
|
D | acts_utils_test.py | 25 from acts.controllers.adb import AdbError 48 ad.adb.shell.side_effect = [ 54 ad.adb.return_state = BypassSetupWizardReturn.NO_COMPLICATIONS 57 ad.adb.root_adb.called, 64 ad.adb.shell.side_effect = [ 73 ad.adb.root_adb.called, 80 ad.adb.shell.side_effect = [ 92 ad.adb.root_adb_called, 99 ad.adb.shell.side_effect = [ 108 self.assertTrue(ad.adb.root_adb_called) [all …]
|
D | acts_adb_test.py | 19 from acts.controllers import adb 20 from acts.controllers.adb import AdbError 30 class MockAdbProxy(adb.AdbProxy): 42 with self.assertRaises(adb.AdbError): 50 with self.assertRaises(adb.AdbError):
|
/tools/test/connectivity/acts/framework/acts/test_utils/net/ |
D | net_test_utils.py | 19 from acts.controllers import adb 23 from acts.controllers.adb import AdbError 81 ad.adb.shell(cmd) 97 ping_result = ad.adb.shell("ping -c 3 -W 2 %s" % vpn_ping_addr) 123 ad.adb.shell("ip xfrm state flush") 135 ip_xfrm_state = ad.adb.shell("ip xfrm state") 182 ad.adb.push("%s sdcard/" % local_file_path) 245 ad.adb.shell("killall -9 tcpdump") 248 out = ad.adb.shell("ls -l %s" % TCPDUMP_PATH) 250 ad.adb.shell("mkdir %s" % TCPDUMP_PATH) [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/gnss/ |
D | LocationPlatinumTest.py | 74 if int(self.ad.adb.shell('settings get secure location_mode')) != 3: 75 self.ad.adb.shell('settings put secure location_mode 3') 79 if int(self.ad.adb.shell('settings get global mobile_data')) != 1: 82 self.ad.adb.shell('pm grant com.android.gpstool %s' % 101 self.ad.adb.shell('pm %s %s %s' % 109 self.ad.adb.shell('input keyevent 61') 111 self.ad.adb.shell('input keyevent 66') 193 self.ad.adb.shell('settings put secure location_mode 0') 194 self.ad.adb.shell('settings put secure location_mode 3') 206 self.ad.adb.shell('settings put secure location_mode 0') [all …]
|
/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")
|
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_tools/ |
D | adb_sideload_ota_tool.py | 38 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/trebuchet/scripts/ |
D | run-user-switch-perf.sh | 11 adb shell atrace -o /sdcard/atrace-ss.txt -t 10 ss & 13 adb shell am switch-user $TargetUser 16 adb pull /sdcard/atrace-ss.txt /tmp
|
/tools/test/connectivity/acts/tests/google/bt/setup/ |
D | BtPreFlightTest.py | 53 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/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/tel/ |
D | tel_test_utils.py | 36 from acts.controllers.adb import AdbError 231 ad.adb.shell("service call iphonesubinfo 13")) 235 return ad.adb.shell("service call iphonesubinfo 11") 239 operator = ad.adb.getprop("gsm.sim.operator.alpha") 246 plmn_id = ad.adb.getprop("gsm.sim.operator.numeric") 253 return ad.adb.shell("service call iphonesubinfo 5") 551 cur_state = bool(int(ad.adb.shell("settings get global airplane_mode_on"))) 559 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state)) 560 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE") 564 changed_state = bool(int(ad.adb.shell("settings get global airplane_mode_on"))) [all …]
|
/tools/acloud/create/ |
D | goldfish_local_image_local_instance.py | 192 adb = adb_tools.AdbTools(adb_port=inst.adb_port, 195 self._CheckRunningEmulator(adb, no_prompts) 212 self._WaitForEmulatorToStart(adb, proc, boot_timeout_secs) 290 def _IsEmulatorRunning(adb): argument 299 return adb.EmuCommand() == 0 301 def _CheckRunningEmulator(self, adb, no_prompts): argument 311 if not self._IsEmulatorRunning(adb): 315 if adb.EmuCommand("kill") != 0: 317 self._WaitForEmulatorToStop(adb) 468 def _WaitForEmulatorToStop(self, adb): argument [all …]
|
/tools/test/connectivity/acts/tests/google/tel/live/ |
D | TelLiveEmergencyBase.py | 82 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 …]
|