/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
H A D | BugreportReceiverTest.java | 696 private void sendBugreportStarted(int id, int pid, String name, int max) throws Exception { argument 701 intent.putExtra(EXTRA_PID, pid); 795 * @param pid emulated dumpstate pid 804 String screenshotContent, int id, int pid, String subject, 870 String prefix = renamedScreenshots ? name : Integer.toString(pid); 803 assertActionSendMultiple(Bundle extras, String bugreportContent, String screenshotContent, int id, int pid, String subject, String name, String title, String description, int numberScreenshots, boolean renamedScreenshots) argument
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | GraphicsStatsService.java | 156 Log.w(TAG, String.format("Failed to notify '%s' (pid=%d) to rotate buffers", 168 int pid = Binder.getCallingPid(); 178 pfd = requestBufferForProcessLocked(token, uid, pid, packageName, info.versionCode); 200 int uid, int pid, String packageName, int versionCode) throws RemoteException { 201 ActiveBuffer buffer = fetchActiveBuffersLocked(token, uid, pid, packageName, versionCode); 294 private ActiveBuffer fetchActiveBuffersLocked(IGraphicsStatsCallback token, int uid, int pid, argument 300 if (buffer.mPid == pid 313 ActiveBuffer buffers = new ActiveBuffer(token, uid, pid, packageName, versionCode); 411 ActiveBuffer(IGraphicsStatsCallback token, int uid, int pid, String packageName, int versionCode) argument 415 mPid = pid; 199 requestBufferForProcessLocked(IGraphicsStatsCallback token, int uid, int pid, String packageName, int versionCode) argument [all...] |
H A D | InputMethodManagerService.java | 292 return "SessionState{uid " + client.uid + " pid " + client.pid 314 final int pid; field in class:InputMethodManagerService.ClientState 324 + " pid " + pid + "}"; 332 pid = _pid; 333 binding = new InputBinding(null, inputContext.asBinder(), uid, pid); 1477 + mSettings.getCurrentUserId() + ", calling pid = " + Binder.getCallingPid() 1587 IInputContext inputContext, int uid, int pid) { 1593 inputContext, uid, pid)); 1586 addClient(IInputMethodClient client, IInputContext inputContext, int uid, int pid) argument [all...] |
H A D | IpSecService.java | 65 final int pid; field in class:IpSecService.ManagedResource 72 pid = Binder.getCallingPid(); 415 if (record.pid != Binder.getCallingPid() || record.uid != Binder.getCallingUid()) { 445 if (info.pid != getCallingPid() || info.uid != getCallingUid()) {
|
H A D | LocationManagerService.java | 768 Identity(int uid, int pid, String packageName) { argument 770 mPid = pid; 798 Receiver(ILocationListener listener, PendingIntent intent, int pid, int uid, argument 807 mAllowedResolutionLevel = getAllowedResolutionLevel(pid, uid); 808 mIdentity = new Identity(uid, pid, packageName); 1144 int pid = Binder.getCallingPid(); 1149 hasLocationAccess = checkLocationAccess(pid, uid, packageName, allowedResolutionLevel); 1384 * @param pid the PID 1386 * @return resolution level allowed to the pid/uid pair 1388 private int getAllowedResolutionLevel(int pid, in argument 1504 reportLocationAccessNoThrow( int pid, int uid, String packageName, int allowedResolutionLevel) argument 1516 checkLocationAccess(int pid, int uid, String packageName, int allowedResolutionLevel) argument 1902 getReceiverLocked(ILocationListener listener, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument 1920 getReceiverLocked(PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument 1986 checkListenerOrIntentLocked(ILocationListener listener, PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument 2037 requestLocationUpdatesLocked(LocationRequest request, Receiver receiver, int pid, int uid, String packageName) argument [all...] |
H A D | StorageManagerService.java | 2169 // FMT: <pid> <process name> 2176 Slog.e(TAG, String.format("Error parsing pid %s", tok[0])); 3027 public AppFuseMountScope(int uid, int pid, int mountId) { argument 3028 super(uid, pid, mountId); 3056 final int pid = Binder.getCallingPid(); 3070 name, mAppFuseBridge.addBridge(new AppFuseMountScope(uid, pid, name))); 3091 final int pid = Binder.getCallingPid(); 3098 return mAppFuseBridge.openFile(pid, mountId, fileId, mode);
|
H A D | Watchdog.java | 275 public void processStarted(String name, int pid) { argument 278 mPhonePid = pid; 368 if (info.pid == IServiceManager.PidConstant.NO_PID) { 376 pids.add(info.pid);
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityManagerService.java | 821 * All of the processes we currently have running organized by pid. 822 * The keys are the pid running the application. 831 * is the pid of the caller who requested it (we hold a death 835 final int pid; field in class:ActivityManagerService.ImportanceToken 840 pid = _pid; 848 + " " + reason + " " + pid + " " + token + " }"; 1182 public final int pid; field in class:ActivityManagerService.Identity 1187 pid = _pid; 1549 int pid; field in class:ActivityManagerService.ProcessChangeItem 1627 AppDeathRecipient(ProcessRecord app, int pid, argument 3332 killProcessGroup(int uid, int pid) argument 4321 dispatchProcessDied(int pid, int uid) argument 5387 appDiedLocked(ProcessRecord app, int pid, IApplicationThread thread, boolean fromBinderDied) argument 5501 dumpWithTimeout(int pid, long timeout) argument 6717 attachApplicationLocked(IApplicationThread thread, int pid) argument 7801 setProcessImportant(IBinder token, int pid, boolean isForeground, String reason) argument 8151 checkPermission(String permission, int pid, int uid) argument 8178 checkComponentPermission(String permission, int pid, int uid, int owningUid, boolean exported) argument 8193 checkComponentPermission(String permission, int pid, int uid, int owningUid, boolean exported) argument 8212 checkPermission(String permission, int pid, int uid) argument 8220 checkPermissionWithToken(String permission, int pid, int uid, IBinder callerToken) argument 8580 checkUriPermission(Uri uri, int pid, int uid, final int modeFlags, int userId, IBinder callerToken) argument 12841 inputDispatchingTimedOut(int pid, final boolean aboveSystem, String reason) argument 18559 isPendingBroadcastProcessLocked(int pid) argument 18564 skipPendingBroadcastLocked(int pid) argument 23954 setHasOverlayUi(int pid, boolean hasOverlayUi) argument [all...] |
H A D | ActivityManagerShellCommand.java | 900 int pid = -1; 903 // The argument is either a pid or a package name 905 pid = Integer.parseInt(arg); 909 mInterface.crashApplication(-1, pid, packageName, userId, "shell-induced crash"); 1010 public boolean appCrashed(String processName, int pid, String shortMsg, String longMsg, argument 1015 mPw.println("processPid: " + pid); 1023 int result = waitControllerLocked(pid, STATE_CRASHED); 1029 public int appEarlyNotResponding(String processName, int pid, String annotation) { argument 1033 mPw.println("processPid: " + pid); 1036 int result = waitControllerLocked(pid, STATE_EARLY_AN 1043 appNotResponding(String processName, int pid, String processStats) argument 1085 waitControllerLocked(int pid, int state) argument [all...] |
H A D | BatteryStatsService.java | 469 public void noteStartWakelock(int uid, int pid, String name, String historyName, int type, argument 473 mStats.noteStartWakeLocked(uid, pid, name, historyName, type, unimportantForLogging, 478 public void noteStopWakelock(int uid, int pid, String name, String historyName, int type) { argument 481 mStats.noteStopWakeLocked(uid, pid, name, historyName, type, 486 public void noteStartWakelockFromSource(WorkSource ws, int pid, String name, argument 490 mStats.noteStartWakeFromSourceLocked(ws, pid, name, historyName, 495 public void noteChangeWakelockFromSource(WorkSource ws, int pid, String name, argument 500 mStats.noteChangeWakelockFromSourceLocked(ws, pid, name, historyName, type, 505 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, String historyName, argument 509 mStats.noteStopWakeFromSourceLocked(ws, pid, nam [all...] |
H A D | BroadcastQueue.java | 211 public boolean isPendingBroadcastProcessLocked(int pid) { argument 212 return mPendingBroadcast != null && mPendingBroadcast.curApp.pid == pid; 322 if (br != null && br.curApp.pid == app.pid) { 347 public void skipPendingBroadcastLocked(int pid) { argument 349 if (br != null && br.curApp.pid == pid) { 502 + " (pid " + app.pid [all...] |
H A D | HealthStatsBatteryStatsWriter.java | 375 public void writePid(HealthStatsWriter pidWriter, BatteryStats.Uid.Pid pid) { argument 376 if (pid == null) { 381 pidWriter.addMeasurement(PidHealthStats.MEASUREMENT_WAKE_NESTING_COUNT, pid.mWakeNesting); 384 pidWriter.addMeasurement(PidHealthStats.MEASUREMENT_WAKE_SUM_MS, pid.mWakeSumMs); 387 pidWriter.addMeasurement(PidHealthStats.MEASUREMENT_WAKE_SUM_MS, pid.mWakeStartMs);
|
H A D | ProcessList.java | 154 // LMK_PROCPRIO <pid> <uid> <prio> 155 // LMK_PROCREMOVE <pid> 624 * @param pid The process identifier to set. 630 public static final void setOomAdj(int pid, int uid, int amt) { argument 637 buf.putInt(pid); 643 Slog.w("ActivityManager", "SLOW OOM ADJ: " + (now-start) + "ms for pid " + pid 651 public static final void remove(int pid) { argument 654 buf.putInt(pid);
|
H A D | ProcessMemInfo.java | 21 final int pid; field in class:ProcessMemInfo 32 pid = _pid;
|
H A D | ProcessRecord.java | 73 int pid; // The process of this application; 0 if none field in class:ProcessRecord 74 String procStatFile; // path to /proc/<pid>/stat 254 pw.print(prefix); pw.print("pid="); pw.print(pid); pw.print(" starting="); 347 pid, SystemClock.elapsedRealtime()); 455 pid = _pid; 583 if (pid == Process.myPid()) { 607 EventLog.writeEvent(EventLogTags.AM_KILL, userId, pid, processName, setAdj, reason); 608 Process.killProcessQuiet(pid); 609 ActivityManagerService.killProcessGroup(uid, pid); [all...] |
H A D | ReceiverList.java | 37 public final int pid; field in class:ReceiverList 50 pid = _pid; 70 pw.print(" pid="); pw.print(pid); pw.print(" uid="); pw.print(uid); 101 sb.append(pid);
|
H A D | UserController.java | 483 String msg = "Permission Denial: switchUser() from pid=" 816 String msg = "Permission Denial: switchUser() from pid=" 985 String msg = "Permission Denial: unlockUser() from pid=" 1365 final String msg = "Permission Denial: registerUserSwitchObserver() from pid=" 1502 String msg = "Permission Denial: getCurrentUser() from pid=" 1748 int checkComponentPermission(String permission, int pid, int uid, int owningUid, argument 1750 return mService.checkComponentPermission(permission, pid, uid, owningUid, exported);
|
H A D | VrController.java | 195 * @param pid the pid of the process owning the thread to set. 198 public void setVrThreadLocked(int tid, int pid, ProcessRecord proc) { argument 208 enforceThreadInProcess(tid, pid); 229 * @param pid the pid of the process owning the thread to set. 232 public void setPersistentVrThreadLocked(int tid, int pid, ProcessRecord proc) { argument 242 enforceThreadInProcess(tid, pid); 389 * Check that the given tid is running in the process for the given pid, and throw an exception 392 private void enforceThreadInProcess(int tid, int pid) { argument [all...] |
/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | AudioService.java | 2344 SetModeDeathHandler(IBinder cb, int pid) { argument 2346 mPid = pid; 2397 Log.w(TAG, "MODIFY_PHONE_STATE Permission Denial: setMode(MODE_IN_CALL) from pid=" 2423 private int setModeInt(int mode, IBinder cb, int pid, String caller) { argument 2424 if (DEBUG_MODE) { Log.v(TAG, "setModeInt(mode=" + mode + ", pid=" + pid + ", caller=" 2436 if (h.getPid() == pid) { 2453 Log.w(TAG, " using mode=" + mode + " instead due to death hdlr at pid=" 2459 hdlr = new SetModeDeathHandler(cb, pid); 3843 String msg = "Audio Settings Permission Denial: " + method + " from pid [all...] |
/frameworks/base/services/core/java/com/android/server/content/ |
H A D | ContentService.java | 204 int pid = sorted.get(i); 205 pw.print(" pid "); pw.print(pid); pw.print(": "); 206 pw.print(pidCounts.get(pid)); pw.println(" observers"); 296 final int pid = Binder.getCallingPid(); 298 userHandle = handleIncomingUser(uri, pid, uid, 319 uid, pid, userHandle); 362 final int pid = Binder.getCallingPid(); 365 userHandle = handleIncomingUser(uri, pid, uid, 435 private int checkUriPermission(Uri uri, int pid, in argument 1146 handleIncomingUser(Uri uri, int pid, int uid, int modeFlags, boolean allowNonFull, int userId) argument 1217 public final int pid; field in class:ContentService.ObserverNode.ObserverEntry 1319 addObserverLocked(Uri uri, IContentObserver observer, boolean notifyForDescendants, Object observersLock, int uid, int pid, int userHandle) argument 1326 addObserverLocked(Uri uri, int index, IContentObserver observer, boolean notifyForDescendants, Object observersLock, int uid, int pid, int userHandle) argument [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayManagerService.java | 1299 public CallbackRecord(int pid, IDisplayManagerCallback callback) { argument 1300 mPid = pid; 1307 Slog.d(TAG, "Display listener for pid " + mPid + " died.");
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
H A D | FingerprintService.java | 715 private boolean isForegroundActivity(int uid, int pid) { argument 722 if (proc.pid == pid && proc.uid == uid 739 int pid, int userId) { 753 if (requireForeground && !(isForegroundActivity(uid, pid) || currentClient(opPackageName))){ 1083 final int pid = Binder.getCallingPid(); 1089 callingUid, pid, callingUserId)) { 1115 final int pid = Binder.getCallingPid(); 1120 if (!canUseFingerprint(opPackageName, true /* foregroundOnly */, uid, pid, 738 canUseFingerprint(String opPackageName, boolean requireForeground, int uid, int pid, int userId) argument
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
H A D | IntentFirewall.java | 581 int checkComponentPermission(String permission, int pid, int uid, argument 590 * @param pid The pid of the caller 596 boolean checkComponentPermission(String permission, int pid, int uid, int owningUid, argument 598 return mAms.checkComponentPermission(permission, pid, uid, owningUid, exported) ==
|
/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputManagerService.java | 607 final int pid = Binder.getCallingPid(); 612 result = nativeInjectInputEvent(mPtr, event, displayId, pid, uid, mode, 619 Slog.w(TAG, "Input event injection from pid " + pid + " permission denied."); 625 Slog.w(TAG, "Input event injection from pid " + pid + " timed out."); 629 Slog.w(TAG, "Input event injection from pid " + pid + " failed."); 706 private void onInputDevicesChangedListenerDied(int pid) { argument 708 mInputDevicesChangedListeners.remove(pid); 953 onTabletModeChangedListenerDied(int pid) argument 2215 InputDevicesChangedListenerRecord(int pid, IInputDevicesChangedListener listener) argument 2243 TabletModeChangedListenerRecord(int pid, ITabletModeChangedListener listener) argument [all...] |
/frameworks/base/services/core/java/com/android/server/job/ |
H A D | JobSchedulerService.java | 1821 private boolean canPersistJobs(int pid, int uid) { argument 1834 android.Manifest.permission.RECEIVE_BOOT_COMPLETED, pid, uid); 1848 final int pid = Binder.getCallingPid(); 1853 if (!canPersistJobs(pid, uid)) { 1878 final int pid = Binder.getCallingPid();
|