Searched refs:sPermissions (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Browser2/src/org/chromium/webview_shell/ |
D | WebViewBrowserActivity.java | 89 private static final HashMap<String, String> sPermissions; field in WebViewBrowserActivity 91 sPermissions = new HashMap<String, String>(); 92 sPermissions.put(RESOURCE_GEO, Manifest.permission.ACCESS_FINE_LOCATION); in sPermissions.put() 93 sPermissions.put(RESOURCE_FILE_URL, Manifest.permission.READ_EXTERNAL_STORAGE); in sPermissions.put() 94 sPermissions.put(PermissionRequest.RESOURCE_AUDIO_CAPTURE, in sPermissions.put() 96 sPermissions.put(PermissionRequest.RESOURCE_MIDI_SYSEX, NO_ANDROID_PERMISSION); in sPermissions.put() 97 sPermissions.put(PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID, NO_ANDROID_PERMISSION); in sPermissions.put() 98 sPermissions.put(PermissionRequest.RESOURCE_VIDEO_CAPTURE, in sPermissions.put() 421 String androidPermission = sPermissions.get(webkitPermission); in canGrant() 432 if (!sPermissions.containsKey(webkitPermission)) { in requestPermissionsForPage() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | OsUtil.java | 185 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()
|