Home
last modified time | relevance | path

Searched refs:setPermission (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSCaptivePortalAppTest.kt99 context.setPermission( in testCaptivePortalApp_Reevaluate_Nopermission()
103 context.setPermission(NETWORK_STACK, PERMISSION_DENIED) in testCaptivePortalApp_Reevaluate_Nopermission()
127 context.setPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, PERMISSION_GRANTED) in startCaptivePortalApp()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAccessSettings.java75 .setPermission(android.Manifest.permission.BIND_NOTIFICATION_LISTENER_SERVICE)
100 .setPermission(CONFIG.permission) in onCreate()
DNotificationAssistantPicker.java62 .setPermission(android.Manifest.permission.BIND_NOTIFICATION_ASSISTANT_SERVICE) in onAttach()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DMockTetheringService.java87 public void setPermission(String permission, Integer granted) { in setPermission() method in MockTetheringService.MockTetheringConnector
DTetheringServiceTest.java166 mMockConnector.setPermission(ACCESS_NETWORK_STATE, PERMISSION_DENIED); in runTetheringCall()
176 mMockConnector.setPermission(ACCESS_NETWORK_STATE, null); in runTetheringCall()
/packages/apps/Settings/src/com/android/settings/utils/
DManagedServiceSettings.java76 .setPermission(mConfig.permission) in onCreate()
295 public Builder setPermission(String permission) { in setPermission() method in ManagedServiceSettings.Config.Builder
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/vrlistener/
DVrListenerSettings.java39 .setPermission(android.Manifest.permission.BIND_VR_LISTENER_SERVICE)
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java880 public void setPermission(String permission, Integer granted) { in setPermission() method in ConnectivityServiceTest.MockContext
894 public void setPermission(String permission, int pid, int uid, Integer granted) { in setPermission() method in ConnectivityServiceTest.MockContext
1821 mServiceContext.setPermission(permission, PERMISSION_GRANTED); in withPermission()
1824 mServiceContext.setPermission(permission, null); in withPermission()
1831 mServiceContext.setPermission(permission, pid, uid, PERMISSION_GRANTED); in withPermission()
1834 mServiceContext.setPermission(permission, pid, uid, null); in withPermission()
1903 mServiceContext.setPermission(NETWORK_FACTORY, PERMISSION_GRANTED); in setUp()
1904 mServiceContext.setPermission(NETWORK_STACK, PERMISSION_GRANTED); in setUp()
1905 mServiceContext.setPermission(CONTROL_OEM_PAID_NETWORK_PREFERENCE, PERMISSION_GRANTED); in setUp()
1906 mServiceContext.setPermission(PACKET_KEEPALIVE_OFFLOAD, PERMISSION_GRANTED); in setUp()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenModesListFragment.java85 .setPermission(android.Manifest.permission.BIND_CONDITION_PROVIDER_SERVICE) in getConditionProviderConfig()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeAutomationSettings.java86 .setPermission(android.Manifest.permission.BIND_CONDITION_PROVIDER_SERVICE) in getConditionProviderConfig()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DNotificationAccess.java79 .setPermission(android.Manifest.permission.BIND_NOTIFICATION_LISTENER_SERVICE) in onCreate()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/specialaccess/
DNotificationAccessState.java83 .setPermission(android.Manifest.permission.BIND_NOTIFICATION_LISTENER_SERVICE) in onCreate()
DServiceListing.java224 public Builder setPermission(String permission) { in setPermission() method in ServiceListing.Builder
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSTest.kt441 fun setPermission(permission: String, @PermissionResult granted: Int) { in setPermission() method
453 fun setPermission(permission: String, pid: Int, uid: Int, @PermissionResult granted: Int) { in setPermission() method
/packages/services/Car/tools/vehiclepropertyidsparser/src/com/android/car/tool/
DVehiclePropertyIdsParser.java162 private static void setPermission(PropertyConfig config, ACCESS_MODE accessMode, in setPermission() method in VehiclePropertyIdsParser
406 setPermission(config, accessMode, permission, forRead, forWrite); in parseAndSetPermAnnotation()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceController.java100 .setPermission(Manifest.permission.BIND_NOTIFICATION_LISTENER_SERVICE) in NotificationAccessPreferenceController()