Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/net/
DUidDetailProvider.java63 public UidDetail getUidDetail(int uid, boolean blocking) { in getUidDetail() argument
67 detail = mUidDetailCache.get(uid); in getUidDetail()
76 detail = buildUidDetail(uid); in getUidDetail()
79 mUidDetailCache.put(uid, detail); in getUidDetail()
89 private UidDetail buildUidDetail(int uid) { in buildUidDetail() argument
94 detail.label = pm.getNameForUid(uid); in buildUidDetail()
98 switch (uid) { in buildUidDetail()
118 if (uid <= -2000) { in buildUidDetail()
119 final int userHandle = (-uid) - 2000; in buildUidDetail()
130 final String[] packageNames = pm.getPackagesForUid(uid); in buildUidDetail()
[all …]
DChartDataLoader.java95 final int uid = app.uids.keyAt(i); in loadInBackground() local
97 template, uid, SET_DEFAULT, data.detailDefault); in loadInBackground()
99 template, uid, SET_FOREGROUND, data.detailForeground); in loadInBackground()
133 NetworkTemplate template, int uid, int set, NetworkStatsHistory existing) in collectHistoryForUid() argument
136 template, uid, set, TAG_NONE, FIELD_RX_BYTES | FIELD_TX_BYTES); in collectHistoryForUid()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java92 final int uid = Binder.getCallingUid();
93 if (!mKeyStore.grant(keystoreAlias, uid)) {
213 @Override public boolean hasGrant(int uid, String alias) {
215 return hasGrantInternal(mDatabaseHelper.getReadableDatabase(), uid, alias);
218 @Override public void setGrant(int uid, String alias, boolean value) {
220 setGrantInternal(mDatabaseHelper.getWritableDatabase(), uid, alias, value);
225 private boolean hasGrantInternal(final SQLiteDatabase db, final int uid, final String alias) { in hasGrantInternal() argument
227 new String[]{String.valueOf(uid), alias}); in hasGrantInternal()
232 final int uid, final String alias, final boolean value) { in setGrantInternal() argument
234 if (!hasGrantInternal(db, uid, alias)) { in setGrantInternal()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySipper.java65 int iconId, Uid uid, double[] values) { in BatterySipper() argument
76 if ((label == null || iconId == 0) && uid != null) { in BatterySipper()
77 getQuickNameIconForUid(uid); in BatterySipper()
79 uidObj = uid; in BatterySipper()
100 final int uid = uidObj.getUid(); in getQuickNameIconForUid() local
101 final String uidString = Integer.toString(uid); in getQuickNameIconForUid()
110 String[] packages = pm.getPackagesForUid(uid); in getQuickNameIconForUid()
114 if (uid == 0) { in getQuickNameIconForUid()
136 final int uid = uidObj.getUid(); in getNameIcon() local
138 String[] packages = pm.getPackagesForUid(uid); in getNameIcon()
[all …]
DPowerUsageDetail.java343 private void fillControlsSection(int uid) { in fillControlsSection() argument
345 String[] packages = pm.getPackagesForUid(uid); in fillControlsSection()
498 private void fillPackagesSection(int uid) { in fillPackagesSection() argument
499 if (uid < 1) { in fillPackagesSection()
509 mPackages = pm.getPackagesForUid(uid); in fillPackagesSection()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java55 public String getNameForUid(int uid) { in getNameForUid() argument
60 public String[] getPackagesForUid(int uid) { in getPackagesForUid() argument
71 Integer uid = mReverse.get(packageName); in getApplicationInfo() local
72 info.uid = (uid != null) ? uid : -1; in getApplicationInfo()
101 public List<ProviderInfo> queryContentProviders(String processName, int uid, int flags) { in queryContentProviders() argument
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DRealSystemFacade.java39 public NetworkInfo getActiveNetworkInfo(int uid) { in getActiveNetworkInfo() argument
47 final NetworkInfo activeInfo = connectivity.getActiveNetworkInfoForUid(uid); in getActiveNetworkInfo()
92 public boolean userOwnsPackage(int uid, String packageName) throws NameNotFoundException { in userOwnsPackage() argument
93 return mContext.getPackageManager().getApplicationInfo(packageName, 0).uid == uid; in userOwnsPackage()
DSystemFacade.java33 public NetworkInfo getActiveNetworkInfo(int uid); in getActiveNetworkInfo() argument
63 public boolean userOwnsPackage(int uid, String pckg) throws NameNotFoundException; in userOwnsPackage() argument
/packages/apps/Nfc/src/com/android/nfc/
DNfceeAccessControl.java77 public boolean check(int uid, String pkg) { in check() argument
79 Boolean cached = mUidCache.get(uid); in check()
88 String[] pkgs = pm.getPackagesForUid(uid); in check()
99 mUidCache.put(uid, access); in check()
111 Boolean access = mUidCache.get(info.uid); in check()
114 mUidCache.put(info.uid, access); in check()
283 for (Integer uid : mUidCache.keySet()) { in dump()
284 Boolean b = mUidCache.get(uid); in dump()
285 pw.printf("\t%d %s\n", uid, b); in dump()
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/
DKeyChainServiceTestSupport.java51 @Override public void revokeAppPermission(final int uid, final String alias)
54 blockingSetGrantPermission(uid, alias, false);
57 @Override public void grantAppPermission(final int uid, final String alias)
60 blockingSetGrantPermission(uid, alias, true);
DIKeyChainServiceTestSupport.aidl37 void revokeAppPermission(int uid, String alias); in revokeAppPermission() argument
38 void grantAppPermission(int uid, String alias); in grantAppPermission() argument
/packages/apps/Nfc/nci/jni/
DNfcTag.cpp236 … if (memcmp(mLastKovioUid, &mTechParams [0].param.pk.uid, mTechParams[0].param.pk.uid_len) == 0) in IsSameKovio()
252 memcpy(mLastKovioUid, mTechParams[0].param.pk.uid, mLastKovioUidLen); in IsSameKovio()
772 jbyteArray uid = NULL; in fillNativeNfcTagMembers4() local
912 jbyteArray uid = NULL; in fillNativeNfcTagMembers5() local
919 uid = e->NewByteArray (len); in fillNativeNfcTagMembers5()
920 e->SetByteArrayRegion (uid, 0, len, in fillNativeNfcTagMembers5()
921 (jbyte*) &mTechParams [0].param.pk.uid); in fillNativeNfcTagMembers5()
930 uid = e->NewByteArray (len); in fillNativeNfcTagMembers5()
931 e->SetByteArrayRegion (uid, 0, len, in fillNativeNfcTagMembers5()
940 uid = e->NewByteArray (NFC_NFCID0_MAX_LEN); in fillNativeNfcTagMembers5()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java290 String uid = "31415926535"; in testCreateMessageForEntity_Reply() local
294 Message.FLAG_OUTGOING_MEETING_ACCEPT, uid, account); in testCreateMessageForEntity_Reply()
336 String uid = "31415926535"; in testCreateMessageForEntity_Invite_AllDay() local
340 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); in testCreateMessageForEntity_Invite_AllDay()
377 assertEquals(uid, vevent.get("UID")); in testCreateMessageForEntity_Invite_AllDay()
398 String uid = "31415926535"; in testCreateMessageForEntity_Invite() local
402 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); in testCreateMessageForEntity_Invite()
439 assertEquals(uid, vevent.get("UID")); in testCreateMessageForEntity_Invite()
464 String uid = "31415926535"; in testCreateMessageForEntity_Recurring() local
468 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); in testCreateMessageForEntity_Recurring()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java300 String uid = "31415926535"; in testCreateMessageForEntity_Reply() local
304 Message.FLAG_OUTGOING_MEETING_ACCEPT, uid, account); in testCreateMessageForEntity_Reply()
346 String uid = "31415926535"; in testCreateMessageForEntity_Invite_AllDay() local
350 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); in testCreateMessageForEntity_Invite_AllDay()
387 assertEquals(uid, vevent.get("UID")); in testCreateMessageForEntity_Invite_AllDay()
408 String uid = "31415926535"; in testCreateMessageForEntity_Invite() local
412 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); in testCreateMessageForEntity_Invite()
449 assertEquals(uid, vevent.get("UID")); in testCreateMessageForEntity_Invite()
474 String uid = "31415926535"; in testCreateMessageForEntity_Recurring() local
478 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); in testCreateMessageForEntity_Recurring()
[all …]
/packages/apps/Phone/src/com/android/phone/sip/
DSipSettings.java131 private String getPackageNameFromUid(int uid) { in getPackageNameFromUid() argument
133 String[] pkgs = mPackageManager.getPackagesForUid(uid); in getPackageNameFromUid()
138 Log.e(TAG, "cannot find name of uid " + uid, e); in getPackageNameFromUid()
140 return "uid:" + uid; in getPackageNameFromUid()
361 int uid = profile.getCallingUid(); in handleProfileClick() local
362 if (uid == mUid || uid == 0) { in handleProfileClick()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMockFolder.java66 public Message getMessage(String uid) { in getMessage() argument
119 public Message createMessage(String uid) { in createMessage() argument
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DFakeSystemFacade.java36 public NetworkInfo getActiveNetworkInfo(int uid) { in getActiveNetworkInfo() argument
69 public boolean userOwnsPackage(int uid, String pckg) throws NameNotFoundException { in userOwnsPackage() argument
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
DFolder.java112 public abstract Message getMessage(String uid) throws MessagingException; in getMessage() argument
183 public abstract Message createMessage(String uid) throws MessagingException; in createMessage() argument
DMessage.java41 public void setUid(String uid) { in setUid() argument
42 this.mUid = uid; in setUid()
/packages/apps/Settings/src/com/android/settings/
DDataUsageSummary.java781 final int uid = mCurrentApp.key; in updateAppDetail() local
782 final UidDetail detail = mUidDetailProvider.getUidDetail(uid, true); in updateAppDetail()
795 final String[] packageNames = pm.getPackagesForUid(uid); in updateAppDetail()
820 if (UserHandle.isApp(uid) && !mPolicyManager.getRestrictBackground() in updateAppDetail()
901 final int uid = mCurrentApp.key; in getAppRestrictBackground() local
902 final int uidPolicy = mPolicyManager.getUidPolicy(uid); in getAppRestrictBackground()
908 final int uid = mCurrentApp.key; in setAppRestrictBackground() local
910 uid, restrictBackground ? POLICY_REJECT_METERED_BACKGROUND : POLICY_NONE); in setAppRestrictBackground()
1438 public void addUid(int uid) { in addUid() argument
1439 uids.put(uid, true); in addUid()
[all …]
/packages/apps/Email/src/com/android/email/mail/store/
DPop3Store.java388 public Message getMessage(String uid) throws MessagingException { in getMessage() argument
400 Pop3Message message = mUidToMsgMap.get(uid); in getMessage()
492 for (String uid : uids) { in indexUids()
493 if (mUidToMsgMap.get(uid) == null) { in indexUids()
494 unindexedUids.add(uid); in indexUids()
960 public Message createMessage(String uid) { in createMessage() argument
961 return new Pop3Message(uid, this); in createMessage()
971 public Pop3Message(String uid, Pop3Folder folder) { in Pop3Message() argument
972 mUid = uid; in Pop3Message()
DImapFolder.java407 public Message getMessage(String uid) throws MessagingException { in getMessage() argument
410 String[] uids = searchForUids(ImapConstants.UID + " " + uid); in getMessage()
412 if (uids[i].equals(uid)) { in getMessage()
413 return new ImapMessage(uid, this); in getMessage()
497 final String uid = uids[i]; in getMessagesInternal() local
498 final ImapMessage message = new ImapMessage(uid, this); in getMessagesInternal()
591 final String uid = fetchList.getKeyedStringOrEmpty(ImapConstants.UID) in fetchInternal() local
593 if (TextUtils.isEmpty(uid)) continue; in fetchInternal()
595 ImapMessage message = (ImapMessage) messageMap.get(uid); in fetchInternal()
1132 public Message createMessage(String uid) { in createMessage() argument
[all …]
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainServiceTest.java133 Log.d(TAG, "test_KeyChainService uid=" + getApplicationInfo().uid); in test_KeyChainService()
204 mSupport.grantAppPermission(getApplicationInfo().uid, alias1); in test_KeyChainService()
216 mSupport.revokeAppPermission(getApplicationInfo().uid, alias2); in test_KeyChainService()
/packages/apps/Nfc/nxp/jni/
Dcom_android_nfc_NativeNfcManager.cpp638 phNfc_sData_t uid; in get_target_uid() local
646 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.Uid; in get_target_uid()
647 uid.length = psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.UidLength; in get_target_uid()
651 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso14443B_Info.AtqB.AtqResInfo.Pupi; in get_target_uid()
652 uid.length = sizeof(psRemoteDevInfo->RemoteDevInfo.Iso14443B_Info.AtqB.AtqResInfo.Pupi); in get_target_uid()
655 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Felica_Info.IDm; in get_target_uid()
656 uid.length = psRemoteDevInfo->RemoteDevInfo.Felica_Info.IDmLength; in get_target_uid()
659 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Jewel_Info.Uid; in get_target_uid()
660 uid.length = psRemoteDevInfo->RemoteDevInfo.Jewel_Info.UidLength; in get_target_uid()
663 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso15693_Info.Uid; in get_target_uid()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java368 public ProcessItem(Context context, int uid, String processName) { in ProcessItem() argument
369 super(true, UserHandle.getUserId(uid)); in ProcessItem()
372 mUid = uid; in ProcessItem()
384 if (ai.uid == mUid) { in ensureLabel()
464 UserHandle.getUserId(service.uid)); in updateService()
940 HashMap<String, ProcessItem> procs = mServiceProcessesByName.get(si.uid); in update()
943 mServiceProcessesByName.put(si.uid, procs); in update()
948 proc = new ProcessItem(context, si.uid, si.process); in update()
984 proc = new ProcessItem(context, pi.uid, pi.processName); in update()
1100 int uid = uidToDelete.get(i); in update() local
[all …]

12