Searched refs:checkCallingOrSelfPermission (Results 1 – 5 of 5) sorted by relevance
517 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);
13 … final int res = context.checkCallingOrSelfPermission("android.permission.ACCESS_NETWORK_STATE"); in build()
354 public int checkCallingOrSelfPermission(String s) { in checkCallingOrSelfPermission() method in MockContext.MockContext2
108 protected int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in ShadowContextImpl
192 if (checkCallingOrSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) { in onCreate()