Home
last modified time | relevance | path

Searched refs:enforceCallingPermission (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java390 mContext.enforceCallingPermission( in getStatistics()
405 mContext.enforceCallingPermission( in getStatisticsStream()
446 enforceCallingPermission(); in noteEvent()
453 enforceCallingPermission(); in noteSyncStart()
462 enforceCallingPermission(); in noteSyncFinish()
472 enforceCallingPermission(); in noteJobStart()
483 enforceCallingPermission(); in noteJobFinish()
500 enforceCallingPermission(); in noteWakupAlarm()
507 enforceCallingPermission(); in noteAlarmStart()
514 enforceCallingPermission(); in noteAlarmFinish()
[all …]
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareService.java80 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
88 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
99 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
107 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
116 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
125 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
135 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
146 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
DActivityRecognitionHardware.java219 mContext.enforceCallingPermission(HARDWARE_PERMISSION, ENFORCE_HW_PERMISSION_MESSAGE); in checkPermissions()
/frameworks/base/core/java/android/permission/
DPermissionControllerService.java228 enforceCallingPermission(Manifest.permission.REVOKE_RUNTIME_PERMISSIONS, null); in onBind()
264 enforceCallingPermission(Manifest.permission.GET_RUNTIME_PERMISSIONS, null); in onBind()
282 enforceCallingPermission(Manifest.permission.GRANT_RUNTIME_PERMISSIONS, null); in onBind()
302 enforceCallingPermission(Manifest.permission.GRANT_RUNTIME_PERMISSIONS, null); in onBind()
318 enforceCallingPermission(Manifest.permission.GET_RUNTIME_PERMISSIONS, null); in onBind()
338 enforceCallingPermission(Manifest.permission.REVOKE_RUNTIME_PERMISSIONS, null); in onBind()
357 enforceCallingPermission(Manifest.permission.GET_RUNTIME_PERMISSIONS, null); in onBind()
372 enforceCallingPermission(Manifest.permission.GET_RUNTIME_PERMISSIONS, null); in onBind()
398 enforceCallingPermission(Manifest.permission.GRANT_RUNTIME_PERMISSIONS, null); in onBind()
402 enforceCallingPermission(Manifest.permission.REVOKE_RUNTIME_PERMISSIONS, null); in onBind()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsPermissionsTest.java114 .enforceCallingPermission(Manifest.permission.SEND_SMS, MESSAGE); in testCheckCallingSendTextPermissions_persist_noGrant()
139 .enforceCallingPermission(Manifest.permission.MODIFY_PHONE_STATE, MESSAGE); in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp()
141 .enforceCallingPermission(Manifest.permission.SEND_SMS, MESSAGE); in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp()
159 .enforceCallingPermission(Manifest.permission.MODIFY_PHONE_STATE, MESSAGE); in testCheckCallingSendTextPermissions_noPersist_noModify()
173 .enforceCallingPermission(Manifest.permission.SEND_SMS, MESSAGE); in testCheckCallingSendTextPermissions_noPersist_noSendSmsPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
DTimeZoneDetectorServiceTest.java113 .when(mMockContext).enforceCallingPermission(anyString(), any()); in testSuggestTelephonyTimeZone_withoutPermission()
120 verify(mMockContext).enforceCallingPermission( in testSuggestTelephonyTimeZone_withoutPermission()
128 doNothing().when(mMockContext).enforceCallingPermission(anyString(), any()); in testSuggestTelephonyTimeZone()
134 verify(mMockContext).enforceCallingPermission( in testSuggestTelephonyTimeZone()
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
DTimeDetectorServiceTest.java85 .when(mMockContext).enforceCallingPermission(anyString(), any()); in testSuggestTelephonyTime_withoutPermission()
92 verify(mMockContext).enforceCallingPermission( in testSuggestTelephonyTime_withoutPermission()
100 doNothing().when(mMockContext).enforceCallingPermission(anyString(), any()); in testSuggestTelephonyTime()
106 verify(mMockContext).enforceCallingPermission( in testSuggestTelephonyTime()
/frameworks/base/core/java/android/net/
DNetworkRecommendationProvider.java100 enforceCallingPermission(); in requestScores()
119 private void enforceCallingPermission() { in enforceCallingPermission() method in NetworkRecommendationProvider.ServiceWrapper
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerService.java254 enforceCallingPermission(Manifest.permission.MANAGE_SOUND_TRIGGER); in startRecognition()
283 enforceCallingPermission(Manifest.permission.MANAGE_SOUND_TRIGGER); in stopRecognition()
302 enforceCallingPermission(Manifest.permission.MANAGE_SOUND_TRIGGER); in getSoundModel()
317 enforceCallingPermission(Manifest.permission.MANAGE_SOUND_TRIGGER); in updateSoundModel()
330 enforceCallingPermission(Manifest.permission.MANAGE_SOUND_TRIGGER); in deleteSoundModel()
348 enforceCallingPermission(Manifest.permission.MANAGE_SOUND_TRIGGER); in loadGenericSoundModel()
383 enforceCallingPermission(Manifest.permission.MANAGE_SOUND_TRIGGER); in loadKeyphraseSoundModel()
432 enforceCallingPermission(Manifest.permission.MANAGE_SOUND_TRIGGER); in startRecognitionForService()
503 enforceCallingPermission(Manifest.permission.MANAGE_SOUND_TRIGGER); in stopRecognitionForService()
569 enforceCallingPermission(Manifest.permission.MANAGE_SOUND_TRIGGER); in unloadSoundModel()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java884 enforceCallingPermission(Manifest.permission.MANAGE_VOICE_KEYPHRASES); in getKeyphraseSoundModel()
901 enforceCallingPermission(Manifest.permission.MANAGE_VOICE_KEYPHRASES); in updateKeyphraseSoundModel()
926 enforceCallingPermission(Manifest.permission.MANAGE_VOICE_KEYPHRASES); in deleteKeyphraseSoundModel()
1067 enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE); in getActiveServiceComponentName()
1076 enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE); in showSessionForActiveService()
1098 enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE); in hideCurrentSession()
1120 enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE); in launchVoiceAssistFromKeyguard()
1138 enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE); in isSessionRunning()
1146 enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE); in activeServiceSupportsAssist()
1154 enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE); in activeServiceSupportsLaunchFromKeyguard()
[all …]
/frameworks/base/core/java/android/util/
DStatsLog.java263 context.enforceCallingPermission(android.Manifest.permission.DUMP, "Need DUMP permission."); in enforceDumpCallingPermission()
267 context.enforceCallingPermission(Manifest.permission.PACKAGE_USAGE_STATS, in enforcesageStatsCallingPermission()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsPermissions.java72 mContext.enforceCallingPermission( in checkCallingCanSendText()
115 mContext.enforceCallingPermission(Manifest.permission.SEND_SMS, message); in checkCallingCanSendSms()
DIccSmsInterfaceManager.java929 mContext.enforceCallingPermission("android.permission.RECEIVE_EMERGENCY_BROADCAST", in enableCellBroadcastRange()
942 mContext.enforceCallingPermission("android.permission.RECEIVE_EMERGENCY_BROADCAST", in disableCellBroadcastRange()
957 mContext.enforceCallingPermission( in enableGsmBroadcastRange()
988 mContext.enforceCallingPermission( in disableGsmBroadcastRange()
1019 mContext.enforceCallingPermission( in enableCdmaBroadcastRange()
1049 mContext.enforceCallingPermission( in disableCdmaBroadcastRange()
/frameworks/base/core/java/android/app/role/
DRoleControllerService.java144 enforceCallingPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, null); in onBind()
157 enforceCallingPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, null); in onBind()
/frameworks/base/services/core/java/com/android/server/timezone/
DRulesManagerServiceHelperImpl.java44 mContext.enforceCallingPermission(requiredPermission, null /* message */); in enforceCallerHasPermission()
/frameworks/base/core/tests/coretests/src/android/provider/
DTestDocumentsProvider.java112 public void enforceCallingPermission(String permission, String message) { in enforceCallingPermission() method in TestDocumentsProvider.TestContext
/frameworks/base/services/core/java/com/android/server/wm/
DActivityTaskManagerService.java1312 mAmInternal.enforceCallingPermission( in startActivityAsCaller()
1421 mAmInternal.enforceCallingPermission(BIND_VOICE_INTERACTION, "startVoiceActivity()"); in startVoiceActivity()
1444 mAmInternal.enforceCallingPermission(BIND_VOICE_INTERACTION, "startAssistantActivity()"); in startAssistantActivity()
1916 mAmInternal.enforceCallingPermission(android.Manifest.permission.SET_SCREEN_COMPATIBILITY, in setFrontActivityScreenCompatMode()
2056 mAmInternal.enforceCallingPermission(MANAGE_ACTIVITY_STACKS, "setFocusedStack()"); in setFocusedStack()
2078 mAmInternal.enforceCallingPermission(MANAGE_ACTIVITY_STACKS, "setFocusedTask()"); in setFocusedTask()
2100 mAmInternal.enforceCallingPermission(MANAGE_ACTIVITY_STACKS, "restartActivityProcess()"); in restartActivityProcessIfVisible()
2206 mAmInternal.enforceCallingPermission(MANAGE_ACTIVITY_STACKS, "getTaskBounds()"); in getTaskBounds()
2315 … mAmInternal.enforceCallingPermission(android.Manifest.permission.FORCE_BACK, "unhandledBack()"); in unhandledBack()
2359 …mAmInternal.enforceCallingPermission(android.Manifest.permission.REORDER_TASKS, "moveTaskToFront()… in moveTaskToFront()
[all …]
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java384 enforceCallingPermission(); in sendDataBroadcast()
397 enforceCallingPermission(); in sendActiveConfigsChangedBroadcast()
415 enforceCallingPermission(); in sendSubscriberBroadcast()
686 enforceCallingPermission(); in setAnomalyAlarm()
702 enforceCallingPermission(); in cancelAnomalyAlarm()
714 enforceCallingPermission(); in setAlarmForSubscriberTriggering()
733 enforceCallingPermission(); in cancelAlarmForSubscriberTriggering()
747 enforceCallingPermission(); in setPullingAlarm()
765 enforceCallingPermission(); in cancelPullingAlarm()
2305 enforceCallingPermission(); in pullData()
[all …]
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorService.java135 mContext.enforceCallingPermission( in enforceSuggestTelephonyTimePermission()
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DTimeZoneDetectorService.java128 mContext.enforceCallingPermission( in enforceSuggestTelephonyTimeZonePermission()
/frameworks/base/services/core/java/com/android/server/location/
DContextHubServiceUtil.java203 context.enforceCallingPermission(HARDWARE_PERMISSION, ENFORCE_HW_PERMISSION_MESSAGE); in checkPermissions()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java598 getContext().enforceCallingPermission( in call()
615 getContext().enforceCallingPermission( in call()
634 getContext().enforceCallingPermission( in call()
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java365 public void enforceCallingPermission(String permission, String message) { in enforceCallingPermission() method in TestableContext
369 super.enforceCallingPermission(permission, message); in enforceCallingPermission()
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java1733 mContext.enforceCallingPermission(android.Manifest.permission.LOCATION_HARDWARE, in getGnssBatchSize()
1745 mContext.enforceCallingPermission(android.Manifest.permission.LOCATION_HARDWARE, in addGnssBatchingCallback()
1782 mContext.enforceCallingPermission(android.Manifest.permission.LOCATION_HARDWARE, in startGnssBatch()
1804 mContext.enforceCallingPermission(android.Manifest.permission.LOCATION_HARDWARE, in flushGnssBatch()
1825 mContext.enforceCallingPermission(android.Manifest.permission.LOCATION_HARDWARE, in stopGnssBatch()
2774 mContext.enforceCallingPermission(android.Manifest.permission.LOCATION_HARDWARE, in injectLocation()
2776 mContext.enforceCallingPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, in injectLocation()
3058 mContext.enforceCallingPermission( in injectGnssMeasurementCorrections()
3076 mContext.enforceCallingPermission( in getGnssCapabilities()
3177 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE, in setExtraLocationControllerPackage()
[all …]
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/
DContentSuggestionsManagerService.java88 getContext().enforceCallingPermission(MANAGE_CONTENT_SUGGESTIONS, TAG); in enforceCallingPermissionForManagement()

123