Searched defs:uid (Results 1 - 25 of 112) sorted by relevance

12345

/frameworks/base/core/java/android/net/
H A DCredentials.java26 /** uid of process. root peers may lie. */
27 private final int uid; field in class:Credentials
31 public Credentials (int pid, int uid, int gid) { argument
33 this.uid = uid;
42 return uid;
H A DNetworkPolicyManager.java81 public void setUidPolicy(int uid, int policy) { argument
83 mService.setUidPolicy(uid, policy);
88 public int getUidPolicy(int uid) { argument
90 return mService.getUidPolicy(uid);
238 public static boolean isUidValidForPolicy(Context context, int uid) { argument
240 if (!UserHandle.isApp(uid)) {
256 for (String packageName : pm.getPackagesForUid(uid)) {
/frameworks/base/core/jni/
H A Dandroid_server_NetworkManagementSocketTagger.cpp35 jint tagNum, jint uid) {
43 int res = qtaguid_tagSocket(userFd, tagNum, uid);
67 jint setNum, jint uid) {
69 int res = qtaguid_setCounterSet(setNum, uid);
77 jint tagNum, jint uid) {
79 int res = qtaguid_deleteTagData(tagNum, uid);
33 QTagUid_tagSocketFd(JNIEnv* env, jclass, jobject fileDescriptor, jint tagNum, jint uid) argument
66 QTagUid_setCounterSet(JNIEnv* env, jclass, jint setNum, jint uid) argument
76 QTagUid_deleteTagData(JNIEnv* env, jclass, jint tagNum, jint uid) argument
H A Dandroid_os_FileUtils.cpp38 jint uid, jint gid)
49 if (uid >= 0 || gid >= 0) {
50 int res = chown(file8.string(), uid, gid);
36 android_os_FileUtils_setPermissions(JNIEnv* env, jobject clazz, jstring file, jint mode, jint uid, jint gid) argument
/frameworks/base/services/java/com/android/server/
H A DProcessMap.java27 public E get(String name, int uid) { argument
30 return uids.get(uid);
33 public E put(String name, int uid, E value) { argument
39 uids.put(uid, value);
43 public void remove(String name, int uid) { argument
46 uids.remove(uid);
/frameworks/native/include/binder/
H A DPermissionCache.h31 * PermissionCache caches permission checks for a given uid.
44 uid_t uid; member in struct:android::PermissionCache::Entry
47 return (uid == e.uid) ? (name < e.name) : (uid < e.uid);
61 const String16& permission, uid_t uid) const;
63 void cache(const String16& permission, uid_t uid, bool granted);
74 pid_t pid, uid_t uid);
/frameworks/native/libs/binder/
H A DIPermissionController.cpp40 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) argument
46 data.writeInt32(uid);
67 int32_t uid = data.readInt32(); local
68 bool res = checkPermission(permission, pid, uid);
H A DPermissionCache.cpp38 const String16& permission, uid_t uid) const {
42 e.uid = uid;
52 uid_t uid, bool granted) {
64 e.uid = uid;
85 uid_t uid = ipcState->getCallingUid(); local
87 if (outUid) *outUid = uid;
88 return PermissionCache::checkPermission(permission, pid, uid);
92 const String16& permission, pid_t pid, uid_t uid) {
51 cache(const String16& permission, uid_t uid, bool granted) argument
91 checkPermission( const String16& permission, pid_t pid, uid_t uid) argument
[all...]
/frameworks/native/services/sensorservice/
H A DBatteryService.cpp41 status_t BatteryService::noteStartSensor(int uid, int handle) { argument
44 data.writeInt32(uid);
52 status_t BatteryService::noteStopSensor(int uid, int handle) { argument
55 data.writeInt32(uid);
63 bool BatteryService::addSensor(uid_t uid, int handle) { argument
65 Info key(uid, handle);
75 bool BatteryService::removeSensor(uid_t uid, int handle) { argument
77 ssize_t index = mActivations.indexOf(Info(uid, handle));
85 void BatteryService::enableSensorImpl(uid_t uid, int handle) { argument
87 if (addSensor(uid, handl
94 disableSensorImpl(uid_t uid, int handle) argument
104 cleanupImpl(uid_t uid) argument
[all...]
H A DBatteryService.h34 status_t noteStartSensor(int uid, int handle);
35 status_t noteStopSensor(int uid, int handle);
37 void enableSensorImpl(uid_t uid, int handle);
38 void disableSensorImpl(uid_t uid, int handle);
39 void cleanupImpl(uid_t uid);
42 uid_t uid; member in struct:android::BatteryService::Info
45 Info() : uid(0), handle(0), count(0) { }
46 Info(uid_t uid, int handle) : uid(uid), handl argument
58 enableSensor(uid_t uid, int handle) argument
61 disableSensor(uid_t uid, int handle) argument
64 cleanup(uid_t uid) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DUriPermission.java34 final int uid; field in class:UriPermission
44 uid = _uid;
87 pw.print(" uid="); pw.print(uid);
H A DReceiverList.java41 public final int uid; field in class:ReceiverList
54 uid = _uid;
73 pw.print(" pid="); pw.print(pid); pw.print(" uid="); pw.print(uid);
108 sb.append(uid);
/frameworks/av/media/libstagefright/
H A DHTTPBase.cpp126 void HTTPBase::setUID(uid_t uid) { argument
128 mUID = uid;
131 bool HTTPBase::getUID(uid_t *uid) const {
136 *uid = mUID;
142 void HTTPBase::RegisterSocketUserTag(int sockfd, uid_t uid, uint32_t kTag) { argument
143 int res = qtaguid_tagSocket(sockfd, kTag, uid);
145 ALOGE("Failed tagging socket %d for uid %d (My UID=%d)", sockfd, uid, geteuid());
H A DWVMExtractor.cpp145 void WVMExtractor::setUID(uid_t uid) { argument
147 mImpl->setUID(uid);
/frameworks/base/core/java/android/view/inputmethod/
H A DInputBinding.java56 * @param uid The user id of the client of this binding.
60 int uid, int pid) {
63 mUid = uid;
121 + " / uid " + mUid + " / pid " + mPid + "}";
59 InputBinding(InputConnection conn, IBinder connToken, int uid, int pid) argument
/frameworks/base/core/java/com/android/internal/statusbar/
H A DStatusBarNotification.java43 public final int uid; field in class:StatusBarNotification
53 public StatusBarNotification(String pkg, int id, String tag, int uid, int initialPid, int score, argument
55 this(pkg, id, tag, uid, initialPid, score, notification, UserHandle.OWNER);
58 public StatusBarNotification(String pkg, int id, String tag, int uid, int initialPid, int score, argument
66 this.uid = uid;
82 this.uid = in.readInt();
99 out.writeInt(this.uid);
126 return new StatusBarNotification(this.pkg, this.id, this.tag, this.uid, this.initialPid,
/frameworks/base/services/java/com/android/server/pm/
H A DBasePermission.java43 int uid; field in class:BasePermission
H A DPackageVerificationState.java70 * @param uid user ID of sufficient verifier
72 public void addSufficientVerifier(int uid) { argument
73 mSufficientVerifierUids.put(uid, true);
80 * @param uid user ID of the verifying agent
83 public boolean setVerifierResponse(int uid, int code) { argument
84 if (uid == mRequiredVerifierUid) {
98 if (mSufficientVerifierUids.get(uid)) {
104 mSufficientVerifierUids.delete(uid);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DHTTPLiveSource.cpp39 bool uidValid, uid_t uid)
42 mUID(uid),
36 HTTPLiveSource( const char *url, const KeyedVector<String8, String8> *headers, bool uidValid, uid_t uid) argument
/frameworks/base/core/java/android/content/pm/
H A DVerificationParams.java30 /** A constant used to indicate that a uid value is not present. */
107 public void setInstallerUid(int uid) { argument
108 mInstallerUid = uid;
/frameworks/base/core/java/android/os/
H A DFileUtils.java55 public static native int setPermissions(String file, int mode, int uid, int gid); argument
H A DWorkSource.java56 public WorkSource(int uid) { argument
58 mUids = new int[] { uid, 0 };
140 public void set(int uid) { argument
143 mUids[0] = uid;
184 public boolean add(int uid) { argument
186 sTmpWorkSource.mUids[0] = uid;
192 public WorkSource addReturningNewbs(int uid) { argument
195 sTmpWorkSource.mUids[0] = uid;
232 // Need to insert a new uid.
278 // If there is a matching uid, ski
292 addLocked(int uid) argument
[all...]
/frameworks/base/core/java/com/android/server/
H A DNetworkManagementSocketTagger.java61 public static void setThreadSocketStatsUid(int uid) { argument
62 threadSocketTags.get().statsUid = uid;
76 private void tagSocketFd(FileDescriptor fd, int tag, int uid) { argument
77 if (tag == -1 && uid == -1) return;
80 final int errno = native_tagSocketFd(fd, tag, uid);
84 + uid + ") failed with errno" + errno);
114 public static void setKernelCounterSet(int uid, int counterSet) { argument
116 final int errno = native_setCounterSet(counterSet, uid);
118 Log.w(TAG, "setKernelCountSet(" + uid + ", " + counterSet + ") failed with errno "
124 public static void resetKernelUidStats(int uid) { argument
146 native_tagSocketFd(FileDescriptor fd, int tag, int uid) argument
148 native_setCounterSet(int uid, int counterSetNum) argument
149 native_deleteTagData(int tag, int uid) argument
[all...]
/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/tests/coretests/src/com/android/internal/net/
H A DNetworkStatsFactoryTest.java157 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set, argument
159 final int i = stats.findIndex(iface, uid, set, tag);
165 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set, argument
167 final int i = stats.findIndex(iface, uid, set, tag);

Completed in 546 milliseconds

12345