/packages/apps/Nfc/src/com/android/nfc/ |
NfceeAccessControl.java | 55 * Map from UID to NFCEE access, used as a cache. 56 * Note: if a UID contains multiple packages they must all be 57 * signed with the same certificate so in effect UID == certificate 73 * Check if the {uid, pkg} combination may use NFCEE. 74 * Also verify with package manager that this {uid, pkg} combination 77 public boolean check(int uid, String pkg) { 79 Boolean cached = mUidCache.get(uid); 86 // Ensure the claimed package is present in the calling UID 88 String[] pkgs = pm.getPackagesForUid(uid); 99 mUidCache.put(uid, access) [all...] |
/system/core/init/ |
util.h | 29 uid_t uid, gid_t gid);
|
/bionic/libc/bionic/ |
stubs.c | 40 static int do_getpw_r(int by_name, const char* name, uid_t uid, 51 const struct passwd* src = by_name ? getpwnam(name) : getpwuid(uid); 106 int getpwuid_r(uid_t uid, struct passwd* pwd, 109 return do_getpw_r(0, NULL, uid, pwd, buf, byte_count, result); 290 print_app_uid_name(uid_t uid, char* buffer, int bufferlen) 295 appid = uid % AID_USER; 296 userid = uid / AID_USER; 305 /* translate a uid into the corresponding app_<uid> 309 app_id_to_passwd(uid_t uid, stubs_state_t* state [all...] |
/frameworks/base/services/java/com/android/server/ |
ClipboardService.java | 205 private final void checkUriOwnerLocked(Uri uri, int uid) { 212 mAm.checkGrantUriPermission(uid, null, uri, Intent.FLAG_GRANT_READ_URI_PERMISSION); 219 private final void checkItemOwnerLocked(ClipData.Item item, int uid) { 221 checkUriOwnerLocked(item.getUri(), uid); local 225 checkUriOwnerLocked(intent.getData(), uid); local 229 private final void checkDataOwnerLocked(ClipData data, int uid) { 232 checkItemOwnerLocked(data.getItemAt(i), uid); local 257 private final void addActiveOwnerLocked(int uid, String pkg) { 261 if (!UserId.isSameApp(pi.applicationInfo.uid, uid)) { [all...] |
/external/openssh/ |
audit-bsm.c | 169 selected(char *username, uid_t uid, au_event_t event, int sf) 176 if (uid < 0) { 192 uid_t uid = -1; local 198 uid = the_authctxt->pw->pw_uid; 203 sel = selected(the_authctxt->user, uid, event_no, rc); 211 (void) au_write(ad, AUToSubjectFunc(uid, uid, gid, uid, gid,
|
/external/oprofile/libpp/ |
locate_images.h | 79 /// return the uid for this extra_images, first valid uid is 1 80 int get_uid() const { return uid; } 101 /// unique identifier, first valid uid is 1 102 int uid; member in class:extra_images 103 /// unique uid generator
|
/frameworks/av/media/libstagefright/include/ |
WVMExtractor.h | 38 virtual void setUID(uid_t uid) = 0; 71 void setUID(uid_t uid);
|
/frameworks/base/core/java/android/net/ |
INetworkPolicyManager.aidl | 32 /** Control UID policies. */ 37 boolean isUidForeground(int uid);
|
INetworkStatsSession.aidl | 31 /** Return network layer usage summary per UID for traffic that matches template. */ 33 /** Return historical network layer stats for specific UID traffic that matches template. */ 34 NetworkStatsHistory getHistoryForUid(in NetworkTemplate template, int uid, int set, int tag, int fields);
|
/frameworks/base/core/java/android/view/inputmethod/ |
InputBinding.java | 42 * The UID where this binding came from. 56 * @param uid The user id of the client of this binding. 60 int uid, int pid) { 63 mUid = uid; 121 + " / uid " + mUid + " / pid " + mPid + "}";
|
/frameworks/base/keystore/java/android/security/ |
KeyStore.java | 212 private boolean grant(byte[] key, byte[] uid) { 213 execute('x', key, uid); 217 public boolean grant(String key, int uid) { 218 return grant(getBytes(key), Integer.toString(uid).getBytes()); 221 private boolean ungrant(byte[] key, byte[] uid) { 222 execute('y', key, uid); 226 public boolean ungrant(String key, int uid) { 227 return ungrant(getBytes(key), Integer.toString(uid).getBytes());
|
/frameworks/base/services/java/com/android/server/location/ |
PassiveProvider.java | 148 public void addListener(int uid) { 151 public void removeListener(int uid) {
|
/frameworks/native/libs/binder/ |
IServiceManager.cpp | 61 uid_t uid = ipcState->getCallingUid(); local 63 if (outUid) *outUid = uid; 64 return checkPermission(permission, pid, uid); 67 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) 78 bool res = pc->checkPermission(permission, pid, uid); 81 ALOGI("Check passed after %d seconds for %s from uid=%d pid=%d", 83 String8(permission).string(), uid, pid); 90 ALOGW("Permission failure: %s from uid=%d pid=%d", 91 String8(permission).string(), uid, pid); 109 ALOGI("Waiting to check permission %s from uid=%d pid=%d" [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
MockFolder.java | 66 public Message getMessage(String uid) { 119 public Message createMessage(String uid) {
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ |
mklistpage.pl | 41 local $uid = 0; # radio button unique ID 188 $uid++; 202 "[\"$test\"] = \"radio$uid\"\n"; 203 $html .= " <input type='radio' value='$test' name='radio$uid' ". 204 "onclick='return onRadioClick(\"radio$uid\");'>" .
|
/packages/apps/Settings/src/com/android/settings/net/ |
ChartDataLoader.java | 37 * Loader for historical chart data for both network and UID details. 92 // load stats for current uid and template 95 final int uid = app.uids.keyAt(i); local 97 template, uid, SET_DEFAULT, data.detailDefault); 99 template, uid, SET_FOREGROUND, data.detailForeground); 129 * Collect {@link NetworkStatsHistory} for the requested UID, combining with 133 NetworkTemplate template, int uid, int set, NetworkStatsHistory existing) 136 template, uid, set, TAG_NONE, FIELD_RX_BYTES | FIELD_TX_BYTES);
|
/system/core/include/private/ |
android_filesystem_config.h | 88 #define AID_USER 100000 /* offset for uid ranges for each user */ 144 unsigned uid; member in struct:fs_path_config 204 /* the following two files are INTENTIONALLY set-gid and not set-uid. 208 /* the following five files are INTENTIONALLY set-uid, but they 216 /* the following file is INTENTIONALLY set-uid, and IS included 233 unsigned *uid, unsigned *gid, unsigned *mode) 254 *uid = pc->uid; 260 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode);
|
/frameworks/base/services/java/com/android/server/net/ |
NetworkStatsRecorder.java | 181 mPending.recordData(ident, entry.uid, entry.set, entry.tag, start, end, entry); 185 mSinceBoot.recordData(ident, entry.uid, entry.set, entry.tag, start, end, entry); 190 complete.recordData(ident, entry.uid, entry.set, entry.tag, start, end, entry); 233 * Remove the given UID from all {@link FileRotator} history, migrating it 236 public void removeUidLocked(int uid) { 238 // process all existing data to migrate uid 239 mRotator.rewriteAll(new RemoveUidRewriter(mBucketDuration, uid)); 241 Log.wtf(TAG, "problem removing UID " + uid, e); 245 // clear UID from current stats snapsho [all...] |
NetworkPolicyManagerService.java | 190 private static final String TAG_UID_POLICY = "uid-policy"; 207 private static final String ATTR_UID = "uid"; 254 /** Currently derived rules for each UID. */ 265 /** Foreground at both UID and PID granularity. */ 359 // listen for package/uid changes to update policy 394 public void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) { 396 pid, uid, foregroundActivities).sendToTarget(); 400 public void onImportanceChanged(int pid, int uid, int importance) { 404 public void onProcessDied(int pid, int uid) { 405 mHandler.obtainMessage(MSG_PROCESS_DIED, pid, uid).sendToTarget() 1187 final int uid = readIntAttribute(in, ATTR_UID); local 1606 final int uid = knownUids.keyAt(i); local 1686 final int uid = mUidForeground.keyAt(i); local 1711 final int uid = UserId.getUid(user.id, appId); local [all...] |
/frameworks/base/core/java/android/content/pm/ |
RegisteredServicesCache.java | 183 public final int uid; field in class:RegisteredServicesCache.ServiceInfo 186 public ServiceInfo(V type, ComponentName componentName, int uid) { 189 this.uid = uid; 194 return "ServiceInfo: " + type + ", " + componentName + ", uid " + uid; 284 // - exists and the UID is the same 286 // - exists, the UID is different, and the new one is not a system package 288 // - exists, the UID is different, and the new one is a system package 294 mPersistentServices.put(info.type, info.uid); 400 final int uid = applicationInfo.uid; local 443 int uid = Integer.parseInt(uidString); local [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
ListeningPortsTest.java | 192 + entry.port + ", UID=" + entry.uid + " in " 231 private final int uid; field in class:ListeningPortsTest.ParsedProcEntry 233 private ParsedProcEntry(InetAddress addr, int port, String state, int uid) { 237 this.uid = uid; 247 * sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid ... 272 int uid = Integer.parseInt(fields[7]); local 276 retval.add(new ParsedProcEntry(localIp, localPort, state, uid));
|
/external/chromium/chrome/browser/extensions/ |
extension_context_menu_api.cc | 190 !properties.GetInteger(kParentIdKey, &parent_id.uid)) 196 base::IntToString(parent_id.uid); 214 &id.uid)); 250 &parent_id.uid)); 254 kCannotFindItemError, base::IntToString(parent_id.uid)); 274 EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &item_id.uid)); 281 kCannotFindItemError, base::IntToString(item_id.uid)); 341 EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &id.uid)); 349 kCannotFindItemError, base::IntToString(id.uid));
|
/frameworks/base/core/java/android/os/ |
Process.java | 61 * Defines the UID/GID under which system code runs. 66 * Defines the UID/GID under which the telephony code runs. 71 * Defines the UID/GID for the user shell. 77 * Defines the UID/GID for the log group. 83 * Defines the UID/GID for the WIFI supplicant process. 89 * Defines the UID/GID for the mediaserver process. 95 * Defines the UID/GID for the DRM process. 107 * Defines the UID/GID for the group that controls VPN services. 113 * Defines the UID/GID for the NFC service process. 137 * First uid used for fully isolated sandboxed processes (with no permissions of their own 638 int uid = UserId.getAppId(myUid()); local [all...] |
/external/dbus/bus/ |
policy.h | 94 dbus_uid_t uid; member in struct:BusPolicyRule::__anon5991::__anon5995 118 unsigned long uid); 126 dbus_uid_t uid,
|
/frameworks/base/core/java/android/content/ |
ContentProvider.java | 279 final int uid = Binder.getCallingUid(); local 282 if (uid == mMyUid) { 289 if (context.checkPermission(componentPerm, pid, uid) == PERMISSION_GRANTED) { 306 if (context.checkPermission(pathPerm, pid, uid) == PERMISSION_GRANTED) { 324 if (context.checkUriPermission(uri, pid, uid, Intent.FLAG_GRANT_READ_URI_PERMISSION) 334 + ", uid=" + uid + failReason); 340 final int uid = Binder.getCallingUid(); local 343 if (uid == mMyUid) { 350 if (context.checkPermission(componentPerm, pid, uid) == PERMISSION_GRANTED) [all...] |