Home
last modified time | relevance | path

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

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DBouncyCastleProviderConfiguration.java57 securityManager.checkPermission(BC_EC_LOCAL_PERMISSION); in setParameter()
82 securityManager.checkPermission(BC_EC_PERMISSION); in setParameter()
100 securityManager.checkPermission(BC_DH_LOCAL_PERMISSION); in setParameter()
125 securityManager.checkPermission(BC_DH_PERMISSION); in setParameter()
141 securityManager.checkPermission(BC_EC_CURVE_PERMISSION); in setParameter()
150 securityManager.checkPermission(BC_ADDITIONAL_EC_CURVE_PERMISSION); in setParameter()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/
DCryptoServicesRegistrar.java127 checkPermission(CanSetDefaultRandom); in setSecureRandom()
245 checkPermission(CanSetThreadProperty); in setThreadProperty()
266 checkPermission(CanSetDefaultProperty); in setGlobalProperty()
306 checkPermission(CanSetDefaultProperty); in clearGlobalProperty()
323 checkPermission(CanSetThreadProperty); in clearThreadProperty()
341 private static void checkPermission(final Permission permission) in checkPermission() method in CryptoServicesRegistrar
351 securityManager.checkPermission(permission); in checkPermission()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
DCryptoServicesRegistrar.java125 checkPermission(CanSetDefaultRandom); in setSecureRandom()
243 checkPermission(CanSetThreadProperty); in setThreadProperty()
264 checkPermission(CanSetDefaultProperty); in setGlobalProperty()
304 checkPermission(CanSetDefaultProperty); in clearGlobalProperty()
321 checkPermission(CanSetThreadProperty); in clearThreadProperty()
339 private static void checkPermission(final Permission permission) in checkPermission() method in CryptoServicesRegistrar
349 securityManager.checkPermission(permission); in checkPermission()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DBouncyCastleProviderConfiguration.java58 securityManager.checkPermission(BC_EC_LOCAL_PERMISSION); in setParameter()
83 securityManager.checkPermission(BC_EC_PERMISSION); in setParameter()
101 securityManager.checkPermission(BC_DH_LOCAL_PERMISSION); in setParameter()
126 securityManager.checkPermission(BC_DH_PERMISSION); in setParameter()
142 securityManager.checkPermission(BC_EC_CURVE_PERMISSION); in setParameter()
151 securityManager.checkPermission(BC_ADDITIONAL_EC_CURVE_PERMISSION); in setParameter()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowContextImpl.java104 return checkPermission(permission, android.os.Process.myPid(), android.os.Process.myUid()); in checkCallingPermission()
188 protected int checkPermission(String permission, int pid, int uid) { in checkPermission() method in ShadowContextImpl
189 return getShadowInstrumentation().checkPermission(permission, pid, uid); in checkPermission()
DShadowPowerManager.java69 .checkPermission(permission.DEVICE_POWER, context.getPackageName()); in setPowerSaveMode()
DShadowUserManager.java212 …return context.getPackageManager().checkPermission(permission.MANAGE_USERS, context.getPackageName… in hasManageUsersPermission()
DShadowInstrumentation.java689 int checkPermission(String permission, int pid, int uid) {
DShadowApplicationPackageManager.java651 protected int checkPermission(String permName, String pkgName) { in checkPermission() method in ShadowApplicationPackageManager
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextWrapperTest.java397 assertThat(contextWrapper.checkPermission("MY_PERMISSON", 1, 1)) in checkPermissionUidPid()
402 assertThat(contextWrapper.checkPermission("MY_PERMISSON", 2, 1)) in checkPermissionUidPid()
405 assertThat(contextWrapper.checkPermission("MY_PERMISSON", 1, 1)) in checkPermissionUidPid()
440 assertThat(contextWrapper.checkPermission("MY_PERMISSON", 1, 1)) in revokePermissionUidPid()
444 assertThat(contextWrapper.checkPermission("MY_PERMISSON", 1, 1)) in revokePermissionUidPid()
DShadowPackageManagerTest.java209 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage()
211 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage()
213 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage()
216 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_thisPackage()
218 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_thisPackage()
237 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_otherPackages()
239 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_otherPackages()
241 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_otherPackages()
260 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_otherPackages_grantedByDefault()
262 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_otherPackages_grantedByDefault()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCallablesTest.java79 @Override public void checkPermission(Permission perm) { in testRenaming_noPermissions()
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioUtils.java197 return context.checkPermission( in hasPermission()
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
DVirtualMachineManagerImpl.java61 sm.checkPermission(vmmPermission); in virtualMachineManager()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DNetworkMonitorAutoDetect.java225 hasWifiPermission = context.getPackageManager().checkPermission( in WifiManagerDelegate()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java344 public int checkPermission(String s, int i, int i1) { in checkPermission() method in MockContext.MockContext2