Lines Matching defs:auth
1848 String auth = uri.getAuthority();
1849 int userId = getUserIdFromAuthority(auth, UserHandle.USER_CURRENT);
1854 if (!matchesOurAuthorities(getAuthorityWithoutUserId(auth))) {
1867 public static int getUserIdFromAuthority(String auth, int defaultUserId) {
1868 if (auth == null) return defaultUserId;
1869 int end = auth.lastIndexOf('@');
1871 String userIdString = auth.substring(0, end);
1881 public static int getUserIdFromAuthority(String auth) {
1882 return getUserIdFromAuthority(auth, UserHandle.USER_CURRENT);
1902 public static String getAuthorityWithoutUserId(String auth) {
1903 if (auth == null) return null;
1904 int end = auth.lastIndexOf('@');
1905 return auth.substring(end+1);