Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/
DTestService.java53 Log.d(TAG, "onCreate called. myUid=" + Process.myUid()); in onCreate()
58 Log.d(TAG, "onStartCommand called. myUid=" + Process.myUid()); in onStartCommand()
68 Log.d(TAG, "onBind called. myUid=" + Process.myUid()); in onBind()
74 Log.d(TAG, "onDestroy called. myUid=" + Process.myUid()); in onDestroy()
87 Log.d(TAG, "Starting foreground. myUid=" + Process.myUid()); in startForeground()
145 Log.d(TAG, "Overlay displayed, myUid=" + Process.myUid());
DIsolatedTestService.java29 Log.d(TAG, "onCreate called. myUid=" + Process.myUid()); in onCreate()
34 Log.d(TAG, "onBind called. myUid=" + Process.myUid()); in onBind()
40 Log.d(TAG, "onDestroy called. myUid=" + Process.myUid()); in onDestroy()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsNotedWatcherTest.java59 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps()
61 appOpsManager.noteOp(AppOpsManager.OP_CAMERA, Process.myUid(), in testWatchNotedOps()
68 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps()
72 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps()
DAppOpsActiveWatcherTest.java69 eq(Process.myUid()), eq(getContext().getPackageName()), eq(true)); in testWatchActiveOps()
79 Process.myUid(), getContext().getPackageName())).isTrue(); in testWatchActiveOps()
87 eq(Process.myUid()), eq(getContext().getPackageName()), eq(false)); in testWatchActiveOps()
91 Process.myUid(), getContext().getPackageName())).isFalse(); in testWatchActiveOps()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceManagerServiceTest.java119 when(mContextSpy.checkPermission("perm1", Process.myPid(), Process.myUid())) in testCheckAutoGrantPermissions()
121 when(mContextSpy.checkPermission("perm2", Process.myPid(), Process.myUid())) in testCheckAutoGrantPermissions()
125 Process.myUid(), testPerms); in testCheckAutoGrantPermissions()
127 verify(mContextSpy).checkPermission(eq("perm1"), eq(Process.myPid()), eq(Process.myUid())); in testCheckAutoGrantPermissions()
128 verify(mContextSpy).checkPermission(eq("perm2"), eq(Process.myPid()), eq(Process.myUid())); in testCheckAutoGrantPermissions()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java26 import static android.os.Process.myUid;
218 int myUid = Process.myUid(); in testAccessLevels() local
219 int otherUidInSameUser = Process.myUid() + 1; in testAccessLevels()
220 int uidInDifferentUser = Process.myUid() + UserHandle.PER_USER_RANGE; in testAccessLevels()
224 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, in testAccessLevels()
243 MoreAsserts.assertEquals(new int[] { myUid }, in testAccessLevels()
245 MoreAsserts.assertEquals(new int[] { Process.SYSTEM_UID, myUid, otherUidInSameUser }, in testAccessLevels()
248 new int[] { Process.SYSTEM_UID, myUid, otherUidInSameUser, uidInDifferentUser }, in testAccessLevels()
252 … assertNotNull(collection.getHistory(buildTemplateMobileAll(TEST_IMSI), null, myUid, SET_DEFAULT, in testAccessLevels() local
253 TAG_NONE, 0, 0L, 0L, NetworkStatsAccess.Level.DEFAULT, myUid)); in testAccessLevels() local
[all …]
/frameworks/base/core/java/android/net/
DTrafficStats.java332 setThreadStatsUid(android.os.Process.myUid()); in setThreadStatsUidSelf()
473 final int uid = android.os.Process.myUid(); in incrementOperationCount()
765 final int callingUid = android.os.Process.myUid(); in getUidTxBytes()
798 final int callingUid = android.os.Process.myUid(); in getUidRxBytes()
831 final int callingUid = android.os.Process.myUid(); in getUidTxPackets()
864 final int callingUid = android.os.Process.myUid(); in getUidRxPackets()
970 final int uid = android.os.Process.myUid(); in getDataLayerSnapshotForUid()
/frameworks/base/core/java/android/os/
DServiceManager.java267 final int myUid = Process.myUid(); in rawGetService() local
268 final boolean isCore = UserHandle.isCore(myUid); in rawGetService()
DProcess.java624 public static final int myUid() { in myUid() method in Process
635 return UserHandle.of(UserHandle.getUserId(myUid())); in myUserHandle()
660 return isIsolated(myUid()); in isIsolated()
DVibrator.java266 vibrate(Process.myUid(), mPackageName, vibe, null, attributes); in vibrate()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageIconProvider.java150 final int myUid = android.os.Process.myUid(); in enforcePermissions() local
152 if (uid == myUid || isSystemApp(context, pid)) { in enforcePermissions()
/frameworks/base/services/tests/servicestests/test-apps/ConnTestApp/src/com/android/servicestests/apps/conntestapp/
DConnTestActivity.java135 final boolean restrictedByFwRules = nms.isNetworkRestricted(Process.myUid()); in checkNetworkStatus()
136 final boolean restrictedByUidRules = npms.isUidNetworkingBlocked(Process.myUid(), true); in checkNetworkStatus()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java545 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppBelowQSDK()
564 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppTargetingQSDKNoIncrement()
608 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledSuccessForAppsTargetingBelowQSDK()
625 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFailureForAppsTargetingQSDK()
642 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnableAppOpsRejected()
662 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnableAppOpsIgnored()
694 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFromAppFailsWhenInAirplaneMode()
738 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledFromAppFailsWhenApEnabled()
820 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiDisabledSuccessForAppsTargetingBelowQSDK()
837 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiDisabledFailureForAppsTargetingQSDK()
[all …]
/frameworks/base/core/tests/benchmarks/src/android/net/
DTrafficStatsBenchmark.java22 TrafficStats.getUidRxBytes(android.os.Process.myUid()); in timeGetUidRxBytes()
/frameworks/base/core/java/android/content/
DPermissionChecker.java197 Process.myUid(), context.getPackageName()); in checkSelfPermissionForDataDelivery()
232 Process.myUid(), context.getPackageName()); in checkSelfPermissionForPreflight()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderEndToEndTest.java128 KernelCpuThreadReader.create(8, uid -> uid == Process.myUid()); in getAverageWorkTime()
130 kernelCpuThreadReader.setUidPredicate(uid -> uid == Process.myUid()); in getAverageWorkTime()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DVibratorServicePermissionTest.java54 mVibratorService.vibrate(Process.myUid(), null, effect, AudioManager.STREAM_ALARM, in testVibrate()
/frameworks/opt/chips/src/com/android/ex/chips/
DChipsUtil.java65 return context.checkPermission(permission, Process.myPid(), Process.myUid()); in checkPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBinderCallsStatsServiceTest.java41 return Process.myUid(); in weTrustOurselves()
/frameworks/base/core/java/android/os/health/
DSystemHealthManager.java109 return takeUidSnapshot(Process.myUid()); in takeMyUidSnapshot()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDebug.java77 SLOW_QUERY_THRESHOLD_PROP + "." + Process.myUid();
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIService.java56 + Process.myUid()); in onCreate()
/frameworks/base/services/core/java/com/android/server/security/
DKeyChainSystemService.java104 idleController.addPowerSaveTempWhitelistApp(Process.myUid(), packageName, in startServiceInBackgroundAsUser()
/frameworks/base/media/java/android/media/midi/
DMidiDeviceServer.java189 if (Binder.getCallingUid() != Process.myUid()) {
227 if (Binder.getCallingUid() != Process.myUid()) {
/frameworks/base/core/java/android/database/
DCursorToBulkCursorAdaptor.java81 mRemote.onChange(selfChange, uri, android.os.Process.myUid()); in onChange()

12345