Home
last modified time | relevance | path

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

12345678910>>...13

/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/audio/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-launcher.sh10 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/
Drun_simpleperf_without_usb_connection.py38 adb = AdbHelper()
39 device_arch = adb.get_device_arch()
41 adb.check_run(['push', simpleperf_binary, '/data/local/tmp'])
42 adb.check_run(['shell', 'chmod', 'a+x', '/data/local/tmp/simpleperf'])
43 adb.check_run(['shell', 'rm', '-rf', '/data/local/tmp/perf.data',
54 subproc = subprocess.Popen([adb.adb_path, 'shell', shell_cmd])
61 adb.run(['shell', 'cat', '/data/local/tmp/simpleperf_output'])
66 adb = AdbHelper()
67 result = adb.run(['shell', 'pidof', 'simpleperf'])
71 adb.run(['shell', 'pkill', '-l', '2', 'simpleperf'])
[all …]
Dapi_profiler.py43 self.adb = AdbHelper()
51 android_version = self.adb.get_android_version()
53 self.adb.set_property('debug.perf_event_max_sample_rate',
55 self.adb.set_property('debug.perf_cpu_time_max_percent', str(self.args.max_cpu_percent))
56 self.adb.set_property('debug.perf_event_mlock_kb', str(self.args.max_memory_in_kb))
57 self.adb.set_property('security.perf_harden', '0')
60 device_arch = self.adb.get_device_arch()
62 self.adb.check_run(['push', simpleperf_binary, '/data/local/tmp'])
63 self.adb.check_run(['shell', 'chmod', 'a+x', '/data/local/tmp/simpleperf'])
69 self.adb.check_run(cmd_args)
[all …]
Dapp_profiler.py64 def __init__(self, ndk_path, device_arch, adb): argument
65 self.adb = adb
132 self.adb.check_run(['shell', 'mkdir', '-p', self.dir_on_device])
135 result, output = self.adb.run_and_return_output(['shell', 'ls', self.dir_on_device])
141 self.adb.run(['pull', self.dir_on_device + self.build_id_list_file])
158 self.adb.check_run(['push', entry.path, self.dir_on_device + entry.name])
163 self.adb.run(['shell', 'rm', self.dir_on_device + name])
169 self.adb.check_run(['push', self.build_id_list_file,
178 result, output = self.adb.run_and_return_output(['shell', 'ls', '-l', target])
188 self.adb.check_run(['push', entry.path, target])
[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]))
/system/tools/aidl/
Drun_integration_tests.sh27 adb root
28 adb wait-for-device
29 adb sync data
30 adb push \
33 adb push \
36 adb push \
39 adb push \
42 adb push \
45 adb push \
/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 `
128 adb shell "echo 1 > /sys/kernel/debug/tracing/events/f2fs/f2fs_dataread_start/enable"
129 adb shell "echo 1 > /sys/kernel/debug/tracing/tracing_on"
134 adb shell "echo 0 > /sys/kernel/debug/tracing/events/f2fs/f2fs_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/extras/simpleperf/scripts/test/
Dapi_profiler_test.py27 adb = TestHelper.adb
33 adb.run(['uninstall', package_name])
34 adb.check_run(['install', '-t', apk_path])
41 adb.set_property('security.perf_harden', '1')
42 adb.check_run(['shell', 'am', 'start', '-n', package_name + '/.MainActivity'])
46 result = adb.run(['shell', 'pidof', package_name])
62 adb.check_run(['uninstall', package_name])
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 …]
Djava_app_test.py47 self.adb.check_run(['shell', 'am', 'force-stop', self.package_name])
48 self.adb.check_run(['shell', 'am', 'start', '-n',
59 self.adb.check_run(['shell', 'am', 'start', '-n', self.package_name + '/.MainActivity'])
74 self.adb.check_run(['shell', 'am', 'start', '-n', self.package_name + '/.MainActivity'])
82 self.adb.check_run(['shell', 'am', 'force-stop', self.package_name])
100 self.adb.check_run(['shell', 'am', 'start', '-n', self.package_name + '/.MainActivity'])
102 pid = self.adb.check_run_and_return_output(
162 self.adb.check_run(['shell', 'am', 'start', '-n', self.package_name + '/.MainActivity'])
165 self.adb.check_run(['kill-server'])
169 self.adb.check_run(['devices'])
/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/f2fs ]; then echo 0; else e…
165 adb shell 'echo 0 > /sys/kernel/debug/tracing/tracing_on'
[all …]
/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/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/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/bootconfig \
34 …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/apex/tools/
Dhost-apex-verifier.sh12 adb pull /system/apex/ $TEMP_DIR/system
13 adb pull /system_ext/apex/ $TEMP_DIR/system_ext
14 adb pull /product/apex/ $TEMP_DIR/product
15 adb pull /vendor/apex/ $TEMP_DIR/vendor
16 adb pull /odm/apex/ $TEMP_DIR/odm
/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
/system/core/rootdir/
Dinit.usb.configfs.rc17 on property:sys.usb.config=adb && property:sys.usb.configfs=1
20 on property:sys.usb.ffs.ready=1 && property:sys.usb.config=adb && property:sys.usb.configfs=1
21 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb"
22 symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1
32 on property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1
35 on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1
38 symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
48 on property:sys.usb.config=ptp,adb && property:sys.usb.configfs=1
51 on property:sys.usb.ffs.ready=1 && property:sys.usb.config=ptp,adb && property:sys.usb.configfs=1
54 symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
[all …]
/system/sepolicy/prebuilts/api/32.0/private/
Dadbd.te15 # When 'adb shell' is executed in recovery mode, adbd explicitly
53 # Access /dev/usb-ffs/adb/ep0
64 # adb push/pull /data/local/tmp.
68 # adb pull /data/local/traces/*
72 # adb pull /data/misc/profman.
76 # adb push/pull sdcard.
83 # adb pull /data/anr/traces.txt
87 # adb pull /vendor/framework/*
91 # Set service.adb.*, sys.powerctl, and sys.usb.ffs.ready properties.
97 # Set service.adb.tcp.port, service.adb.tls.port, persist.adb.wifi.* properties
[all …]

12345678910>>...13