Lines Matching refs:auth
1781 String auth = uri.getAuthority();
1782 int userId = getUserIdFromAuthority(auth, UserHandle.USER_CURRENT);
1787 if (!matchesOurAuthorities(getAuthorityWithoutUserId(auth))) {
1800 public static int getUserIdFromAuthority(String auth, int defaultUserId) {
1801 if (auth == null) return defaultUserId;
1802 int end = auth.lastIndexOf('@');
1804 String userIdString = auth.substring(0, end);
1814 public static int getUserIdFromAuthority(String auth) {
1815 return getUserIdFromAuthority(auth, UserHandle.USER_CURRENT);
1835 public static String getAuthorityWithoutUserId(String auth) {
1836 if (auth == null) return null;
1837 int end = auth.lastIndexOf('@');
1838 return auth.substring(end+1);