Home
last modified time | relevance | path

Searched refs:checkCallingOrSelfPermission (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextWrapperTest.java608 assertThat(contextWrapper.checkCallingOrSelfPermission("foo")).isEqualTo(PERMISSION_GRANTED);
609 assertThat(contextWrapper.checkCallingOrSelfPermission("bar")).isEqualTo(PERMISSION_GRANTED);
610 assertThat(contextWrapper.checkCallingOrSelfPermission("baz")).isEqualTo(PERMISSION_DENIED);
627 assertThat(contextWrapper.checkCallingOrSelfPermission("foo")).isEqualTo(PERMISSION_DENIED);
628 assertThat(contextWrapper.checkCallingOrSelfPermission("bar")).isEqualTo(PERMISSION_GRANTED);
629 assertThat(contextWrapper.checkCallingOrSelfPermission("baz")).isEqualTo(PERMISSION_DENIED);
630 assertThat(contextWrapper.checkCallingOrSelfPermission("qux")).isEqualTo(PERMISSION_DENIED);
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DConnectivityMonitorFactory.java13 … final int res = context.checkCallingOrSelfPermission("android.permission.ACCESS_NETWORK_STATE"); in build()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java354 public int checkCallingOrSelfPermission(String s) { in checkCallingOrSelfPermission() method in MockContext.MockContext2
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowContextImpl.java109 protected int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in ShadowContextImpl
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DCallActivity.java264 if (checkCallingOrSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) { in onCreate()