Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 79) sorted by relevance

1234

/cts/tools/incremental-cts/testdata/
Dperf_dump.txt2 pid 23365, tid 23365, addr 0x58b817b000, len 0x3228000
5 sample_id: pid 23365, tid 23365
10 pid 23365, tid 23365, addr 0x58b817b000, len 0x3228000
13 sample_id: pid 23365, tid 23365
18 pid 23365, tid 23365, comm simpleperf
19 sample_id: pid 0, tid 0
24 pid 23365, tid 23365, comm deqp-binary64
25 sample_id: pid 23365, tid 23365
30 pid 23365, tid 23365, addr 0x58b817b000, len 0x3228000
33 sample_id: pid 23365, tid 23365
[all …]
/cts/tests/app/src/android/app/cts/
DActivityManagerProcessErrorStateInfoTest.java42 int pid = 2; in testWriteToParcel() local
50 mErrorStateInfo.pid = pid; in testWriteToParcel()
64 assertEquals(pid, values.pid); in testWriteToParcel()
76 int pid = 2; in testReadFromParcel() local
84 mErrorStateInfo.pid = pid; in testReadFromParcel()
98 assertEquals(pid, values.pid); in testReadFromParcel()
DActivityManager_RunningServiceInfoTest.java36 mRunningServiceInfo.pid = 1; in setUp()
63 assertEquals(1, values.pid); in testWriteToParcel()
83 assertEquals(1, values.pid); in testReadFromParcel()
DActivityManager_RunningAppProcessInfoTest.java51 assertEquals(rap.pid, r.pid); in testRunningAppProcessInfo()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DProcessReference.java35 ProcessReference(Package pkg, int pid, int uid, UserReference user) { in ProcessReference() argument
40 mPid = pid; in ProcessReference()
55 public int pid() { in pid() method in ProcessReference
77 int pid = pid(); in kill() local
98 return other == null ? -1 : other.pid(); in kill()
99 }).toNotBeEqualTo(pid) in kill()
/cts/tests/tests/externalservice/src/android/externalservice/cts/
DExternalServiceTest.java144 assertFalse(id.uid == 0 || id.pid == 0); in testBindExternalService()
146 assertNotEquals(Process.myPid(), id.pid); in testBindExternalService()
167 assertFalse(creatorId.uid == 0 || creatorId.pid == 0); in testBindExternalServiceWithRunningOwn()
201 assertFalse(creatorServiceId.uid == 0 || creatorId.pid == 0); in testBindExternalServiceWithRunningOwn()
213 assertFalse(serviceId.uid == 0 || serviceId.pid == 0); in testBindExternalServiceWithRunningOwn()
223 assertNotEquals(myPid, creatorId.pid); in testBindExternalServiceWithRunningOwn()
224 assertNotEquals(myPid, creatorServiceId.pid); in testBindExternalServiceWithRunningOwn()
225 assertNotEquals(myPid, serviceId.pid); in testBindExternalServiceWithRunningOwn()
229 assertNotEquals(creatorId.pid, creatorServiceId.pid); in testBindExternalServiceWithRunningOwn()
230 assertNotEquals(creatorId.pid, serviceId.pid); in testBindExternalServiceWithRunningOwn()
[all …]
/cts/tests/tests/os/jni/
Dandroid_os_cts_OSFeatures.cpp63 pid_t pid = fork(); in android_os_cts_OSFeatures_hasSeccompSupport() local
64 if (pid == -1) { in android_os_cts_OSFeatures_hasSeccompSupport()
69 if (pid == 0) { in android_os_cts_OSFeatures_hasSeccompSupport()
76 TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in android_os_cts_OSFeatures_hasSeccompSupport()
/cts/hostsidetests/seccomp/app/jni/
Dandroid_seccomp_cts_app_SeccompDeviceTest.cpp42 int pid = fork(); in doTestSyscallBlocked() local
43 if (pid == 0) { in doTestSyscallBlocked()
48 int ret = waitpid(pid, &status, 0); in doTestSyscallBlocked()
49 if (ret != pid) { in doTestSyscallBlocked()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DCorruptApkTests.java62 SystemServerInformation(long pid, long startTime) { in SystemServerInformation() argument
63 this.mPid = pid; in SystemServerInformation()
82 long pid = 0; in retrieveInfo() local
84 pid = Long.parseLong(pidResult); in retrieveInfo()
91 String pidStats = device.executeShellCommand("cat /proc/" + pid + "/stat"); in retrieveInfo()
92 assertNotNull("Failed to retrieve stat of system_server with pid '" + pid + "'", pidStats); in retrieveInfo()
100 return new SystemServerInformation(pid, startTime); in retrieveInfo()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8427/
Dpoc.c85 int pid; in main() local
87 pid = fork(); in main()
88 if(pid){ in main()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecResourceTest.java77 ProcessInfo(int pid, int uid) { in ProcessInfo() argument
78 this.pid = pid; in ProcessInfo()
81 public final int pid; field in MediaCodecResourceTest.ProcessInfo
95 processInfo.pid, processInfo.uid); in testCreateCodecForAnotherProcessWithoutPermissionsThrows()
128 Log.i(TAG, "Creating MediaCodecs on behalf of pid " + highPriorityProcess.pid); in testLowerPriorityProcessFailsToReclaimResources()
135 highPriorityProcess.pid, highPriorityProcess.uid); in testLowerPriorityProcessFailsToReclaimResources()
156 Log.i(TAG, "Creating MediaCodecs on behalf of pid " + lowPriorityProcess.pid); in testLowerPriorityProcessFailsToReclaimResources()
162 lowPriorityProcess.pid, lowPriorityProcess.uid); in testLowerPriorityProcessFailsToReclaimResources()
215 Log.i(TAG, "Creating MediaCodecs on behalf of pid " + lowPriorityProcess.pid); in testHigherPriorityProcessReclaimsResources()
222 lowPriorityProcess.pid, lowPriorityProcess.uid); in testHigherPriorityProcessReclaimsResources()
[all …]
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/
DProcessReferenceTest.java49 int pidBefore = testApp.process().pid(); in kill_killsProcess()
54 () -> testApp.process() == null ? -1 : testApp.process().pid()) in kill_killsProcess()
66 int pidBefore = testApp.process().pid(); in crash_crashesProcess()
71 () -> testApp.process() == null ? -1 : testApp.process().pid()) in crash_crashesProcess()
/cts/hostsidetests/os/src/android/os/cts/
DOsHostTests.java116 String pid = null; in testForegroundServiceBadNotification() local
125 pid = matcher.group(1); in testForegroundServiceBadNotification()
130 assertTrue("Didn't find test service statement in logcat", pid != null); in testForegroundServiceBadNotification()
132 final String procStr = "/proc/" + pid; in testForegroundServiceBadNotification()
134 assertTrue("Looking for nonexistence of service process " + pid, in testForegroundServiceBadNotification()
DProcfsHostTests.java180 int pid = -1; in startTestApp() local
187 pid = Integer.parseInt(m.group(1)); in startTestApp()
195 pid > 0); in startTestApp()
196 return pid; in startTestApp()
221 private int[] lookForTidsInProcess(int pid) throws Exception { in lookForTidsInProcess() argument
222 String taskPath = "/proc/" + pid + "/task"; in lookForTidsInProcess()
/cts/tests/aslr/src/
DAslrMallocTest.cpp74 auto pid = fork(); in GetAddress() local
75 ASSERT_TRUE(pid != -1); in GetAddress()
77 if (pid == 0) { in GetAddress()
99 ASSERT_TRUE(waitpid(pid, &status, 0) != -1); in GetAddress()
/cts/hostsidetests/jdwpsecurity/app/src/com/android/cts/jdwpsecurity/
DJdwpTest.java24 int pid = android.os.Process.myPid(); in main() local
25 System.out.println(pid); in main()
/cts/hostsidetests/os/test-apps/ProcfsTestApp/src/android/os/procfs/
DProcfsTest.java30 int pid = android.os.Process.myPid(); in onCreate() local
31 Log.i(TAG, "PID is " + pid); in onCreate()
/cts/hostsidetests/atrace/src/android/atrace/cts/
DPidTidPair.java24 public final int pid; field in PidTidPair
29 pid = Integer.parseInt(metrics.get("AtraceDeviceTests_pid")); in PidTidPair()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DAoapInterface.java125 final int pid = device.getProductId(); in isDeviceInAoapMode() local
127 && (pid == USB_ACCESSORY_PRODUCT_ID in isDeviceInAoapMode()
128 || pid == USB_ACCESSORY_ADB_PRODUCT_ID); in isDeviceInAoapMode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DAoapInterface.java130 final int pid = device.getProductId(); in isDeviceInAoapMode() local
132 && (pid == USB_ACCESSORY_PRODUCT_ID in isDeviceInAoapMode()
133 || pid == USB_ACCESSORY_ADB_PRODUCT_ID); in isDeviceInAoapMode()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2023_21145.java75 Optional<Integer> pid = ProcessUtil.pidOf(device, processName); in waitAndGetPid() local
76 currentPid = pid.isPresent() ? pid.get() : mNoPidFound; in waitAndGetPid()
/cts/tests/tests/nativemedia/resourceobserver/src/
DResourceObserverNativeTest.cpp54 int32_t pid; member
62 MediaObservableEvent event, int32_t uid, int32_t pid, in onStatusChanged()
65 << ", pid: " << pid << ", " << toString(observables[0]).c_str(); in onStatusChanged()
70 mLastEvent.pid = pid; in onStatusChanged()
145 EXPECT_EQ(event.pid, getpid()); in verifyEvent()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-10229/
Dpoc.c97 for (pid_t pid = wait(&status); pid > 0; pid = wait(&status)); in main() local
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DUserControlDisabledPackagesTest.java123 String pid = executeShellCommand(String.format("pidof %s", packageName)).trim(); in isPackageRunning() local
124 return pid.length() > 0; in isPackageRunning()
129 String pid = executeShellCommand(String.format("pidof %s", SIMPLE_APP_PKG)).trim(); in assertPackageRunningState() local
131 final boolean samePid = pid.equals(argPid); in assertPackageRunningState()
/cts/tests/tests/externalservice/common/src/android/externalservice/common/
DRunningServiceInfo.java41 public int pid; field in RunningServiceInfo
54 dest.writeInt(pid); in writeToParcel()
65 info.pid = source.readInt();

1234