/cts/apps/CameraITS/tools/ |
D | rotation_rig.py | 36 def cmd_send(vid, pid, cmd_str): argument 44 hw_list = hw.Device(ROT_RIG_DEVICE, vid, pid, '1', '0') 57 print 'Port %s:%s is not open' % (vid, pid) 61 def set_relay_channel_state(vid, pid, channel, relay_state): argument 73 cmd_send(vid, pid, RELAY_SET_CMD + channel + '.' + relay_state + '\r\n') 91 pid = '0x' + rotator_ids[1] 98 pid = '0x' + ROT_RIG_PID 105 pid = '0x' + ROT_RIG_PID 118 set_relay_channel_state(vid, pid, ch, 'ON') 120 set_relay_channel_state(vid, pid, ch, 'OFF')
|
D | hardware.py | 56 def __init__(self, name, vid, pid, cfg, inf): argument 59 self._build_device(name, vid, pid, cfg, inf) 77 def _build_device(self, name, vid, pid, cfg, inf): argument 93 entry[self.KEY_PID] = int(pid, 16)
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerProcessErrorStateInfoTest.java | 42 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()
|
D | ActivityManager_RunningServiceInfoTest.java | 36 mRunningServiceInfo.pid = 1; in setUp() 63 assertEquals(1, values.pid); in testWriteToParcel() 83 assertEquals(1, values.pid); in testReadFromParcel()
|
D | ActivityManager_RunningAppProcessInfoTest.java | 51 assertEquals(rap.pid, r.pid); in testRunningAppProcessInfo()
|
/cts/tests/tests/externalservice/src/android/externalservice/cts/ |
D | ExternalServiceTest.java | 146 assertFalse(id.uid == 0 || id.pid == 0); in testBindExternalService() 148 assertNotEquals(Process.myPid(), id.pid); in testBindExternalService() 169 assertFalse(creatorId.uid == 0 || creatorId.pid == 0); in testBindExternalServiceWithRunningOwn() 203 assertFalse(creatorServiceId.uid == 0 || creatorId.pid == 0); in testBindExternalServiceWithRunningOwn() 215 assertFalse(serviceId.uid == 0 || serviceId.pid == 0); in testBindExternalServiceWithRunningOwn() 225 assertNotEquals(myPid, creatorId.pid); in testBindExternalServiceWithRunningOwn() 226 assertNotEquals(myPid, creatorServiceId.pid); in testBindExternalServiceWithRunningOwn() 227 assertNotEquals(myPid, serviceId.pid); in testBindExternalServiceWithRunningOwn() 231 assertNotEquals(creatorId.pid, creatorServiceId.pid); in testBindExternalServiceWithRunningOwn() 232 assertNotEquals(creatorId.pid, serviceId.pid); in testBindExternalServiceWithRunningOwn() [all …]
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | CorruptApkTests.java | 54 SystemServerInformation(long pid, long startTime) { in SystemServerInformation() argument 55 this.mPid = pid; in SystemServerInformation() 74 long pid = 0; in retrieveInfo() local 76 pid = Long.parseLong(pidResult); in retrieveInfo() 83 String pidStats = device.executeShellCommand("cat /proc/" + pid + "/stat"); in retrieveInfo() 84 assertNotNull("Failed to retrieve stat of system_server with pid '" + pid + "'", pidStats); in retrieveInfo() 92 return new SystemServerInformation(pid, startTime); in retrieveInfo()
|
/cts/tests/tests/os/jni/ |
D | android_os_cts_OSFeatures.cpp | 63 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/ |
D | android_seccomp_cts_app_SeccompDeviceTest.cpp | 42 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/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputBindingTest.java | 45 int pid = 2; in testInputBinding() local 46 InputBinding inputBinding = new InputBinding(bic, binder, uid, pid); in testInputBinding() 51 assertEquals(pid, inputBinding.getPid()); in testInputBinding() 61 assertEquals(pid, target.getPid()); in testInputBinding()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | ProcfsHostTests.java | 167 int pid = -1; in startTestApp() local 174 pid = Integer.parseInt(m.group(1)); in startTestApp() 182 pid > 0); in startTestApp() 183 return pid; in startTestApp() 208 private int[] lookForTidsInProcess(int pid) throws Exception { in lookForTidsInProcess() argument 209 String taskPath = "/proc/" + pid + "/task"; in lookForTidsInProcess()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8427/ |
D | poc.c | 85 int pid; in main() local 87 pid = fork(); in main() 88 if(pid){ in main()
|
/cts/tests/tests/externalservice/common/src/android/externalservice/common/ |
D | RunningServiceInfo.java | 31 public int pid; field in RunningServiceInfo 44 dest.writeInt(pid); in writeToParcel() 55 info.pid = source.readInt();
|
/cts/tests/aslr/src/ |
D | AslrMallocTest.cpp | 74 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/jdwptunnel/src/android/jdwptunnel/cts/ |
D | JdwpTunnelTest.java | 98 private String forwardJdwp(String pid) throws Exception { in forwardJdwp() argument 100 String result = mDevice.executeAdbCommand("forward", "tcp:0", "jdwp:" + pid); in forwardJdwp() 108 result = mDevice.executeAdbCommand("forward", "tcp:" + port, "jdwp:" + pid); in forwardJdwp() 119 String pid = ""; in startupTest() local 120 while ((pid = mDevice.executeShellCommand( in startupTest() 128 String port = forwardJdwp(pid); in startupTest()
|
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
D | AoapInterface.java | 125 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/ |
D | AoapInterface.java | 130 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/jdwpsecurity/app/src/com/android/cts/jdwpsecurity/ |
D | JdwpTest.java | 24 int pid = android.os.Process.myPid(); in main() local 25 System.out.println(pid); in main()
|
/cts/hostsidetests/atrace/src/android/atrace/cts/ |
D | PidTidPair.java | 24 public final int pid; field in PidTidPair 29 pid = Integer.parseInt(metrics.get("AtraceDeviceTests_pid")); in PidTidPair()
|
D | TraceResult.java | 31 public int getPid() { return mPidTidPair.pid; } in getPid()
|
/cts/hostsidetests/os/test-apps/ProcfsTestApp/src/android/os/procfs/ |
D | ProcfsTest.java | 30 int pid = android.os.Process.myPid(); in onCreate() local 31 Log.i(TAG, "PID is " + pid); in onCreate()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-10229/ |
D | poc.c | 97 for (pid_t pid = wait(&status); pid > 0; pid = wait(&status)); in main() local
|
/cts/suite/audio_quality/lib/src/ |
D | SignalProcessingImpl.cpp | 71 pid_t pid; in init() local 72 if ((pid = fork()) < 0) { in init() 75 } else if (pid == 0) { // child in init() 83 mChildPid = pid; in init()
|
/cts/hostsidetests/security/src/android/cts/security/ |
D | SELinuxHostTest.java | 1282 public int pid; field in SELinuxHostTest.ProcessDetails 1290 ProcessDetails(String label, String user, int pid, int ppid, String procTitle) { in ProcessDetails() argument 1293 this.pid = pid; in ProcessDetails() 1302 + " pid: " + pid in toString() 1324 int pid = Integer.parseInt(m.group(3)); in createProcMap() local 1327 ProcessDetails proc = new ProcessDetails(domainLabel, user, pid, ppid, procTitle); in createProcMap() 1333 kernelParentThreadpid = pid; in createProcMap() 1359 return (pid == kernelParentThreadpid || ppid == kernelParentThreadpid); in isKernel()
|
/cts/tests/tests/externalservice/service/src/android/externalservice/service/ |
D | BaseService.java | 60 serviceInfo.pid = Process.myPid(); in handleMessage()
|