Home
last modified time | relevance | path

Searched refs:myUid (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java167 int myUid = Process.myUid(); in testAccessLevels() local
168 int otherUidInSameUser = Process.myUid() + 1; in testAccessLevels()
169 int uidInDifferentUser = Process.myUid() + UserHandle.PER_USER_RANGE; in testAccessLevels()
173 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, in testAccessLevels()
192 MoreAsserts.assertEquals(new int[] { myUid }, in testAccessLevels()
194 MoreAsserts.assertEquals(new int[] { Process.SYSTEM_UID, myUid, otherUidInSameUser }, in testAccessLevels()
197 new int[] { Process.SYSTEM_UID, myUid, otherUidInSameUser, uidInDifferentUser }, in testAccessLevels()
201 assertNotNull(collection.getHistory(buildTemplateMobileAll(TEST_IMSI), myUid, SET_DEFAULT, in testAccessLevels() local
/frameworks/base/core/java/android/net/
DTrafficStats.java322 final int uid = android.os.Process.myUid(); in incrementOperationCount()
528 final int callingUid = android.os.Process.myUid(); in getUidTxBytes()
557 final int callingUid = android.os.Process.myUid(); in getUidRxBytes()
586 final int callingUid = android.os.Process.myUid(); in getUidTxPackets()
615 final int callingUid = android.os.Process.myUid(); in getUidRxPackets()
717 final int uid = android.os.Process.myUid(); in getDataLayerSnapshotForUid()
/frameworks/base/core/java/android/os/
DVibrator.java80 vibrate(Process.myUid(), mPackageName, milliseconds, attributes); in vibrate()
132 vibrate(Process.myUid(), mPackageName, pattern, repeat, attributes); in vibrate()
DProcess.java851 public static final int myUid() { in myUid() method in Process
862 return UserHandle.of(UserHandle.getUserId(myUid())); in myUserHandle()
880 return isIsolated(myUid()); in isIsolated()
DUserHandle.java300 return getUserId(Process.myUid()); in myUserId()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DVibratorServicePermissionTest.java51 mVibratorService.vibrate(Process.myUid(), null, 2000, AudioManager.STREAM_ALARM, in testVibrate()
68 mVibratorService.vibratePattern(Process.myUid(), null, new long[] {0}, 0, in testVibratePattern()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java87 android.os.Process.myUid(), true); in testMountAndPullSdCard()
109 android.os.Process.myUid()); in getMountRunnable()
/frameworks/base/core/tests/benchmarks/src/android/net/
DTrafficStatsBenchmark.java22 TrafficStats.getUidRxBytes(android.os.Process.myUid()); in timeGetUidRxBytes()
/frameworks/opt/chips/src/com/android/ex/chips/
DChipsUtil.java65 return context.checkPermission(permission, Process.myPid(), Process.myUid()); in checkPermission()
/frameworks/base/core/java/android/os/health/
DSystemHealthManager.java96 return takeUidSnapshot(Process.myUid()); in takeMyUidSnapshot()
/frameworks/base/services/core/java/com/android/server/wm/
DInputConsumerImpl.java65 mWindowHandle.ownerUid = Process.myUid(); in InputConsumerImpl()
/frameworks/base/media/java/android/media/midi/
DMidiDeviceServer.java165 if (Binder.getCallingUid() != Process.myUid()) {
204 if (Binder.getCallingUid() != Process.myUid()) {
/frameworks/support/core-utils/java/android/support/v4/content/
DPermissionChecker.java126 android.os.Process.myUid(), context.getPackageName()); in checkSelfPermission()
/frameworks/base/media/java/android/media/
DPlayerBase.java151 Process.myUid(), ActivityThread.currentPackageName()); in updateAppOpsPlayAudio_sync()
DSoundPool.java539 Process.myUid(), ActivityThread.currentPackageName()); in updateAppOpsPlayAudio()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DPackageValidator.java96 if (Process.SYSTEM_UID == callingUid || Process.myUid() == callingUid) { in isCallerAllowed()
/frameworks/base/core/java/android/database/
DCursorToBulkCursorAdaptor.java81 mRemote.onChange(selfChange, uri, android.os.Process.myUid()); in onChange()
/frameworks/base/core/java/android/app/
DAppOpsManager.java1743 + " from uid " + Process.myUid() + " or calling package " in noteProxyOp()
1779 return noteOp(op, Process.myUid(), mContext.getOpPackageName()); in noteOp()
1841 return startOp(op, Process.myUid(), mContext.getOpPackageName()); in startOp()
1861 finishOp(op, Process.myUid(), mContext.getOpPackageName()); in finishOp()
DLoadedApk.java300 final int myUid = Process.myUid(); in setApplicationInfo() local
304 mResDir = aInfo.uid == myUid ? aInfo.sourceDir : aInfo.publicSourceDir; in setApplicationInfo()
306 mSplitResDirs = aInfo.uid == myUid ? aInfo.splitSourceDirs : aInfo.splitPublicSourceDirs; in setApplicationInfo()
575 if (mApplicationInfo.uid != Process.myUid()) { in setupJitProfileSupport()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DAppFuse.java109 return new File("/mnt/appfuse/" + Process.myUid() + "_" + mName); in getMountPoint()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DAsecTests.java84 return ms.createSecureContainer(fullId, size, filesystem, key, android.os.Process.myUid(), in createContainer()
93 return ms.mountSecureContainer(fullId, key, android.os.Process.myUid(), true); in mountContainer()
/frameworks/support/compat/java/android/support/v4/content/
DContextCompat.java426 return context.checkPermission(permission, android.os.Process.myPid(), Process.myUid()); in checkSelfPermission()
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java1037 : BatteryStats.DEVICE_IDLE_MODE_LIGHT, null, Process.myUid()); in handleMessage()
1055 null, Process.myUid()); in handleMessage()
1765 becomeActiveLocked("screen", Process.myUid()); in updateDisplayLocked()
1780 becomeActiveLocked("charging", Process.myUid()); in updateChargingLocked()
1848 becomeActiveLocked("exit-force", Process.myUid()); in exitForceIdleLocked()
1943 becomeActiveLocked("alarm", Process.myUid()); in stepIdleStateLocked()
2148 scheduleReportActiveLocked(type, Process.myUid()); in handleMotionDetectedLocked()
2671 Process.myUid()); in onShellCommand()
/frameworks/base/keystore/java/android/security/
DKeyStore.java277 return unlock(UserHandle.getUserId(Process.myUid()), password); in unlock()
616 return onUserPasswordChanged(UserHandle.getUserId(Process.myUid()), newPassword); in onUserPasswordChanged()
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java473 mService.grantDevicePermission(device, Process.myUid()); in grantPermission()

1234