/frameworks/av/drm/drmserver/ |
H A D | DrmManagerService.cpp | 88 uid_t uid = ipcState->getCallingUid(); local 92 if (trustedUids[i] == uid) { 348 "can't dump DrmManagerService from pid=%d, uid=%d\n",
|
/frameworks/base/core/java/android/app/ |
H A D | IActivityManager.java | 190 public void killApplicationProcess(String processName, int uid) throws RemoteException; argument 227 public int checkPermission(String permission, int pid, int uid) argument 229 public int checkPermissionWithToken(String permission, int pid, int uid, IBinder callerToken) argument 232 public int checkUriPermission(Uri uri, int pid, int uid, int mode, int userId, argument 350 public void crashApplication(int uid, int initialPid, String packageName, argument 423 // manage your activity to make sure it is always the uid you expect. 501 public void notifyCleartextNetwork(int uid, byte[] firstPacket) throws RemoteException; argument 503 public void setDumpHeapDebugLimit(String processName, int uid, long maxMemSize, argument 515 public boolean setProcessMemoryTrimLevel(String process, int uid, int level) argument
|
H A D | PendingIntent.java | 863 * Return the uid of the application that created this 866 * that an application can not spoof its uid. 877 * @return The uid of the PendingIntent, or -1 if there is 913 int uid = ActivityManagerNative.getDefault() 915 return uid > 0 ? new UserHandle(UserHandle.getUserId(uid)) : null;
|
/frameworks/base/core/java/android/net/ |
H A D | ConnectivityManager.java | 684 * for a given uid. This is for internal use only to avoid spying 690 * for the given uid or {@code null} if no default network is 691 * available for the specified uid. 695 public NetworkInfo getActiveNetworkInfoForUid(int uid) { argument 697 return mService.getActiveNetworkInfoForUid(uid); 1576 int uid = Binder.getCallingUid(); 1577 Settings.checkAndNoteChangeNetworkStateOperation(context, uid, Settings 1578 .getPackageNameForUid(context, uid), true /* throwException */); 1590 int uid = Binder.getCallingUid(); 1591 Settings.checkAndNoteWriteSettingsOperation(context, uid, Setting [all...] |
H A D | IConnectivityManager.aidl | 48 NetworkInfo getActiveNetworkInfoForUid(int uid);
|
/frameworks/base/core/jni/ |
H A D | android_net_NetUtils.cpp | 294 static jboolean android_net_utils_queryUserAccess(JNIEnv *env, jobject thiz, jint uid, jint netId) argument 296 return (jboolean) !queryUserAccess(uid, netId);
|
H A D | android_util_Process.cpp | 421 jint android_os_Process_setUid(JNIEnv* env, jobject clazz, jint uid) argument 423 return setuid(uid) == 0 ? 0 : errno; 426 jint android_os_Process_setGid(JNIEnv* env, jobject clazz, jint uid) argument 428 return setgid(uid) == 0 ? 0 : errno; 1035 jint android_os_Process_killProcessGroup(JNIEnv* env, jobject clazz, jint uid, jint pid) argument 1037 return killProcessGroup(uid, pid, SIGKILL);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkStatsServiceTest.java | 528 // existing uid and total should remain unchanged; but removed UID 666 // now verify that recent history only contains one uid 858 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, argument 860 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); 863 private void assertUidTotal(NetworkTemplate template, int uid, int set, long rxBytes, argument 867 template, uid, set, TAG_NONE, FIELD_ALL); 874 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/services/usage/java/com/android/server/usage/ |
H A D | UsageStatsService.java | 391 UserHandle.getAppId(pi.applicationInfo.uid), 421 int uid = AppGlobals.getPackageManager().getPackageUid(packageName, userId); 424 packageName, uid); 427 packageName, uid); 778 return isAppIdleFiltered(packageName, ai.uid, userId, timeNow); 876 // State of each uid. Key is the uid. Value lower 16 bits is the number of apps 877 // associated with that uid, upper 16 bits is the number of those apps that is idle. 881 // we find for each uid and how many of those are idle. 886 boolean idle = isAppIdleFiltered(ai.packageName, UserHandle.getAppId(ai.uid), [all...] |
/frameworks/av/media/libmedia/ |
H A D | AudioRecord.cpp | 88 int uid, 101 uid, pid, pAttributes); 145 int uid, 151 "uid %d, pid %d", 153 sessionId, transferType, flags, String8(mOpPackageName).string(), uid, pid); 242 if (uid == -1 || (callingpid != mypid)) { 245 mClientUid = uid; 75 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t frameCount, callback_t cbf, void* user, uint32_t notificationFrames, int sessionId, transfer_type transferType, audio_input_flags_t flags, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument 132 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, callback_t cbf, void* user, uint32_t notificationFrames, bool threadCanCallJava, int sessionId, transfer_type transferType, audio_input_flags_t flags, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument
|
H A D | AudioTrack.cpp | 191 int uid, 205 offloadInfo, uid, pid, pAttributes, doNotReconnect); 221 int uid, 235 uid, pid, pAttributes, doNotReconnect); 281 int uid, 287 "flags #%x, notificationFrames %u, sessionId %d, transferType %d, uid %d, pid %d", 289 sessionId, transferType, uid, pid); 443 if (uid == -1 || (callingpid != mypid)) { 446 mClientUid = uid; 178 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, audio_output_flags_t flags, callback_t cbf, void* user, uint32_t notificationFrames, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect) argument 208 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const sp<IMemory>& sharedBuffer, audio_output_flags_t flags, callback_t cbf, void* user, uint32_t notificationFrames, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect) argument 266 set( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, audio_output_flags_t flags, callback_t cbf, void* user, uint32_t notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect) argument
|
H A D | IAudioPolicyService.cpp | 175 uid_t uid, 212 data.writeInt32(uid); 281 uid_t uid, 300 data.writeInt32(uid); 868 uid_t uid = (uid_t)data.readInt32(); local 882 &output, session, &stream, uid, 929 uid_t uid = (uid_t)data.readInt32(); local 936 status_t status = getInputForAttr(&attr, &input, session, uid, 171 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument 278 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId) argument
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsHelper.java | 521 final int uid = app.getUid(); 522 final int userId = UserHandle.getUserId(uid); 523 if (uid == Process.WIFI_UID) { 525 } else if (uid == Process.BLUETOOTH_UID) { 528 && UserHandle.getAppId(uid) >= Process.FIRST_APPLICATION_UID) { 540 if (uid == 0) {
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
H A D | FingerprintService.java | 542 private boolean isForegroundActivity(int uid, int pid) { argument 549 if (proc.pid == pid && proc.uid == uid 567 final int uid = Binder.getCallingUid(); 576 if (mAppOps.noteOp(AppOpsManager.OP_USE_FINGERPRINT, uid, opPackageName) 581 if (foregroundOnly && !isForegroundActivity(uid, pid)) { 1046 + ", uid=" + Binder.getCallingUid());
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 339 ALOGV("Create new client(%d) from pid %d, uid %d, ", connId, pid, 444 "can't dump MediaPlayerService from pid=%d, uid=%d\n", 564 int audioSessionId, uid_t uid) 574 mUID = uid; 1337 MediaPlayerService::AudioOutput::AudioOutput(int sessionId, int uid, int pid, argument 1351 mUid(uid), 2201 int uid = IPCThreadState::self()->getCallingUid(); local 2202 if (uid == AID_MEDIA) { 2205 int index = mBatteryData.indexOfKey(uid); 2215 if (mBatteryData.add(uid, inf 561 Client( const sp<MediaPlayerService>& service, pid_t pid, int32_t connId, const sp<IMediaPlayerClient>& client, int audioSessionId, uid_t uid) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | Tracks.cpp | 103 // if the caller is us, trust the specified uid 107 ALOGW("uid %d tried to pass itself off as %d", newclientUid, clientUid); 111 // clientUid contains the uid of the app that is responsible for this track, so we can blame 385 int uid, 390 sessionId, uid, flags, true /*isOut*/, 1132 int uid) 1139 sharedBuffer, sessionId, uid); 1152 int uid) 1155 sessionId, uid, IAudioFlinger::TRACK_TIMED, TYPE_TIMED), 1648 int uid) 374 Track( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, const sp<IMemory>& sharedBuffer, int sessionId, int uid, IAudioFlinger::track_flags_t flags, track_type type) argument 1122 create( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, int uid) argument 1142 TimedTrack( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, int uid) argument 1641 OutputTrack( PlaybackThread *playbackThread, DuplicatingThread *sourceThread, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, int uid) argument 1938 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, int sessionId, int uid, IAudioFlinger::track_flags_t flags, track_type type) argument [all...] |
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | GpsLocationProvider.java | 1149 int uid = newWork.get(i); 1151 AppOpsManager.OP_GPS, uid, newWork.getName(i)); 1152 if (uid != lastuid) { 1153 lastuid = uid; 1154 mBatteryStats.noteStartGps(uid); 1167 int uid = goneWork.get(i); 1169 AppOpsManager.OP_GPS, uid, goneWork.getName(i)); 1170 if (uid != lastuid) { 1171 lastuid = uid; 1172 mBatteryStats.noteStopGps(uid); [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | Settings.java | 476 String cpuAbiOverrideString, int uid, int vc, int pkgFlags, int pkgPrivateFlags) { 479 if (p.appId == uid) { 489 p.appId = uid; 490 if (addUserIdLPw(uid, p, name)) { 497 SharedUserSetting addSharedUserLPw(String name, int uid, int pkgFlags, int pkgPrivateFlags) { argument 500 if (s.userId == uid) { 508 s.userId = uid; 509 if (addUserIdLPw(uid, s, name)) { 558 bp.uid = 0; 711 "Package " + name + " could not be assigned a valid uid"); 474 addPackageLPw(String name, String realName, File codePath, File resourcePath, String legacyNativeLibraryPathString, String primaryCpuAbiString, String secondaryCpuAbiString, String cpuAbiOverrideString, int uid, int vc, int pkgFlags, int pkgPrivateFlags) argument 967 addUserIdLPw(int uid, Object obj, Object name) argument 998 getUserIdLPr(int uid) argument 1008 removeUserIdLPw(int uid) argument 1019 replaceUserIdLPw(int uid, Object obj) argument 3729 setFirstAvailableUid(int uid) argument 3841 setPackageStoppedStateLPw(PackageManagerService yucky, String packageName, boolean stopped, boolean allowedByPermission, int uid, int userId) argument [all...] |
/frameworks/base/core/java/android/provider/ |
H A D | Settings.java | 1431 int uid = Binder.getCallingUid(); 1432 return Settings.isCallingPackageAllowedToDrawOverlays(context, uid, Settings 1433 .getPackageNameForUid(context, uid), false); 3721 int uid = Binder.getCallingUid(); 3722 return isCallingPackageAllowedToWriteSettings(context, uid, getPackageNameForUid( 3723 context, uid), false); 8311 * privileged/preinstalled apps. If the provided uid does not match the 8315 public static boolean isCallingPackageAllowedToWriteSettings(Context context, int uid, argument 8317 return isCallingPackageAllowedToPerformAppOpsProtectedOperation(context, uid, 8325 * privileged/preinstalled apps. If the provided uid doe 8333 checkAndNoteWriteSettingsOperation(Context context, int uid, String callingPackage, boolean throwException) argument 8353 checkAndNoteChangeNetworkStateOperation(Context context, int uid, String callingPackage, boolean throwException) argument 8371 isCallingPackageAllowedToDrawOverlays(Context context, int uid, String callingPackage, boolean throwException) argument 8388 checkAndNoteDrawOverlaysOperation(Context context, int uid, String callingPackage, boolean throwException) argument 8401 isCallingPackageAllowedToPerformAppOpsProtectedOperation(Context context, int uid, String callingPackage, boolean throwException, int appOpsOpCode, String[] permissions, boolean makeNote) argument 8463 getPackageNameForUid(Context context, int uid) argument [all...] |
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | Notifier.java | 457 public void onUserActivity(int event, int uid) { argument 459 Slog.d(TAG, "onUserActivity: event=" + event + ", uid=" + uid); 463 mBatteryStats.noteUserActivity(uid, event);
|
/frameworks/base/services/print/java/com/android/server/print/ |
H A D | PrintManagerService.java | 448 + ", uid=" + Binder.getCallingUid()); 519 public void onPackageRemoved(String packageName, int uid) { 545 int uid, boolean doit) { 575 public void onPackageAdded(String packageName, int uid) {
|
/frameworks/base/test-runner/src/android/test/mock/ |
H A D | MockPackageManager.java | 261 public String[] getPackagesForUid(int uid) { argument 266 public String getNameForUid(int uid) { argument 363 public List<ProviderInfo> queryContentProviders(String processName, int uid, int flags) { argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgePackageManager.java | 228 public String[] getPackagesForUid(int uid) { argument 233 public String getNameForUid(int uid) { argument 335 public List<ProviderInfo> queryContentProviders(String processName, int uid, int flags) { argument
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | TaskRecord.java | 109 int effectiveUid; // The current effective uid of the identity of this task. 148 int mLockTaskUid = -1; // The uid of the application that called startLockTask(). 214 mCallingUid = info.applicationInfo.uid; 231 mCallingUid = info.applicationInfo.uid; 243 userId = UserHandle.getUserId(info.applicationInfo.uid); 305 /** Sets the original intent, and the calling uid and package. */ 312 /** Sets the original intent, _without_ updating the calling uid or package. */ 328 effectiveUid = info.applicationInfo.uid; 373 userId = UserHandle.getUserId(info.applicationInfo.uid); 1116 effectiveUid = ai.uid; [all...] |
/frameworks/av/include/media/ |
H A D | AudioSystem.h | 206 uid_t uid, 228 uid_t uid,
|