Home
last modified time | relevance | path

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

123

/test/mlts/benchmark/
Dbuild_and_run_benchmark.sh26 if ! adb install -r $OUT/testcases/NeuralNetworksApiBenchmark/arm64/NeuralNetworksApiBenchmark.apk;…
27 adb uninstall com.android.nn.benchmark.app
28 adb install -r $OUT/testcases/NeuralNetworksApiBenchmark/arm64/NeuralNetworksApiBenchmark.apk
34 BUILD_DESCRIPTION=`adb shell getprop ro.build.description`
44 BUILD_VERSION_RELEASE=`adb shell getprop ro.build.version.release`
52 …while ! adb shell "am start -W $TEST_EXTENRAL_STORAGE && rm /sdcard/mlts_write_external_storage" >…
60 adb root
61 adb shell "pm grant com.android.nn.benchmark.app android.permission.WRITE_EXTERNAL_STORAGE"
63 if ! adb shell test -f /data/local.prop; then
64 adb shell 'echo ro.setupwizard.mode=DISABLED > /data/local.prop'
[all …]
/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 …]
/test/vts/script/
Dsetup-local.sh21 adb root
22 adb shell mkdir -p /data/local/tmp/32
23 adb shell mkdir -p /data/local/tmp/64
24adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/vts_hal_driver32 /data/local…
25adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/vts_hal_driver64 /data/local…
26adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/vts_shell_driver32 /data/loc…
27adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/vts_shell_driver64 /data/loc…
28adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/vts_hal_agent32 /data/local/…
29adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/vts_hal_agent64 /data/local/…
32adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib/libvts_common.so /data/local…
[all …]
Drun_cts_with_profiling.sh37 adb -s $serial_no root
38 adb -s $serial_no disable-verity
39 adb -s $serial_no reboot
40 adb -s $serial_no wait-for-device
41 adb -s $serial_no root
42 adb -s $serial_no remount
43 adb -s $serial_no shell setenforce 0
44 adb -s $serial_no shell chmod 777 -R data/local/tmp
47 adb -s $serial_no push ${ANDROID_BUILD_TOP}/out/host/linux-x86/vts/android-vts/testcases/DATA/lib64…
48 adb -s $serial_no push ${ANDROID_BUILD_TOP}/out/host/linux-x86/vts/android-vts/testcases/DATA/lib/*…
[all …]
Dstart-agent.sh2 adb shell chmod 755 /data/local/tmp/32/vts_shell_driver32
3 adb shell chmod 755 /data/local/tmp/64/vts_shell_driver64
4 adb shell killall vts_hal_driver32 > /dev/null 2&>1
5 adb shell killall vts_hal_driver64 > /dev/null 2&>1
6 adb shell killall vts_shell_driver32 > /dev/null 2&>1
7 adb shell killall vts_shell_driver64 > /dev/null 2&>1
8 adb shell rm -f /data/local/tmp/vts_driver_*
9 adb shell rm -f /data/local/tmp/vts_agent_callback*
10 adb shell LD_LIBRARY_PATH=/data/local/tmp/64 \
Dsetup-gce.sh17 adb root
18 adb push ${ANDROID_BUILD_TOP}/out/target/product/gce_x86/system/bin/vts_hal_driver /data/local/tmp/…
19 adb push ${ANDROID_BUILD_TOP}/out/target/product/gce_x86/system/bin/vts_hal_agent /data/local/tmp/v…
20 adb shell chmod 755 /data/local/tmp/vts_hal_driver
21 adb shell chmod 755 /data/local/tmp/vts_hal_agent
22 adb shell /data/local/tmp/vts_hal_agent
/test/vts/utils/python/controllers/
Dandroid_device.py38 from vts.utils.python.controllers import adb
178 out = adb.AdbProxy().devices()
395 self.adb = adb.AdbProxy(serial)
400 self.host_callback_port = adb.get_available_host_port()
402 self.adb.reverse_tcp_forward(self.device_callback_port,
420 self.adb.forward("--remove tcp:%s" % self.host_command_port,
421 timeout=adb.DEFAULT_ADB_SHORT_TIMEOUT)
442 self.adb.reboot_bootloader()
457 id_str = self.adb.shell("id -un").strip().decode("utf-8")
467 except adb.AdbError:
[all …]
/test/vts/runners/host/
Dutils.py612 ad.adb.wait_for_device()
616 ad.adb.shell("settings put global airplane_mode_on {}".format(
634 ad.adb.shell("dumpsys battery unplug")
635 ad.adb.shell("dumpsys deviceidle enable")
636 if (ad.adb.shell("dumpsys deviceidle force-idle") !=
641 adb_shell_result = ad.adb.shell("dumpsys deviceidle step")
647 ad.adb.shell("dumpsys battery").decode('utf-8'),
648 ad.adb.shell("dumpsys deviceidle").decode('utf-8')))
664 ad.adb.shell("dumpsys deviceidle disable")
665 ad.adb.shell("dumpsys battery reset")
[all …]
/test/vts-testcase/hal/usb/gadget/V1_0/host/
DVtsHalUsbGadgetV1_0HostTest.py27 from vts.utils.python.controllers import adb
42 self.adb = self.dut.adb
44 self.adb.root()
45 self.adb.wait_for_device()
46 except adb.AdbError as e:
48 self.serialno = self.adb.shell("getprop ro.serialno")
94 self.adb.shell("svc usb setFunctions mtp true")
104 self.adb.shell("svc usb setFunctions ptp true")
114 self.adb.shell("svc usb setFunctions midi true")
124 self.adb.shell("svc usb setFunctions rndis true")
/test/vts/testcases/host/reboot/RebootRootRemountTest/
DRebootRootRemountTest.py24 from vts.utils.python.controllers import adb
45 self.dut.adb.disable_verity()
54 self.dut.adb.root()
55 self.dut.adb.wait_for_device()
57 self.dut.adb.remount()
58 self.dut.adb.wait_for_device()
59 except adb.AdbError():
65 self.dut.adb.enable_verity()
/test/vts-testcase/fuzz/template/libfuzzer_test/
Dlibfuzzer_test.py27 from vts.utils.python.controllers import adb
57 self._dut.adb.shell('mkdir %s -p' % config.FUZZER_TEST_DIR)
61 self._dut.adb.shell('rm -rf %s' % config.FUZZER_TEST_DIR)
68 self._dut.adb.push('%s %s' % (push_src, push_dst), no_except=True)
93 self._dut.adb.shell('mkdir %s -p' % corpus_out)
114 self._dut.adb.push(local_corpus_seed_dir, config.FUZZER_TEST_DIR)
117 self._dut.adb.shell('mkdir %s -p' % corpus_seed)
195 result = self._dut.adb.shell(fuzz_cmd, no_except=True)
196 except adb.AdbError as e:
203 self._dut.adb.pull(config.FUZZER_TEST_CRASH_REPORT,
[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 …]
/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/framework/harnesses/host_controller/build/
Dbuild_flasher.py103 self.device.adb.wait_for_device()
105 self.device.log.info(self.device.adb.reboot_bootloader())
125 self.device.adb.wait_for_device()
127 self.device.log.info(self.device.adb.reboot_bootloader())
146 self.device.adb.wait_for_device()
148 self.device.log.info(self.device.adb.reboot_bootloader())
220 self.device.adb.wait_for_device()
221 self.device.log.info(self.device.adb.reboot_bootloader())
275 self.device.adb.wait_for_device()
277 self.device.log.info(self.device.adb.reboot(reboot_mode))
/test/vts-testcase/fuzz/template/iface_fuzzer_test/
Diface_fuzzer_test.py23 from vts.utils.python.controllers import adb
61 self._dut.adb.push(src_dir, dst_dir)
62 self._dut.adb.push(driver32, 'data/local/tmp/32')
63 self._dut.adb.push(driver64, 'data/local/tmp/64')
64 except adb.AdbError as e:
133 self._dut.adb.shell(repro_cmd, no_except=True)
/test/vts/testcases/host/verify_acpio/
DVtsFirmwareAcpioVerification.py53 self.adb = self.dut.adb
61 acpio_idx_string = self.adb.shell(
90 self.adb.pull("%s %s" % (acpio_path[0], host_acpio_image))
113 self.adb.pull("%s %s" % (current_SSDT_file, host_SSDT_file))
/test/vts/testcases/host/verify_boot_header/
DVtsFirmwareBootHeaderVerification.py49 self.adb = self.dut.adb
63 acpio_idx_string = self.adb.shell(
159 self.adb.pull("%s %s" % (boot_path[0], host_boot_path))
172 self.adb.pull("%s %s" % (recovery_path[0], host_recovery_path))
/test/vts-testcase/kernel/api/proc/
DVtsKernelProcFileApiTest.py196 self.dut.adb.shell("which incident_helper")
212 self.dut.adb.shell("echo u > %s" % filepath)
215 self.dut.adb.shell("echo b > %s" % filepath)
231 result = self.dut.adb.shell(
250 self.dut.adb.shell("echo %d %s > %s" % (root_uid, state, filepath))
252 self.dut.adb.shell("echo foo")
264 filepaths = self.dut.adb.shell("find /proc/uid -name time_in_state")
/test/vts/testcases/host/verify_dtbo/
DVtsFirmwareDtboVerification.py67 self.adb = self.dut.adb
127 self.adb.pull("%s %s" % (dtbo_path[0], host_dtbo_image))
146 overlay_idx_string = self.adb.shell(
158 self.adb.push(overlay_path, self.device_path)
/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-testcase/kernel/api/binder/
DVtsKernelBinderTest.py27 from vts.utils.python.controllers import adb
55 self._dut.adb.pull("/proc/config.gz", config_path)
58 except (adb.AdbError, IOError) as e:
/test/framework/harnesses/host_controller/command_processor/
Dcommand_dut.py23 from vts.utils.python.controllers import adb
98 adb_proxy = adb.AdbProxy(serial=args.serial)
122 except adb.AdbError as e:
/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/vts-testcase/fuzz/template/func_fuzzer_test/
Dfunc_fuzzer_test.py24 from vts.utils.python.controllers import adb
57 self._dut.adb.shell('mkdir %s -p' % config.FUZZER_TEST_DIR)
76 out = str(self._dut.adb.shell(cmd)).split()

123