Home
last modified time | relevance | path

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

12

/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/bcprov/src/main/java/org/bouncycastle/crypto/
DCryptoServicesRegistrar.java149 checkPermission(CanSetDefaultRandom); in setSecureRandom()
270 checkPermission(CanSetThreadProperty); in setThreadProperty()
291 checkPermission(CanSetDefaultProperty); in setGlobalProperty()
331 checkPermission(CanSetDefaultProperty); in clearGlobalProperty()
348 checkPermission(CanSetThreadProperty); in clearThreadProperty()
366 private static void checkPermission(final Permission permission) in checkPermission() method in CryptoServicesRegistrar
376 securityManager.checkPermission(permission); in checkPermission()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/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/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/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/
DCryptoServicesRegistrar.java151 checkPermission(CanSetDefaultRandom); in setSecureRandom()
272 checkPermission(CanSetThreadProperty); in setThreadProperty()
293 checkPermission(CanSetDefaultProperty); in setGlobalProperty()
333 checkPermission(CanSetDefaultProperty); in clearGlobalProperty()
350 checkPermission(CanSetThreadProperty); in clearThreadProperty()
368 private static void checkPermission(final Permission permission) in checkPermission() method in CryptoServicesRegistrar
378 securityManager.checkPermission(permission); in checkPermission()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/
DCryptoServicesRegistrar.java151 checkPermission(CanSetDefaultRandom); in setSecureRandom()
272 checkPermission(CanSetThreadProperty); in setThreadProperty()
293 checkPermission(CanSetDefaultProperty); in setGlobalProperty()
333 checkPermission(CanSetDefaultProperty); in clearGlobalProperty()
350 checkPermission(CanSetThreadProperty); in clearThreadProperty()
368 private static void checkPermission(final Permission permission) in checkPermission() method in CryptoServicesRegistrar
378 securityManager.checkPermission(permission); in checkPermission()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DTestSecurityManager.kt16 override fun checkPermission(perm: Permission?) { in checkPermission() method in kotlinx.coroutines.TestSecurityManager
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/misc/
DAccessFixTest.java15 public void checkPermission(Permission perm) throws SecurityException { in checkPermission() method in AccessFixTest.CauseBlockingSecurityManager
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowContextImpl.java105 return checkPermission(permission, android.os.Process.myPid(), android.os.Process.myUid()); in checkCallingPermission()
235 protected int checkPermission(String permission, int pid, int uid) { in checkPermission() method in ShadowContextImpl
236 return getShadowInstrumentation().checkPermission(permission, pid, uid); in checkPermission()
DShadowPowerManager.java69 .checkPermission(permission.DEVICE_POWER, context.getPackageName()); in setPowerSaveMode()
DShadowUserManager.java334 …return context.getPackageManager().checkPermission(permission.MANAGE_USERS, context.getPackageName… in hasManageUsersPermission()
DShadowInstrumentation.java694 int checkPermission(String permission, int pid, int uid) {
DShadowApplicationPackageManager.java672 protected int checkPermission(String permName, String pkgName) { in checkPermission() method in ShadowApplicationPackageManager
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextWrapperTest.java488 assertThat(contextWrapper.checkPermission("MY_PERMISSON", 1, 1)) in checkPermissionUidPid()
493 assertThat(contextWrapper.checkPermission("MY_PERMISSON", 2, 1)) in checkPermissionUidPid()
496 assertThat(contextWrapper.checkPermission("MY_PERMISSON", 1, 1)) in checkPermissionUidPid()
531 assertThat(contextWrapper.checkPermission("MY_PERMISSON", 1, 1)) in revokePermissionUidPid()
535 assertThat(contextWrapper.checkPermission("MY_PERMISSON", 1, 1)) in revokePermissionUidPid()
DShadowPackageManagerTest.java212 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage()
214 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage()
216 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage()
219 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_thisPackage()
221 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_thisPackage()
240 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_otherPackages()
242 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_otherPackages()
244 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_otherPackages()
263 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_otherPackages_grantedByDefault()
265 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_otherPackages_grantedByDefault()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAbstractFutureInnocuousThreadTest.java82 public void checkPermission(Permission p) { in setUp()
DCallablesTest.java137 public void checkPermission(Permission perm) { in testRenaming_noPermissions()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DCallablesTest.java137 public void checkPermission(Permission perm) { in testRenaming_noPermissions()
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
DVirtualMachineManagerImpl.java61 sm.checkPermission(vmmPermission); in virtualMachineManager()
/external/libchrome/base/android/java/src/org/chromium/base/
DApiCompatibilityUtils.java608 public static int checkPermission(Context context, String permission, int pid, int uid) { in checkPermission() method in ApiCompatibilityUtils
610 return context.checkPermission(permission, pid, uid); in checkPermission()
/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
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCBluetoothManager.java417 return apprtcContext.checkPermission(permission, Process.myPid(), Process.myUid()) in hasPermission()
/external/guava/android/guava-tests/test/com/google/common/reflect/
DClassPathTest.java434 public void checkPermission(Permission p) { in doTestExistsThrowsSecurityException()
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DCamera2BasicFragment.java638 if (getActivity().checkPermission(permission, Process.myPid(), Process.myUid()) in allPermissionsGranted()
/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java501 public void checkPermission(Permission p) { in doTestExistsThrowsSecurityException()

12