HomeSort by relevance Sort by last modified time
    Searched refs:uid (Results 626 - 650 of 1516) sorted by null

<<21222324252627282930>>

  /frameworks/base/cmds/appops/src/com/android/commands/appops/
AppOpsCommand.java 171 final int uid = pm.getPackageUid(packageName, userId); local
172 if (uid < 0) {
173 System.err.println("Error: No UID for " + packageName + " in user " + userId);
176 appOpsService.setMode(opInt, uid, packageName, modeInt);
214 final int uid = pm.getPackageUid(packageName, userId); local
215 if (uid < 0) {
216 System.err.println("Error: No UID for " + packageName + " in user " + userId);
219 List<AppOpsManager.PackageOps> ops = appOpsService.getOpsForPackage(uid, packageName,
  /frameworks/base/media/java/android/service/media/
MediaBrowserService.java 158 final int uid = Binder.getCallingUid(); local
159 if (!isValidPackage(pkg, uid)) {
160 throw new IllegalArgumentException("Package/uid mismatch: uid=" + uid
177 connection.root = MediaBrowserService.this.onGetRoot(pkg, uid, rootHints);
295 * @param clientUid The uid of the application which is requesting
386 * Return whether the given package is one of the ones that is owned by the uid.
388 private boolean isValidPackage(String pkg, int uid) {
393 final String[] packages = pm.getPackagesForUid(uid);
    [all...]
  /frameworks/base/services/usb/java/com/android/server/usb/
UsbService.java 224 public void grantDevicePermission(UsbDevice device, int uid) {
226 final int userId = UserHandle.getUserId(uid);
227 getSettingsForUser(userId).grantDevicePermission(device, uid);
231 public void grantAccessoryPermission(UsbAccessory accessory, int uid) {
233 final int userId = UserHandle.getUserId(uid);
234 getSettingsForUser(userId).grantAccessoryPermission(accessory, uid);
  /cts/libs/deviceutil/src/android/cts/util/
FileUtils.java 66 public int uid; field in class:FileUtils.FileStatus
99 public native static String getUserName(int uid);
  /cts/tests/tests/content/src/android/content/pm/cts/
ApplicationInfoTest.java 68 assertEquals(mApplicationInfo.uid, info.uid);
  /external/chromium_org/mojo/nacl/generator/
generate_nacl_bindings.py 126 code << 'params[0] = %d;' % f.uid
133 code << cast_template % (p.uid + 1, ptr)
191 (p.uid + 1, p.name))
204 return 'ConvertScalarOutput(nap, params[%d], &%s_ptr)' % (p.uid + 1, p.name)
222 (p.uid + 1, CBool(p.is_optional), p.name, p.name))
254 (p.uid + 1, p.size + '_value', element_size, CBool(p.is_optional),
271 (p.uid + 1, CBool(p.is_optional), p.name))
310 code << 'case %d:' % f.uid
  /external/chromium_org/tools/telemetry/telemetry/core/platform/power_monitor/
android_dumpsys_power_monitor.py 71 # Index for columns of type unique identifier ('uid')
72 # Index of the column containing the uid.
78 # The column containing the uid of the item.
94 if entry[ROW_TYPE_INDEX] == 'uid':
104 # Find the uid of for the given package.
110 uid = uid_entries[package]
111 consumptions_mah = pwi_entries[uid]
  /external/compiler-rt/lib/tsan/rtl/
tsan_rtl_thread.cc 222 int ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) {
225 int tid = ctx->thread_registry->CreateThread(uid, detached, thr->tid, &args);
226 DPrintf("#%d: ThreadCreate tid=%d uid=%zu\n", thr->tid, tid, uid);
286 uptr uid = (uptr)arg; local
287 if (tctx->user_id == uid && tctx->status != ThreadStatusInvalid) {
294 int ThreadTid(ThreadState *thr, uptr pc, uptr uid) {
295 int res = ctx->thread_registry->FindThread(FindThreadByUid, (void*)uid);
296 DPrintf("#%d: ThreadTid uid=%zu tid=%d\n", thr->tid, uid, res)
    [all...]
  /external/e2fsprogs/misc/
uuidd.c 449 uid_t uid; local
509 uid = getuid();
510 if (uid && drop_privs) {
521 if (setresuid(uid, uid, uid) < 0)
524 if (setreuid(uid, uid) < 0)
  /external/lldb/include/lldb/Symbol/
Symbol.h 108 SetID(uint32_t uid)
110 m_uid = uid;
  /external/lldb/source/Core/
ValueObjectList.cpp 124 ValueObjectList::FindValueObjectByUID (lldb::user_id_t uid)
134 if (valobj && valobj->GetID() == uid)
  /frameworks/av/media/libstagefright/webm/
WebmElement.h 55 uint64_t uid = 0,
62 uint64_t uid = 0,
  /frameworks/base/core/java/android/hardware/location/
GeofenceHardwareService.java 59 private void checkPermission(int pid, int uid, int monitoringType) {
60 if (mGeofenceHardwareImpl.getAllowedResolutionLevel(pid, uid) <
  /frameworks/base/core/java/android/os/
FileUtils.java 70 * @param uid to apply through {@code chown}, or -1 to leave unchanged
74 public static int setPermissions(File path, int mode, int uid, int gid) {
75 return setPermissions(path.getAbsolutePath(), mode, uid, gid);
82 * @param uid to apply through {@code chown}, or -1 to leave unchanged
86 public static int setPermissions(String path, int mode, int uid, int gid) {
94 if (uid >= 0 || gid >= 0) {
96 Os.chown(path, uid, gid);
110 * @param uid to apply through {@code chown}, or -1 to leave unchanged
114 public static int setPermissions(FileDescriptor fd, int mode, int uid, int gid) {
122 if (uid >= 0 || gid >= 0)
    [all...]
  /frameworks/native/services/powermanager/
IPowerManager.cpp 64 const String16& packageName, int uid, bool isOneWay)
73 data.writeInt32(uid); // uid to blame for the work
  /packages/apps/Exchange/tests/src/com/android/exchange/utility/
CalendarUtilitiesTests.java 311 // The uid is required, but can be anything
312 String uid = "31415926535"; local
316 Message.FLAG_OUTGOING_MEETING_ACCEPT, uid, account);
357 // The uid is required, but can be anything
358 String uid = "31415926535"; local
362 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account);
399 assertEquals(uid, vevent.get("UID"));
419 // The uid is required, but can be anything
420 String uid = "31415926535" local
486 String uid = "31415926535"; local
567 String uid = "31415926535"; local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
Folder.java 114 public abstract Message getMessage(String uid) throws MessagingException;
120 * means that only the UID is downloaded.
189 public abstract Message createMessage(String uid) throws MessagingException;
192 * Callback interface by which a folder can report UID changes caused by certain operations.
196 * The operation caused the message's UID to change
197 * @param message The message for which the UID changed
198 * @param newUid The new UID for the message
Message.java 41 public void setUid(String uid) {
42 this.mUid = uid;
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_posix.py 114 # the current UID may not have a pwd entry
227 def check_stat(uid, gid):
230 self.assertEqual(stat.st_uid, uid)
232 uid = os.getuid()
235 chown_func(first_param, uid, gid)
236 check_stat(uid, gid)
238 check_stat(uid, gid)
239 chown_func(first_param, uid, -1)
240 check_stat(uid, gid)
242 if uid == 0
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_posix.py 114 # the current UID may not have a pwd entry
227 def check_stat(uid, gid):
230 self.assertEqual(stat.st_uid, uid)
232 uid = os.getuid()
235 chown_func(first_param, uid, gid)
236 check_stat(uid, gid)
238 check_stat(uid, gid)
239 chown_func(first_param, uid, -1)
240 check_stat(uid, gid)
242 if uid == 0
    [all...]
  /system/core/adb/
file_sync_service.c 51 uid_t uid = -1; local
63 fs_config(name, 1, &uid, &gid, &mode, &cap);
71 ret = chown(name, uid, gid);
179 static int handle_send_file(int s, char *path, uid_t uid,
204 if(fchown(fd, uid, gid) != 0) {
365 uid_t uid = -1; local
378 fs_config(tmp, 0, &uid, &gid, &mode, &cap);
380 ret = handle_send_file(s, path, uid, gid, mode, buffer, do_unlink);
  /system/core/logd/
LogListener.cpp 77 if (cred->uid == getuid()) {
105 logbuf->log(log_id, realtime, cred->uid, cred->pid, tid, msg,
  /system/netd/server/
FirewallController.cpp 137 int FirewallController::setUidRule(int uid, FirewallRule rule) {
139 sprintf(uidStr, "%d", uid);
149 res |= execIptables(V4V6, op, LOCAL_INPUT, "-m", "owner", "--uid-owner", uidStr,
151 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-m", "owner", "--uid-owner", uidStr,
  /frameworks/base/services/core/java/com/android/server/net/
NetworkStatsService.java 172 private static final String PREFIX_UID = "uid";
211 /** Set of currently active ifaces for UID stats. */
229 /** Current counter sets for each UID. */
314 // listen for uid removal to clean stats
484 NetworkTemplate template, int uid, int set, int tag, int fields) {
486 return getUidComplete().getHistory(template, uid, set, tag, fields);
488 return getUidTagComplete().getHistory(template, uid, set, tag, fields);
529 public NetworkStats getDataLayerSnapshotForUid(int uid) throws RemoteException {
530 if (Binder.getCallingUid() != uid) {
540 networkLayer = mNetworkManager.getNetworkStatsUidDetail(uid);
1040 final int uid = UserHandle.getUid(userId, app.uid); local
    [all...]
  /frameworks/base/services/core/java/com/android/server/media/projection/
MediaProjectionManagerService.java 213 public boolean hasProjectionPermission(int uid, String packageName) {
220 AppOpsManager.OP_PROJECT_MEDIA, uid, packageName)
229 public IMediaProjection createProjection(int uid, String packageName, int type,
242 projection = new MediaProjection(type, uid, packageName);
245 projection.uid, projection.packageName, AppOpsManager.MODE_ALLOWED);
328 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid());
348 public final int uid; field in class:MediaProjectionManagerService.MediaProjection
356 public MediaProjection(int type, int uid, String packageName) {
358 this.uid = uid;
    [all...]

Completed in 1056 milliseconds

<<21222324252627282930>>