Home
last modified time | relevance | path

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

12

/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/src/com/android/providers/media/
DLocalCallingIdentity.java69 android.os.Process.myUid(), in fromSelf()
203 if (uid == android.os.Process.myUid()) { in isSystemInternal()
/packages/services/Car/service/src/com/android/car/vms/
DVmsClientManager.java311 new SubscriberConnection(subscriberClient, Process.myUid(), HAL_CLIENT_NAME, in onHalConnected()
314 mStatsService.getVmsClientLogger(Process.myUid()) in onHalConnected()
325 mStatsService.getVmsClientLogger(Process.myUid()) in onHalDisconnected()
/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.java152 if (!UserHandle.isSameApp(launchedFromUid, Process.myUid())) { in checkCallerIsCertInstallerOrSelfInProfile()
181 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/PermissionController/src/com/android/packageinstaller/permission/utils/
DSafetyNetLogger.java82 android.os.Process.myUid(), buildChangedPermissionForPackageMessage( in logPermissionsToggled()
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/
DChannelNotificationSettingsTest.java97 mTargetContext.getPackageName(), Process.myUid(), blocked); in launchNotificationSettings_blockedChannel()
/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()
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DSmsDatabaseHandler.java190 int mode = appOps.checkOpNoThrow(AppOpsManager.OP_WRITE_SMS, android.os.Process.myUid(), in canWriteToDatabase()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java300 int uid = Process.myUid(); in clearCallingIdentityInternal()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/
DActionDisabledByAdminDialogHelper.java207 if (UserHandle.isSameApp(Process.myUid(), Process.SYSTEM_UID)) { in setAdminSupportDetails()
/packages/apps/Settings/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelper.java207 if (UserHandle.isSameApp(Process.myUid(), Process.SYSTEM_UID)) { in setAdminSupportDetails()
/packages/services/Car/service/src/com/android/car/
DCarBugreportManagerService.java122 if (pm.checkSignatures(Process.myUid(), callingUid) != PackageManager.SIGNATURE_MATCH) { in requestBugreport()

12