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

1234567891011

/frameworks/base/core/java/android/app/
H A DIProcessObserver.aidl22 void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities);
23 void onProcessStateChanged(int pid, int uid, int procState);
24 void onProcessDied(int pid, int uid);
H A DAppImportanceMonitor.java39 final int uid; field in class:AppImportanceMonitor.AppEntry
44 uid = _uid;
50 public void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) {
54 public void onProcessStateChanged(int pid, int uid, int procState) {
56 updateImportanceLocked(pid, uid,
63 public void onProcessDied(int pid, int uid) {
65 updateImportanceLocked(pid, uid,
98 updateImportanceLocked(app.uid, app.pid, app.importance, false);
103 public int getImportance(int uid) { argument
104 AppEntry ent = mApps.get(uid);
114 onImportanceChanged(int uid, int importance, int oldImportance) argument
117 updateImportanceLocked(int uid, int pid, int importance, boolean repChange) argument
[all...]
H A DActivityManagerInternal.java29 String processName, String abiOverride, int uid, Runnable crashHandler);
28 startIsolatedProcess(String entryPoint, String[] mainArgs, String processName, String abiOverride, int uid, Runnable crashHandler) argument
/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 DINetworkPolicyManager.aidl33 void setUidPolicy(int uid, int policy);
34 void addUidPolicy(int uid, int policy);
35 void removeUidPolicy(int uid, int policy);
36 int getUidPolicy(int uid);
39 boolean isUidForeground(int 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.java175 public static void setThreadStatsUid(int uid) { argument
176 NetworkManagementSocketTagger.setThreadSocketStatsUid(uid);
264 final int uid = android.os.Process.myUid();
266 getStatsService().incrementOperationCount(uid, tag, operationCount);
459 * @see android.content.pm.ApplicationInfo#uid
461 public static long getUidTxBytes(int uid) { argument
462 return nativeGetUidStat(uid, TYPE_TX_BYTES);
475 * @see android.content.pm.ApplicationInfo#uid
477 public static long getUidRxBytes(int uid) { argument
478 return nativeGetUidStat(uid, TYPE_RX_BYTE
493 getUidTxPackets(int uid) argument
509 getUidRxPackets(int uid) argument
520 getUidTcpTxBytes(int uid) argument
531 getUidTcpRxBytes(int uid) argument
542 getUidUdpTxBytes(int uid) argument
553 getUidUdpRxBytes(int uid) argument
564 getUidTcpTxSegments(int uid) argument
575 getUidTcpRxSegments(int uid) argument
586 getUidUdpTxPackets(int uid) argument
597 getUidUdpRxPackets(int uid) argument
638 nativeGetUidStat(int uid, int type) argument
[all...]
/frameworks/native/services/sensorservice/
H A DBatteryService.h33 void enableSensorImpl(uid_t uid, int handle);
34 void disableSensorImpl(uid_t uid, int handle);
35 void cleanupImpl(uid_t uid);
38 uid_t uid; member in struct:android::BatteryService::Info
41 Info() : uid(0), handle(0), count(0) { }
42 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { } argument
44 return (uid == rhs.uid)
54 enableSensor(uid_t uid, int handle) argument
57 disableSensor(uid_t uid, int handle) argument
60 cleanup(uid_t uid) argument
[all...]
H A DBatteryService.cpp41 bool BatteryService::addSensor(uid_t uid, int handle) { argument
43 Info key(uid, handle);
53 bool BatteryService::removeSensor(uid_t uid, int handle) { argument
55 ssize_t index = mActivations.indexOf(Info(uid, handle));
63 void BatteryService::enableSensorImpl(uid_t uid, int handle) { argument
65 if (addSensor(uid, handle)) {
67 mBatteryStatService->noteStartSensor(uid, handle);
72 void BatteryService::disableSensorImpl(uid_t uid, int handle) { argument
74 if (removeSensor(uid, handle)) {
76 mBatteryStatService->noteStopSensor(uid, handl
82 cleanupImpl(uid_t uid) argument
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DRankingConfig.java19 int getPackagePriority(String packageName, int uid); argument
21 void setPackagePriority(String packageName, int uid, int priority); argument
23 int getPackageVisibilityOverride(String packageName, int uid); argument
25 void setPackageVisibilityOverride(String packageName, int uid, int visibility); argument
/frameworks/base/core/java/android/os/
H A DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid);
H A DIVibratorService.aidl23 void vibrate(int uid, String opPkg, long milliseconds, int usageHint, IBinder token);
24 void vibratePattern(int uid, String opPkg, in long[] pattern, int repeat, int usageHint, IBinder token);
H A DNullVibrator.java45 public void vibrate(int uid, String opPkg, long milliseconds, AudioAttributes attributes) { argument
53 public void vibrate(int uid, String opPkg, long[] pattern, int repeat, argument
/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);
H A DIBatteryStats.h31 virtual void noteStartSensor(int uid, int sensor) = 0;
32 virtual void noteStopSensor(int uid, int sensor) = 0;
33 virtual void noteStartVideo(int uid) = 0;
34 virtual void noteStopVideo(int uid) = 0;
35 virtual void noteStartAudio(int uid) = 0;
36 virtual void noteStopAudio(int uid) = 0;
/frameworks/base/core/java/com/android/internal/app/
H A DIBatteryStats.aidl29 void noteStartSensor(int uid, int sensor);
30 void noteStopSensor(int uid, int sensor);
31 void noteStartVideo(int uid);
32 void noteStopVideo(int uid);
33 void noteStartAudio(int uid);
34 void noteStopAudio(int uid);
51 void noteEvent(int code, String name, int uid);
53 void noteSyncStart(String name, int uid);
54 void noteSyncFinish(String name, int uid);
55 void noteJobStart(String name, int uid);
[all...]
H A DIAppOpsService.aidl26 int checkOperation(int code, int uid, String packageName);
27 int noteOperation(int code, int uid, String packageName);
28 int startOperation(IBinder token, int code, int uid, String packageName);
29 void finishOperation(IBinder token, int code, int uid, String packageName);
35 int checkPackage(int uid, String packageName);
37 List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops);
38 void setMode(int code, int uid, String packageName, int mode);
40 int checkAudioOperation(int code, int usage, int uid, String packageName);
41 void setAudioRestriction(int code, int usage, int uid, int mode, in String[] exceptionPackages);
H A DProcessMap.java26 public E get(String name, int uid) { argument
29 return uids.get(uid);
32 public E put(String name, int uid, E value) { argument
38 uids.put(uid, value);
42 public void remove(String name, int uid) { argument
45 uids.remove(uid);
/frameworks/native/libs/binder/
H A DIBatteryStats.cpp37 virtual void noteStartSensor(int uid, int sensor) { argument
40 data.writeInt32(uid);
45 virtual void noteStopSensor(int uid, int sensor) { argument
48 data.writeInt32(uid);
53 virtual void noteStartVideo(int uid) { argument
56 data.writeInt32(uid);
60 virtual void noteStopVideo(int uid) { argument
63 data.writeInt32(uid);
67 virtual void noteStartAudio(int uid) { argument
70 data.writeInt32(uid);
74 noteStopAudio(int uid) argument
104 int uid = data.readInt32(); local
112 int uid = data.readInt32(); local
120 int uid = data.readInt32(); local
127 int uid = data.readInt32(); local
134 int uid = data.readInt32(); local
141 int uid = data.readInt32(); local
[all...]
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/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/media/java/android/media/
H A DAudioManagerInternal.java33 String callingPackage, int uid);
36 String callingPackage, int uid);
39 String callingPackage, int uid);
42 int uid);
45 IBinder cb, int uid);
31 adjustSuggestedStreamVolumeForUid(int streamType, int direction, int flags, String callingPackage, int uid) argument
35 adjustStreamVolumeForUid(int streamType, int direction, int flags, String callingPackage, int uid) argument
38 setStreamVolumeForUid(int streamType, int direction, int flags, String callingPackage, int uid) argument
41 adjustMasterVolumeForUid(int steps, int flags, String callingPackage, int uid) argument
44 setMasterMuteForUid(boolean state, int flags, String callingPackage, IBinder cb, int uid) argument
/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
/frameworks/base/services/core/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);

Completed in 307 milliseconds

1234567891011