Home
last modified time | relevance | path

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

12345

/external/chromium-trace/catapult/devil/devil/utils/
Dmock_calls_test.py50 self.adb = _DummyAdb()
54 raise ValueError('(device %s) command %r is not nice' % (self.adb, cmd))
66 self.assertEquals(self.adb.Shell,
67 self.call_target(self.call.adb.Shell))
75 self.call_target(self.call.adb.Run)
79 self.call_target(self.call.adb.RunShell('cmd').append)
88 with self.patch_call(self.call.adb.Shell, return_value='hello'):
89 self.assertEquals('hello', self.adb.Shell('echo hello'))
96 with self.patch_call(self.call.adb.Shell, side_effect=ValueError):
98 self.adb.Shell('echo hello')
[all …]
/external/skia/platform_tools/android/bin/
Dadb_list_devices.py25 def GetDeviceInfo(adb, serial, props_to_get): argument
33 device_proc = subprocess.Popen([adb, '-s', serial, 'shell', 'cat',
89 adb = hint
91 adb = os.path.join(hint, 'adb')
92 if subprocess.Popen([adb, 'version'], stdout=subprocess.PIPE).wait() == 0:
93 return adb
96 adb = 'adb'
97 if subprocess.Popen([adb, 'version'], stdout=subprocess.PIPE).wait() == 0:
98 return adb
102 adb = os.environ.get('ADB')
[all …]
Dandroid_run_app.go55 func (adb *ADB) Cmd(log bool, args ...string) *exec.Cmd {
57 if adb.serial != "" {
58 cmd = append(cmd, "-s", adb.serial)
62 glog.Infof("Exec `%s %s`", adb.path, strings.Join(cmd, " "))
64 return exec.Command(adb.path, cmd...)
68 func (adb *ADB) Kill(proc string) error {
69 return adb.Cmd(false, "shell", "am", "force-stop", proc).Run()
73 func (adb *ADB) Poll(proc string) (int64, error) {
74 output, err := adb.Cmd(false, "shell", "ps").Output()
149 func RunApp(adb *ADB, appName string, args []string) error {
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils_test.py49 self.assertEqual(serial_as_str, d.adb.GetDeviceSerial())
54 self.assertEqual(serial_as_unicode, d.adb.GetDeviceSerial())
60 self.assertEqual(serial, d.adb.GetDeviceSerial())
134 adb = mock.Mock(spec=adb_wrapper.AdbWrapper)
135 adb.__str__ = mock.Mock(return_value=test_serial)
136 adb.GetDeviceSerial.return_value = test_serial
137 adb.is_ready = is_ready
138 return adb
144 self.adb = _AdbWrapperMock('0123456789abcdef')
146 self.adb, default_timeout=10, default_retries=0)
[all …]
Ddevice_utils_devicetest.py32 self.adb = devices[0]
33 self.adb.WaitForDevice()
35 self.adb, default_timeout=10, default_retries=0)
83 self.adb.Push(host_file_path, device_file_path)
95 self.adb.Push(host_file_path, device_file_path)
113 self.adb.Push(host_file_path, device_file_path)
133 self.adb.Push(host_file_path1, device_file_path1)
134 self.adb.Push(host_file_path2, device_file_path2)
173 self.adb.Push(host_file_path1, device_file_path1)
174 self.adb.Push(host_file_path2, device_file_path2)
[all …]
Ddevice_utils.py209 self.adb = None
211 self.adb = _CreateAdbWrapper(device)
213 self.adb = device
236 return self.adb.GetDeviceSerial() == str(other)
248 return self.adb.GetDeviceSerial() < other.adb.GetDeviceSerial()
252 return self.adb.GetDeviceSerial()
269 return self.adb.GetState() == 'device'
345 self.adb.Root()
518 self.adb.WaitForDevice()
546 self.adb.Reboot()
[all …]
/external/opencv3/cmake/templates/
Dopencv_run_all_tests_android.sh.in16 if [ -z `which adb` ]; then
21 adb push $OPENCV_TEST_DATA_PATH /sdcard/opencv_testdata
23 adb shell "mkdir -p /data/local/tmp/opencv_test"
29 adb push $t /data/local/tmp/opencv_test/
30adb shell "export OPENCV_TEST_DATA_PATH=/sdcard/opencv_testdata && /data/local/tmp/opencv_test/$te…
31 adb pull "/data/local/tmp/opencv_test/$report" $report
/external/opencv3/samples/android/hello-android/
Drun.cmd27 SET adb=%ANDROID_SDK%\platform-tools\adb.exe
30 %adb% push .\bin\%PROJECT_NAME% /data/bin/sample/%PROJECT_NAME% || GOTO end
33 %adb% shell chmod 777 /data/bin/sample/%PROJECT_NAME% || GOTO end
36 %adb% shell /data/bin/sample/%PROJECT_NAME% || GOTO end
39 %adb% pull /mnt/sdcard/HelloAndroid.png || GOTO end
44 %adb% shell rm /data/bin/sample/%PROJECT_NAME%
45 %adb% shell rm /mnt/sdcard/HelloAndroid.png
Drun.sh6 adb push ./bin/$PROJECT_NAME /data/bin/sample/$PROJECT_NAME || return
9 adb shell chmod 777 /data/bin/sample/$PROJECT_NAME || return
12 adb shell /data/bin/sample/$PROJECT_NAME || return
15 adb pull /mnt/sdcard/HelloAndroid.png || return
/external/boringssl/src/crypto/asn1/
Dtasn_utl.c209 const ASN1_ADB *adb; in asn1_do_adb() local
219 adb = ASN1_ADB_ptr(tt->item); in asn1_do_adb()
222 sfld = offset2ptr(*pval, adb->offset); in asn1_do_adb()
226 if (!adb->null_tt) { in asn1_do_adb()
229 return adb->null_tt; in asn1_do_adb()
246 for (atbl = adb->tbl, i = 0; i < adb->tblcount; i++, atbl++) { in asn1_do_adb()
255 if (!adb->default_tt) { in asn1_do_adb()
258 return adb->default_tt; in asn1_do_adb()
/external/gemmlowp/scripts/
Dtest-android.sh60 adb root
67 adb shell mkdir -p /data/local/tmp
74 adb push $EXE /data/local/tmp
81 echo adb shell "/data/local/tmp/$EXE $TESTARGS"
83 adb shell "/data/local/tmp/$EXE $TESTARGS" | tee "log-$EXE"
/external/v8/tools/
Dandroid-ll-prof.sh53 adb -p "$DEPLOY" sync data
55 adb shell "cd /data/local/tmp/v8;\
59 adb pull /data/local/tmp/v8/v8.log .
60 adb pull /data/local/tmp/v8/v8.log.ll .
61 adb pull /data/perf.data .
/external/opencv3/modules/ts/misc/
Drun.py213 self.adb = None
252 …self.adb = os.path.join(os.path.dirname(os.path.dirname(self.android_executable)), ("platform-tool…
253 if not os.path.isfile(self.adb) or not os.access(self.adb, os.X_OK):
254 self.adb = None
256 self.adb = None
260 if not self.adb:
261 self.adb = getRunningProcessExePathByName("adb")
262 if not self.adb:
263 self.adb = "adb"
265 self.adb = [self.adb, "-s", self.options.adb_serial]
[all …]
/external/chromium-trace/catapult/systrace/systrace/
Dsystrace-legacy.py149 adb = subprocess.Popen(atrace_args, stdout=subprocess.PIPE,
153 ready = select.select([adb.stdout, adb.stderr], [],
154 [adb.stdout, adb.stderr])
155 if adb.stderr in ready[0]:
156 err = os.read(adb.stderr.fileno(), 4096)
159 if adb.stdout in ready[0]:
160 out = leftovers + os.read(adb.stdout.fileno(), 4096)
195 result = adb.poll()
/external/libcxx/test/libcxx/android/test/
Dformat.py8 import libcxx.android.adb as adb namespace
66 adb.mkdir(self._working_directory(exec_file))
67 adb.push(exec_path, self._wd_path(exec_file, exec_file))
76 adb.push(df_path, df_dev_path)
78 except adb.AdbError as ex:
/external/compiler-rt/test/asan/android_commands/
Dandroid_common.py11 def adb(args): function
19 adb(['pull', path, tmp])
28 adb(['push', path, tmp_path])
29 adb(['shell', 'cp "%s" "%s" 2>&1' % (tmp_path, dst_path)])
/external/apache-harmony/jdwp/
DAndroid_debug_config.mk108 $(hide) while [ `adb wait-for-device shell getprop dev.bootcomplete | grep -c 1` -eq 0 ]; \
125 adb root
126 adb wait-for-device shell stop
127 adb remount
128 adb sync
129 adb reboot
131 adb shell $$(jdwp_test_runtime_target) -cp $(jdwp_test_classpath_target) \
/external/libvpx/libvpx/test/android/
DREADME13 Note: Both adb and ndk-build are available prebuilt at:
20 4) Transfer files to device using adb. Ensure you have proper permissions for
23 adb push /path/to/test_files /data/local/tmp
24 adb push /path/to/built_libs /data/local/tmp
29 adb shell
/external/deqp/targets/android/
Dlaunch.bat2 adb %* forward tcp:50016 tcp:50016
3 adb %* shell setprop log.tag.dEQP DEBUG
4 adb %* shell am start -n com.drawelements.deqp/.execserver.ServiceStarter
/external/vulkan-validation-layers/demos/smoke/android/
Dbuild-and-install19 adb uninstall com.example.Smoke
20 adb install build/outputs/apk/android-fat-debug.apk
24 adb shell am start com.example.Smoke/android.app.NativeActivity
/external/zlib/src/contrib/ada/
Dzlib.gpr6 for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo");
/external/webrtc/webrtc/examples/androidtests/
DREADME10 adb install -r out/Debug/apks/AppRTCDemo.apk
11 adb install -r out/Debug/apks/AppRTCDemoTest.apk
14 adb shell am instrument -w org.appspot.apprtc.test/android.test.InstrumentationTestRunner
/external/valgrind/
Druntest.sh35 adb push $test_local $test_target
42 adb shell $test_target > $logfile_native
45 adb shell valgrind $test_target > $logfile_valgrind
DREADME.android_emulator55 # You can use adb shell to get a shell on the device
57 # one or two time out from adb shell before it works
58 adb shell
61 adb push Inst /
78 adb forward tcp:1234 tcp:1234
/external/vogar/src/vogar/android/
DAndroidSdk.java79 File adb; in createAndroidSdk() local
81 adb = new File(adbPath.get(0)); in createAndroidSdk()
83 adb = null; // Could not find adb. in createAndroidSdk()
109 boolean isAdbPathValid = (adb != null) && in createAndroidSdk()
110 "platform-tools".equals(getParentFileNOrLast(adb, 1).getName()); in createAndroidSdk()
113 : getParentFileNOrLast(adb, 2); // adb must be valid. in createAndroidSdk()

12345