Home
last modified time | relevance | path

Searched refs:checkPermission (Results 1 – 25 of 59) sorted by relevance

123

/packages/services/Car/evs/manager/
DEnumerator.cpp41 bool Enumerator::checkPermission() { in checkPermission() function in android::automotive::evs::V1_0::implementation::Enumerator
55 if (!checkPermission()) { in getCameraList()
66 if (!checkPermission()) { in openCamera()
153 if (!checkPermission()) { in openDisplay()
203 if (!checkPermission()) { in getDisplayState()
DEnumerator.h52 bool checkPermission();
/packages/services/Car/evs/sampleDriver/
DEvsEnumerator.cpp49 bool EvsEnumerator::checkPermission() { in checkPermission() function in android::hardware::automotive::evs::V1_0::implementation::EvsEnumerator
174 if (!checkPermission()) { in getCameraList()
212 if (!checkPermission()) { in openCamera()
279 if (!checkPermission()) { in openDisplay()
321 if (!checkPermission()) { in getDisplayState()
DEvsEnumerator.h62 bool checkPermission();
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAdaptiveSleepPreferenceControllerTest.java71 when(mPackageManager.checkPermission(any(), any())).thenReturn( in setUp()
144 when(mPackageManager.checkPermission(any(), any())).thenReturn( in isChecked_returnsFalseWhenNotSufficientPermissions()
155 when(mPackageManager.checkPermission(any(), any())).thenReturn( in isEnabled_returnsFalseWhenNotSufficientPermissions()
DAdaptiveSleepPermissionPreferenceControllerTest.java56 doReturn(PackageManager.PERMISSION_GRANTED).when(mPackageManager).checkPermission( in setUp()
76 doReturn(PackageManager.PERMISSION_DENIED).when(mPackageManager).checkPermission( in updateStates_permissionRevoked_preferenceVisible()
/packages/services/Telephony/tests/src/com/android/phone/
DLocationAccessPolicyTest.java185 when(mContext.checkPermission(eq(Manifest.permission.ACCESS_FINE_LOCATION), in setupScenario()
189 when(mContext.checkPermission(eq(Manifest.permission.ACCESS_COARSE_LOCATION), in setupScenario()
202 when(mContext.checkPermission(eq(Manifest.permission.INTERACT_ACROSS_USERS_FULL), in setupScenario()
206 when(mContext.checkPermission(eq(Manifest.permission.INTERACT_ACROSS_USERS_FULL), in setupScenario()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentManagerTest.java52 when(mPackageManager.checkPermission(TrustAgentManager.PERMISSION_PROVIDE_AGENT, in shouldProvideTrust_doesProvideTrustWithPermission()
65 when(mPackageManager.checkPermission(TrustAgentManager.PERMISSION_PROVIDE_AGENT, in shouldProvideTrust_doesNotProvideTrustWithoutPermission()
/packages/services/Telecomm/src/com/android/server/telecom/
DEmergencyCallHelper.java147 return mContext.getPackageManager().checkPermission( in hasBackgroundLocationPermission()
154 return mContext.getPackageManager().checkPermission( in hasFineLocationPermission()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DPasswordUtilsTest.java139 when(mContext.checkPermission(PERMISSION, -1, UID)).thenReturn(PERMISSION_GRANTED); in isCallingAppPermitted_permissionGranted_returnsTrue()
147 when(mContext.checkPermission(PERMISSION, -1, UID)).thenReturn(PERMISSION_DENIED); in isCallingAppPermitted_permissionDenied_returnsFalse()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java191 when(mMockPackageManager.checkPermission( in setUp()
194 when(mMockPackageManager.checkPermission( in setUp()
197 when(mMockPackageManager.checkPermission( in setUp()
200 when(mMockPackageManager.checkPermission( in setUp()
769 when(mMockPackageManager.checkPermission( in testNoBindToInvalidService_CarModeUI()
796 when(mMockPackageManager.checkPermission( in testSanitizeContactName()
1233 when(mMockPackageManager.checkPermission(Manifest.permission.ACCESS_FINE_LOCATION, pkg))
DComponentContextFixture.java511 when(mPackageManager.checkPermission(
584 when(mPackageManager.checkPermission(eq(Manifest.permission.CONTROL_INCALL_EXPERIENCE),
/packages/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepPreferenceController.java71 return attentionPackage != null && packageManager.checkPermission( in hasSufficientPermission()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DContactsPermissions.java70 ok = context.getPackageManager().checkPermission(permission, pkg) in hasPackagePermission()
/packages/apps/Settings/src/com/android/settings/password/
DPasswordUtils.java44 return context.checkPermission(permission, /* pid= */ -1, in isCallingAppPermitted()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DPasswordUtils.java44 return context.checkPermission(permission, /* pid= */ -1, in isCallingAppPermitted()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DImageCategory.java116 return context.getPackageManager().checkPermission(permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGranted()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DPickImageInfo.java47 boolean canReadExternalStorage = context.checkPermission( in getThumbnailOfLastPhoto()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRequestIgnoreBatteryOptimizations.java82 if (getPackageManager().checkPermission( in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DRequestIgnoreBatteryOptimizations.java82 if (getPackageManager().checkPermission( in onCreate()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DStandalonePreviewActivity.java136 return getPackageManager().checkPermission(permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGrantedForApp()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DMyPhotosViewHolder.java110 return context.getPackageManager().checkPermission(permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGranted()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationAssistantPicker.java120 if (mContext.getPackageManager().checkPermission( in onServicesReloaded()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAssistantPicker.java120 if (mContext.getPackageManager().checkPermission( in onServicesReloaded()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java214 .checkPermission(WRITE_MEDIA_STORAGE, pid, uid) == PERMISSION_GRANTED; in isSystemInternal()

123