/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainService.java | 92 final int uid = Binder.getCallingUid(); 93 if (!mKeyStore.grant(keystoreAlias, uid)) { 209 @Override public boolean hasGrant(int uid, String alias) { 211 return hasGrantInternal(mDatabaseHelper.getReadableDatabase(), uid, alias); 214 @Override public void setGrant(int uid, String alias, boolean value) { 216 setGrantInternal(mDatabaseHelper.getWritableDatabase(), uid, alias, value); 221 private boolean hasGrantInternal(final SQLiteDatabase db, final int uid, final String alias) { in hasGrantInternal() argument 223 new String[]{String.valueOf(uid), alias}); in hasGrantInternal() 228 final int uid, final String alias, final boolean value) { in setGrantInternal() argument 230 if (!hasGrantInternal(db, uid, alias)) { in setGrantInternal() [all …]
|
/packages/apps/Settings/src/com/android/settings/net/ |
D | UidDetailProvider.java | 63 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 …]
|
D | ChartDataLoader.java | 95 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/Settings/src/com/android/settings/fuelgauge/ |
D | BatterySipper.java | 66 int iconId, Uid uid, double[] values) { in BatterySipper() argument 77 if ((label == null || iconId == 0) && uid != null) { in BatterySipper() 78 getQuickNameIconForUid(uid); in BatterySipper() 80 uidObj = uid; in BatterySipper() 101 final int uid = uidObj.getUid(); in getQuickNameIconForUid() local 102 final String uidString = Integer.toString(uid); in getQuickNameIconForUid() 111 String[] packages = pm.getPackagesForUid(uid); in getQuickNameIconForUid() 115 if (uid == 0) { in getQuickNameIconForUid() 137 final int uid = uidObj.getUid(); in getNameIcon() local 139 String[] packages = pm.getPackagesForUid(uid); in getNameIcon() [all …]
|
D | PowerUsageDetail.java | 343 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/apps/Nfc/nci/jni/ |
D | NfcTag.cpp | 239 … if (memcmp(mLastKovioUid, &mTechParams [0].param.pk.uid, mTechParams[0].param.pk.uid_len) == 0) in IsSameKovio() 255 memcpy(mLastKovioUid, mTechParams[0].param.pk.uid, mLastKovioUidLen); in IsSameKovio() 896 ScopedLocalRef<jbyteArray> uid(e, NULL); in fillNativeNfcTagMembers5() local 903 uid.reset(e->NewByteArray(len)); in fillNativeNfcTagMembers5() 904 e->SetByteArrayRegion(uid.get(), 0, len, in fillNativeNfcTagMembers5() 905 (jbyte*) &mTechParams [0].param.pk.uid); in fillNativeNfcTagMembers5() 914 uid.reset(e->NewByteArray(len)); in fillNativeNfcTagMembers5() 915 e->SetByteArrayRegion(uid.get(), 0, len, in fillNativeNfcTagMembers5() 924 uid.reset(e->NewByteArray(NFC_NFCID0_MAX_LEN)); in fillNativeNfcTagMembers5() 925 e->SetByteArrayRegion(uid.get(), 0, NFC_NFCID0_MAX_LEN, in fillNativeNfcTagMembers5() [all …]
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
D | CalendarUtilitiesTests.java | 300 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/Exchange/exchange2/tests/src/com/android/exchange/utility/ |
D | CalendarUtilitiesTests.java | 290 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/Nfc/src/com/android/nfc/ |
D | NfceeAccessControl.java | 77 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/Settings/src/com/android/settings/ |
D | DataUsageSummary.java | 781 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 …]
|
D | CredentialStorage.java | 193 final int uid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, -1); in installIfAvailable() local 199 if (!mKeyStore.importKey(key, value, uid, KeyStore.FLAG_ENCRYPTED)) { in installIfAvailable() 200 Log.e(TAG, "Failed to install " + key + " as user " + uid); in installIfAvailable() 209 if (!mKeyStore.put(certName, certData, uid, KeyStore.FLAG_ENCRYPTED)) { in installIfAvailable() 210 Log.e(TAG, "Failed to install " + certName + " as user " + uid); in installIfAvailable() 219 if (!mKeyStore.put(caListName, caListData, uid, KeyStore.FLAG_ENCRYPTED)) { in installIfAvailable() 220 Log.e(TAG, "Failed to install " + caListName + " as user " + uid); in installIfAvailable()
|
/packages/apps/Email/src/com/android/email/mail/store/ |
D | Pop3Store.java | 389 public Message getMessage(String uid) throws MessagingException { in getMessage() argument 401 Pop3Message message = mUidToMsgMap.get(uid); in getMessage() 493 for (String uid : uids) { in indexUids() 494 if (mUidToMsgMap.get(uid) == null) { in indexUids() 495 unindexedUids.add(uid); in indexUids() 857 final String uid = message.getUid(); in setFlags() local 858 final int msgNum = mUidToMsgNumMap.get(uid); in setFlags() 862 mUidToMsgNumMap.remove(uid); in setFlags() 975 public Message createMessage(String uid) { in createMessage() argument 976 return new Pop3Message(uid, this); in createMessage() [all …]
|
D | ImapFolder.java | 411 public Message getMessage(String uid) throws MessagingException { in getMessage() argument 414 final String[] uids = searchForUids(ImapConstants.UID + " " + uid); in getMessage() 416 if (uids[i].equals(uid)) { in getMessage() 417 return new ImapMessage(uid, this); in getMessage() 501 final String uid = uids[i]; in getMessagesInternal() local 502 final ImapMessage message = new ImapMessage(uid, this); in getMessagesInternal() 595 final String uid = fetchList.getKeyedStringOrEmpty(ImapConstants.UID) in fetchInternal() local 597 if (TextUtils.isEmpty(uid)) continue; in fetchInternal() 599 ImapMessage message = (ImapMessage) messageMap.get(uid); in fetchInternal() 1137 public Message createMessage(String uid) { in createMessage() argument [all …]
|
D | ImapStore.java | 220 byte[] uid = messageDigest.digest(); in getImapId() 221 String hexUid = Base64.encodeToString(uid, Base64.NO_WRAP); in getImapId() 587 ImapMessage(String uid, ImapFolder folder) { in ImapMessage() argument 588 mUid = uid; in ImapMessage()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsMockPackageManager.java | 55 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/apps/Nfc/nxp/jni/ |
D | com_android_nfc_NativeNfcManager.cpp | 639 phNfc_sData_t uid; in get_target_uid() local 647 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.Uid; in get_target_uid() 648 uid.length = psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.UidLength; in get_target_uid() 652 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso14443B_Info.AtqB.AtqResInfo.Pupi; in get_target_uid() 653 uid.length = sizeof(psRemoteDevInfo->RemoteDevInfo.Iso14443B_Info.AtqB.AtqResInfo.Pupi); in get_target_uid() 656 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Felica_Info.IDm; in get_target_uid() 657 uid.length = psRemoteDevInfo->RemoteDevInfo.Felica_Info.IDmLength; in get_target_uid() 660 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Jewel_Info.Uid; in get_target_uid() 661 uid.length = psRemoteDevInfo->RemoteDevInfo.Jewel_Info.UidLength; in get_target_uid() 664 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso15693_Info.Uid; in get_target_uid() [all …]
|
/packages/apps/Phone/src/com/android/phone/sip/ |
D | SipSettings.java | 131 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/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | RealSystemFacade.java | 41 public NetworkInfo getActiveNetworkInfo(int uid) { in getActiveNetworkInfo() argument 49 final NetworkInfo activeInfo = connectivity.getActiveNetworkInfoForUid(uid); in getActiveNetworkInfo() 96 public boolean userOwnsPackage(int uid, String packageName) throws NameNotFoundException { in userOwnsPackage() argument 97 return mContext.getPackageManager().getApplicationInfo(packageName, 0).uid == uid; in userOwnsPackage()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningState.java | 368 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() 946 HashMap<String, ProcessItem> procs = mServiceProcessesByName.get(si.uid); in update() 949 mServiceProcessesByName.put(si.uid, procs); in update() 954 proc = new ProcessItem(context, si.uid, si.process); in update() 990 proc = new ProcessItem(context, pi.uid, pi.processName); in update() 1106 int uid = uidToDelete.get(i); in update() local [all …]
|
D | ManageApplications.java | 1135 nm.setNotificationsEnabledForPackage(app.packageName, app.uid, true); in onClick() 1156 for (int uid : restrictedUids) { in onClick() 1158 if (UserHandle.getUserId(uid) == currentUserId) { in onClick() 1159 if (DEBUG) Log.v(TAG, "Clearing data policy: " + uid); in onClick() 1160 npm.setUidPolicy(uid, POLICY_NONE); in onClick()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/ |
D | CalendarUtilities.java | 1689 int messageFlag, String uid, Account account) { in createMessageForEntity() argument 1690 return createMessageForEntity(context, entity, messageFlag, uid, account, in createMessageForEntity() 1695 int messageFlag, String uid, Account account, String specifiedAttendee) { in createMessageForEntity() argument 1754 if (uid == null) { in createMessageForEntity() 1755 uid = entityValues.getAsString(Events.SYNC_DATA2); in createMessageForEntity() 1757 if (uid != null) { in createMessageForEntity() 1758 ics.writeTag("UID", uid); in createMessageForEntity() 2004 int messageFlag, String uid, Account account) throws RemoteException { in createMessageForEventId() argument 2005 return createMessageForEventId(context, eventId, messageFlag, uid, account, in createMessageForEventId() 2010 int messageFlag, String uid, Account account, String specifiedAttendee) in createMessageForEventId() argument [all …]
|
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/ |
D | KeyChainServiceTestSupport.java | 51 @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);
|
D | IKeyChainServiceTestSupport.aidl | 37 void revokeAppPermission(int uid, String alias); in revokeAppPermission() argument 38 void grantAppPermission(int uid, String alias); in grantAppPermission() argument
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
D | KeyChainServiceTest.java | 133 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/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SearchableSource.java | 133 int uid = android.os.Process.myUid(); in canRead() local 134 if (getContext().checkPermission(readPermission, pid, uid) in canRead() 150 && getContext().checkPermission(pathReadPermission, pid, uid) in canRead()
|