Home
last modified time | relevance | path

Searched refs:process (Results 1 – 25 of 56) sorted by relevance

123

/tools/test/connectivity/acts/framework/tests/libs/proc/
Dprocess_test.py20 from acts.libs.proc.process import Process
21 from acts.libs.proc.process import ProcessError
63 process = Process('cmd').set_on_output_callback(callback)
64 process._on_output_callback()
74 process = Process('cmd').set_on_terminate_callback(callback)
75 process._on_terminate_callback()
87 process = Process('cmd')
92 process._process = mock.Mock()
95 process.start()
98 process.start()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DMemHealthParserTest.java54 Map<String, Long> process = processes.get("com.google.android.gm"); in testOneForegroundProc() local
55 assertEquals(10910, process.get("native_avg").longValue()); in testOneForegroundProc()
56 assertEquals(8011, process.get("dalvik_avg").longValue()); in testOneForegroundProc()
57 assertEquals(90454, process.get("pss_avg").longValue()); in testOneForegroundProc()
58 assertEquals(11136, process.get("native_peak").longValue()); in testOneForegroundProc()
59 assertEquals(9812, process.get("dalvik_peak").longValue()); in testOneForegroundProc()
60 assertEquals(95161, process.get("pss_peak").longValue()); in testOneForegroundProc()
61 assertEquals(8223, process.get("summary_java_heap_avg").longValue()); in testOneForegroundProc()
62 assertEquals(3852, process.get("summary_native_heap_avg").longValue()); in testOneForegroundProc()
63 assertEquals(1804, process.get("summary_code_avg").longValue()); in testOneForegroundProc()
[all …]
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/
DFtraceImporterState.kt57 thread.process.hint(tgid, name) in <lambda>()
58 return thread.process in <lambda>()
62 return ProcessModelFragment(InvalidId, hasIdCb = { process -> in <lambda>() method
63 val tgid = process.id in <lambda>()
66 existing.process.merge(process) in <lambda>()
68 pidMap.put(tgid, process.threadFor(tgid, process.name)) in <lambda>()
70 if (modelFragment.processes.none { it.id == process.id }) { in <lambda>()
71 modelFragment.processes.add(process) in <lambda>()
83 val process = in <lambda>() constant
86 thread = process.threadFor(pid, task) in <lambda>()
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/
DSchedulingProcessFragment.kt21 class SchedulingProcessFragment(val process: ProcessModelFragment, val thread: ThreadModelFragment,… constant in trebuchet.model.fragments.SchedulingProcessFragment
27 … fun switchProcess(process: ProcessModelFragment, thread: ThreadModelFragment, timestamp: Double) { in switchProcess()
34 _slices.add(SchedulingProcessFragment(process, thread, timestamp)) in switchProcess()
40 if (process.name != null) {
41 return process.name!!
43 return process.id.toString()
59 return process.id
DThreadModelFragment.kt24 class ThreadModelFragment(var id: Int, var process: ProcessModelFragment, var name: String? = null)… variable in trebuchet.model.fragments.ThreadModelFragment
31 if (this.process.id == InvalidId) this.process.id = tgid in hint()
32 if (this.process.name == null) this.process.name = processName in hint()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DDumpHeapCollector.java60 for (String process : mDumpheapThresholds.keySet()) { in collect()
63 String.format("dumpsys meminfo -c | grep %s", process)); in collect()
65 dumpFiles = takeDumpheap(device, output, process, mDumpheapThresholds.get(process)); in collect()
88 List<File> takeDumpheap(ITestDevice device, String output, String process, Long threshold) in takeDumpheap() argument
92 CLog.i("Skipping %s -- no process found.", process); in takeDumpheap()
100 if (item.getName(pid).equals(process) && item.getPss(pid) > threshold) { in takeDumpheap()
101 File dump = device.dumpHeap(process, getDevicePath(process)); in takeDumpheap()
114 private String getDevicePath(String process) { in getDevicePath() argument
116 "%s/%s_%s_%s.hprof", DUMPHEAP_OUTPUT, process, SUFFIX, getFileSuffix()); in getDevicePath()
/tools/acloud/internal/lib/
Dssh.py51 process = subprocess.Popen(cmd, shell=True, stdin=None,
55 timer = threading.Timer(timeout, process.kill)
57 process.wait()
60 return process.returncode
78 process = subprocess.Popen(cmd, shell=True, stdin=None,
82 timer = threading.Timer(timeout, process.kill)
84 process.communicate()
87 return process.returncode
111 process = subprocess.Popen(cmd, shell=True, stdin=None,
115 timer = threading.Timer(timeout, process.kill)
[all …]
/tools/test/connectivity/acts/tests/google/bt/performance/
DBtInterferenceRSSITest.py69 process = Process(target=self.atten_sequence_worker,
72 attenuation_processes.append(process)
74 for process in attenuation_processes:
75 process.start()
77 for process in attenuation_processes:
78 process.terminate()
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/
Dlogcat.py20 from acts.libs.proc.process import Process
96 process = Process('adb -s %s logcat -T 1 -v year %s' %
99 process.set_on_output_callback(_log_line_func(logger, timestamp_tracker))
100 process.set_on_terminate_callback(
102 return process
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/task/
DImportTaskTest.kt46 val process = model.processes.values.find { it.name == "surfaceflinger" }!! in <lambda>() constant
47 val thread = process.threads.find { it.name == "surfaceflinger" }!! in <lambda>()
53 val counter = process.counters.find { it.name == counterName } in <lambda>()
63 val process = model.processes[6381]!! in <lambda>() constant
64 val thread = process.threads.find { it.name == "RenderThread" }!! in <lambda>()
67 val inputEvent4 = process.asyncSlices.find { in <lambda>()
/tools/test/connectivity/acts/framework/tests/controllers/android_lib/
Dlogcat_test.py156 with self.patch('log_stream'), self.patch('Process') as process:
159 self.assertIn('S3R14L', process.call_args[0][0])
163 process = logcat.create_logcat_keepalive_process('S3R14L', 'dir')
165 self.assertEqual(process.set_on_output_callback.called, True)
169 process = logcat.create_logcat_keepalive_process('S3R14L', 'dir')
171 self.assertEqual(process.set_on_terminate_callback.called, True)
/tools/platform-compat/build/
DAndroid.bp18 name: "process-compat-config",
32 name: "process-compat-config-test",
33 main: "process-compat-config-test.py",
36 "process-compat-config-test.py",
DTEST_MAPPING4 "name": "process-compat-config-test",
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/
DProcessPanel.kt26 class ProcessPanel(val process: ProcessModel, renderState: RenderState) : JPanel(GridBagLayout()) { constant in traceviewer.ui.ProcessPanel
32 add(ProcessLabel(process.name), constraints)
33 process.threads.forEach { in <lambda>()
/tools/asuite/asuite_plugin/src/java/com/android/atest/commandAdapter/
DAtestProcessListener.java19 import com.intellij.execution.process.ProcessEvent;
20 import com.intellij.execution.process.ProcessListener;
21 import com.intellij.execution.process.ProcessOutputTypes;
DCommandRunner.java27 import com.intellij.execution.process.KillableColoredProcessHandler;
28 import com.intellij.execution.process.ProcessListener;
/tools/trebuchet/trebuchet/analyzer/src/
DAnalyzer.kt38 val process = uiThread.process in measureStartup() constant
39 val rtThread = process.threads.first { it.name == "RenderThread" } in measureStartup()
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLiveRebootStressTest.py542 def _crash_recovery_test(self, process, *args): argument
561 self.dut.droid.logI("======== Trigger %s crash ========" % process)
564 if process == "modem":
568 elif process == "modem-crash":
572 elif process == "sim":
585 if process == "rild":
588 process = "qcrild"
590 process)
591 process_pid = self.dut.adb.shell("pidof %s" % process)
592 self.dut.log.info("Pid of %s is %s", process, process_pid)
[all …]
/tools/trebuchet/trebuchet/startup-common/src/
DStartupCommon.kt110 for (process in this.processes.values) { in findProcess() method
111 if (process.fuzzyNameMatch(queryName)) { in findProcess()
113 process. in findProcess()
118 min() ?: throw MissingProcessInfoException(process.id) in findProcess()
121 return process in findProcess()
/tools/acloud/create/
Dlocal_image_local_instance.py276 process = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT,
279 timer = threading.Timer(timeout, process.kill)
281 process.wait()
284 if process.returncode == 0:
288 "%s/launcher.log" % (str(process.returncode), cvd_runtime_dir))
Dlocal_image_local_instance_test.py213 process = mock.MagicMock()
214 process.wait.return_value = True
215 process.returncode = 0
216 self.Patch(subprocess, "Popen", return_value=process)
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DRunHostCommandTargetPreparer.java173 for (Process process : mBgProcesses) { in tearDown()
174 process.destroy(); in tearDown()
235 Process process = in runBgCommandList() local
240 if (process == null) { in runBgCommandList()
244 mBgProcesses.add(process); in runBgCommandList()
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/
DThreadModel.kt21 class ThreadModel constructor(val process: ProcessModel, fragment: ThreadModelFragment) { constant in trebuchet.model.ThreadModel
/tools/platform-compat/java/android/processor/compat/
DSingleAnnotationProcessor.java79 public boolean process( in process() method in SingleAnnotationProcessor
109 process(annotation, annotatedElements); in process()
121 protected abstract void process(TypeElement annotation, in process() method in SingleAnnotationProcessor
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/
Dmain.cpp126 source->process(state, source); in android_main()

123