Searched refs:uid (Results 1 - 25 of 188) sorted by relevance

12345678

/frameworks/base/core/java/android/app/
H A DIProcessObserver.aidl22 void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities);
23 void onImportanceChanged(int pid, int uid, int importance);
24 void onProcessDied(int pid, int uid);
/frameworks/native/services/sensorservice/
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...]
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...]
/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 DINetworkStatsService.aidl34 NetworkStats getDataLayerSnapshotForUid(int uid);
39 void incrementOperationCount(int uid, int tag, int operationCount);
42 void setUidForeground(int uid, boolean uidForeground);
H A DINetworkPolicyListener.aidl22 void onUidRulesChanged(int uid, int uidRules);
H A DTrafficStats.java153 public static void setThreadStatsUid(int uid) { argument
154 NetworkManagementSocketTagger.setThreadSocketStatsUid(uid);
241 final int uid = android.os.Process.myUid();
243 getStatsService().incrementOperationCount(uid, tag, operationCount);
408 * @param uid The UID of the process to examine.
412 public static native long getUidTxBytes(int uid); argument
420 * @param uid The UID of the process to examine.
423 public static native long getUidRxBytes(int uid); argument
432 * @param uid The UID of the process to examine.
437 public static native long getUidTxPackets(int uid); argument
449 getUidRxPackets(int uid) argument
463 getUidTcpTxBytes(int uid) argument
477 getUidTcpRxBytes(int uid) argument
491 getUidUdpTxBytes(int uid) argument
505 getUidUdpRxBytes(int uid) argument
518 getUidTcpTxSegments(int uid) argument
531 getUidTcpRxSegments(int uid) argument
544 getUidUdpTxPackets(int uid) argument
557 getUidUdpRxPackets(int uid) argument
[all...]
H A DINetworkPolicyManager.aidl33 void setUidPolicy(int uid, int policy);
34 int getUidPolicy(int uid);
37 boolean isUidForeground(int uid);
/frameworks/base/core/java/android/os/
H A DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid);
H A DUserHandle.java79 * @param uid1 uid to compare
80 * @param uid2 other uid to compare
89 public static final boolean isIsolated(int uid) { argument
90 if (uid > 0) {
91 final int appId = getAppId(uid);
99 public static boolean isApp(int uid) { argument
100 if (uid > 0) {
101 final int appId = getAppId(uid);
109 * Returns the user id for a given uid.
112 public static final int getUserId(int uid) { argument
141 getAppId(int uid) argument
[all...]
/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/base/core/java/com/android/internal/app/
H A DIBatteryStats.aidl26 void noteStartWakelock(int uid, int pid, String name, int type);
27 void noteStopWakelock(int uid, int pid, String name, int type);
31 void noteStartSensor(int uid, int sensor);
35 void noteStopSensor(int uid, int sensor);
40 void noteStartGps(int uid);
41 void noteStopGps(int uid);
46 void noteUserActivity(int uid, int event);
59 void noteFullWifiLockAcquired(int uid);
60 void noteFullWifiLockReleased(int uid);
61 void noteWifiScanStarted(int uid);
[all...]
/frameworks/base/keystore/java/android/security/
H A DIKeyChainService.aidl37 void setGrant(int uid, String alias, boolean value);
38 boolean hasGrant(int uid, String alias);
/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/native/libs/binder/
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...]
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);
/frameworks/base/core/jni/
H A Dandroid_net_TrafficStats.cpp163 static jlong getUidBytes(JNIEnv* env, jobject clazz, jint uid, argument
170 sprintf(tcp_filename, "/proc/uid_stat/%d/tcp_snd", uid);
171 sprintf(udp_filename, "/proc/uid_stat/%d/udp_snd", uid);
174 sprintf(tcp_filename, "/proc/uid_stat/%d/tcp_rcv", uid);
175 sprintf(udp_filename, "/proc/uid_stat/%d/udp_rcv", uid);
204 static jlong getUidPkts(JNIEnv* env, jobject clazz, jint uid, argument
211 sprintf(tcp_filename, "/proc/uid_stat/%d/tcp_snd_pkt", uid);
212 sprintf(udp_filename, "/proc/uid_stat/%d/udp_snd_pkt", uid);
215 sprintf(tcp_filename, "/proc/uid_stat/%d/tcp_rcv_pkt", uid);
216 sprintf(udp_filename, "/proc/uid_stat/%d/udp_rcv_pkt", uid);
245 getUidRxBytes(JNIEnv* env, jobject clazz, jint uid) argument
249 getUidTxBytes(JNIEnv* env, jobject clazz, jint uid) argument
254 getUidTxPackets(JNIEnv* env, jobject clazz, jint uid) argument
259 getUidRxPackets(JNIEnv* env, jobject clazz, jint uid) argument
263 getUidTcpTxBytes(JNIEnv* env, jobject clazz, jint uid) argument
267 getUidTcpRxBytes(JNIEnv* env, jobject clazz, jint uid) argument
271 getUidUdpTxBytes(JNIEnv* env, jobject clazz, jint uid) argument
275 getUidUdpRxBytes(JNIEnv* env, jobject clazz, jint uid) argument
279 getUidTcpTxSegments(JNIEnv* env, jobject clazz, jint uid) argument
283 getUidTcpRxSegments(JNIEnv* env, jobject clazz, jint uid) argument
287 getUidUdpTxPackets(JNIEnv* env, jobject clazz, jint uid) argument
291 getUidUdpRxPackets(JNIEnv* env, jobject clazz, jint uid) argument
[all...]
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
/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/base/services/java/com/android/server/pm/
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/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/am/
H A DBatteryStatsService.java105 public void noteStartWakelock(int uid, int pid, String name, int type) { argument
108 mStats.noteStartWakeLocked(uid, pid, name, type);
112 public void noteStopWakelock(int uid, int pid, String name, int type) { argument
115 mStats.noteStopWakeLocked(uid, pid, name, type);
133 public void noteStartSensor(int uid, int sensor) { argument
136 mStats.noteStartSensorLocked(uid, sensor);
140 public void noteStopSensor(int uid, int sensor) { argument
143 mStats.noteStopSensorLocked(uid, sensor);
147 public void noteStartGps(int uid) { argument
150 mStats.noteStartGpsLocked(uid);
154 noteStopGps(int uid) argument
187 noteUserActivity(int uid, int event) argument
244 noteStartAudio(int uid) argument
251 noteStopAudio(int uid) argument
258 noteStartVideo(int uid) argument
265 noteStopVideo(int uid) argument
336 noteFullWifiLockAcquired(int uid) argument
343 noteFullWifiLockReleased(int uid) argument
350 noteWifiScanStarted(int uid) argument
357 noteWifiScanStopped(int uid) argument
364 noteWifiMulticastEnabled(int uid) argument
371 noteWifiMulticastDisabled(int uid) argument
[all...]
/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());
/frameworks/base/core/java/com/android/internal/content/
H A DPackageMonitor.java135 public void onPackageAdded(String packageName, int uid) { argument
141 public void onPackageRemoved(String packageName, int uid) { argument
148 public void onPackageRemovedAllUsers(String packageName, int uid) { argument
151 public void onPackageUpdateStarted(String packageName, int uid) { argument
154 public void onPackageUpdateFinished(String packageName, int uid) { argument
157 public void onPackageChanged(String packageName, int uid, String[] components) { argument
160 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { argument
167 public void onUidRemoved(int uid) { argument
273 int uid = intent.getIntExtra(Intent.EXTRA_UID, 0);
284 onPackageUpdateFinished(pkg, uid);
[all...]
/frameworks/base/cmds/servicemanager/
H A Dservice_manager.c24 * uid can register media.*, etc)
27 unsigned uid; member in struct:__anon955
77 int svc_can_register(unsigned uid, uint16_t *name) argument
81 if ((uid == 0) || (uid == AID_SYSTEM))
85 if ((uid == allowed[n].uid) && str16eq(name, allowed[n].name))
132 void *do_find_service(struct binder_state *bs, uint16_t *s, unsigned len, unsigned uid) argument
141 // then check the uid to see if it is isolated.
142 unsigned appid = uid
153 do_add_service(struct binder_state *bs, uint16_t *s, unsigned len, void *ptr, unsigned uid, int allow_isolated) argument
[all...]

Completed in 225 milliseconds

12345678