Home
last modified time | relevance | path

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

12

/packages/services/Car/service/src/com/android/car/
DCarExperimentalFeatureServiceController.java160 int myUid = Process.myUid(); in bindService() local
161 if (myUid != Process.SYSTEM_UID) { in bindService()
163 + myUid); in bindService()
/packages/services/Car/car-lib/src/android/car/user/
DCarUserManager.java21 import static android.os.Process.myUid;
210 int uid = myUid(); in switchUser()
255 int uid = myUid(); in createUser()
322 int uid = myUid(); in removeUser()
352 int uid = myUid(); in addListener()
396 int uid = myUid(); in removeListener()
/packages/modules/NetworkStack/src/com/android/server/util/
DPermissionUtil.java44 if (caller != Process.myUid() && // apps with NETWORK_STACK_UID in enforceNetworkStackCallingPermission()
76 if (caller != Process.myUid() && caller != Process.SYSTEM_UID && caller != Process.ROOT_UID in checkDumpPermission()
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DBasicKeyChainServiceTest.java141 mTestSupportService.grantAppPermission(Process.myUid(), ALIAS_1); in testCanAccessKeyAfterGettingGrant()
167 mTestSupportService.grantAppPermission(Process.myUid(), ALIAS_IMPORTED); in testInstallAndRemoveKeyPair()
246 mTestSupportService.grantAppPermission(Process.myUid(), ALIAS_GENERATED); in testGenerateKeyPairSucceeds()
278 mTestSupportService.grantAppPermission(Process.myUid(), ALIAS_GENERATED); in testSetKeyPairCertificate()
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/
DNotificationUtils.java89 .setContentText("Message from " + UserHandle.getUserHandleForUid(Process.myUid())) in sendDirectReplyNotification()
108 UserHandle.getUserHandleForUid(Process.myUid()))); in onReceiveDirectReply()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DPermissionUtilsTest.java59 final int uid = android.os.Process.myUid(); in testSelfPermissions()
84 final int uid = android.os.Process.myUid(); in testNoIsolatedStorageIsByDefaultDenied()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/utils/
DSafetyNetLogger.java84 android.os.Process.myUid(), buildChangedPermissionForPackageMessage( in logPermissionsToggled()
110 android.os.Process.myUid(), buildChangedPermissionForPackageMessage(group, in logPermissionToggled()
/packages/modules/NetworkStack/tests/integration/src/android/net/netlink/
DInetDiagSocketIntegrationTest.java148 assertEquals(Process.myUid(), uid); in checkConnectionOwnerUid()
150 assertNotEquals(Process.myUid(), uid); in checkConnectionOwnerUid()
/packages/apps/Settings/src/com/android/settings/security/
DCredentialStorage.java130 if (uid != KeyStore.UID_SELF && !UserHandle.isSameUser(uid, Process.myUid())) { in installIfAvailable()
339 if (!UserHandle.isSameApp(launchedFromUid, Process.myUid())) { in checkCallerIsCertInstallerOrSelfInProfile()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVoicemailProviderTest.java214 mPackageManager.removePackage(Process.myUid()); in testUpdateOtherPackageCallLog_NotDirty()
306 mPackageManager.removePackage(Process.myUid()); in testDeleteOtherPackageVoicemail_SetsDirtyStatus()
333 mPackageManager.removePackage(Process.myUid()); in testUpdateAfterDelete_lastModifiedNotChanged()
337 mPackageManager.addPackage(Process.myUid(), mActor.packageName); in testUpdateAfterDelete_lastModifiedNotChanged()
DBaseVoicemailProviderTest.java50 mPackageManager.addPackage(Process.myUid(), mActor.packageName); in setUp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DCredentialStorage.java129 if (uid != KeyStore.UID_SELF && !UserHandle.isSameUser(uid, Process.myUid())) { in installIfAvailable()
364 if (!UserHandle.isSameApp(launchedFromUid, Process.myUid())) { in checkCallerIsCertInstallerOrSelfInProfile()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DCredentialStorageActivity.java148 if (!UserHandle.isSameApp(launchedFromUid, Process.myUid())) { in checkCallerIsCertInstallerOrSelfInProfile()
176 if (uid != KeyStore.UID_SELF && !UserHandle.isSameUser(uid, Process.myUid())) { in installIfAvailable()
/packages/services/Car/car-lib/src/com/android/car/internal/
DCarPermission.java42 if (Binder.getCallingUid() != Process.myUid()) { in checkGranted()
/packages/apps/Contacts/src/com/android/contacts/util/
DPermissionsUtil.java63 final int mode = appOpsManager.checkOpNoThrow(appOp, Process.myUid(), in hasAppOp()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DPickImageInfo.java48 Manifest.permission.READ_EXTERNAL_STORAGE, Process.myPid(), Process.myUid()) == in getThumbnailOfLastPhoto()
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/
DChannelNotificationSettingsTest.java97 mTargetContext.getPackageName(), Process.myUid(), blocked); in launchNotificationSettings_blockedChannel()
/packages/services/Car/tests/SecondaryHomeApp/src/com/android/car/secondaryhome/launcher/
DNotificationListener.java73 Process.myUid()); in registerAsSystemService()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DLocalCallingIdentityTest.java67 assertEquals(Arrays.asList(pm.getPackagesForUid(android.os.Process.myUid())), in testFromSelf()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/
DInstrumentClusterServiceTest.java131 mService.onFocusAcquired(CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION, Process.myUid(), in initService()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DActionDisabledByAdminDialogHelper.java170 if (UserHandle.isSameApp(Process.myUid(), Process.SYSTEM_UID)) { in setAdminSupportDetails()
/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DAgingHelperTest.java89 mUid = Process.myUid(); in setUp()
DNotificationCategorizerTest.java63 when(mSbn.getUid()).thenReturn(Process.myUid()); in setUp()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadIdleService.java187 final int uid = android.os.Process.myUid(); in cleanOrphans()
DOpenHelper.java174 if (uid != Process.myUid()) { in getOriginatingUid()

12