Home
last modified time | relevance | path

Searched refs:sPermissions (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewBrowserActivity.java73 private static final HashMap<String, String> sPermissions; field in WebViewBrowserActivity
75 sPermissions = new HashMap<String, String>();
76 sPermissions.put(RESOURCE_GEO, Manifest.permission.ACCESS_FINE_LOCATION); in sPermissions.put()
77 sPermissions.put(RESOURCE_FILE_URL, Manifest.permission.READ_EXTERNAL_STORAGE); in sPermissions.put()
78 sPermissions.put(PermissionRequest.RESOURCE_AUDIO_CAPTURE, in sPermissions.put()
80 sPermissions.put(PermissionRequest.RESOURCE_MIDI_SYSEX, NO_ANDROID_PERMISSION); in sPermissions.put()
81 sPermissions.put(PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID, NO_ANDROID_PERMISSION); in sPermissions.put()
82 sPermissions.put(PermissionRequest.RESOURCE_VIDEO_CAPTURE, in sPermissions.put()
260 String androidPermission = sPermissions.get(webkitPermission); in canGrant()
270 if (!sPermissions.containsKey(webkitPermission)) { in requestPermissionsForPage()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java185 private static Hashtable<String, Integer> sPermissions = new Hashtable<String, Integer>(); field in OsUtil
199 if (!sPermissions.containsKey(permission) in hasPermission()
200 || sPermissions.get(permission) == PackageManager.PERMISSION_DENIED) { in hasPermission()
203 sPermissions.put(permission, permissionState); in hasPermission()
205 return sPermissions.get(permission) == PackageManager.PERMISSION_GRANTED; in hasPermission()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowPermissionChecker.java38 private static Map<PermissionInfo, Integer> sPermissions = new HashMap<>(); field in ShadowPermissionChecker
41 sPermissions.clear(); in clear()
46 sPermissions.put(new PermissionInfo(permission, pid, uid, packageName), permissionValue); in addPermission()
52 return sPermissions.getOrDefault(new PermissionInfo(permission, pid, uid, packageName), in checkPermission()