Home
last modified time | relevance | path

Searched refs:proc (Results 1 – 15 of 15) sorted by relevance

/cts/tests/app/src/android/app/cts/
DBaseProcessInstrumentation.java41 final String proc = getProcessName(); in onCreate() local
43 if (!proc.equals(appProc)) { in onCreate()
45 "getProcessName()s mismatch. Instr=%s App=%s", proc, appProc)); in onCreate()
49 result.putBoolean(proc, true); in onCreate()
50 if (proc.equals(mMainProc)) { in onCreate()
DBaseChainedInstrumentation.java47 final String proc = getProcessName(); in onCreate() local
49 if (!proc.equals(appProc)) { in onCreate()
51 "getProcessName()s mismatch. Instr=%s App=%s", proc, appProc)); in onCreate()
54 result.putBoolean(proc, true); in onCreate()
DServiceTest.java1775 boolean isEquivalentTo(ProcessRecordProto proc) { in isEquivalentTo() argument
1776 int procAppId = proc.isolatedAppId != 0 ? proc.isolatedAppId : UserHandle.getAppId( in isEquivalentTo()
1777 proc.uid); in isEquivalentTo()
1780 return procAppId == getAppId() && proc.userId == getUserId(); in isEquivalentTo()
1843 for (ProcessRecordProto proc : procsList) { in getLruProcesses()
1844 procs.put(proc.lruIndex, proc); in getLruProcesses()
1853 String printProc(int i, ProcessRecordProto proc) { in printProc() argument
1854 return "#" + i + ": " + proc.processName in printProc()
1855 + " pid=" + proc.pid + " uid=" + proc.uid in printProc()
1856 + (proc.isolatedAppId != 0 ? " isolated=" + proc.isolatedAppId : ""); in printProc()
[all …]
DActivityManagerTest.java1221 RunningAppProcessInfo proc = getRunningAppProcessInfo(SIMPLE_PACKAGE_NAME); in testKillingPidsOnImperceptible() local
1222 assertNotNull(proc); in testKillingPidsOnImperceptible()
1227 mActivityManager.killProcessesWhenImperceptible(new int[]{proc.pid}, reason); in testKillingPidsOnImperceptible()
1245 mActivityManager.killProcessesWhenImperceptible(new int[]{proc.pid}, reason); in testKillingPidsOnImperceptible()
1252 proc.pid, SIMPLE_PACKAGE_NAME))); in testKillingPidsOnImperceptible()
1271 proc.pid, SIMPLE_PACKAGE_NAME))); in testKillingPidsOnImperceptible()
1286 proc.pid, SIMPLE_PACKAGE_NAME))); in testKillingPidsOnImperceptible()
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/
DDumpProtoUtils.java95 if (pop.proc == null || !processName.equals(pop.proc.processName)) { in processExists()
111 if (pop.proc == null || !processName.equals(pop.proc.processName)) { in getProcessProcState()
/cts/tests/app/FgsTimeoutTest/src/android/app/cts/fgstimeouttest/
DDumpProtoUtils.java85 if (pop.proc == null || !processName.equals(pop.proc.processName)) { in processExists()
132 if (pop.proc == null || !processName.equals(pop.proc.processName)) { in getProcessProcState()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DRootProcessScanner.java70 File proc = new File("/proc"); in getRootProcessDirs() local
71 if (!proc.exists()) { in getRootProcessDirs()
72 throw new FileNotFoundException(proc + " is missing (man 5 proc)"); in getRootProcessDirs()
76 File[] processDirs = proc.listFiles(); in getRootProcessDirs()
/cts/hostsidetests/securitybulletin/res/
Dcve_2021_0691.sh2 echo -n 'u:r:system_app:s0' > /proc/self/attr/current
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontManagerTest.java164 Process proc = Runtime.getRuntime().exec(new String[] { "cmd", "font", command }); in assertSecurityException() local
167 assertThat(proc.waitFor()).isNotEqualTo(0); in assertSecurityException()
170 assertThat(readAll(proc.getInputStream())).isEmpty(); in assertSecurityException()
173 List<String> errors = readAll(proc.getErrorStream()); in assertSecurityException()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DUtils.java188 final Process proc = new ProcessBuilder(cmd).redirectErrorStream(true).start(); in logCommand() local
191 copy(proc.getInputStream(), buf); in logCommand()
192 final int res = proc.waitFor(); in logCommand()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java476 final Process proc = new ProcessBuilder(cmd).redirectErrorStream(true).start(); in logCommand() local
479 copy(proc.getInputStream(), buf); in logCommand()
480 final int res = proc.waitFor(); in logCommand()
/cts/apps/CameraITS/utils/
Dits_session_utils.py280 proc = subprocess.Popen(command.split(), stdout=subprocess.PIPE)
282 output, error = proc.communicate()
335 proc = subprocess.Popen(
337 error = proc.communicate()[1]
377 proc = subprocess.Popen(
379 logcat = proc.stdout
384 proc.kill()
385 proc.communicate()
/cts/hostsidetests/security/src/android/security/cts/
DSELinuxHostTest.java1527 … ProcessDetails proc = new ProcessDetails(domainLabel, user, pid, ppid, procTitle); in createProcMap() local
1531 procMap.get(domainLabel).add(proc); in createProcMap()
1538 exeMap.get(procTitle).add(proc); in createProcMap()
/cts/tests/tests/security/jni/
Dandroid_security_cts_cve_2019_2213_Test.c1854 u64 proc = r64(bnd + 0xd0); in set_up_w128() local
1855 u64 alloc = proc + 0x1c0; in set_up_w128()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerTest.java909 Process proc = Runtime.getRuntime().exec("cmd notification suspend_package " in testSuspendPackage_withoutShellPermission() local
914 new BufferedReader(new InputStreamReader(proc.getInputStream())); in testSuspendPackage_withoutShellPermission()
924 proc.waitFor(); in testSuspendPackage_withoutShellPermission()