/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/ |
D | Obd2CommandTest.java | 49 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/ |
D | ProcessInfo.java | 34 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/ |
D | SystemActivityMonitoringService.java | 193 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 …]
|
D | AppFocusService.java | 262 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/services/Car/service/src/com/android/car/cluster/ |
D | InstrumentClusterService.java | 167 public void onFocusAcquired(int appType, int uid, int pid) { in onFocusAcquired() argument 168 changeNavContextOwner(appType, uid, pid, true); in onFocusAcquired() 172 public void onFocusAbandoned(int appType, int uid, int pid) { in onFocusAbandoned() argument 173 changeNavContextOwner(appType, uid, pid, false); in onFocusAbandoned() 176 private void changeNavContextOwner(int appType, int uid, int pid, boolean acquire) { in changeNavContextOwner() argument 182 ContextOwner requester = new ContextOwner(uid, pid); in changeNavContextOwner() 207 service.setNavigationContextOwner(owner.uid, owner.pid); in notifyNavContextOwnerChanged() 273 final int pid; field in InstrumentClusterService.ContextOwner 275 ContextOwner(int uid, int pid) { in ContextOwner() argument 277 this.pid = pid; in ContextOwner() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/ts/ |
D | TsParser.java | 85 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 …]
|
D | EventDetector.java | 71 public void onEitPidDetected(int pid) { 72 startListening(pid); 124 public void onEttPidDetected(int pid) { 125 startListening(pid); 282 private void startListening(int pid) { in startListening() argument 283 if (mPidSet.contains(pid)) { in startListening() 286 mPidSet.add(pid); in startListening() 287 mTunerHal.addPidFilter(pid, Tuner.FILTER_TYPE_OTHER); in startListening()
|
/packages/services/Car/car-bugreportd/ |
D | main.cpp | 274 bool waitpid_with_timeout(pid_t pid, int timeout_secs, int* status) { in waitpid_with_timeout() argument 305 pid_t child_pid = waitpid(pid, status, WNOHANG); in waitpid_with_timeout() 306 if (child_pid != pid) { in waitpid_with_timeout() 308 ALOGE("*** Waiting for pid %d, got pid %d instead\n", pid, child_pid); in waitpid_with_timeout() 319 pid_t pid = fork(); in runCommand() local 322 if (pid < 0) { in runCommand() 324 return pid; in runCommand() 328 if (pid == 0) { in runCommand() 347 bool ret = waitpid_with_timeout(pid, timeout_secs, &status); in runCommand() 351 ALOGE("command %s timed out (killing pid %d)", file, pid); in runCommand() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | LocalCallingIdentity.java | 43 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/Launcher3/src/com/android/launcher3/touch/ |
D | TouchEventTranslator.java | 84 int pid = ev.getPointerId(i); in dispatchDownEvents() local 85 put(pid, i, ev.getX(i), 0, mDownEvents.get(i).timeStamp, ev); in dispatchDownEvents() 98 int pid = ev.getPointerId(index); in processMotionEvent() local 99 if(mFingers.get(pid, null) != null) { in processMotionEvent() 101 pid = ev.getPointerId(i); in processMotionEvent() 102 position(pid, x, y); in processMotionEvent() 106 put(pid, index, x, y, ev); in processMotionEvent() 111 pid = ev.getPointerId(i); in processMotionEvent() 112 position(pid, x, y); in processMotionEvent() 118 pid = ev.getPointerId(index); in processMotionEvent() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | ForegroundUtils.java | 137 public void onForegroundActivitiesChanged(int pid, int uid, in onForegroundActivitiesChanged() argument 144 foregroundPids.put(pid, true); in onForegroundActivitiesChanged() 146 foregroundPids.delete(pid); in onForegroundActivitiesChanged() 159 if (DBG) Log.d(TAG, "Foreground changed, PID: " + Integer.toString(pid) + " UID: " + in onForegroundActivitiesChanged() 179 public void onForegroundServicesChanged(int pid, int uid, int fgServiceTypes) { in onForegroundServicesChanged() argument 183 public void onProcessDied(int pid, int uid) throws RemoteException { in onProcessDied() argument 185 Integer.toString(pid)); in onProcessDied() 186 onForegroundActivitiesChanged(pid, uid, false); in onProcessDied()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | MediaSource.java | 79 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()
|
D | LocalSource.java | 197 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/TV/tuner/src/com/android/tv/tuner/source/ |
D | FileSourceEventDetector.java | 97 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);
|
D | FileTsStreamer.java | 261 public void addPidFilter(int pid) { in addPidFilter() argument 262 mPids.put(pid, true); in addPidFilter() 280 public boolean isInFilter(int pid) { in isInFilter() argument 281 return mPids.get(pid); in isInFilter() 309 int pid = ((mPreBuffer[i + 1] & 0x1f) << 8) + (mPreBuffer[i + 2] & 0xff); in read() local 310 if (mPids.get(pid)) { in read()
|
/packages/services/Car/tests/BugReportApp/utils/ |
D | bugreport_app_tester.py | 198 pids_raw = [pid.strip() for pid in re.split(r'\s+', ' '.join(lines))] 199 return [int(pid) for pid in pids_raw if pid] 239 for pid in pids: 240 print('Killing bugreport app with pid %d' % pid) 241 self._device.adb(['shell', 'kill', str(pid)])
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/ |
D | TunerHal.java | 145 public synchronized boolean addPidFilter(int pid, @FilterType int filterType) { in addPidFilter() argument 150 if (pid >= 0 && pid <= 0x1fff) { in addPidFilter() 151 nativeAddPidFilter(getDeviceId(), pid, filterType); in addPidFilter() local 157 protected native void nativeAddPidFilter(long deviceId, int pid, @FilterType int filterType); in nativeAddPidFilter() argument
|
/packages/apps/TV/jni/ |
D | DvbManager.cpp | 316 int DvbManager::startTsPidFilter(JNIEnv *env, jobject thiz, int pid, int filterType) { in startTsPidFilter() argument 319 if (mPidFilters.find(pid) != mPidFilters.end() || (mPatFilterFd != -1 && pid == PAT_PID)) { in startTsPidFilter() 335 filter.pid = pid; in startTsPidFilter() 364 if (pid != PAT_PID) { in startTsPidFilter() 365 mPidFilters.insert(std::pair<int, int>(pid, demuxFd)); in startTsPidFilter()
|
/packages/services/Car/car-lib/src/android/car/cluster/renderer/ |
D | InstrumentClusterRenderingService.java | 121 ContextOwner(int uid, int pid, PackageManager packageManager) { in ContextOwner() argument 123 mPid = pid; in ContextOwner() 407 public void setNavigationContextOwner(int uid, int pid) throws RemoteException { in setNavigationContextOwner() argument 409 Log.d(TAG, "Updating navigation ownership to uid: " + uid + ", pid: " + pid); in setNavigationContextOwner() 412 mNavContextOwner = new ContextOwner(uid, pid, getPackageManager()); in setNavigationContextOwner() 452 int pid = getCallingPid(); in assertContextOwnership() local 455 if (mNavContextOwner.mUid != uid || mNavContextOwner.mPid != pid) { in assertContextOwnership() 456 throw new IllegalStateException("Client {uid:" + uid + ", pid: " + pid + "} is" in assertContextOwnership()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | RunningState.java | 938 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/ |
D | RunningState.java | 938 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/ |
D | UsbDeviceSettings.java | 35 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/services/Car/obd2-lib/src/com/android/car/obd2/ |
D | Obd2LiveFrameGenerator.java | 47 (Integer pid) -> in Obd2LiveFrameGenerator() 50 Obd2Command.getIntegerCommand(pid)))); in Obd2LiveFrameGenerator() 55 (Integer pid) -> in Obd2LiveFrameGenerator() 58 Obd2Command.getFloatCommand(pid)))); in Obd2LiveFrameGenerator()
|
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/ |
D | FileTunerHal.java | 142 protected void nativeAddPidFilter(long deviceId, int pid, @FilterType int filterType) { in nativeAddPidFilter() argument 146 mPids.put(pid, true); in nativeAddPidFilter() 200 int pid = ((mBuffer[i + 1] & 0x1f) << 8) + (mBuffer[i + 2] & 0xff); in nativeWriteInBuffer() local 201 if (mPids.get(pid)) { in nativeWriteInBuffer()
|
/packages/services/Car/procfs-inspector/server/ |
D | impl.cpp | 41 pid_t pid; in readProcessTable() local 42 if (asNumber(entry.getChild(), &pid)) { in readProcessTable() 43 processes.push_back(ProcessInfo{pid, entry.getOwnerUserId()}); in readProcessTable()
|