HomeSort by relevance Sort by last modified time
    Searched refs:uid (Results 26 - 50 of 2815) sorted by null

12 3 4 5 6 7 8 91011>>

  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
BinderUtil.java 22 * Utilities for faking the calling uid in Binder.
26 * Fake the calling uid in Binder.
27 * @param uid the calling uid that Binder should return from now on
29 public static void setUid(int uid) {
30 Binder.restoreCallingIdentity((((long) uid) << 32) | Binder.getCallingPid());
  /frameworks/base/core/java/android/net/
INetdEventCallback.aidl 32 * @param uid the UID of the application that performed the query.
35 int uid);
44 * @param uid the UID of the application that performed the connection.
46 void onConnectEvent(String ipAddr, int port, long timestamp, int uid);
  /frameworks/support/room/compiler/src/test/data/common/input/
NotAnEntity.java 21 int uid; field in class:NotAnEntity
Book.java 23 int uid; field in class:Book
  /tools/loganalysis/src/com/android/loganalysis/item/
QtaguidItem.java 33 public static final String UID_KEY = "uid";
69 for (int uid : getUids()) {
72 user.put(UID_KEY, uid);
73 user.put(RX_BYTES_KEY, getRxBytes(uid));
74 user.put(TX_BYTES_KEY, getTxBytes(uid));
99 * @param uid The UID from the output
103 public void addRow(int uid, int rxBytes, int txBytes) {
107 mRows.put(uid, row);
113 * contains(uid) should be true before calling this method
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
ApplicationTestUtils.java 27 * @param uid The app's uid
35 public static ApplicationInfo buildInfo(int uid, String packageName, int flags,
38 info.uid = uid;
  /system/core/libcutils/include/cutils/
qtaguid.h 33 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid);
41 * For the given uid, switch counter sets.
45 extern int qtaguid_setCounterSet(int counterSetNum, uid_t uid);
48 * Delete all tag info that relates to the given tag an uid.
49 * If the tag is 0, then ALL info about the uid is freeded.
56 extern int qtaguid_deleteTagData(int tag, uid_t uid);
  /frameworks/native/libs/binder/
IBatteryStats.cpp 37 virtual void noteStartSensor(int uid, int sensor) {
40 data.writeInt32(uid);
45 virtual void noteStopSensor(int uid, int sensor) {
48 data.writeInt32(uid);
53 virtual void noteStartVideo(int uid) {
56 data.writeInt32(uid);
60 virtual void noteStopVideo(int uid) {
63 data.writeInt32(uid);
67 virtual void noteStartAudio(int uid) {
70 data.writeInt32(uid);
145 int uid = data.readInt32(); local
153 int uid = data.readInt32(); local
161 int uid = data.readInt32(); local
168 int uid = data.readInt32(); local
175 int uid = data.readInt32(); local
182 int uid = data.readInt32(); local
201 int uid = data.readInt32(); local
208 int uid = data.readInt32(); local
215 int uid = data.readInt32(); local
222 int uid = data.readInt32(); local
    [all...]
PermissionCache.cpp 38 const String16& permission, uid_t uid) const {
42 e.uid = uid;
52 uid_t uid, bool granted) {
64 e.uid = uid;
85 uid_t uid = ipcState->getCallingUid(); local
87 if (outUid) *outUid = uid;
88 return PermissionCache::checkPermission(permission, pid, uid);
92 const String16& permission, pid_t pid, uid_t uid) {
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
IBatteryStats.aidl 33 void noteStartSensor(int uid, int sensor);
34 void noteStopSensor(int uid, int sensor);
35 void noteStartVideo(int uid);
36 void noteStopVideo(int uid);
37 void noteStartAudio(int uid);
38 void noteStopAudio(int uid);
41 void noteFlashlightOn(int uid);
42 void noteFlashlightOff(int uid);
43 void noteStartCamera(int uid);
44 void noteStopCamera(int uid);
    [all...]
IAppOpsService.aidl 26 int checkOperation(int code, int uid, String packageName);
27 int noteOperation(int code, int uid, String packageName);
28 int startOperation(IBinder token, int code, int uid, String packageName);
29 void finishOperation(IBinder token, int code, int uid, String packageName);
38 int checkPackage(int uid, String packageName);
40 List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops);
41 List<AppOpsManager.PackageOps> getUidOps(int uid, in int[] ops);
42 void setUidMode(int code, int uid, int mode);
43 void setMode(int code, int uid, String packageName, int mode);
45 int checkAudioOperation(int code, int usage, int uid, String packageName)
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
WifiPermissionsUtil.java 74 * @param uid uid of the app.
77 public boolean checkConfigOverridePermission(int uid) {
79 int permission = mWifiPermissionsWrapper.getOverrideWifiConfigPermission(uid);
90 * @param uid uid of the app.
93 public boolean checkChangePermission(int uid) {
95 int permission = mWifiPermissionsWrapper.getChangeWifiConfigPermission(uid);
117 * @param uid The uid of the packag
    [all...]
  /external/ltp/testcases/kernel/syscalls/setfsuid/
setfsuid01.c 43 uid_t uid; local
49 uid = geteuid();
50 UID16_CHECK(uid, setfsuid, cleanup);
56 TEST(SETFSUID(cleanup, uid));
64 if (TEST_RETURN != uid) {
66 TEST_RETURN, uid);
  /system/netd/server/binder/android/net/metrics/
INetdEventListener.aidl 47 * @param uid the UID of the application that performed the query.
50 in String[] ipAddresses, int ipAddressesCount, int uid);
60 * @param uid the UID of the application that performed the connection.
62 void onConnectEvent(int netId, int error, int latencyMs, String ipAddr, int port, int uid);
67 * @param UID of the destination process or -1 if no UID is available.
72 void onWakeupEvent(String prefix, int uid, int gid, long timestampNs);
  /external/autotest/client/site_tests/security_Minijail0/src/
common.sh 11 uid=$(id -ru)
12 [ "$uid" != "$1" ] && die "uid $uid != $1"
  /external/strace/
nsfs.c 36 unsigned int uid; local
57 if (!umove_or_printaddr(tcp, arg, &uid)) {
58 printuid("[", uid);
  /system/core/liblog/include/log/
log_safetynet.h 32 #define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \
33 __android_log_error_write(tag, subTag, uid, data, dataLen)
35 int __android_log_error_write(int tag, const char* subTag, int32_t uid,
  /cts/tests/tests/net/native/qtaguid/src/
NativeQtaguidTest.cpp 26 int getCtrlSkInfo(int tag, uid_t uid, uint64_t* sk_addr, int* ref_cnt) {
31 uint64_t full_tag = (uint64_t)tag << 32 | uid;
33 snprintf(pattern, sizeof(pattern), " tag=0x%" PRIx64 " (uid=%" PRIu32 ")", full_tag, uid);
45 res = sscanf(line_buffer, "sock=%" PRIx64 " tag=0x%" PRIx64 " (uid=%" PRIu32 ") "
48 if (!(res == TOTAL_PARAM && k_tag == full_tag && k_uid == uid))
59 uid_t uid = getuid(); local
65 EXPECT_EQ(0, qtaguid_tagSocket(sockfd, tag, uid));
66 EXPECT_EQ(0, getCtrlSkInfo(tag, uid, &sk_addr, &ref_cnt));
69 EXPECT_EQ(-ENOENT, getCtrlSkInfo(tag, uid, &sk_addr, &ref_cnt))
74 uid_t uid = getuid(); local
87 uid_t uid = getuid(); local
    [all...]
  /frameworks/native/libs/vr/libvr_manager/include/private/dvr/
trusted_uids.h 10 * Tells if a provided UID can be trusted to access restricted VR APIs.
12 * UID trust is based on the android.permission.RESTRICTED_VR_ACCESS permission.
21 * @param uid The uid to check.
22 * @param use_cache If true any cached result for the provided uid will be
25 * @return true if the uid is trusted, false if not or if the VR Manager Service
26 * could not be reached to verify the uid.
28 bool IsTrustedUid(uid_t uid, bool use_cache = true);
  /packages/apps/Nfc/src/com/android/nfc/
ForegroundUtils.java 35 // We need to keep track of the individual PIDs per UID,
36 // since a single UID may have multiple processes running
58 void onUidToBackground(int uid);
66 * Checks whether the specified UID has any activities running in the foreground,
67 * and if it does, registers a callback for when that UID no longer has any foreground
72 * @param uid The UID to be checked
73 * @return true when the UID has an Activity in the foreground and the callback
76 public boolean registerUidToBackgroundCallback(Callback callback, int uid) {
78 if (!isInForegroundLocked(uid)) {
    [all...]
  /frameworks/av/media/utils/
BatteryNotifier.cpp 41 void BatteryNotifier::noteStartVideo(uid_t uid) {
44 if (mVideoRefCounts[uid] == 0 && batteryService != nullptr) {
45 batteryService->noteStartVideo(uid);
47 mVideoRefCounts[uid]++;
50 void BatteryNotifier::noteStopVideo(uid_t uid) {
52 if (mVideoRefCounts.find(uid) == mVideoRefCounts.end()) {
53 ALOGW("%s: video refcount is broken for uid(%d).", __FUNCTION__, (int)uid);
59 mVideoRefCounts[uid]--;
60 if (mVideoRefCounts[uid] == 0)
    [all...]
  /frameworks/base/core/java/com/android/server/
NetworkManagementSocketTagger.java 64 public static int setThreadSocketStatsUid(int uid) {
66 threadSocketTags.get().statsUid = uid;
84 private void tagSocketFd(FileDescriptor fd, int tag, int uid) {
85 if (tag == -1 && uid == -1) return;
88 final int errno = native_tagSocketFd(fd, tag, uid);
92 + uid + ") failed with errno" + errno);
122 public static void setKernelCounterSet(int uid, int counterSet) {
124 final int errno = native_setCounterSet(counterSet, uid);
126 Log.w(TAG, "setKernelCountSet(" + uid + ", " + counterSet + ") failed with errno "
132 public static void resetKernelUidStats(int uid) {
    [all...]
  /frameworks/av/services/audioflinger/
ServiceUtilities.cpp 39 // A trusted calling UID may specify the client UID as part of a binder interface call.
40 // otherwise the calling UID must be equal to the client UID.
41 bool isTrustedCallingUid(uid_t uid) {
42 switch (uid) {
51 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid) {
57 // We specify a pid and uid here as mediaserver (aka MediaRecorder or StageFrightRecorder)
60 const bool ok = checkPermission(sRecordAudio, pid, uid);
67 if (uid == AID_ROOT) return true
    [all...]
  /bionic/libc/bionic/
chown.cpp 34 int chown(const char* path, uid_t uid, gid_t gid) {
35 return fchownat(AT_FDCWD, path, uid, gid, 0);
lchown.cpp 34 int lchown(const char* path, uid_t uid, gid_t gid) {
35 return fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW);

Completed in 1865 milliseconds

12 3 4 5 6 7 8 91011>>