/frameworks/base/core/java/com/android/internal/content/ |
H A D | PackageHelper.java | 93 public static String createSdDir(long sizeBytes, String cid, String sdEncKey, int uid, argument 103 int rc = storageManager.createSecureContainer(cid, sizeMb, "ext4", sdEncKey, uid,
|
H A D | PackageMonitor.java | 130 public void onPackageAdded(String packageName, int uid) { argument 136 public void onPackageRemoved(String packageName, int uid) { argument 143 public void onPackageRemovedAllUsers(String packageName, int uid) { argument 146 public void onPackageUpdateStarted(String packageName, int uid) { argument 149 public void onPackageUpdateFinished(String packageName, int uid) { argument 159 * @param uid The user ID the package runs under. 169 public boolean onPackageChanged(String packageName, int uid, String[] components) { argument 180 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { argument 187 public void onUidRemoved(int uid) { argument 292 public void onPackageDataCleared(String packageName, int uid) { argument [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatterySipper.java | 131 public BatterySipper(DrainType drainType, Uid uid, double value) { argument 134 uidObj = uid;
|
H A D | ZygoteConnection.java | 239 pid = Zygote.forkAndSpecialize(parsedArgs.uid, parsedArgs.gid, parsedArgs.gids, 338 * <li> --setuid=<i>uid of child process, defaults to 0</i> 346 * This parameter is only applied if the uid of the new process will 362 int uid = 0; field in class:ZygoteConnection.Arguments 475 uid = Integer.parseInt( 682 * uid 1000 (Process.SYSTEM_UID) may specify any uid > 1000 in normal 695 * set of UIDs. In factory test mode, SYSTEM_UID may specify any uid. 699 if (uidRestricted && args.uidSpecified && (args.uid < Process.SYSTEM_UID)) { 706 // If not otherwise specified, uid an [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | RegisteredServicesCacheTest.java | 102 uids.add(srv.uid); 161 + " <service uid=\"1\" type=\"type1\" value=\"value1\" />\n" 162 + " <service uid=\"100002\" type=\"type2\" value=\"value2\" />\n" 190 TestServiceType type, int uid) { 193 info.applicationInfo.uid = uid; 189 newServiceInfo( TestServiceType type, int uid) argument
|
/frameworks/base/media/java/android/media/ |
H A D | AudioPlaybackConfiguration.java | 196 public AudioPlaybackConfiguration(PlayerBase.PlayerIdCard pic, int piid, int uid, int pid) { argument 200 mClientUid = uid; 255 * Return the uid of the client application that created this player. 256 * @return the uid of the client
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | GraphicsStatsService.java | 167 int uid = Binder.getCallingUid(); 172 mAppOps.checkPackage(uid, packageName); 176 UserHandle.getUserId(uid)); 178 pfd = requestBufferForProcessLocked(token, uid, pid, packageName, info.versionCode); 200 int uid, int pid, String packageName, int versionCode) throws RemoteException { 201 ActiveBuffer buffer = fetchActiveBuffersLocked(token, uid, pid, packageName, versionCode); 294 private ActiveBuffer fetchActiveBuffersLocked(IGraphicsStatsCallback token, int uid, int pid, argument 301 && buffer.mUid == uid) { 313 ActiveBuffer buffers = new ActiveBuffer(token, uid, pid, packageName, versionCode); 411 ActiveBuffer(IGraphicsStatsCallback token, int uid, in argument 199 requestBufferForProcessLocked(IGraphicsStatsCallback token, int uid, int pid, String packageName, int versionCode) argument [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | AppErrors.java | 131 pw.print(" uid "); pw.print(puid); 162 pw.print(" uid "); pw.print(puid); 194 return mBadProcesses.get(info.processName, info.uid) != null; 198 mBadProcesses.remove(info.processName, info.uid); 202 mProcessCrashTimes.remove(info.processName, info.uid); 266 * @param uid if nonnegative, the required matching uid of the target to crash 268 * @param packageName fallback match if the stated pid is not found or doesn't match uid 272 void scheduleAppCrashLocked(int uid, int initialPid, String packageName, int userId, argument 283 if (uid > [all...] |
H A D | PendingIntentRecord.java | 51 final int uid; field in class:PendingIntentRecord 194 uid = _u; 309 callingUid, uid, duration, tag.toString()); 344 owner.startActivitiesInPackage(uid, key.packageName, allIntents, 347 owner.startActivityInPackage(uid, key.packageName, finalIntent, 366 int sent = owner.broadcastIntentInPackage(key.packageName, uid, 380 owner.startServiceInPackage(uid, finalIntent, resolvedType, 430 pw.print(prefix); pw.print("uid="); pw.print(uid);
|
/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | FocusRequester.java | 86 * @param uid 91 String pn, int uid, @NonNull MediaFocusControl ctlr, int sdk) { 98 mCallingUid = uid; 153 boolean hasSameUid(int uid) { argument 154 return mCallingUid == uid; 236 + " -- uid: " + mCallingUid 382 Log.v(TAG, "not ducking uid " + this.mCallingUid + " - flags"); 387 Log.v(TAG, "not ducking uid " + this.mCallingUid + " - old SDK"); 89 FocusRequester(AudioAttributes aa, int focusRequest, int grantFlags, IAudioFocusDispatcher afl, IBinder source, String id, AudioFocusDeathHandler hdlr, String pn, int uid, @NonNull MediaFocusControl ctlr, int sdk) argument
|
H A D | PlaybackActivityMonitor.java | 77 // playback configurations that do not contain uid/pid/package name information. 189 * Check that piid and uid are valid for the given valid configuration. 192 * @param binderUid actual uid of client trying to signal a player state/event/attributes. 201 Log.e(TAG, "Forbidden operation from uid " + binderUid + " for player " + piid); 298 + " uid:" + apc.getClientUid() + " pid:" + apc.getClientPid() 305 + " uid:" + apc.getClientUid() + " pid:" + apc.getClientPid() 313 // (if apcsToDuck is empty, this will at least mark this uid as ducked, so when 314 // players of the same uid start, they will be ducked by DuckingManager.checkDuck()) 355 Log.v(TAG, "call: muting player" + piid + " uid:" + apc.getClientUid()); 379 Log.v(TAG, "call: unmuting player" + piid + " uid 494 duckUid(int uid, ArrayList<AudioPlaybackConfiguration> apcsToDuck) argument 505 unduckUid(int uid, HashMap<Integer, AudioPlaybackConfiguration> players) argument 546 DuckedApp(int uid) argument [all...] |
/frameworks/base/services/core/java/com/android/server/clipboard/ |
H A D | ClipboardService.java | 208 ListenerInfo(int uid, String packageName) { argument 209 mUid = uid; 436 private final void checkUriOwnerLocked(Uri uri, int uid) { argument 443 mAm.checkGrantUriPermission(uid, null, ContentProvider.getUriWithoutUserId(uri), 445 ContentProvider.getUserIdFromUri(uri, UserHandle.getUserId(uid))); 452 private final void checkItemOwnerLocked(ClipData.Item item, int uid) { argument 454 checkUriOwnerLocked(item.getUri(), uid); 458 checkUriOwnerLocked(intent.getData(), uid); 462 private final void checkDataOwnerLocked(ClipData data, int uid) { argument 465 checkItemOwnerLocked(data.getItemAt(i), uid); 492 addActiveOwnerLocked(int uid, String pkg) argument [all...] |
/frameworks/base/services/core/java/com/android/server/job/ |
H A D | JobStore.java | 76 final JobSet mJobSet; // per-caller-uid tracking 152 public int countJobsForUid(int uid) { argument 153 return mJobSet.countJobsForUid(uid); 198 * @param uid Uid of the requesting app. 199 * @return All JobStatus objects for a given uid from the master list. Never null. 201 public List<JobStatus> getJobsByUid(int uid) { argument 202 return mJobSet.getJobsByUid(uid); 206 * @param uid Uid of the requesting app. 210 public JobStatus getJobByUidAndJobId(int uid, int jobId) { argument 211 return mJobSet.get(uid, jobI 224 forEachJob(int uid, JobStatusFunctor functor) argument 807 getJobsByUid(int uid) argument 868 get(int uid, int jobId) argument 912 countJobsForUid(int uid) argument 935 forEachJob(int uid, JobStatusFunctor functor) argument [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 152 if (NetworkStatsAccess.isAccessibleToUser(key.uid, callerUid, accessLevel)) { 153 int j = uids.binarySearch(key.uid); 157 uids.add(j, key.uid); 169 NetworkTemplate template, int uid, int set, int tag, int fields, 171 return getHistory(template, uid, set, tag, fields, Long.MIN_VALUE, Long.MAX_VALUE, 180 NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end, 182 return getHistory(template, uid, set, tag, fields, start, end, accessLevel, 191 NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end, 193 if (!NetworkStatsAccess.isAccessibleToUser(uid, callerUid, accessLevel)) { 194 throw new SecurityException("Network stats history of uid " 168 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, @NetworkStatsAccess.Level int accessLevel) argument 179 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end, @NetworkStatsAccess.Level int accessLevel) argument 190 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end, @NetworkStatsAccess.Level int accessLevel, int callerUid) argument 271 recordData(NetworkIdentitySet ident, int uid, int set, int tag, long start, long end, NetworkStats.Entry entry) argument 305 findOrCreateHistory( NetworkIdentitySet ident, int uid, int set, int tag) argument 647 public final int uid; field in class:NetworkStatsCollection.Key 653 Key(NetworkIdentitySet ident, int uid, int set, int tag) argument [all...] |
H A D | NetworkStatsObservers.java | 169 * Removes a {@link DataUsageRequest} if the calling uid is authorized. 181 Slog.w(TAG, "Caller uid " + callingUid + " is not owner of " + request); 268 return "RequestInfo from uid:" + mCallingUid 358 // thread will update it. We pass a null VPN array because usage is aggregated by uid 407 * Reads all stats matching the given template and uid. Ther history will likely only 411 private long getTotalBytesForNetworkUid(NetworkTemplate template, int uid) { argument 413 NetworkStatsHistory history = mCollection.getHistory(template, uid, 421 Slog.w(TAG, "CallerUid " + mCallingUid + " may have lost access to uid " 422 + uid);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageDexOptimizer.java | 121 final long acquireTime = acquireWakeLockLI(pkg.applicationInfo.uid); 144 final int sharedGid = UserHandle.getSharedAppGid(pkg.applicationInfo.uid); 200 int dexoptFlags, int uid, CompilerStats.PackageStats packageStats) { 220 mInstaller.dexopt(path, uid, pkg.packageName, isa, dexoptNeeded, oatDir, dexoptFlags, 251 final long acquireTime = acquireWakeLockLI(info.uid); 262 private long acquireWakeLockLI(final int uid) { argument 269 mDexoptWakeLock.setWorkSource(new WorkSource(uid)); 322 mInstaller.dexopt(path, info.uid, info.packageName, isa, /*dexoptNeeded*/ 0, 523 private boolean isProfileUpdated(PackageParser.Package pkg, int uid, String compilerFilter) { argument 530 return mInstaller.mergeProfiles(uid, pk 198 dexOptPath(PackageParser.Package pkg, String path, String isa, String compilerFilter, boolean profileUpdated, String sharedLibrariesPath, int dexoptFlags, int uid, CompilerStats.PackageStats packageStats) argument [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvRemoteProviderProxy.java | 71 int uid) { 75 mUid = uid; 345 "openInputBridge, Invalid connection or incorrect uid: " + Binder 370 "closeInputBridge, Invalid connection or incorrect uid: " + 395 "clearInputBridge, Invalid connection or incorrect uid: " + 417 "sendTimeStamp, Invalid connection or incorrect uid: " + Binder 443 "sendKeyDown, Invalid connection or incorrect uid: " + Binder 468 "sendKeyUp, Invalid connection or incorrect uid: " + Binder 494 "sendPointerDown, Invalid connection or incorrect uid: " + Binder 520 "sendPointerUp, Invalid connection or incorrect uid 70 TvRemoteProviderProxy(Context context, ComponentName componentName, int userId, int uid) argument [all...] |
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
H A D | NotificationRecordTest.java | 67 private final int uid = 9583; field in class:NotificationRecordTest 172 return new StatusBarNotification(pkg, pkg, id1, tag1, uid, uid, n, 173 mUser, null, uid);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | ActivityManagerServiceTest.java | 207 // Verify when uid is not restricted, procStateSeq is not incremented. 229 // Verify when the uid doesn't have internet permission, then procStateSeq is not 242 // Verify procStateSeq is not incremented when the uid is not an application, regardless 255 private UidRecord addUidRecord(int uid) { argument 256 final UidRecord uidRec = new UidRecord(uid); 259 mAms.mActiveUids.put(uid, uidRec); 262 new ApplicationInfo(), TAG, uid); 285 if (app.uid == uidRec.uid && expectedBlockState == NETWORK_STATE_BLOCK) { 314 // No change in uid stat 647 verifyLastProcStateSeqUpdated(UidRecord uidRecord, int uid, long curProcstateSeq) argument 825 isNetworkRestrictedForUid(int uid) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | ConnOnActivityStartTest.java | 279 private void assertRestrictBackground(String list, int uid, boolean expected) throws Exception { argument 282 final String expectedUid = Integer.toString(uid); 293 Log.v(TAG, list + " check for uid " + uid + " doesn't match yet (expected " 297 fail(list + " check for uid " + uid + " failed: expected " + expected + ", got " + actual
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | StorageStatsService.java | 225 public long getCacheQuotaBytes(String volumeUuid, int uid, String callingPackage) { argument 230 return uidMap.get(uid, DEFAULT_QUOTA); 252 if (Binder.getCallingUid() == appInfo.uid) { 258 if (defeatNullable(mPackage.getPackagesForUid(appInfo.uid)).length == 1) { 260 return queryStatsForUid(volumeUuid, appInfo.uid, callingPackage); 263 final int appId = UserHandle.getUserId(appInfo.uid); 287 public StorageStats queryStatsForUid(String volumeUuid, int uid, String callingPackage) { argument 288 final int userId = UserHandle.getUserId(uid); 289 final int appId = UserHandle.getAppId(uid); 296 if (Binder.getCallingUid() == uid) { [all...] |
/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbService.java | 336 public void grantDevicePermission(UsbDevice device, int uid) { argument 338 final int userId = UserHandle.getUserId(uid); 339 getSettingsForUser(userId).grantDevicePermission(device, uid); 343 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { argument 345 final int userId = UserHandle.getUserId(uid); 346 getSettingsForUser(userId).grantAccessoryPermission(accessory, uid);
|
/frameworks/base/telephony/java/com/android/ims/internal/ |
H A D | ImsVideoCallProvider.java | 122 public void setCamera(String cameraId, int uid) { argument 125 args.argi1 = uid; 190 * @param uid The uid of the caller, used when opening the camera for permission verification. 193 public void onSetCamera(String cameraId, int uid) { argument
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | SmsApplication.java | 134 public SmsApplicationData(String packageName, int uid) { argument 136 mUid = uid; 244 activityInfo.applicationInfo.uid); 481 // are checking is for our current uid. Doing this check from the unprivileged current 582 appOps.setMode(AppOpsManager.OP_WRITE_SMS, info.applicationInfo.uid, 676 int mode = appOps.checkOp(AppOpsManager.OP_WRITE_SMS, info.applicationInfo.uid, 680 appOps.setMode(AppOpsManager.OP_WRITE_SMS, info.applicationInfo.uid, 690 private static void assignWriteSmsPermissionToSystemUid(AppOpsManager appOps, int uid) { argument 691 appOps.setUidMode(AppOpsManager.OP_WRITE_SMS, uid, AppOpsManager.MODE_ALLOWED);
|
/frameworks/native/cmds/dumpstate/tests/ |
H A D | dumpstate_test.cpp | 90 uid_t uid = getuid(); local 91 ASSERT_EQ(2000, (int)uid); 423 uid_t uid = getuid(); local 424 if (uid == 0) { 425 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"})); 431 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, 473 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, 1049 EXPECT_EQ(0, RunCommand("", {kSimpleCommand, "--uid"}, 1065 uid_t uid = getuid(); local 1066 if (uid [all...] |