/frameworks/base/core/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/ |
D | TestService.java | 53 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());
|
D | IsolatedTestService.java | 29 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/ |
D | AppOpsNotedWatcherTest.java | 59 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()
|
D | AppOpsActiveWatcherTest.java | 69 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/ |
D | SliceManagerServiceTest.java | 119 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/ |
D | NetworkStatsCollectionTest.java | 26 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/ |
D | TrafficStats.java | 332 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/ |
D | ServiceManager.java | 267 final int myUid = Process.myUid(); in rawGetService() local 268 final boolean isCore = UserHandle.isCore(myUid); in rawGetService()
|
D | Process.java | 624 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()
|
D | Vibrator.java | 266 vibrate(Process.myUid(), mPackageName, vibe, null, attributes); in vibrate()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageIconProvider.java | 150 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/ |
D | ConnTestActivity.java | 135 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/ |
D | WifiServiceImplTest.java | 545 .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/ |
D | TrafficStatsBenchmark.java | 22 TrafficStats.getUidRxBytes(android.os.Process.myUid()); in timeGetUidRxBytes()
|
/frameworks/base/core/java/android/content/ |
D | PermissionChecker.java | 197 Process.myUid(), context.getPackageName()); in checkSelfPermissionForDataDelivery() 232 Process.myUid(), context.getPackageName()); in checkSelfPermissionForPreflight()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuThreadReaderEndToEndTest.java | 128 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/ |
D | VibratorServicePermissionTest.java | 54 mVibratorService.vibrate(Process.myUid(), null, effect, AudioManager.STREAM_ALARM, in testVibrate()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | ChipsUtil.java | 65 return context.checkPermission(permission, Process.myPid(), Process.myUid()); in checkPermission()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | BinderCallsStatsServiceTest.java | 41 return Process.myUid(); in weTrustOurselves()
|
/frameworks/base/core/java/android/os/health/ |
D | SystemHealthManager.java | 109 return takeUidSnapshot(Process.myUid()); in takeMyUidSnapshot()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteDebug.java | 77 SLOW_QUERY_THRESHOLD_PROP + "." + Process.myUid();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SystemUIService.java | 56 + Process.myUid()); in onCreate()
|
/frameworks/base/services/core/java/com/android/server/security/ |
D | KeyChainSystemService.java | 104 idleController.addPowerSaveTempWhitelistApp(Process.myUid(), packageName, in startServiceInBackgroundAsUser()
|
/frameworks/base/media/java/android/media/midi/ |
D | MidiDeviceServer.java | 189 if (Binder.getCallingUid() != Process.myUid()) { 227 if (Binder.getCallingUid() != Process.myUid()) {
|
/frameworks/base/core/java/android/database/ |
D | CursorToBulkCursorAdaptor.java | 81 mRemote.onChange(selfChange, uri, android.os.Process.myUid()); in onChange()
|