Lines Matching refs:uid
79 * @param uid1 uid to compare
80 * @param uid2 other uid to compare
89 public static final boolean isIsolated(int uid) {
90 if (uid > 0) {
91 final int appId = getAppId(uid);
99 public static boolean isApp(int uid) {
100 if (uid > 0) {
101 final int appId = getAppId(uid);
109 * Returns the user id for a given uid.
112 public static final int getUserId(int uid) {
114 return uid / PER_USER_RANGE;
126 * Returns the uid that is composed from the userId and the appId.
138 * Returns the app id (or base uid) for a given uid, stripping out the user id from it.
141 public static final int getAppId(int uid) {
142 return uid % PER_USER_RANGE;
146 * Returns the shared app gid for a given uid or appId.