Home
last modified time | relevance | path

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

123

/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DObd2CommandTest.java49 void checkLiveFrameIntCommand(int pid, String responseBytes, int expectedResponse) { in checkLiveFrameIntCommand() argument
50 String[] commandToSend = new String[] {String.format("01%02X\r", pid)}; in checkLiveFrameIntCommand()
53 new String[] {String.format("41 %02X %s", pid, responseBytes), OBD2_PROMPT}; in checkLiveFrameIntCommand()
65 Obd2Command.getLiveFrameCommand(Obd2Command.getIntegerCommand(pid)); in checkLiveFrameIntCommand()
71 assertTrue("live frame command " + pid + " caused an exception: " + e, false); in checkLiveFrameIntCommand()
77 void checkLiveFrameFloatCommand(int pid, String responseBytes, float expectedResponse) { in checkLiveFrameFloatCommand() argument
78 String[] commandToSend = new String[] {String.format("01%02X\r", pid)}; in checkLiveFrameFloatCommand()
81 new String[] {String.format("41 %02X %s", pid, responseBytes), OBD2_PROMPT}; in checkLiveFrameFloatCommand()
93 Obd2Command.getLiveFrameCommand(Obd2Command.getFloatCommand(pid)); in checkLiveFrameFloatCommand()
99 assertTrue("live frame command " + pid + " caused an exception: " + e, false); in checkLiveFrameFloatCommand()
[all …]
/packages/services/Car/procfs-inspector/client/src/com/android/car/procfsinspector/
DProcessInfo.java34 public final int pid; field in ProcessInfo
37 public ProcessInfo(int pid, int uid) { in ProcessInfo() argument
38 this.pid = pid; in ProcessInfo()
43 this.pid = in.readInt(); in ProcessInfo()
54 dest.writeInt(pid); in writeToParcel()
62 return processInfo.pid == pid && processInfo.uid == uid; in equals()
70 return Objects.hash(pid, uid); in hashCode()
75 return String.format("pid = %d, uid = %d", pid, uid); in toString()
/packages/services/Car/service/src/com/android/car/
DSystemActivityMonitoringService.java193 public boolean isInForeground(int pid, int uid) { in isInForeground() argument
199 if (pids.contains(pid)) { in isInForeground()
347 private void handleForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) { in handleForegroundActivitiesChanged() argument
355 pids.add(pid); in handleForegroundActivitiesChanged()
357 doHandlePidGoneLocked(pid, uid); in handleForegroundActivitiesChanged()
362 private void handleProcessDied(int pid, int uid) { in handleProcessDied() argument
364 doHandlePidGoneLocked(pid, uid); in handleProcessDied()
368 private void doHandlePidGoneLocked(int pid, int uid) { in doHandlePidGoneLocked() argument
371 pids.remove(pid); in doHandlePidGoneLocked()
424 public void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) { in onForegroundActivitiesChanged() argument
[all …]
DAppFocusService.java262 public boolean isFocusOwner(int uid, int pid, int appType) { in isFocusOwner() argument
266 return clientInfo.getUid() == uid && clientInfo.getPid() == pid; in isFocusOwner()
276 void onFocusAcquired(int appType, int uid, int pid); in onFocusAcquired() argument
277 void onFocusAbandoned(int appType, int uid, int pid); in onFocusAbandoned() argument
359 private ClientInfo(ClientHolder holder, IAppFocusListener binder, int uid, int pid, in ClientInfo() argument
363 this.mPid = pid; in ClientInfo()
395 int uid, int pid) { in OwnershipClientInfo() argument
398 this.mPid = pid; in OwnershipClientInfo()
/packages/apps/TV/tuner/src/com/android/tv/tuner/ts/
DTsParser.java85 void onEitPidDetected(int pid); in onEitPidDetected() argument
91 void onEttPidDetected(int pid); in onEttPidDetected() argument
122 public SectionStream(int pid) { in SectionStream() argument
123 mPid = pid; in SectionStream()
341 public final int pid; field in TsParser.EventSourceEntry
344 public EventSourceEntry(int pid, int sourceId) { in EventSourceEntry() argument
345 this.pid = pid; in EventSourceEntry()
352 result = 31 * result + pid; in hashCode()
361 return pid == another.pid && sourceId == another.sourceId; in equals()
407 for (int pid : mEITPids) { in handleEvents()
[all …]
DEventDetector.java73 public void onEitPidDetected(int pid) {
74 startListening(pid);
126 public void onEttPidDetected(int pid) {
127 startListening(pid);
296 private void startListening(int pid) { in startListening() argument
297 if (mPidSet.contains(pid)) { in startListening()
300 mPidSet.add(pid); in startListening()
301 mTunerHal.addPidFilter(pid, Tuner.FILTER_TYPE_OTHER); in startListening()
/packages/services/Car/car-bugreportd/
Dmain.cpp278 bool waitpid_with_timeout(pid_t pid, int timeout_secs, int* status) { in waitpid_with_timeout() argument
309 pid_t child_pid = waitpid(pid, status, WNOHANG); in waitpid_with_timeout()
310 if (child_pid != pid) { in waitpid_with_timeout()
312 ALOGE("*** Waiting for pid %d, got pid %d instead\n", pid, child_pid); in waitpid_with_timeout()
323 pid_t pid = fork(); in runCommand() local
326 if (pid < 0) { in runCommand()
328 return pid; in runCommand()
332 if (pid == 0) { in runCommand()
351 bool ret = waitpid_with_timeout(pid, timeout_secs, &status); in runCommand()
355 ALOGE("command %s timed out (killing pid %d)", file, pid); in runCommand()
[all …]
/packages/services/Car/service/src/com/android/car/cluster/
DInstrumentClusterService.java198 public void onFocusAcquired(int appType, int uid, int pid) { in onFocusAcquired() argument
199 changeNavContextOwner(appType, uid, pid, true); in onFocusAcquired()
203 public void onFocusAbandoned(int appType, int uid, int pid) { in onFocusAbandoned() argument
204 changeNavContextOwner(appType, uid, pid, false); in onFocusAbandoned()
207 private void changeNavContextOwner(int appType, int uid, int pid, boolean acquire) { in changeNavContextOwner() argument
213 ContextOwner requester = new ContextOwner(uid, pid); in changeNavContextOwner()
238 service.setNavigationContextOwner(owner.uid, owner.pid); in notifyNavContextOwnerChanged()
309 final int pid; field in InstrumentClusterService.ContextOwner
311 ContextOwner(int uid, int pid) { in ContextOwner() argument
313 this.pid = pid; in ContextOwner()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java43 public final int pid; field in LocalCallingIdentity
47 private LocalCallingIdentity(int pid, int uid, String packageNameUnchecked) { in LocalCallingIdentity() argument
48 this.pid = pid; in LocalCallingIdentity()
175 .checkPermissionReadAudio(false, pid, uid, getPackageName()); in hasPermissionInternal()
178 .checkPermissionReadVideo(false, pid, uid, getPackageName()); in hasPermissionInternal()
181 .checkPermissionReadImages(false, pid, uid, getPackageName()); in hasPermissionInternal()
184 .checkPermissionWriteAudio(false, pid, uid, getPackageName()); in hasPermissionInternal()
187 .checkPermissionWriteVideo(false, pid, uid, getPackageName()); in hasPermissionInternal()
190 .checkPermissionWriteImages(false, pid, uid, getPackageName()); in hasPermissionInternal()
214 .checkPermission(WRITE_MEDIA_STORAGE, pid, uid) == PERMISSION_GRANTED; in isSystemInternal()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java147 public void onForegroundActivitiesChanged(int pid, int uid, in onForegroundActivitiesChanged() argument
154 foregroundPids.put(pid, true); in onForegroundActivitiesChanged()
156 foregroundPids.delete(pid); in onForegroundActivitiesChanged()
169 if (DBG) Log.d(TAG, "Foreground changed, PID: " + Integer.toString(pid) + " UID: " + in onForegroundActivitiesChanged()
189 public void onForegroundServicesChanged(int pid, int uid, int fgServiceTypes) { in onForegroundServicesChanged() argument
193 public void onProcessDied(int pid, int uid) throws RemoteException { in onProcessDied() argument
195 Integer.toString(pid)); in onProcessDied()
196 onForegroundActivitiesChanged(pid, uid, false); in onProcessDied()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaSource.java79 PathId pid = list.get(i); in mapMediaItems() local
82 obj = pid.path.getObject(); in mapMediaItems()
85 obj = createMediaObject(pid.path); in mapMediaItems()
87 Log.w(TAG, "cannot create media object: " + pid.path, th); in mapMediaItems()
92 consumer.consume(pid.id, (MediaItem) obj); in mapMediaItems()
DLocalSource.java197 PathId pid = list.get(i); in mapMediaItems() local
200 Path parent = pid.path.getParent(); in mapMediaItems()
202 imageList.add(pid); in mapMediaItems()
204 videoList.add(pid); in mapMediaItems()
218 PathId pid = list.get(i); in processMapMediaItems() local
222 int startId = Integer.parseInt(pid.path.getSuffix()); in processMapMediaItems()
/packages/apps/SecureElement/src/com/android/se/security/
DChannelAccess.java137 public static ChannelAccess getPrivilegeAccess(String packageName, int pid) { in getPrivilegeAccess() argument
140 ca.setCallingPid(pid); in getPrivilegeAccess()
150 public static ChannelAccess getCarrierPrivilegeAccess(String packageName, int pid) { in getCarrierPrivilegeAccess() argument
153 ca.setCallingPid(pid); in getCarrierPrivilegeAccess()
169 public void setCarrierPrivilegeAccess(String packageName, int pid) { in setCarrierPrivilegeAccess() argument
171 mCallingPid = pid; in setCarrierPrivilegeAccess()
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DFileSourceEventDetector.java97 private void startListening(int pid) { in startListening() argument
98 if (mStreamProvider.isInFilter(pid)) { in startListening()
101 mStreamProvider.addPidFilter(pid); in startListening()
117 public void onEitPidDetected(int pid) {
118 startListening(pid);
167 public void onEttPidDetected(int pid) {
168 startListening(pid);
/packages/services/Car/tests/BugReportApp/utils/
Dbugreport_app_tester.py213 pids_raw = [pid.strip() for pid in re.split(r'\s+', ' '.join(lines))]
214 return [int(pid) for pid in pids_raw if pid]
254 for pid in pids:
255 print('Killing bugreport app with pid %d' % pid)
256 self._device.adb(['shell', 'kill', str(pid)])
/packages/modules/DnsResolver/
Dres_init.cpp100 statp->pid = netcontext->pid; in res_init()
118 resOutput.pid = other.pid; in fromResState()
DDnsQueryLog.h35 Record(uint32_t netId, uid_t uid, pid_t pid, const std::string& hostname, in Record()
39 pid(pid), in Record()
45 const pid_t pid; member
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DStatusBarTouchController.java103 int pid = ev.getPointerId(idx); in onControllerInterceptTouchEvent() local
109 mDownEvents.put(pid, new PointF(ev.getX(), ev.getY())); in onControllerInterceptTouchEvent()
112 mDownEvents.put(pid, new PointF(ev.getX(idx), ev.getY(idx))); in onControllerInterceptTouchEvent()
118 float dy = ev.getY(idx) - mDownEvents.get(pid).y; in onControllerInterceptTouchEvent()
119 float dx = ev.getX(idx) - mDownEvents.get(pid).x; in onControllerInterceptTouchEvent()
/packages/apps/TV/tuner/src/com/android/tv/tuner/
DTunerHal.java205 public synchronized boolean addPidFilter(int pid, @FilterType int filterType) { in addPidFilter() argument
210 if (pid >= 0 && pid <= 0x1fff) { in addPidFilter()
211 nativeAddPidFilter(getDeviceId(), pid, filterType); in addPidFilter() local
217 protected native void nativeAddPidFilter(long deviceId, int pid, @FilterType int filterType); in nativeAddPidFilter() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRunningState.java938 mTmpAppProcesses.put(pi.pid, new AppProcessInfo(pi)); in update()
945 if (si.restarting == 0 && si.pid > 0) { in update()
946 AppProcessInfo ainfo = mTmpAppProcesses.get(si.pid); in update()
965 if (si.restarting == 0 && si.pid > 0) { in update()
966 AppProcessInfo ainfo = mTmpAppProcesses.get(si.pid); in update()
1006 int pid = si.restarting == 0 ? si.pid : 0; in update() local
1007 if (pid != proc.mPid) { in update()
1009 if (proc.mPid != pid) { in update()
1013 if (pid != 0) { in update()
1014 mServiceProcessesByPid.put(pid, proc); in update()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java938 mTmpAppProcesses.put(pi.pid, new AppProcessInfo(pi)); in update()
945 if (si.restarting == 0 && si.pid > 0) { in update()
946 AppProcessInfo ainfo = mTmpAppProcesses.get(si.pid); in update()
965 if (si.restarting == 0 && si.pid > 0) { in update()
966 AppProcessInfo ainfo = mTmpAppProcesses.get(si.pid); in update()
1006 int pid = si.restarting == 0 ? si.pid : 0; in update() local
1007 if (pid != proc.mPid) { in update()
1009 if (proc.mPid != pid) { in update()
1013 if (pid != 0) { in update()
1014 mServiceProcessesByPid.put(pid, proc); in update()
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceSettings.java35 UsbDeviceSettings(String serialNumber, int vid, int pid) { in UsbDeviceSettings() argument
38 mPid = pid; in UsbDeviceSettings()
132 public static UsbDeviceSettings constructSettings(String serialNumber, int vid, int pid, in constructSettings() argument
134 UsbDeviceSettings settings = new UsbDeviceSettings(serialNumber, vid, pid); in constructSettings()
/packages/apps/TV/jni/
DDvbManager.cpp361 int DvbManager::startTsPidFilter(JNIEnv *env, jobject thiz, int pid, int filterType) { in startTsPidFilter() argument
364 if (mPidFilters.find(pid) != mPidFilters.end() || (mPatFilterFd != -1 && pid == PAT_PID)) { in startTsPidFilter()
380 filter.pid = pid; in startTsPidFilter()
409 if (pid != PAT_PID) { in startTsPidFilter()
410 mPidFilters.insert(std::pair<int, int>(pid, demuxFd)); in startTsPidFilter()
/packages/services/Car/car-lib/src/android/car/cluster/renderer/
DInstrumentClusterRenderingService.java130 ContextOwner(int uid, int pid, PackageManager packageManager) { in ContextOwner() argument
132 mPid = pid; in ContextOwner()
499 public void setNavigationContextOwner(int uid, int pid) throws RemoteException { in setNavigationContextOwner() argument
501 Log.d(TAG, "Updating navigation ownership to uid: " + uid + ", pid: " + pid); in setNavigationContextOwner()
504 mNavContextOwner = new ContextOwner(uid, pid, getPackageManager()); in setNavigationContextOwner()
542 int pid = getCallingPid(); in assertContextOwnership() local
545 if (mNavContextOwner.mUid != uid || mNavContextOwner.mPid != pid) { in assertContextOwnership()
546 throw new IllegalStateException("Client {uid:" + uid + ", pid: " + pid + "} is" in assertContextOwnership()
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DObd2LiveFrameGenerator.java47 (Integer pid) -> in Obd2LiveFrameGenerator()
50 Obd2Command.getIntegerCommand(pid)))); in Obd2LiveFrameGenerator()
55 (Integer pid) -> in Obd2LiveFrameGenerator()
58 Obd2Command.getFloatCommand(pid)))); in Obd2LiveFrameGenerator()

123