Home
last modified time | relevance | path

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

1234567891011

/system/extras/tests/ext4/
Dandroid_emmc_perf_tests.sh22 if ! adb shell true >/dev/null 2>&1
27 HARDWARE=`adb shell getprop ro.hardware | tr -d "\r"`
84 adb root
85 adb wait-for-device
86 adb push "$PERF" /dev
87 adb shell stop
88 adb shell stop sdcard
89 adb shell stop ril-daemon
90 adb shell stop media
91 adb shell stop drm
[all …]
/system/media/audio_utils/tests/
Dbuild_and_run_all_unit_tests.sh18 adb root && adb wait-for-device remount
23 adb push $OUT/data/nativetest/fdtostring_tests/fdtostring_tests /system/bin
24 adb shell /system/bin/fdtostring_tests
27 adb push $OUT/system/lib/libaudioutils.so /system/lib
28 adb push $OUT/data/nativetest/primitives_tests/primitives_tests /system/bin
29 adb shell /system/bin/primitives_tests
32 adb push $OUT/data/nativetest/power_tests/power_tests /system/bin
33 adb shell /system/bin/power_tests
36 adb push $OUT/data/nativetest/channels_tests/channels_tests /system/bin
37 adb shell /system/bin/channels_tests
[all …]
Dbuild_and_run_biquad_filter.sh18 adb root && adb wait-for-device remount
25 adb shell mkdir -p $testdir
26 adb push $ANDROID_BUILD_TOP/cts/tests/tests/media/res/raw/sinesweepraw.raw $testdir
28 adb push $OUT/system/bin/biquad_filter $testdir
31 adb shell $testdir/biquad_filter -ch:$ch $testdir/sinesweepraw.raw \
38 adb shell cmp $testdir/sinesweep_2.raw \
43 adb shell rm -r $testdir
/system/extras/app-launcher/
Dapp-launcher10 adb="adb"
29 adb="adb -s $2"
116 $adb shell "echo performance > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_g\
118 $adb shell "echo 2499000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_fr\
137 $adb shell "echo performance > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor"
138 $adb shell "echo 1833000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq"
146 $adb shell 'echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor'
147 $adb shell 'echo 624000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq'
151 $adb shell 'echo 0 > /sys/devices/system/cpu/cpu0/online'
152 $adb shell 'echo 0 > /sys/devices/system/cpu/cpu1/online'
[all …]
/system/connectivity/wificond/
Druntests.sh34 adb wait-for-device
35 adb root
36 adb wait-for-device
40 if adb remount | grep 'disable-verity'; then
41 adb disable-verity
42 adb reboot
43 adb wait-for-device
44 adb root
45 adb wait-for-device
46 adb remount
[all …]
/system/extras/simpleperf/scripts/
Dapi_profiler.py40 adb = AdbHelper()
41 enable_profiling_on_device(adb, args)
42 upload_simpleperf_to_device(adb)
43 run_simpleperf_prepare_cmd(adb)
46 def enable_profiling_on_device(adb, args): argument
47 android_version = adb.get_android_version()
49 adb.set_property('debug.perf_event_max_sample_rate', str(args.max_sample_rate[0]))
50 adb.set_property('debug.perf_cpu_time_max_percent', str(args.max_cpu_percent[0]))
51 adb.set_property('debug.perf_event_mlock_kb', str(args.max_memory_in_kb[0]))
52 adb.set_property('security.perf_harden', '0')
[all …]
Drun_simpleperf_without_usb_connection.py39 adb = AdbHelper()
40 device_arch = adb.get_device_arch()
42 adb.check_run(['push', simpleperf_binary, '/data/local/tmp'])
43 adb.check_run(['shell', 'chmod', 'a+x', '/data/local/tmp/simpleperf'])
44 adb.check_run(['shell', 'rm', '-rf', '/data/local/tmp/perf.data',
53 subproc = subprocess.Popen([adb.adb_path, 'shell', shell_cmd])
60 adb.run(['shell', 'cat', '/data/local/tmp/simpleperf_output'])
65 adb = AdbHelper()
66 result = adb.run(['shell', 'pidof', 'simpleperf'])
70 adb.run(['shell', 'pkill', '-l', '2', 'simpleperf'])
[all …]
Drun_simpleperf_on_device.py29 adb = AdbHelper()
30 device_arch = adb.get_device_arch()
32 adb.check_run(['push', simpleperf_binary, '/data/local/tmp'])
33 adb.check_run(['shell', 'chmod', 'a+x', '/data/local/tmp/simpleperf'])
35 sys.exit(subprocess.call([adb.adb_path, 'shell', shell_cmd]))
Dapp_profiler.py62 def __init__(self, ndk_path, device_arch, adb): argument
63 self.adb = adb
130 self.adb.check_run(['shell', 'mkdir', '-p', self.dir_on_device])
133 result, output = self.adb.run_and_return_output(['shell', 'ls', self.dir_on_device])
139 self.adb.run(['pull', self.dir_on_device + self.build_id_list_file])
156 self.adb.check_run(['push', entry.path, self.dir_on_device + entry.name])
161 self.adb.run(['shell', 'rm', self.dir_on_device + name])
167 self.adb.check_run(['push', self.build_id_list_file,
176 result, output = self.adb.run_and_return_output(['shell', 'ls', '-l', target])
186 self.adb.check_run(['push', entry.path, target])
[all …]
/system/libvintf/test/
Dvintf_object_recovery_test.sh6 adb reboot recovery
8 adb wait-for-recovery
10 adb root
11 adb wait-for-recovery
15 adb push ${ANDROID_PRODUCT_OUT}/data/nativetest64/vintf_object_recovery_test/vintf_object_recovery_…
18 adb shell /system/bin/vintf_object_recovery_test
/system/extras/ioshark/
Dcollect-straces-ftraces.sh114 ps_line=`ps -ef | grep trace_pipe | grep adb `
119 ps_line=`ps -ef | grep strace | grep adb `
128adb shell "echo 1 > /sys/kernel/debug/tracing/events/android_fs/android_fs_dataread_start/enable"
129 adb shell "echo 1 > /sys/kernel/debug/tracing/tracing_on"
134adb shell "echo 0 > /sys/kernel/debug/tracing/events/android_fs/android_fs_dataread_start/enable"
135 adb shell "echo 0 > /sys/kernel/debug/tracing/tracing_on"
140 ps_line=`ps -ef | grep trace_pipe | grep adb `
145 ps_line=`ps -ef | grep strace | grep adb `
160 adb root && adb wait-for-device
166 adb shell 'ps' | grep zygote > zygote_pids
[all …]
Dcollect-straces.sh19 ps_line=`ps -ef | grep strace | grep adb `
65 adb root && adb wait-for-device
67 adb shell 'ps' | grep zygote > zygote_pids
79 adb shell "date +%s > /data/local/tmp/trace.begin ; strace -p $pid1,$pid2 -o /data/local/tmp/trace …
85 adb shell 'cd /data/local/tmp ; tar cvf trace.tar trace.*'
86 adb pull /data/local/tmp/trace.tar
/system/nfc/src/fuzzers/
Dfuzz.sh24 adb shell rm -rf /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
25 adb shell mkdir -p /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
26 adb push ./corpus/* /$FUZZ_DIR/corpus/ >/dev/null 2>&1
32 adb logcat -c
42 adb shell mkdir -p /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
43adb shell LD_LIBRARY_PATH=/system/lib64/vndk-29 GCOV_PREFIX=/$FUZZ_DIR/gcov GCOV_PREFIX_STRIP=3 /$…
46 adb logcat -d| $ANDROID_BUILD_TOP/external/compiler-rt/lib/asan/scripts/symbolize.py
52 adb shell rm -rf /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
53 adb shell mkdir -p /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
54 adb push ./corpus/* /$FUZZ_DIR/corpus/ >/dev/null 2>&1
[all …]
/system/core/fs_mgr/libsnapshot/
Drun_power_test.sh18 adb $DEVICE_ARGS wait-for-device
19 adb $DEVICE_ARGS root
20 adb $DEVICE_ARGS shell rm $TEST_BIN
21 adb $DEVICE_ARGS sync data
23 output=$(adb $DEVICE_ARGS shell $TEST_BIN merge $FAIL_RATE 2>&1)
35 adb $DEVICE_ARGS shell $TEST_BIN check $1
Dfuzz.sh29 adb root && adb remount &&
30 adb shell mkdir -p ${DEVICE_GENERATED_CORPUS_DIR} &&
31 adb shell rm -rf ${DEVICE_GCOV_DIR} &&
32 adb shell mkdir -p ${DEVICE_GCOV_DIR}
36 adb push ${ANDROID_PRODUCT_OUT}/${FUZZ_BINARY} ${FUZZ_BINARY} &&
37 adb push ${ANDROID_PRODUCT_OUT}/${DEVICE_INIT_CORPUS_DIR} $(dirname ${FUZZ_BINARY})
57 adb shell ${FUZZ_BINARY} "$@" ${DEVICE_INIT_CORPUS_DIR} ${DEVICE_GENERATED_CORPUS_DIR}
64 adb shell GCOV_PREFIX=${DEVICE_GCOV_DIR} GCOV_PREFIX_STRIP=3 \
73 adb shell find ${DEVICE_GCOV_DIR} -type f | xargs -I {} adb pull {} ${HOST_SCRATCH_DIR} &&
/system/extras/ANRdaemon/
DANRdaemon_get_trace.sh12 PID=$(adb $DEVICE shell "ps | grep anrd")
20 adb $DEVICE shell "kill -s SIGUSR1 $PID"
22 TRACE_FILE=$(adb $DEVICE shell "ls $TRACE_DIR \
26 adb $DEVICE shell "lsof -p $PID" | grep $TRACE_FILE > /dev/null
30 adb $DEVICE shell "lsof -p $PID" | grep "$TRACE_FILE" > /dev/null
37 adb $DEVICE pull "${TRACE_DIR}/${TRACE_FILE}" ${TRACE_FILE}
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dbuild_and_run.sh76 adb forward tcp:${TEST_CHANNEL_PORT} tcp:${TEST_CHANNEL_PORT}
80 adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
99 adb shell mount -o remount,rw /
100 adb remount
108 adb push ${VENDOR_SYMBOLS_ABS}/${VENDOR_LIB} /vendor/lib
111 adb push ${TEST_VENDOR_LIB_ABS}/data/${CONTROLLER_PROPERTIES} /vendor/etc/bluetooth/
114 adb push ${DEVICE_TARGET_ABS}/${DEVICE}/system/lib/libevent.so /system/lib/
117 adb push ${DEVICE_TARGET_ABS}/${DEVICE}/system/lib/libchrome.so /system/lib/
120 adb logcat -c
123 adb logcat bt_btif:D bt_btif_core:D bt_hci:D bt_main:D bt_vendor:D \
/system/extras/ioblame/
Dioblame.sh38 model=`adb shell getprop ro.product.name`
89 …block_device=`adb shell 'find /dev/block/platform -name by-name | xargs ls -l' | grep system | awk…
97 DISKSTATS=`adb shell 'cat /proc/diskstats' | fgrep -w $block_device `
106 adb shell 'mount -o remount,background_gc=off /data'
107 …F2FS_GC_SEGMENTS_BEFORE=`adb shell 'cat /sys/kernel/debug/f2fs/status' | grep segments | egrep 'da…
113 DISKSTATS=`adb shell 'cat /proc/diskstats' | fgrep -w $block_device `
122 …F2FS_GC_SEGMENTS_AFTER=`adb shell 'cat /sys/kernel/debug/f2fs/status' | grep segments | egrep 'dat…
123 adb shell 'mount -o remount,background_gc=on /data'
160 …tracepoint_exists=`adb shell 'if [ -d /sys/kernel/debug/tracing/events/android_fs ]; then echo 0; …
165 adb shell 'echo 0 > /sys/kernel/debug/tracing/tracing_on'
[all …]
/system/extras/simpleperf/scripts/test/
Dapp_profiler_test.py27 self.is_rooted_device = TestHelper.adb.switch_to_root()
44 pid = int(TestHelper.adb.check_run_and_return_output(['shell', 'pidof', 'system_server']))
60 self.adb = TestHelper.adb
61 self.adb.check_run(['shell', 'rm', '-rf', '/data/local/tmp/native_libs'])
65 self.adb.check_run(['shell', 'rm', '-rf', '/data/local/tmp/native_libs'])
69 result, output = self.adb.run_and_return_output(['shell', 'ls', '-llc', path])
74 downloader = NativeLibDownloader(self.ndk_path, 'arm64', self.adb)
103 self.adb.run(['pull', '/data/local/tmp/native_libs/build_id_list',
113 self.adb.check_run(['shell', 'mkdir', '-p', '/data/local/tmp/native_libs'])
114 self.adb.check_run(['push', 'build_id_list', '/data/local/tmp/native_libs'])
[all …]
Dapi_profiler_test.py26 adb = TestHelper.adb
34 adb.run(['uninstall', package_name])
35 adb.check_run(['install', '-t', apk_path])
38 adb.check_run(['shell', 'am', 'start', '-n', package_name + '/.MainActivity'])
42 result = adb.run(['shell', 'pidof', package_name])
58 adb.check_run(['uninstall', package_name])
/system/extras/tests/workloads/
Dpwrtest.sh132 adb shell mkdir -p $devdir
135 adb push $CMDDIR/$file $devdir
143 dircontents=$(adb ls $stdest 2>/dev/null)
146 adb install $suntempledir/*.apk
147 adb shell mkdir -p $stdest
148 adb push $suntempledir/main*obb $stdest
162 echo enabled Cores $(adb shell "cat /sys/devices/system/cpu/online")
181 adb devices
188 (adb shell "cd $devdir && nohup $cmdline > test.out") &
197 set -- $(adb shell ps | tr "\r" " " | grep "$processName")
[all …]
/system/tools/aidl/
Drun_integration_tests.sh27 adb root
28 adb wait-for-device
29 adb sync data
30 adb push \
33 adb push \
/system/libufdt/tests/
DverifyDTBO.sh10 adb root
18 boot_suffix=$(adb wait-for-device shell getprop ro.boot.slot_suffix)
23 adb pull $dtbo_path dtbo.img > /dev/null
24 adb pull /sys/firmware/fdt final_dt > /dev/null
31 overlay_idx=$(adb shell cat /proc/cmdline | grep -o "androidboot.dtbo_idx=[^ ]*" | cut -d "=" -f 2)
Dapply_overlay.sh54 adb push "${EXE_PATH}/${OVERLAY}_intermediates/${OVERLAY}" \
99 adb push "$BASE_DTB" "$REMOTE_PATH" > /dev/null
100 adb push "$OVERLAY_DTB" "$REMOTE_PATH" > /dev/null
101 adb shell "
105 adb pull "${REMOTE_PATH}/${MERGED_DTB_NAME}" "$MERGED_DTB" > /dev/null
110 adb shell "
/system/core/init/test_service/
DREADME.md35 adb root
36 adb remount
37 adb sync
38 adb reboot
39 adb root
40 adb shell start test_service
41 adb logcat -b all -d | grep test_service

1234567891011