Home
last modified time | relevance | path

Searched refs:enforceCallingOrSelfPermission (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/telephony/java/com/android/internal/telephony/
DPhoneSubInfo.java62 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getDeviceId()
71 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getDeviceSvn()
79 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getSubscriberId()
87 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getIccSerialNumber()
95 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getLine1Number()
103 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getLine1AlphaTag()
111 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getMsisdn()
119 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getVoiceMailNumber()
131 mContext.enforceCallingOrSelfPermission(CALL_PRIVILEGED, in getCompleteVoiceMailNumber()
142 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); in getVoiceMailAlphaTag()
[all …]
/frameworks/base/services/java/com/android/server/
DNetworkManagementService.java194 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in registerObserver()
200 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in unregisterObserver()
419 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in listInterfaces()
430 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in getInterfaceConfig()
474 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceConfig()
496 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceDown()
504 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceUp()
512 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceIpv6PrivacyExtensions()
525 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in clearInterfaceAddresses()
535 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in enableIpv6()
[all …]
DSerialService.java38 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null); in getSerialPorts()
53 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null); in openSerialPort()
DUpdateLockService.java93 mContext.enforceCallingOrSelfPermission(PERMISSION, "acquireUpdateLock"); in acquireUpdateLock()
103 mContext.enforceCallingOrSelfPermission(PERMISSION, "releaseUpdateLock"); in releaseUpdateLock()
DPowerManagerService.java465 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.WRITE_SETTINGS, null); in setStayOnSetting()
471 mContext.enforceCallingOrSelfPermission( in setMaximumScreenOffTimeount()
800 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.WAKE_LOCK, null); in acquireWakeLock()
1006 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.WAKE_LOCK, null); in releaseWakeLock()
1084 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null); in setPokeLock()
1633 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null); in preventScreenOn()
1682 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null); in setScreenBrightnessOverride()
1696 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null); in setButtonBrightnessOverride()
2492 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null); in userActivityWithForce()
2522 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null); in clearUserActivityTimeout()
[all …]
DStatusBarManagerService.java374 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.STATUS_BAR, in enforceStatusBar()
379 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.EXPAND_STATUS_BAR, in enforceExpandStatusBar()
384 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.STATUS_BAR_SERVICE, in enforceStatusBarService()
DDiskStatsService.java47 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG); in dump()
DSamplingProfilerService.java99 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG); in dump()
DTelephonyRegistry.java684 mContext.enforceCallingOrSelfPermission( in checkListenerPermission()
690 mContext.enforceCallingOrSelfPermission( in checkListenerPermission()
696 mContext.enforceCallingOrSelfPermission( in checkListenerPermission()
DWifiService.java557 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.ACCESS_WIFI_STATE, in enforceAccessPermission()
562 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.CHANGE_WIFI_STATE, in enforceChangePermission()
568 mContext.enforceCallingOrSelfPermission( in enforceMulticastChangePermission()
1309 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.WAKE_LOCK, null); in acquireWifiLock()
1418 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.WAKE_LOCK, null); in releaseWifiLock()
DCountryDetectorService.java215 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG); in dump()
DBackupManagerService.java1155 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in setBackupPassword()
1210 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in hasBackupPassword()
4911 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, "backupNow"); in backupNow()
5150 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in setBackupEnabled()
5195 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in setAutoRestore()
5209 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in setBackupProvisioned()
5231 … mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, "isBackupEnabled"); in isBackupEnabled()
5237 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in getCurrentTransport()
5245 … mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, "listAllTransports"); in listAllTransports()
5266 …mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, "selectBackupTransport… in selectBackupTransport()
[all …]
DConnectivityService.java1535 mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG); in setPolicyDataEnable()
1551 mContext.enforceCallingOrSelfPermission( in enforceAccessPermission()
1557 mContext.enforceCallingOrSelfPermission( in enforceChangePermission()
1564 mContext.enforceCallingOrSelfPermission( in enforceTetherChangePermission()
1570 mContext.enforceCallingOrSelfPermission( in enforceTetherAccessPermission()
1576 mContext.enforceCallingOrSelfPermission( in enforceConnectivityInternalPermission()
2694 mContext.enforceCallingOrSelfPermission( in reportInetCondition()
DDevicePolicyManagerService.java920 mContext.enforceCallingOrSelfPermission( in setActiveAdmin()
1008 mContext.enforceCallingOrSelfPermission( in removeActiveAdmin()
1722 mContext.enforceCallingOrSelfPermission( in getRemoveWarning()
1750 mContext.enforceCallingOrSelfPermission( in setActivePasswordState()
1803 mContext.enforceCallingOrSelfPermission( in reportFailedPasswordAttempt()
1824 mContext.enforceCallingOrSelfPermission( in reportSuccessfulPasswordAttempt()
/frameworks/base/services/java/com/android/server/usb/
DUsbService.java102 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setDevicePackage()
107 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setAccessoryPackage()
130 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in grantDevicePermission()
135 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in grantAccessoryPermission()
140 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in hasDefaults()
145 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in clearDefaults()
150 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setCurrentFunction()
159 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setMassStorageBackingFile()
/frameworks/base/core/java/android/server/
DBluetoothService.java346 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isEnabled()
355 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getBluetoothState()
376 … mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in disable()
490 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in enable()
766 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in setName()
779 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setPropertyString()
785 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setPropertyInteger()
791 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setPropertyBoolean()
806 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in setDiscoverableTimeout()
812 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS, in setScanMode()
[all …]
DBluetoothA2dpService.java271 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in isA2dpPlaying()
279 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in connect()
346 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in disconnect()
373 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in suspendSink()
390 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in resumeSink()
406 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
414 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
421 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
436 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getPriority()
443 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in setPriority()
[all …]
DBluetoothAdapterProperties.java63 mContext.enforceCallingOrSelfPermission( in getAllProperties()
/frameworks/base/core/java/android/content/
DContentService.java66 mContext.enforceCallingOrSelfPermission(Manifest.permission.DUMP, in dump()
292 mContext.enforceCallingOrSelfPermission(Manifest.permission.READ_SYNC_SETTINGS, in getSyncAutomatically()
310 mContext.enforceCallingOrSelfPermission(Manifest.permission.WRITE_SYNC_SETTINGS, in setSyncAutomatically()
328 mContext.enforceCallingOrSelfPermission(Manifest.permission.WRITE_SYNC_SETTINGS, in addPeriodicSync()
342 mContext.enforceCallingOrSelfPermission(Manifest.permission.WRITE_SYNC_SETTINGS, in removePeriodicSync()
356 mContext.enforceCallingOrSelfPermission(Manifest.permission.READ_SYNC_SETTINGS, in getPeriodicSyncs()
370 mContext.enforceCallingOrSelfPermission(Manifest.permission.READ_SYNC_SETTINGS, in getIsSyncable()
388 mContext.enforceCallingOrSelfPermission(Manifest.permission.WRITE_SYNC_SETTINGS, in setIsSyncable()
405 mContext.enforceCallingOrSelfPermission(Manifest.permission.READ_SYNC_SETTINGS, in getMasterSyncAutomatically()
422 mContext.enforceCallingOrSelfPermission(Manifest.permission.WRITE_SYNC_SETTINGS, in setMasterSyncAutomatically()
[all …]
DContextWrapper.java446 public void enforceCallingOrSelfPermission( in enforceCallingOrSelfPermission() method in ContextWrapper
448 mBase.enforceCallingOrSelfPermission(permission, message); in enforceCallingOrSelfPermission()
/frameworks/base/voip/java/com/android/server/sip/
DSipService.java132 mContext.enforceCallingOrSelfPermission( in getListOfProfiles()
145 mContext.enforceCallingOrSelfPermission( in open()
159 mContext.enforceCallingOrSelfPermission( in open3()
196 mContext.enforceCallingOrSelfPermission( in close()
213 mContext.enforceCallingOrSelfPermission( in isOpened()
226 mContext.enforceCallingOrSelfPermission( in isRegistered()
240 mContext.enforceCallingOrSelfPermission( in setRegistrationListener()
253 mContext.enforceCallingOrSelfPermission( in createSession()
267 mContext.enforceCallingOrSelfPermission( in getPendingSession()
/frameworks/base/services/java/com/android/server/net/
DNetworkPolicyManagerService.java577 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG);
1304 mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG); in setAppPolicy()
1329 mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG); in getAppPolicy()
1338 mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG); in getAppsWithPolicy()
1356 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in registerListener()
1366 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in unregisterListener()
1373 mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG); in setNetworkPolicies()
1400 mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG); in getNetworkPolicies()
1401 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, TAG); in getNetworkPolicies()
1410 mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG); in snoozeLimit()
[all …]
DNetworkStatsService.java447 mContext.enforceCallingOrSelfPermission(READ_NETWORK_USAGE_HISTORY, TAG); in openSession()
563 mContext.enforceCallingOrSelfPermission(READ_NETWORK_USAGE_HISTORY, TAG); in getNetworkTotalBytes()
571 mContext.enforceCallingOrSelfPermission(ACCESS_NETWORK_STATE, TAG); in getDataLayerSnapshotForUid()
609 mContext.enforceCallingOrSelfPermission(MODIFY_NETWORK_ACCOUNTING, TAG); in incrementOperationCount()
630 mContext.enforceCallingOrSelfPermission(MODIFY_NETWORK_ACCOUNTING, TAG); in setUidForeground()
644 mContext.enforceCallingOrSelfPermission(READ_NETWORK_USAGE_HISTORY, TAG); in forceUpdate()
657 mContext.enforceCallingOrSelfPermission(MODIFY_NETWORK_ACCOUNTING, TAG); in advisePersistThreshold()
770 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG);
1048 mContext.enforceCallingOrSelfPermission(DUMP, TAG); in dump()
/frameworks/base/services/java/com/android/server/am/
DBatteryStatsService.java438 mContext.enforceCallingOrSelfPermission( in getAwakeTimeBattery()
444 mContext.enforceCallingOrSelfPermission( in getAwakeTimePlugged()
/frameworks/base/core/java/android/service/dreams/
DDreamManagerService.java172 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG); in dump()

12