Searched refs:checkCallingPermission (Results 1 – 4 of 4) sorted by relevance
600 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);
104 protected int checkCallingPermission(String permission) { in checkCallingPermission() method in ShadowContextImpl110 return checkCallingPermission(permission); in checkCallingOrSelfPermission()
235 getContext().checkCallingPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS); in setLocationEnabledForUser()
349 public int checkCallingPermission(String s) { in checkCallingPermission() method in MockContext.MockContext2