Home
last modified time | relevance | path

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

12

/test/vts-testcase/kernel/checkpoint/
DVtsKernelCheckpointTest.py32 self.dut.adb.root()
35 extension = self.dut.adb.shell("getprop ro.boot." + prop, no_except = True)
41 contents = self.dut.adb.shell("cat " + filename + extension, no_except = True)
70 self.dut.adb.reboot()
72 self.dut.adb.wait_for_device(timeout=900)
73 except self.dut.adb.AdbError as e:
80 self.dut.adb.root()
87 self.dut.adb.shell("ls");
94 result = self.dut.adb.shell("getprop sys.boot_completed")
105 result = self.dut.adb.shell("getprop ro.product.first_api_level")
[all …]
Dvts_kernel_checkpoint_test.py35 self.adb = ADB(serial_number)
40 self.adb.Execute(["wait-for-device"], timeout=900)
41 self.adb.Execute(["root"])
74 self.adb.Execute(["reboot"])
76 self.adb.Execute(["wait-for-device"], timeout=900)
77 except self.adb.AdbError as e:
84 self.adb.Execute(["root"])
121 self.adb.Execute(["root"])
153 self.adb.Execute(["root"])
/test/mlts/benchmark/
Dbuild_and_run_benchmark.sh146 if ! adb install -r $OUT/testcases/${APP}/${APK_DIR}/${APP}.apk; then
147 adb uninstall com.android.nn.benchmark.app
148 adb install -r $OUT/testcases/${APP}/${APK_DIR}/${APP}.apk
153 adb push $OUT/system/bin/nn_stress_test /bin/
159 BUILD_DESCRIPTION=`adb shell getprop ro.build.description`
169 BUILD_VERSION_RELEASE=`adb shell getprop ro.build.version.release`
178 …while ! adb shell "am start -W $TEST_EXTENRAL_STORAGE && rm /sdcard/mlts_write_external_storage" >…
186 adb root
187 adb shell "pm grant com.android.nn.benchmark.app android.permission.WRITE_EXTERNAL_STORAGE"
189 if ! adb shell test -f /data/local.prop; then
[all …]
Dtail_crash_test_logs.sh110 adb ${DEVICE_ID_OPT:+"$DEVICE_ID_OPT"} logcat -v color
112 adb ${DEVICE_ID_OPT:+"$DEVICE_ID_OPT"} logcat -v color | tee "$OUTPUT_FILE"
/test/vts/utils/python/controllers/
Dandroid_device.py41 from vts.utils.python.controllers import adb
181 out = adb.AdbProxy().devices()
202 out = adb.AdbProxy().devices()
408 self.adb = adb.AdbProxy(serial)
413 self.host_callback_port = adb.get_available_host_port()
415 self.adb.reverse_tcp_forward(self.device_callback_port,
433 self.adb.forward("--remove tcp:%s" % self.host_command_port,
434 timeout=adb.DEFAULT_ADB_SHORT_TIMEOUT)
455 self.adb.reboot_bootloader()
480 id_str = self.adb.shell("id -un").strip().decode("utf-8")
[all …]
/test/vts/runners/host/
Dutils.py610 ad.adb.wait_for_device()
614 ad.adb.shell("settings put global airplane_mode_on {}".format(
632 ad.adb.shell("dumpsys battery unplug")
633 ad.adb.shell("dumpsys deviceidle enable")
634 if (ad.adb.shell("dumpsys deviceidle force-idle") !=
639 adb_shell_result = ad.adb.shell("dumpsys deviceidle step")
645 ad.adb.shell("dumpsys battery").decode('utf-8'),
646 ad.adb.shell("dumpsys deviceidle").decode('utf-8')))
662 ad.adb.shell("dumpsys deviceidle disable")
663 ad.adb.shell("dumpsys battery reset")
[all …]
/test/vts/testcases/template/llvmfuzzer_test/
Dllvmfuzzer_test.py25 from vts.utils.python.controllers import adb
61 self._dut.adb.shell("mkdir %s -p" % config.FUZZER_TEST_DIR)
65 self._dut.adb.shell("rm -rf %s" % config.FUZZER_TEST_DIR)
75 self._dut.adb.push("%s %s" % (push_src, config.FUZZER_TEST_DIR))
148 self._dut.adb.shell("mkdir %s -p" % corpus_dir)
156 self._dut.adb.shell("\"%s\"" % cmd)
174 self._dut.adb.shell(chmod_cmd)
186 stdout = self._dut.adb.shell("'%s'" % fuzz_cmd)
192 except adb.AdbError as e:
213 output = self._dut.adb.shell(cmd)
/test/vts/utils/python/coverage/
Dsancov_utils.py25 from vts.utils.python.controllers.adb import AdbError
106 serial = dut.adb.shell('getprop ro.serialno').strip()
112 entries = dut.adb.shell(
123 processes = dut.adb.shell('ps -p {0} -o comm='.format(
139 dut.adb.shell(cmd.format(process_name))
152 serial = dut.adb.shell('getprop ro.serialno').strip()
157 dut.adb.shell(self._FLUSH_COMMAND.format(hal))
286 serial = dut.adb.shell('getprop ro.serialno').strip()
287 product = dut.adb.shell('getprop ro.build.product').strip()
303 dut.adb.shell('find {0}/{1} -name \"*.sancov\"'.format(
[all …]
Dcoverage_utils.py29 from vts.utils.python.controllers.adb import AdbError
265 entries = dut.adb.shell(
324 files = dut.adb.shell("find %s -name \"*.gcda\"" % path)
346 dut.adb.pull("%s %s" % (gcda, file_name))
623 serial = "default" if dut is None else dut.adb.shell(
701 return dut.adb.shell(cmd)
/test/app_compat/csuite/integration_tests/
Dcsuite_crash_detection_test.py25 self.adb = csuite_test_utils.Adb()
36 self.adb.run(['logcat', '-c'])
48 self.adb.run(['logcat', '-c'])
63 self.adb.uninstall(test_app_package, check=False)
91 self.assertNotIn(package_name, self.adb.list_packages())
98 logcat_process = self.adb.run(['logcat', '-d', '-v', 'brief', '-s', tag])
/test/vts-testcase/security/poc/host/
DSecurityPoCKernelTest.py27 from vts.utils.python.controllers import adb
64 self._dut.adb.shell("rm -rf %s" % config.POC_TEST_DIR)
68 self._dut.adb.shell("mkdir %s -p" % config.POC_TEST_DIR)
75 self._dut.adb.push("%s %s" % (push_src, config.POC_TEST_DIR))
88 out = self._dut.adb.shell("getprop ro.product.model")
147 self._dut.adb.shell(chmod_cmd)
156 stdout = self._dut.adb.shell(test_cmd)
162 except adb.AdbError as e:
/test/mlts/benchmark/tools/
Dbuild_and_dump_intermediate.sh51 …if ! adb install -r $OUT/testcases/NeuralNetworksApiBenchmark/arm64/NeuralNetworksApiBenchmark.apk…
52 adb uninstall com.android.nn.benchmark.app
53 adb install -r $OUT/testcases/NeuralNetworksApiBenchmark/arm64/NeuralNetworksApiBenchmark.apk
58 adb shell am start -n com.android.nn.benchmark.app/com.android.nn.benchmark.util.DumpIntermediateTe…
67 adb pull /data/data/com.android.nn.benchmark.app/files/intermediate/ &&
/test/vts-testcase/nbu/src/utils/
Dandroid_base_test.py8 from mobly.controllers.android_device_lib import adb
17 bt_stack_conf = device.adb.shell(['cat', '/etc/bluetooth/bt_stack.conf'])
18 except adb.AdbError:
/test/vts/testcases/host/kernel_proc_file_api_test/
Dproc_utils.py78 self.adb = ADB(serial_number)
92 self.adb.Execute(cmd, timeout)
131 self.adb.Execute(["root"])
134 self.adb.Execute(["wait-for-device"])
/test/catbox/tools/catbox-tradefed/
DREADME12 1. Ensure 'adb' is in your current PATH. adb can be found in the
20 https://source.android.com/compatibility/cts/setup#adb
24 4. Ensure device is visible via 'adb devices'
/test/vts-testcase/performance/audio_loopback_test/
DAudioLoopbackTest.py45 self.dut.adb.shell("mkdir -p %s" % self.FULL_DATA_DIR_PATH)
47 self.dut.adb.shell("pm install -r -g /data/local/tmp/Loopback.apk")
50 self.dut.adb.shell("rm -rf %s" % self.FULL_DATA_DIR_PATH)
/test/app_compat/csuite/tools/csuite-tradefed/
DREADME10 Ensure 'adb' is in your current PATH. adb can be found in the
16 And ensure that the device is visible via 'adb devices'
/test/cts-root/tools/cts-root-tradefed/
DREADME11 Ensure 'adb' is in your current PATH. adb can be found in the
17 And ensure device is visible via 'adb devices'
/test/mts/tools/mts-tradefed/
DREADME10 Ensure 'adb' is in your current PATH. adb can be found in the
16 And ensure device is visible via 'adb devices'
/test/vts-testcase/security/system_property/
DVtsTrebleSysPropTest.py164 self.dut.adb.pull(contexts_path, self._temp_dir)
188 self.dut.adb.pull(property_contexts_file, downloaded)
261 self.dut.adb.pull(self._PRODUCT_PROPERTY_CONTEXTS_FILE_PATH,
342 self.dut.adb.pull(self._SYSTEM_PROPERTY_CONTEXTS_FILE_PATH,
/test/vts/utils/python/mirror/
Dshell_mirror.py37 def __init__(self, client, adb): argument
39 self._adb = adb
/test/vts/tools/vts-core-tradefed/
DREADME20 1. Ensure 'adb' is in your current PATH. adb can be found in the
31 4. Ensure device is visible via 'adb devices'
/test/vts-testcase/nbu/src/
DREADME.md70 * adb
83 cables and make sure they show up as "device" in the output of `$ adb devices`
/test/cts-root/tools/cts-root-tradefed/etc/
Dcts-root-tradefed34 checkPath adb
/test/catbox/tools/catbox-tradefed/etc/
Dcatbox-tradefed34 checkPath adb

12