Home
last modified time | relevance | path

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

123456

/external/chromium_org/build/android/pylib/gtest/
Dtest_package_apk.py42 def _CreateCommandLineFileOnDevice(self, adb, options): argument
47 adb.PushIfNeeded(command_line_file.name,
57 def _ClearFifo(self, adb): argument
58 adb.RunShellCommand('rm -f ' + self._GetFifo())
60 def _WatchFifo(self, adb, timeout, logfile=None): argument
62 if adb.FileExistsOnDevice(self._GetFifo()):
69 args = shlex.split(adb.Adb()._target_arg)
73 def _StartActivity(self, adb): argument
74 adb.StartActivity(
82 def ClearApplicationState(self, adb): argument
[all …]
Dtest_package_exe.py36 def GetGTestReturnCode(self, adb): argument
41 if not adb.Adb().Pull(
56 def _AddNativeCoverageExports(self, adb): argument
71 adb.GetExternalStorage())
76 def ClearApplicationState(self, adb): argument
77 adb.KillAllBlocking(self.suite_name, 30)
80 def CreateCommandLineFileOnDevice(self, adb, test_filter, test_arguments): argument
90 self._AddNativeCoverageExports(adb),
97 adb.PushIfNeeded(
105 def GetAllTests(self, adb): argument
[all …]
Dtest_package.py20 def ClearApplicationState(self, adb): argument
28 def CreateCommandLineFileOnDevice(self, adb, test_filter, test_arguments): argument
38 def GetAllTests(self, adb): argument
46 def GetGTestReturnCode(self, adb): argument
49 def SpawnTestProcess(self, adb): argument
60 def Install(self, adb): argument
Dtest_runner.py56 self._perf_controller = perf_control.PerfControl(self.adb)
60 self.test_package.Install(self.adb)
64 self.test_package.Install(self.adb)
65 return self.test_package.GetAllTests(self.adb)
69 self.adb.WaitForSdCardReady(20)
72 device_dir = self.adb.GetExternalStorage()
78 self.adb.PushIfNeeded(
136 if not self.adb.IsOnline():
153 ret_code = self.test_package.GetGTestReturnCode(self.adb)
168 self.test_package.ClearApplicationState(self.adb)
[all …]
/external/chromium_org/build/android/
Dtombstones.py23 def _ListTombstones(adb): argument
32 lines = adb.RunShellCommand('TZ=UTC su -c ls -a -l /data/tombstones')
41 def _GetDeviceDateTime(adb): argument
50 device_now_string = adb.RunShellCommand('TZ=UTC date')
55 def _GetTombstoneData(adb, tombstone_file): argument
64 return adb.GetProtectedFileContents('/data/tombstones/' + tombstone_file)
67 def _EraseTombstone(adb, tombstone_file): argument
73 return adb.RunShellCommandWithSU('rm /data/tombstones/' + tombstone_file)
129 def _GetTombstonesForDevice(adb, options): argument
137 all_tombstones = list(_ListTombstones(adb))
[all …]
Dupdate_verification.py18 def _SaveAppData(adb, package_name, from_apk=None, data_dir=None): argument
20 adb.Adb().SendCommand('backup %s' % package_name)
32 output = adb.Install(from_apk, reinstall=True)
41 def _VerifyAppUpdate(adb, to_apk, app_data, from_apk=None): argument
44 adb.Adb().SendCommand('restore %s' % app_data)
50 output = adb.Install(from_apk, reinstall=True)
60 output = adb.Install(to_apk)
68 output = adb.Install(to_apk, reinstall=True)
113 adb = android_commands.AndroidCommands()
122 _SaveAppData(adb, options.package_name, from_apk=options.from_apk,
[all …]
Dadb_content_shell_command_line21 adb pull $CMD_LINE_FILE $tempfile 2>/dev/null
24 adb shell cat $CMD_LINE_FILE | cut -d " " -f "2-" 2>/dev/null
29 adb shell rm $CMD_LINE_FILE >/dev/null
33 adb shell "echo 'content_shell $*' > $CMD_LINE_FILE"
35 adb shell chmod 0664 $CMD_LINE_FILE
Dadb_android_webview_command_line21 adb pull $CMD_LINE_FILE $tempfile 2>/dev/null
24 adb shell cat $CMD_LINE_FILE | cut -d " " -f "2-" 2>/dev/null
29 adb shell rm $CMD_LINE_FILE >/dev/null
33 adb shell "echo 'android_webview $*' > $CMD_LINE_FILE"
35 adb shell chmod 0664 $CMD_LINE_FILE
Dadb_chromium_testshell_command_line21 adb pull $CMD_LINE_FILE $tempfile 2>/dev/null
24 adb shell cat $CMD_LINE_FILE | cut -d " " -f "2-" 2>/dev/null
29 adb shell rm $CMD_LINE_FILE >/dev/null
33 adb shell "echo 'chromium_testshell $*' > $CMD_LINE_FILE"
35 adb shell chmod 0664 $CMD_LINE_FILE
/external/chromium_org/build/android/pylib/
Dforwarder.py65 def Map(port_pairs, adb, tool=None): argument
82 tool = valgrind_tools.CreateTool(None, adb)
85 instance._InitDeviceLocked(adb, tool)
87 device_serial = adb.Adb().GetSerialNumber()
118 def UnmapDevicePort(device_port, adb): argument
126 Forwarder._UnmapDevicePortLocked(device_port, adb)
129 def UnmapAllDevicePorts(adb): argument
139 adb_serial = adb.Adb().GetSerialNumber()
146 Forwarder._UnmapDevicePortLocked(device_port, adb)
148 tool = valgrind_tools.CreateTool(None, adb)
[all …]
Dvalgrind_tools.py31 def SetChromeTimeoutScale(adb, scale): argument
36 adb.RunShellCommand('rm %s' % path)
38 adb.SetProtectedFileContents(path, '%f' % scale)
91 def __init__(self, adb): argument
92 self._adb = adb
101 adb.SetUtilWrapper(self.GetUtilWrapper())
148 def __init__(self, adb): argument
149 self._adb = adb
197 def __init__(self, adb): argument
198 super(MemcheckTool, self).__init__(adb)
[all …]
Dscreenshot.py23 def TakeScreenshot(adb, host_file): argument
33 device_file = '%s/screenshot.png' % adb.GetExternalStorage()
34 adb.RunShellCommand('/system/bin/screencap -p %s' % device_file)
35 adb.PullFileFromDevice(device_file, host_file)
36 adb.RunShellCommand('rm -f "%s"' % device_file)
52 def __init__(self, adb, host_file, megabits_per_second=4, size=None, argument
54 self._adb = adb
55 self._device_file = '%s/screen-recording.mp4' % adb.GetExternalStorage()
/external/chromium_org/build/android/pylib/perf/
Dthermal_throttle.py14 def IsSupported(adb): argument
15 return adb.FileExistsOnDevice(OmapThrottlingDetector.OMAP_TEMP_FILE)
17 def __init__(self, adb): argument
18 self._adb = adb
38 def IsSupported(adb): argument
39 return adb.FileExistsOnDevice('/sys/bus/exynos5-core')
41 def __init__(self, adb): argument
66 def __init__(self, adb): argument
67 self._adb = adb
70 if OmapThrottlingDetector.IsSupported(adb):
[all …]
/external/chromium-trace/
Dsystrace.py43 adb = subprocess.Popen(getprop_args, stdout=subprocess.PIPE,
45 out, err = adb.communicate()
46 if adb.returncode != 0:
148 adb = subprocess.Popen(atrace_args, stdout=subprocess.PIPE,
157 ready = select.select([adb.stdout, adb.stderr], [], [adb.stdout, adb.stderr])
158 if adb.stderr in ready[0]:
159 err = os.read(adb.stderr.fileno(), 4096)
162 if adb.stdout in ready[0]:
163 out = os.read(adb.stdout.fileno(), 4096)
180 result = adb.poll()
[all …]
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/
Dandroid_browser_backend.py21 def __init__(self, adb, activity, cmdline_file, package, pseudo_exec_name, argument
23 self.adb = adb
34 files = self.adb.RunShellCommandWithSU('ls "%s"' % self.profile_dir)
37 self.adb.RunShellCommandWithSU('rm -r %s' % ' '.join(paths))
57 def _GetCommandLineFile(adb): argument
58 if adb.IsUserBuild():
63 def __init__(self, adb, package): argument
65 adb=adb,
67 cmdline_file=ChromeBackendSettings._GetCommandLineFile(adb),
90 self.adb.Adb().PushIfNeeded(new_profile_dir, saved_profile_location)
[all …]
/external/srec/config/en.us/
Dadb_pull_system_usr_srec_bothtags5_from_saved.sh5 adb pull $TESTDIR/config/en.us/out_SHIP_bothtags5_from_saved.txt out_SHIP_bothtags5_from_saved.txt
6 adb pull $TESTDIR/config/en.us/recog4_SHIP_bothtags5_from_saved.res recog4_SHIP_bothtags5_from_save…
8 adb pull $TESTDIR/config/en.us/linux_ship_a1__VCE_Pete_Gonzalez_from_saved.raw linux_ship_a1__VCE_…
9 adb pull $TESTDIR/config/en.us/linux_ship_a2__VCE_Andrew_Evans_from_saved.raw linux_ship_a2__VCE_…
10 adb pull $TESTDIR/config/en.us/linux_ship_a3__VCE_Peter_Wilson_from_saved.raw linux_ship_a3__VCE_…
11 adb pull $TESTDIR/config/en.us/linux_ship_a4__VCE_Edgar_Young_from_saved.raw linux_ship_a4__VCE_…
12 adb pull $TESTDIR/config/en.us/linux_ship_a5__VCE_John_Martinez_from_saved.raw linux_ship_a5__VCE_…
14 adb pull $TESTDIR/config/en.us/bothtags5_saved.g2g bothtags5_saved.g2g
Dadb_pull_system_usr_srec_bothtags5.sh5 adb pull $TESTDIR/config/en.us/out_SHIP_bothtags5.txt out_SHIP_bothtags5.txt
6 adb pull $TESTDIR/config/en.us/recog4_SHIP_bothtags5.res recog4_SHIP_bothtags5.res
8 adb pull $TESTDIR/config/en.us/linux_ship_a1__VCE_Pete_Gonzalez.raw linux_ship_a1__VCE_Pete_Gonzal…
9 adb pull $TESTDIR/config/en.us/linux_ship_a2__VCE_Andrew_Evans.raw linux_ship_a2__VCE_Andrew_Evan…
10 adb pull $TESTDIR/config/en.us/linux_ship_a3__VCE_Peter_Wilson.raw linux_ship_a3__VCE_Peter_Wilso…
11 adb pull $TESTDIR/config/en.us/linux_ship_a4__VCE_Edgar_Young.raw linux_ship_a4__VCE_Edgar_Young…
12 adb pull $TESTDIR/config/en.us/linux_ship_a5__VCE_John_Martinez.raw linux_ship_a5__VCE_John_Martin…
/external/chromium_org/build/android/pylib/instrumentation/
Dtest_runner.py84 self.flags = flag_changer.FlagChanger(self.adb, cmdline_file[0])
86 self.flags = flag_changer.FlagChanger(self.adb)
92 self.test_pkg.Install(self.adb)
106 self.adb.WaitForSdCardReady(20)
108 self.adb.PushIfNeeded(
110 os.path.join(self.adb.GetExternalStorage(), p))
120 self.adb.PushIfNeeded(host_test_files_path, '%s/%s/%s' % (
121 self.adb.GetExternalStorage(), TestRunner._DEVICE_DATA_DIR,
140 self.adb.TakeScreenshot(screenshot_name)
145 if not self.adb.IsRootEnabled():
[all …]
/external/chromium_org/build/android/gyp/util/
Dbuild_device.py29 self.adb = android_commands.AndroidCommands(self.id)
32 return self.adb.RunShellCommand(*args, **kwargs)
35 return self.adb.PushIfNeeded(*args, **kwargs)
41 return self.adb.Install(*args, **kwargs)
56 adb = android_commands.AndroidCommands(id)
59 is_online = adb.IsOnline()
62 cmd_output = adb.RunShellCommand(cmd)
67 has_root = adb.EnableAdbRoot()
69 cmd_output = adb.RunShellCommand(cmd)
/external/chromium_org/build/android/pylib/linker/
Dtest_case.py114 def _WriteCommandLineFile(adb, command_line, command_line_file): argument
118 adb.RunShellCommand('echo "%s" > %s' % (command_line, command_line_file))
153 def _WaitForLinkerTestStatus(adb, timeout): argument
166 def _StartActivityAndWaitForLinkerTestStatus(adb, timeout): argument
177 adb.StartRecordingLogcat(clear=True, filters=_LOGCAT_FILTERS)
181 adb.StartActivity(package=_PACKAGE_NAME,
193 adb.GetCurrentRecordedLogcat())
198 logs = adb.StopRecordingLogcat()
314 def _RunTest(self, adb): argument
335 adb = android_commands.AndroidCommands(device)
[all …]
/external/chromium_org/build/android/pylib/base/
Dbase_test_runner.py41 self.adb = android_commands.AndroidCommands(device=device)
42 self.tool = CreateTool(tool, self.adb)
58 self.adb.SetFileContents(self.adb.GetExternalStorage() + '/' +
86 push_size_before = self.adb.GetPushSizeInfo()
90 push_size_after = self.adb.GetPushSizeInfo()
104 self.adb.RemovePushedFiles()
127 Forwarder.Map(port_pairs, self.adb, self.tool)
132 Forwarder.UnmapDevicePort(device_port, self.adb)
156 if not ports.IsDevicePortUsed(self.adb, self._forwarder_device_port):
189 self.adb,
/external/chromium_org/third_party/openssl/openssl/patches/
Dtestssl.sh45 adb remount
46 adb shell rm -r $device
47 adb shell mkdir $device
51 adb push . $device
55 adb shell "echo \"string to make the random number generator think it has entropy\" >> $device/.rnd"
77 adb shell rm -r $device
/external/openssl/patches/
Dtestssl.sh45 adb remount
46 adb shell rm -r $device
47 adb shell mkdir $device
51 adb push . $device
55 adb shell "echo \"string to make the random number generator think it has entropy\" >> $device/.rnd"
77 adb shell rm -r $device
/external/chromium_org/third_party/openssl/openssl/android.testssl/
Dtestssl.sh45 adb remount
46 adb shell rm -r $device
47 adb shell mkdir $device
51 adb push . $device
55 adb shell "echo \"string to make the random number generator think it has entropy\" >> $device/.rnd"
77 adb shell rm -r $device
/external/openssl/android.testssl/
Dtestssl.sh45 adb remount
46 adb shell rm -r $device
47 adb shell mkdir $device
51 adb push . $device
55 adb shell "echo \"string to make the random number generator think it has entropy\" >> $device/.rnd"
77 adb shell rm -r $device

123456