Searched refs:checkCallingOrSelfPermission (Results 1 – 5 of 5) sorted by relevance
608 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);
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
109 protected int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in ShadowContextImpl
264 if (checkCallingOrSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) { in onCreate()