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.java517 assertThat(contextWrapper.checkCallingOrSelfPermission("foo")).isEqualTo(PERMISSION_GRANTED);
518 assertThat(contextWrapper.checkCallingOrSelfPermission("bar")).isEqualTo(PERMISSION_GRANTED);
519 assertThat(contextWrapper.checkCallingOrSelfPermission("baz")).isEqualTo(PERMISSION_DENIED);
536 assertThat(contextWrapper.checkCallingOrSelfPermission("foo")).isEqualTo(PERMISSION_DENIED);
537 assertThat(contextWrapper.checkCallingOrSelfPermission("bar")).isEqualTo(PERMISSION_GRANTED);
538 assertThat(contextWrapper.checkCallingOrSelfPermission("baz")).isEqualTo(PERMISSION_DENIED);
539 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.java108 protected int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in ShadowContextImpl
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DCallActivity.java192 if (checkCallingOrSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) { in onCreate()