Home
last modified time | relevance | path

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

123

/packages/services/Car/evs/manager/1.0/
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.cpp57 bool EvsEnumerator::checkPermission() { in checkPermission() function in android::hardware::automotive::evs::V1_1::implementation::EvsEnumerator
239 if (!checkPermission()) { in getCameraList()
277 if (!checkPermission()) { in openCamera()
335 if (!checkPermission()) { in openDisplay()
378 if (!checkPermission()) { in getDisplayState()
395 if (!checkPermission()) { in getCameraList_1_1()
470 if (!checkPermission()) { in openCamera_1_1()
528 if (!checkPermission()) { in openDisplay_1_1()
DEvsEnumerator.h87 bool checkPermission();
/packages/services/Car/evs/manager/1.1/
DEnumerator.cpp104 bool Enumerator::checkPermission() { in checkPermission() function in android::automotive::evs::V1_1::implementation::Enumerator
220 if (!checkPermission()) { in checkPermission()
307 if (!checkPermission()) { in checkPermission()
402 if (!checkPermission()) { in checkPermission()
431 if (!checkPermission()) { in checkPermission()
481 if (!checkPermission()) { in checkPermission()
501 if (!checkPermission()) { in checkPermission()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DPermissionUtils.java101 return (context.checkPermission(BACKUP, pid, uid) == PERMISSION_GRANTED) in checkPermissionDelegator()
102 || (context.checkPermission(UPDATE_DEVICE_STATS, pid, uid) == PERMISSION_GRANTED); in checkPermissionDelegator()
341 return context.checkPermission(permission, pid, uid) == PERMISSION_GRANTED; in checkPermissionCommon()
379 return context.checkPermission(permission, pid, uid) == PERMISSION_GRANTED; in checkAppOpPermission()
388 if (context.checkPermission(permission, pid, uid) == PackageManager.PERMISSION_DENIED) { in checkRuntimePermission()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAdaptiveSleepPreferenceControllerTest.java76 when(mPackageManager.checkPermission(any(), any())).thenReturn( in setUp()
157 when(mPackageManager.checkPermission(any(), any())).thenReturn( in isChecked_returnsFalseWhenNotSufficientPermissions()
168 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.java186 when(mContext.checkPermission(eq(Manifest.permission.ACCESS_FINE_LOCATION), in setupScenario()
190 when(mContext.checkPermission(eq(Manifest.permission.ACCESS_COARSE_LOCATION), in setupScenario()
203 when(mContext.checkPermission(eq(Manifest.permission.INTERACT_ACROSS_USERS_FULL), in setupScenario()
207 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/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DFocusEntryTest.java104 when(mMockPM.checkPermission(Car.PERMISSION_RECEIVE_CAR_AUDIO_DUCKING_EVENTS, PACKAGE_NAME)) in withPermission()
109 when(mMockPM.checkPermission(Car.PERMISSION_RECEIVE_CAR_AUDIO_DUCKING_EVENTS, PACKAGE_NAME)) in withoutPermission()
/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.java183 when(mMockPackageManager.checkPermission( in setUp()
186 when(mMockPackageManager.checkPermission( in setUp()
189 when(mMockPackageManager.checkPermission( in setUp()
753 when(mMockPackageManager.checkPermission( in testNoBindToInvalidService_CarModeUI()
780 when(mMockPackageManager.checkPermission( in testSanitizeContactName()
1157 when(mMockPackageManager.checkPermission(Manifest.permission.ACCESS_FINE_LOCATION, pkg))
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSettingsSliceProviderTest.java670 .when(mContext).checkPermission(anyString(), anyInt(), anyInt()); in isPrivateSlicesNeeded_correctUriWithPermissionAndIsSI_returnTrue()
682 .when(mContext).checkPermission(anyString(), anyInt(), anyInt()); in isPrivateSlicesNeeded_correctUriWithPermissionNotSI_returnFalse()
693 doReturn(PERMISSION_DENIED).when(mContext).checkPermission(anyString(), anyInt(), anyInt()); in isPrivateSlicesNeeded_correctUriNoPermission_returnFalse()
/packages/apps/Settings/src/com/android/settings/password/
DPasswordUtils.java44 return context.checkPermission(permission, /* pid= */ -1, in isCallingAppPermitted()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DContactsPermissions.java70 ok = context.getPackageManager().checkPermission(permission, pkg) in hasPackagePermission()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DPasswordUtils.java44 return context.checkPermission(permission, /* pid= */ -1, in isCallingAppPermitted()
/packages/services/Car/service/src/com/android/car/audio/
DFocusEntry.java101 return (mPackageManager.checkPermission( in receivesDuckEvents()
/packages/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepPreferenceController.java89 return attentionPackage != null && packageManager.checkPermission( in hasSufficientPermission()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DImageCategory.java116 return context.getPackageManager().checkPermission(permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGranted()
/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/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DPickImageInfo.java47 boolean canReadExternalStorage = context.checkPermission( in getThumbnailOfLastPhoto()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DStandalonePreviewActivity.java136 return getPackageManager().checkPermission(permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGrantedForApp()

123