Searched refs:uid (Results 126 - 150 of 188) sorted by relevance

12345678

/frameworks/base/core/java/com/android/internal/os/
H A DZygoteConnection.java235 pid = Zygote.forkAndSpecialize(parsedArgs.uid, parsedArgs.gid, parsedArgs.gids,
288 * <li> --setuid=<i>uid of child process, defaults to 0</i>
296 * This parameter is only applied if the uid of the new process will
323 int uid = 0; field in class:ZygoteConnection.Arguments
412 uid = Integer.parseInt(
605 * <li> uid 0 (root) may specify any uid, gid, and setgroups() list
606 * <li> uid 1000 (Process.SYSTEM_UID) may specify any uid &gt; 1000 in normal
609 * <li> Any other uid ma
[all...]
H A DZygoteInit.java216 private static void setEffectiveUser(int uid) { argument
217 int errno = setreuid(ROOT_UID, uid);
503 parsedArgs.uid, parsedArgs.gid,
670 * @param ruid real uid
671 * @param euid effective uid
/frameworks/base/core/java/android/app/
H A DApplicationPackageManager.java373 public String[] getPackagesForUid(int uid) { argument
375 return mPM.getPackagesForUid(uid);
382 public String getNameForUid(int uid) { argument
384 return mPM.getNameForUid(uid);
394 int uid = mPM.getUidForSharedUser(sharedUserName);
395 if(uid != -1) {
396 return uid;
586 int uid, int flags) {
588 return mPM.queryContentProviders(processName, uid, flags);
747 app.uid
585 queryContentProviders(String processName, int uid, int flags) argument
[all...]
H A DPendingIntent.java724 * Return the uid of the application that created this
727 * that an application can not spoof its uid.
729 * @return The uid of the PendingIntent, or -1 if there is
755 int uid = ActivityManagerNative.getDefault()
757 return uid > 0 ? new UserHandle(UserHandle.getUserId(uid)) : null;
/frameworks/base/services/java/com/android/server/
H A DAppWidgetServiceImpl.java93 * When identifying a Host or Provider based on the calling process, use the uid field. When
98 int uid; field in class:AppWidgetServiceImpl.Provider
108 int uid; field in class:AppWidgetServiceImpl.Host
340 pw.print(host.uid); pw.println(':');
352 pw.println(id.host.uid);
370 + ", uid=" + Binder.getCallingUid());
472 if (host.uid == callingUid) {
695 int userId = UserHandle.getUserId(id.provider.uid);
786 int userId = UserHandle.getUserId(id.provider.uid);
1069 int userId = UserHandle.getUserId(id.provider.uid);
1184 lookupHostLocked(int uid, int hostId) argument
1195 lookupOrAddHostLocked(int uid, String packageName, int hostId) argument
[all...]
H A DInputMethodManagerService.java215 return "SessionState{uid " + client.uid + " pid " + client.pid
234 final int uid; field in class:InputMethodManagerService.ClientState
244 System.identityHashCode(this)) + " uid " + uid
252 uid = _uid;
254 binding = new InputBinding(null, inputContext.asBinder(), uid, pid);
452 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { argument
897 final int uid = Binder.getCallingUid();
898 final int userId = UserHandle.getUserId(uid);
995 addClient(IInputMethodClient client, IInputContext inputContext, int uid, int pid) argument
[all...]
H A DStatusBarManagerService.java100 int uid, int initialPid, String message);
464 int uid, int initialPid, String message) {
468 mNotificationCallbacks.onNotificationError(pkg, tag, id, uid, initialPid, message);
598 + ", uid=" + Binder.getCallingUid());
99 onNotificationError(String pkg, String tag, int id, int uid, int initialPid, String message) argument
463 onNotificationError(String pkg, String tag, int id, int uid, int initialPid, String message) argument
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java156 public String[] getPackagesForUid(int uid) {
269 // push all uid into background
285 // and swap another uid into foreground
324 // push strict policy for foreground uid, verify ALLOW rule
873 private void expectSetUidNetworkRules(int uid, boolean rejectOnQuotaInterfaces) argument
875 mNetworkManager.setUidNetworkRules(uid, rejectOnQuotaInterfaces);
879 private void expectSetUidForeground(int uid, boolean uidForeground) throws Exception { argument
880 mStatsService.setUidForeground(uid, uidForeground);
884 private Future<Void> expectRulesChanged(int uid, int policy) throws Exception { argument
886 mPolicyListener.onUidRulesChanged(eq(uid), e
[all...]
H A DNetworkStatsServiceTest.java527 // existing uid and total should remain unchanged; but removed UID
665 // now verify that recent history only contains one uid
857 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, argument
859 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations);
862 private void assertUidTotal(NetworkTemplate template, int uid, int set, long rxBytes, argument
866 template, uid, set, TAG_NONE, FIELD_ALL);
873 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets,
972 private static void assertValues(NetworkStats stats, String iface, int uid, int set, argument
976 final int i = stats.findIndex(iface, uid, SET_DEFAULT, tag);
982 final int i = stats.findIndex(iface, uid, SET_FOREGROUN
[all...]
/frameworks/base/test-runner/src/android/test/mock/
H A DMockPackageManager.java191 public String[] getPackagesForUid(int uid) { argument
196 public String getNameForUid(int uid) { argument
275 public List<ProviderInfo> queryContentProviders(String processName, int uid, int flags) { argument
/frameworks/base/core/java/android/os/
H A DFileUtils.java55 public static native int setPermissions(String file, int mode, int uid, int gid); argument
/frameworks/compile/mclinker/include/mcld/LD/
H A DArchive.h47 char uid[6]; ///< user id in ASCII decimal member in struct:mcld::Archive::MemberHeader
/frameworks/native/services/sensorservice/
H A DSensorService.cpp198 "can't dump SurfaceFlinger from pid=%d, uid=%d\n",
387 uid_t uid = IPCThreadState::self()->getCallingUid(); local
388 sp<SensorEventConnection> result(new SensorEventConnection(this, uid));
562 const sp<SensorService>& service, uid_t uid)
563 : mService(service), mChannel(new BitTube()), mUid(uid)
561 SensorEventConnection( const sp<SensorService>& service, uid_t uid) argument
H A DSensorService.h87 SensorEventConnection(const sp<SensorService>& service, uid_t uid);
/frameworks/base/media/libdrm/mobile1/src/parser/
H A Dparser_rel.c564 (uint8_t *)"o-ex:rights\\o-ex:agreement\\o-ex:asset\\o-ex:context\\o-dd:uid",
570 strncpy((char *)pRights->uid, (char *)pValue, valueLen);
571 pRights->uid[valueLen] = '\0';
575 /* this means there is more than one uid label in rights */
576 if(strstr((char*)pBuf, "<o-dd:uid>"))
636 strncpy((char *)pRights->uid, (char *)pValue, valueLen);
637 pRights->uid[valueLen] = '\0';
/frameworks/base/core/java/android/accounts/
H A DAbstractAccountAuthenticator.java307 final int uid = Binder.getCallingUid();
310 throw new SecurityException("caller uid " + uid + " lacks " + perm);
/frameworks/base/services/java/com/android/server/location/
H A DGeofenceManager.java117 int uid, String packageName) {
120 + ", intent=" + intent + ", uid=" + uid + ", packageName=" + packageName);
116 addFence(LocationRequest request, Geofence geofence, PendingIntent intent, int uid, String packageName) argument
/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkStatsTest.java313 private static void assertValues(NetworkStats stats, int index, String iface, int uid, int set, argument
316 assertValues(entry, iface, uid, set, tag);
321 NetworkStats.Entry entry, String iface, int uid, int set, int tag) {
323 assertEquals(uid, entry.uid);
320 assertValues( NetworkStats.Entry entry, String iface, int uid, int set, int tag) argument
/frameworks/base/core/java/android/content/pm/
H A DPackageManager.java1162 * Extra field name for the uid of who is requesting to install
1690 * @param uid The user id for which you would like to retrieve the
1696 public abstract String[] getPackagesForUid(int uid); argument
1705 * @param uid The user id for which you would like to retrieve a name.
1709 public abstract String getNameForUid(int uid); argument
1714 * end up using a common uid. This might be used for new applications
1715 * that use an existing shared user name and need to know the uid of the
1718 * @param sharedUserName The shared user name whose uid is to be retrieved.
1719 * @return Returns the uid associated with the shared user, or NameNotFoundException
2029 * @param uid I
2038 queryContentProviders( String processName, int uid, int flags) argument
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp260 ALOGV("Create new client(%d) from pid %d, uid %d, ", connId, pid,
371 "can't dump MediaPlayerService from pid=%d, uid=%d\n",
487 int audioSessionId, uid_t uid)
497 mUID = uid;
1957 int uid = IPCThreadState::self()->getCallingUid(); local
1958 if (uid == AID_MEDIA) {
1961 int index = mBatteryData.indexOfKey(uid);
1971 if (mBatteryData.add(uid, info) == NO_MEMORY) {
1977 BatteryUsageInfo &info = mBatteryData.editValueFor(uid);
1994 mBatteryData.removeItem(uid);
484 Client( const sp<MediaPlayerService>& service, pid_t pid, int32_t connId, const sp<IMediaPlayerClient>& client, int audioSessionId, uid_t uid) argument
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DRTSPSource.cpp35 uid_t uid)
38 mUID(uid),
31 RTSPSource( const char *url, const KeyedVector<String8, String8> *headers, bool uidValid, uid_t uid) argument
H A DGenericSource.cpp38 uid_t uid)
34 GenericSource( const char *url, const KeyedVector<String8, String8> *headers, bool uidValid, uid_t uid) argument
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp310 const int uid = getCallingUid(); local
312 "can't use the camera pid=%d, uid=%d", pid, uid);
467 "can't dump CameraService from pid=%d, uid=%d\n",
/frameworks/base/services/java/com/android/server/am/
H A DActivityStack.java510 final int userId = UserHandle.getUserId(info.applicationInfo.uid);
554 final int userId = UserHandle.getUserId(info.applicationInfo.uid);
789 r.info.applicationInfo.uid);
1177 bsi.getProcessStatsLocked(prev.info.applicationInfo.uid,
1489 final int lastUid = mLastStartedActivity.info.applicationInfo.uid;
1490 final int nextUid = next.info.applicationInfo.uid;
1860 proc = mService.mProcessNames.get(r.processName, r.info.applicationInfo.uid);
2468 callingUid = callerApp.info.uid;
2478 final int userId = aInfo != null ? UserHandle.getUserId(aInfo.applicationInfo.uid) : 0;
2543 callingUid, aInfo.applicationInfo.uid, aInf
[all...]
/frameworks/av/include/media/
H A DMediaPlayerInterface.h120 virtual status_t setUID(uid_t uid) { argument

Completed in 1261 milliseconds

12345678