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.java600 assertThat(contextWrapper.checkCallingPermission("foo")).isEqualTo(PERMISSION_GRANTED);
601 assertThat(contextWrapper.checkCallingPermission("bar")).isEqualTo(PERMISSION_GRANTED);
602 assertThat(contextWrapper.checkCallingPermission("baz")).isEqualTo(PERMISSION_DENIED);
617 assertThat(contextWrapper.checkCallingPermission("foo")).isEqualTo(PERMISSION_DENIED);
618 assertThat(contextWrapper.checkCallingPermission("bar")).isEqualTo(PERMISSION_GRANTED);
619 assertThat(contextWrapper.checkCallingPermission("baz")).isEqualTo(PERMISSION_DENIED);
620 assertThat(contextWrapper.checkCallingPermission("qux")).isEqualTo(PERMISSION_DENIED);
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowContextImpl.java104 protected int checkCallingPermission(String permission) { in checkCallingPermission() method in ShadowContextImpl
110 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