/frameworks/base/core/java/android/net/ |
H A D | Credentials.java | 24 /** pid of process. root peers may lie. */ 25 private final int pid; field in class:Credentials 31 public Credentials (int pid, int uid, int gid) { argument 32 this.pid = pid; 38 return pid;
|
/frameworks/av/media/utils/ |
H A D | ISchedulingPolicyService.cpp | 40 virtual int requestPriority(int32_t pid, int32_t tid, int32_t prio, bool asynchronous) argument 44 data.writeInt32(pid);
|
H A D | SchedulingPolicyService.cpp | 31 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool asynchronous) argument 50 ret = sps->requestPriority(pid, tid, prio, asynchronous);
|
/frameworks/base/core/java/android/hardware/location/ |
H A D | GeofenceHardwareService.java | 59 private void checkPermission(int pid, int uid, int monitoringType) { argument 60 if (mGeofenceHardwareImpl.getAllowedResolutionLevel(pid, uid) <
|
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaResourceMonitorService.java | 55 public void notifyResourceGranted(int pid, int type) argument 58 Slog.d(TAG, "notifyResourceGranted(pid=" + pid + ", type=" + type + ")"); 62 String pkgNames[] = getPackageNamesFromPid(pid); 84 private String[] getPackageNamesFromPid(int pid) { argument 88 if (proc.pid == pid) {
|
/frameworks/base/services/core/java/com/android/server/os/ |
H A D | SchedulingPolicyService.java | 40 public int requestPriority(int pid, int tid, int prio) { argument 41 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")"); 46 // Once we've verified that the caller uid is permitted, we can trust the pid but 47 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0, 50 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) { 55 Process.setThreadGroup(tid, Binder.getCallingPid() == pid ?
|
/frameworks/native/libs/binder/ |
H A D | IMediaResourceMonitor.cpp | 31 virtual void notifyResourceGranted(/*in*/ int32_t pid, /*in*/ const int32_t type) argument 35 data.writeInt32(pid); 50 int32_t pid = data.readInt32(); local 52 notifyResourceGranted(/*in*/ pid, /*in*/ type);
|
H A D | IPermissionController.cpp | 39 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) argument 44 data.writeInt32(pid); 94 int32_t pid = data.readInt32(); local 96 bool res = checkPermission(permission, pid, uid);
|
H A D | PermissionCache.cpp | 62 // note, we don't need to store the pid, which is not actually used in 84 pid_t pid = ipcState->getCallingPid(); local 86 if (outPid) *outPid = pid; 88 return PermissionCache::checkPermission(permission, pid, uid); 92 const String16& permission, pid_t pid, uid_t uid) { 93 if ((uid == 0) || (pid == getpid())) { 102 granted = android::checkPermission(permission, pid, uid); 91 checkPermission( const String16& permission, pid_t pid, uid_t uid) argument
|
/frameworks/native/services/inputflinger/host/ |
H A D | InputFlinger.cpp | 53 const int pid = ipc->getCallingPid(); local 56 && !PermissionCache::checkPermission(sDumpPermission, pid, uid)) { 58 "can't dump SurfaceFlinger from pid=%d, uid=%d\n", pid, uid);
|
/frameworks/rs/ |
H A D | rsCppUtils.cpp | 58 pid_t pid = fork(); local 60 switch (pid) { 84 pid_t w = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0));
|
/frameworks/av/media/libstagefright/ |
H A D | ProcessInfo.cpp | 31 bool ProcessInfo::getPriority(int pid, int* priority) { argument 40 status_t err = service->getProcessStatesAndOomScoresFromPids(length, &pid, &state, &score); 45 ALOGV("pid %d state %d score %d", pid, state, score); 47 ALOGE("pid %d invalid OOM adjustments value %d", pid, score); 56 bool ProcessInfo::isValidPid(int pid) { argument 58 // Trust it if this is called from the same process otherwise pid has to match the calling pid. 59 return (callingPid == getpid()) || (callingPid == pid); [all...] |
/frameworks/av/services/audioflinger/ |
H A D | ServiceUtilities.cpp | 51 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { argument 57 // We specify a pid and uid here as mediaserver (aka MediaRecorder or StageFrightRecorder) 58 // may open a record track on behalf of a client. Note that pid may be a tid. 60 const bool ok = checkPermission(sRecordAudio, pid, uid); 108 bool captureAudioOutputAllowed(pid_t pid, uid_t uid) { argument 111 bool ok = checkPermission(sCaptureAudioOutput, pid, uid); 142 // don't optimize for same pid, since mediaserver never dumps itself
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessMemInfo.java | 21 final int pid; field in class:ProcessMemInfo 32 pid = _pid;
|
/frameworks/support/core-utils/java/android/support/v4/content/ |
H A D | PermissionChecker.java | 80 * @param pid The process id for which to check. 88 int pid, int uid, String packageName) { 89 if (context.checkPermission(permission, pid, uid) == PackageManager.PERMISSION_DENIED) { 87 checkPermission(@onNull Context context, @NonNull String permission, int pid, int uid, String packageName) argument
|
/frameworks/base/core/java/android/app/ |
H A D | AppImportanceMonitor.java | 48 public void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) { 52 public void onProcessStateChanged(int pid, int uid, int procState) { 54 updateImportanceLocked(pid, uid, 61 public void onProcessDied(int pid, int uid) { 63 updateImportanceLocked(pid, uid, 96 updateImportanceLocked(app.uid, app.pid, app.importance, false); 115 void updateImportanceLocked(int uid, int pid, int importance, boolean repChange) { argument 122 ent.procs.remove(pid); 124 ent.procs.put(pid, importance);
|
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputBinding.java | 56 * @param pid The process id of where the binding came from. 59 int uid, int pid) { 63 mPid = pid; 120 + " / uid " + mUid + " / pid " + mPid + "}"; 58 InputBinding(InputConnection conn, IBinder connToken, int uid, int pid) argument
|
/frameworks/base/tools/preload/ |
H A D | Record.java | 83 final int pid; field in class:Record 129 pid = Integer.parseInt(parts[1]);
|
/frameworks/av/drm/libmediadrm/ |
H A D | DrmSessionManager.cpp | 68 int pid, sp<DrmSessionClientInterface> drm, const Vector<uint8_t> &sessionId) { 69 ALOGV("addSession(pid %d, drm %p, sessionId %s)", pid, drm.get(), 77 ssize_t index = mSessionMap.indexOfKey(pid); 79 // new pid 82 mSessionMap.add(pid, infosForPid); 170 ALOGV("reclaim session(%s) opened by pid %d", 181 int pid = -1; local 194 if (pid == -1) { 195 pid 67 addSession( int pid, sp<DrmSessionClientInterface> drm, const Vector<uint8_t> &sessionId) argument 211 getLeastUsedSession_l( int pid, sp<DrmSessionClientInterface>* drm, Vector<uint8_t>* sessionId) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | IResourceManagerService.cpp | 74 int pid, 80 data.writeInt32(pid); 88 virtual void removeResource(int pid, int64_t clientId) { argument 91 data.writeInt32(pid); 131 int pid = data.readInt32(); local 140 addResource(pid, clientId, client, resources); 146 int pid = data.readInt32(); local 148 removeResource(pid, clientId); 73 addResource( int pid, int64_t clientId, const sp<IResourceManagerClient> client, const Vector<MediaResource> &resources) argument
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerFactory.cpp | 132 pid_t pid) { 146 p = factory->createPlayer(pid); 219 virtual sp<MediaPlayerBase> createPlayer(pid_t pid) { argument 221 return new NuPlayerDriver(pid); 237 virtual sp<MediaPlayerBase> createPlayer(pid_t /* pid */) { 128 createPlayer( player_type playerType, void* cookie, notify_callback_f notifyFunc, pid_t pid) argument
|
H A D | MetadataRetrieverClient.cpp | 46 MetadataRetrieverClient::MetadataRetrieverClient(pid_t pid) argument 48 ALOGV("MetadataRetrieverClient constructor pid(%d)", pid); 49 mPid = pid; 67 snprintf(buffer, 255, " pid(%d)\n", mPid); 76 ALOGV("disconnect from pid %d", mPid);
|
/frameworks/av/media/libstagefright/omx/ |
H A D | OMXMaster.cpp | 37 pid_t pid = getpid(); local 39 snprintf(filename, sizeof(filename), "/proc/%d/comm", pid);
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/ |
H A D | UiAutomationShellWrapper.java | 100 public boolean appCrashed(String processName, int pid, String shortMsg, String longMsg, argument 107 public int appEarlyNotResponding(String processName, int pid, String annotation) argument 114 public int appNotResponding(String processName, int pid, String processStats) argument
|
/frameworks/base/core/java/android/hardware/input/ |
H A D | KeyboardLayout.java | 53 LocaleList locales, int vid, int pid) { 60 mProductId = pid; 52 KeyboardLayout(String descriptor, String label, String collection, int priority, LocaleList locales, int vid, int pid) argument
|