/system/extras/tests/ext4/ |
D | android_emmc_perf_tests.sh | 22 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/core/adb/coverage/ |
D | gen_coverage.sh | 13 IP_ADDR=$(adb shell ip route get 0.0.0.0 oif wlan0 | sed -En -e 's/.*src (\S+)\s.*/\1/p') 16 LOCAL_SERIAL=$(adb shell getprop ro.serialno) 19 adb disconnect 21 TRANSPORT_ID=$(adb transport-id) 22 adb tcpip $REMOTE_PORT 23 adb -t $TRANSPORT_ID wait-for-disconnect 25 adb connect $REMOTE 27 REMOTE_FETCHED_SERIAL=$(adb -s $REMOTE shell getprop ro.serialno) 35 adb -s $REMOTE usb 36 adb disconnect $REMOTE [all …]
|
/system/media/audio_utils/tests/ |
D | build_and_run_all_unit_tests.sh | 18 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 …]
|
D | build_and_run_biquad_filter.sh | 18 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/ |
D | app-launcher | 10 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/wifilogd/ |
D | runtests.sh | 33 adb wait-for-device 34 adb root 35 adb wait-for-device 39 if adb remount | grep 'disable-verity'; then 40 adb disable-verity 41 adb reboot 42 adb wait-for-device 43 adb root 44 adb wait-for-device 45 adb remount [all …]
|
/system/connectivity/wificond/ |
D | runtests.sh | 34 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/ |
D | api_profiler.py | 39 adb = AdbHelper() 40 enable_profiling_on_device(adb, args) 41 upload_simpleperf_to_device(adb) 42 run_simpleperf_prepare_cmd(adb) 44 def enable_profiling_on_device(adb, args): argument 45 android_version = adb.get_android_version() 47 adb.set_property('debug.perf_event_max_sample_rate', str(args.max_sample_rate[0])) 48 adb.set_property('debug.perf_cpu_time_max_percent', str(args.max_cpu_percent[0])) 49 adb.set_property('debug.perf_event_mlock_kb', str(args.max_memory_in_kb[0])) 50 adb.set_property('security.perf_harden', '0') [all …]
|
D | run_simpleperf_without_usb_connection.py | 38 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', 52 subproc = subprocess.Popen([adb.adb_path, 'shell', shell_cmd]) 59 adb.run(['shell', 'cat', '/data/local/tmp/simpleperf_output']) 63 adb = AdbHelper() 64 result = adb.run(['shell', 'pidof', 'simpleperf']) 68 adb.run(['shell', 'pkill', '-l', '2', 'simpleperf']) [all …]
|
D | run_simpleperf_on_device.py | 28 adb = AdbHelper() 29 device_arch = adb.get_device_arch() 31 adb.check_run(['push', simpleperf_binary, '/data/local/tmp']) 32 adb.check_run(['shell', 'chmod', 'a+x', '/data/local/tmp/simpleperf']) 34 sys.exit(subprocess.call([adb.adb_path, 'shell', shell_cmd]))
|
D | app_profiler.py | 58 def __init__(self, ndk_path, device_arch, adb): argument 59 self.adb = adb 126 self.adb.check_run(['shell', 'mkdir', '-p', self.dir_on_device]) 129 result, output = self.adb.run_and_return_output(['shell', 'ls', self.dir_on_device]) 135 self.adb.run(['pull', self.dir_on_device + self.build_id_list_file]) 152 self.adb.check_run(['push', entry.path, self.dir_on_device + entry.name]) 157 self.adb.run(['shell', 'rm', self.dir_on_device + name]) 163 self.adb.check_run(['push', self.build_id_list_file, 172 result, output = self.adb.run_and_return_output( 183 self.adb.check_run(['push', entry.path, target]) [all …]
|
/system/core/adb/ |
D | SOCKET-ACTIVATION.txt | 1 adb can be configured to work with systemd-style socket activation, 2 allowing the daemon to start automatically when the adb control port 7 adb.service: 9 --- START adb.service CUT HERE --- 11 Description=adb 12 After=adb.socket 13 Requires=adb.socket 17 ExecStart=/path/to/adb server nodaemon -L acceptfd:3 18 --- END adb.service CUT HERE --- 20 --- START adb.socket CUT HERE --- [all …]
|
/system/libvintf/test/ |
D | vintf_object_recovery_test.sh | 6 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/core/adb/daemon/ |
D | logging.cpp | 30 bool enabled[static_cast<size_t>(adb::LogType::COUNT)]; 32 bool& operator[](adb::LogType type) { return enabled[static_cast<size_t>(type)]; } in operator []() 50 result[adb::LogType::Connection] = true; in ParseLogStatus() 52 result[adb::LogType::Service] = true; in ParseLogStatus() 54 result[adb::LogType::Shell] = true; in ParseLogStatus() 56 result[adb::LogType::Connection] = true; in ParseLogStatus() 57 result[adb::LogType::Service] = true; in ParseLogStatus() 58 result[adb::LogType::Shell] = true; in ParseLogStatus() 74 namespace adb { namespace 84 namespace adb { namespace
|
/system/extras/ioshark/ |
D | collect-straces-ftraces.sh | 114 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/android_fs/android_fs_dataread_start/enable" 129 adb shell "echo 1 > /sys/kernel/debug/tracing/tracing_on" 134 … adb 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 …]
|
D | collect-straces.sh | 19 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/core/fs_mgr/libsnapshot/ |
D | fuzz.sh | 29 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} &&
|
D | run_power_test.sh | 18 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
|
/system/bt/vendor_libs/test_vendor_lib/scripts/ |
D | build_and_run.sh | 76 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/ANRdaemon/ |
D | ANRdaemon_get_trace.sh | 12 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/ioblame/ |
D | ioblame.sh | 38 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/tests/workloads/ |
D | pwrtest.sh | 132 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/tests/java_app/ |
D | README | 7 $ adb remount && adb sync 9 $ adb install -r <path-to-APK-in-out-directory> 12 $ adb shell "(hellod ) </dev/null >/dev/null 2>&1 &" 14 $ adb shell am start -S -a android.intent.action.MAIN \ 17 $ adb logcat -s TestServiceClient hellod
|
/system/tools/hidl/scripts/ |
D | run-tests.sh | 24 run adb push ${OUT}/system/bin/${CHECKER} ${CHECKER_DEVICE_PATH} 31 run adb push ${OUT}${test_file} ${test_file} 45 local interfaces=$(run adb shell ${test_file} --list_registered_services \ 48 run adb shell ${test_file} || status=$? 51 … local output=$(run adb shell ${CHECKER_DEVICE_PATH} -c ${interface} | read_checker_output) 57 … run adb shell ${test_file} --hal_service_instance="${interface}/${instance}" || status=$? 100 run adb root
|
/system/libufdt/tests/ |
D | verifyDTBO.sh | 10 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)
|