Searched refs:checkCallingPermission (Results 1 – 4 of 4) sorted by relevance
509 assertThat(contextWrapper.checkCallingPermission("foo")).isEqualTo(PERMISSION_GRANTED);510 assertThat(contextWrapper.checkCallingPermission("bar")).isEqualTo(PERMISSION_GRANTED);511 assertThat(contextWrapper.checkCallingPermission("baz")).isEqualTo(PERMISSION_DENIED);526 assertThat(contextWrapper.checkCallingPermission("foo")).isEqualTo(PERMISSION_DENIED);527 assertThat(contextWrapper.checkCallingPermission("bar")).isEqualTo(PERMISSION_GRANTED);528 assertThat(contextWrapper.checkCallingPermission("baz")).isEqualTo(PERMISSION_DENIED);529 assertThat(contextWrapper.checkCallingPermission("qux")).isEqualTo(PERMISSION_DENIED);
103 protected int checkCallingPermission(String permission) { in checkCallingPermission() method in ShadowContextImpl109 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