Home | History | Annotate | Download | only in os

Lines Matching refs:uid

81      * @param uid1 uid to compare
82 * @param uid2 other uid to compare
91 public static final boolean isIsolated(int uid) {
92 if (uid > 0) {
93 final int appId = getAppId(uid);
101 public static boolean isApp(int uid) {
102 if (uid > 0) {
103 final int appId = getAppId(uid);
111 * Returns the user id for a given uid.
114 public static final int getUserId(int uid) {
116 return uid / PER_USER_RANGE;
128 * Returns the uid that is composed from the userId and the appId.
140 * Returns the app id (or base uid) for a given uid, stripping out the user id from it.
143 public static final int getAppId(int uid) {
144 return uid % PER_USER_RANGE;
148 * Returns the shared app gid for a given uid or appId.
157 * Generate a text representation of the uid, breaking out its individual
161 public static void formatUid(StringBuilder sb, int uid) {
162 if (uid < Process.FIRST_APPLICATION_UID) {
163 sb.append(uid);
166 sb.append(getUserId(uid));
167 final int appId = getAppId(uid);
179 * Generate a text representation of the uid, breaking out its individual
183 public static void formatUid(PrintWriter pw, int uid) {
184 if (uid < Process.FIRST_APPLICATION_UID) {
185 pw.print(uid);
188 pw.print(getUserId(uid));
189 final int appId = getAppId(uid);