Home
last modified time | relevance | path

Searched refs:checkCallingPermission (Results 1 – 4 of 4) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextWrapperTest.java509 assertThat(contextWrapper.checkCallingPermission("foo")).isEqualTo(PERMISSION_GRANTED);
510 assertThat(contextWrapper.checkCallingPermission("bar")).isEqualTo(PERMISSION_GRANTED);
511 assertThat(contextWrapper.checkCallingPermission("baz")).isEqualTo(PERMISSION_DENIED);
526 assertThat(contextWrapper.checkCallingPermission("foo")).isEqualTo(PERMISSION_DENIED);
527 assertThat(contextWrapper.checkCallingPermission("bar")).isEqualTo(PERMISSION_GRANTED);
528 assertThat(contextWrapper.checkCallingPermission("baz")).isEqualTo(PERMISSION_DENIED);
529 assertThat(contextWrapper.checkCallingPermission("qux")).isEqualTo(PERMISSION_DENIED);
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowContextImpl.java103 protected int checkCallingPermission(String permission) { in checkCallingPermission() method in ShadowContextImpl
109 return checkCallingPermission(permission); in checkCallingOrSelfPermission()
DShadowLocationManager.java235 getContext().checkCallingPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS); in setLocationEnabledForUser()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java349 public int checkCallingPermission(String s) { in checkCallingPermission() method in MockContext.MockContext2