Home
last modified time | relevance | path

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

12345678910

/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 …]
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Dsl4a_manager.py77 def create_sl4a_manager(adb): argument
83 if adb.serial in _all_sl4a_managers:
84 _all_sl4a_managers[adb.serial].log.warning(
87 return _all_sl4a_managers[adb.serial]
89 manager = Sl4aManager(adb)
90 _all_sl4a_managers[adb.serial] = manager
110 def __init__(self, adb): argument
113 self.adb = adb
115 adb.serial, msg))
119 adb.serial)
[all …]
Derror_reporter.py80 (self.report_on_adb(sl4a_manager.adb, report)
81 and self.report_device_processes(sl4a_manager.adb, report) and
82 self.report_sl4a_state(rpc_connection, sl4a_manager.adb, report)
89 def report_on_adb(self, adb, report): argument
100 devices_output = adb.devices()
101 if adb.serial not in devices_output:
106 elif re.findall(r'%s\s+offline' % adb.serial, devices_output):
116 def report_device_processes(self, adb, report): argument
122 zygote_uptime = utils.get_device_process_uptime(adb, 'zygote')
134 netd_uptime = utils.get_device_process_uptime(adb, 'netd')
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/
Ddut_log_test_utils.py51 device_mask_file = ad.adb.shell('test -e %s && echo exists' % cfg_path)
64 ad.adb.shell(NOHUP_CMD.format(cfg_path, DEVICE_DIAGMDLOG_FOLDER))
76 mask_folder_exists = ad.adb.shell(
78 diag_folder_exists = ad.adb.shell(
81 ad.adb.shell("mkdir " + DEVICE_CFG_FOLDER)
82 ad.adb.shell("mkdir " + DEVICE_DIAGMDLOG_FOLDER)
109 ad.adb.push("{} {}".format(maskfile, DEVICE_CFG_FOLDER))
111 output = ad.adb.shell("pgrep diag_mdlog")
130 ps_output = ad.adb.shell("pgrep diag_mdlog")
133 output = ad.adb.shell("diag_mdlog -k")
[all …]
Dgnss_test_utils.py135 if ad.adb.getprop("ro.boot.veritymode") == "enforcing":
136 ad.adb.disable_verity()
138 remount_result = ad.adb.remount()
168 ad.adb.shell("echo -e '\nDEBUG_LEVEL = 5' >> /vendor/etc/gps.conf")
170 ad.adb.shell("echo LogEnabled=true >> /data/vendor/gps/libgps.conf")
171 ad.adb.shell("chown gps.system /data/vendor/gps/libgps.conf")
176 ad.adb.shell("echo %r >> /data/local.prop" % PROP_CONTENTS)
177 ad.adb.shell("chmod 644 /data/local.prop")
178 ad.adb.shell("setprop persist.logd.logpersistd.size 20000")
179 ad.adb.shell("setprop persist.logd.size 16777216")
[all …]
Ddevice_doze.py30 doze_status = dut.adb.shell(command).strip()
47 dut.adb.shell(_UNPLUG_POWER)
48 dut.adb.shell(
65 dut.adb.shell(_RESET_POWER)
66 dut.adb.shell(_LEAVE_IDLE)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_logging_utils.py56 result = ad.adb.getprop("ro.boot.hardware.platform")
78 if ad.adb.getprop(key) == "false":
79 ad.adb.shell("setprop persist.vendor.sys.modem.logging.enable true")
81 if ad.adb.getprop(key) == "true":
104 return nv_value in ad.adb.shell('am instrument -w -e request '
111 ad.adb.shell('am instrument -w -e request at+googsetnv=\\"'
130 return "true" in ad.adb.shell(_LS_GET_LOG_STATUS_SHELL, ignore_status=True)
139 file_count = ad.adb.shell(
144 ad.adb.shell(
150 ad.adb.shell(_LS_ENABLE_LOG_SHELL, ignore_status=True)
[all …]
Dtel_test_utils.py160 ad.adb.shell("service call iphonesubinfo 13"))
164 return ad.adb.shell("service call iphonesubinfo 11")
168 operator = ad.adb.getprop("gsm.sim.operator.alpha")
175 plmn_id = ad.adb.getprop("gsm.sim.operator.numeric")
182 return ad.adb.shell("service call iphonesubinfo 5")
478 cur_state = bool(int(ad.adb.shell("settings get global airplane_mode_on")))
486 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state))
487 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE "
492 changed_state = bool(int(ad.adb.shell("settings get global airplane_mode_on")))
534 if ad.adb.getprop("ro.build.version.release")[0] in ("9", "P"):
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/
Dmodem_logs.py67 dut.adb.root()
69 dut.adb.shell(cmd)
73 res = dut.adb.getprop(_MODEM_PILOT_ENABLE_PROP_NAME).strip()
95 dut.adb.root()
97 dut.adb.shell(cmd)
101 res = dut.adb.getprop(_MODEM_PILOT_ENABLE_PROP_NAME).strip()
114 dut.adb.root()
116 dut.adb.shell(cmd)
137 dut.adb.root()
139 dut.adb.shell(cmd)
[all …]
/tools/tradefederation/core/javatests/res/testtype/
Dpython_output4.txt13 Push multiple files to the device in one adb push command. ... ok
50 Push multiple files to the device in one adb push command. ... ok
87 Push multiple files to the device in one adb push command. ... ok
124 Push multiple files to the device in one adb push command. ... ok
162 Send data through adb forward and read it back via adb reverse ... ok
170 Make sure that adb root and adb unroot work, using id(1). ... skipped 'b/172372960: temporarily dis…
175 Hammer `adb shell exit 42` with multiple threads. ... adb: device offline
176 adb: device offline
177 adb: device offline
178 adb: device offline
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py33 from acts.controllers import adb
192 out = adb.AdbProxy().devices()
425 self.adb = adb.AdbProxy(serial, ssh_connection=ssh_connection)
434 self._sl4a_manager = sl4a_manager.create_sl4a_manager(self.adb)
475 self.adb.wait_for_device(timeout=WAIT_FOR_DEVICE_TIMEOUT)
509 out = self.adb.devices()
529 build_id = self.adb.getprop("ro.build.id")
530 incremental_build_id = self.adb.getprop("ro.build.version.incremental")
542 "build_type": self.adb.getprop("ro.build.type"),
543 "build_date": self.adb.getprop("ro.build.date.utc"),
[all …]
/tools/test/mobly_extensions/tools/
Ddevice_flags_test.py34 self.ad.adb.shell.return_value = b'foo'
45 self.ad.adb.shell.return_value = b'false'
56 self.ad.adb.shell.return_value = b'false'
67 self.ad.adb.shell.return_value = b'null'
74 self.ad.adb.shell.return_value = b'true'
81 self.ad.adb.shell.return_value = b'false'
88 self.ad.adb.shell.return_value = b'foo'
96 self.ad.adb.shell.assert_called_with('device_config put sample flag value')
99 self.ad.adb.shell.return_value = b'true'
103 self.ad.adb.shell.assert_called_with('device_config put sample flag true')
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/cellular_lib/
DAndroidCellularDut.py47 ad.adb.getprop('gsm.version.baseband')))
94 version = self.ad.adb.shell(GET_BUILD_VERSION)
101 self.ad.adb.shell(set_network_cmd)
104 allowed_network = self.ad.adb.shell(get_network_cmd)
133 self.ad.adb.shell('rm /data/vendor/slog/*.* -f')
134 self.ad.adb.shell(PIXELLOGGER_CONTROL.format('true'))
140 self.ad.adb.shell(PIXELLOGGER_CONTROL.format('false'))
150 self.ad.adb.shell('settings put global mobile_data 1')
151 self.ad.adb.shell('svc data enable')
154 self.ad.adb.shell('settings get global mobile_data')))
[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/tradefederation/core/test_framework/com/android/tradefed/targetprep/adb/
DAdbStopServerPreparer.java16 package com.android.tradefed.targetprep.adb;
83 File adb = null; in setUp() local
86 adb = new File(hostOut, "bin/adb"); in setUp()
87 if (adb.exists()) { in setUp()
88 adb.setExecutable(true); in setUp()
90 adb = null; in setUp()
94 if (adb == null && buildInfo.getFile("adb") != null) { in setUp()
95 adb = buildInfo.getFile("adb"); in setUp()
96 adb = renameAdbBinary(adb); in setUp()
98 testInfo.executionFiles().put(FilesKey.ADB_BINARY, adb); in setUp()
[all …]
/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 …]
/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/tests/google/gnss/
DGnssPowerFrequecyTest.py27 self.ad.adb.shell('settings put secure location_mode 3')
32 self.ad.adb.shell('settings put secure location_mode 3')
38 self.ad.adb.shell('settings put secure location_mode 3')
43 self.ad.adb.shell('settings put secure location_mode 3')
48 self.ad.adb.shell('settings put secure location_mode 3')
53 self.ad.adb.shell('settings put secure location_mode 3')
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_performance_test_utils/
Dbrcm_utils.py189 status_output = dut.adb.shell(
221 per_chain_rssi = dut.adb.shell('wl phy_rssi_ant')
247 signal_poll_output = dut.adb.shell(
294 scan_output = dut.adb.shell('cmd wifi start-scan')
296 scan_output = dut.adb.shell('cmd wifi list-scan-results')
324 bdf_output = dut.adb.shell('cksum /vendor/firmware/bcmdhd*')
329 fw_version = dut.adb.shell('getprop vendor.wlan.firmware.version')
330 driver_version = dut.adb.shell('getprop vendor.wlan.driver.version')
346 country_code = dut.adb.shell('wl country').split(' ')[0]
356 config_files_list = dut.adb.shell('ls /vendor/etc/*.cal').splitlines()
[all …]
/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 &")
/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/wifi/
Dwifi_power_test_utils.py70 ini_file_phone = ad.adb.shell('ls /vendor/firmware/wlan/*/*.ini')
83 ad.adb.pull('{} {}'.format(ini_file_phone, ini_file_local))
114 ad.adb.shell('dumpsys battery set level 100')
128 ad.adb.root()
129 screen_status = ad.adb.shell('dumpsys nfc | grep Screen')
160 out = ad.adb.shell("halutil -dtim_config {}".format(gEnableModulatedDTIM))
167 old_dtim = ad.adb.shell('wl bcn_li_dtim')
175 screen_status = ad.adb.shell('dumpsys nfc | grep Screen')
193 ad.adb.root()
194 cmd_out = ad.adb.remount()
[all …]
/tools/test/connectivity/acts/framework/acts/
Dutils.py531 ad.adb.shell("settings put global auto_time 0", ignore_status=True)
532 ad.adb.shell("settings put global auto_time_zone 0", ignore_status=True)
634 ad.adb.wait_for_device()
638 ad.adb.shell("settings put global airplane_mode_on {}".format(
640 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE")
653 output = ad.adb.shell("dumpsys battery")
669 adb_shell_result = ad.adb.shell("dumpsys deviceidle get charging")
684 ad.adb.shell("dumpsys battery unplug")
702 ad.adb.shell("dumpsys battery reset")
720 ad.adb.shell("dumpsys battery unplug")
[all …]
/tools/test/connectivity/acts_tests/tests/google/power/wifi/
DPowerWiFiscanTest.py57 self.dut.adb.shell(LOCATION_ON)
68 self.dut.adb.shell_nb(
79 self.dut.adb.shell(UNLOCK_SCREEN)
85 self.dut.adb.shell("cmd wifi force-country-code enabled US")
87 country_code = self.dut.adb.shell("cmd wifi get-country-code")
92 self.dut.adb.shell(DISABLE_WIFI_SCANNING)
93 self.dut.adb.shell(UNLOAD_ALL_CHRE_PRODUCTION_APP)
94 self.dut.adb.shell(LOAD_CHRE_TEST_NANOAPP)
101 self.dut.adb.shell(chre_wifi_scan_trigger_cmd)
139 self.dut.adb.shell(DISABLE_CHRE_WIFI_SCAN)
[all …]
/tools/tradefederation/core/res/perfetto/
Drecord_android_trace447 adb('shell', 'atrace', '--list_categories').wait()
451 adb('shell', 'cat /d/tracing/available_events | tr : /').wait()
475 probe = adb('shell', probe_cmd, stdout=subprocess.PIPE)
494 exit_code = adb('push', '--sync', tracebox_bin, perfetto_cmd).wait()
495 exit_code |= adb('shell', 'chmod 755 ' + perfetto_cmd).wait()
504 adb('root').wait()
518 mktmp = adb(
528 exit_code = adb('push', '--sync', args.config, on_device_config).wait()
559 proc = adb('shell', *cmd, stdin=f, stdout=subprocess.PIPE)
562 adb('shell', 'rm', on_device_config).wait()
[all …]

12345678910