/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 | 73 int iconId, Uid uid, double[] values) { in BatterySipper() argument 84 if ((label == null || iconId == 0) && uid != null) { in BatterySipper() 85 getQuickNameIconForUid(uid); in BatterySipper() 87 uidObj = uid; in BatterySipper() 131 final int uid = uidObj.getUid(); in getQuickNameIconForUid() local 132 final String uidString = Integer.toString(uid); in getQuickNameIconForUid() 141 String[] packages = pm.getPackagesForUid(uid); in getQuickNameIconForUid() 145 if (uid == 0) { in getQuickNameIconForUid() 176 final int uid = uidObj.getUid(); in loadNameAndIcon() local 178 mPackages = pm.getPackagesForUid(uid); in loadNameAndIcon() [all …]
|
D | PowerUsageDetail.java | 349 private void fillControlsSection(int uid) { in fillControlsSection() argument 351 String[] packages = pm.getPackagesForUid(uid); in fillControlsSection() 505 private void fillPackagesSection(int uid) { in fillPackagesSection() argument 506 if (uid < 1) { in fillPackagesSection() 516 mPackages = pm.getPackagesForUid(uid); in fillPackagesSection()
|
/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/Nfc/nci/jni/ |
D | NfcTag.cpp | 256 … if (memcmp(mLastKovioUid, &mTechParams [0].param.pk.uid, mTechParams[0].param.pk.uid_len) == 0) in IsSameKovio() 272 memcpy(mLastKovioUid, mTechParams[0].param.pk.uid, mLastKovioUidLen); in IsSameKovio() 920 ScopedLocalRef<jbyteArray> uid(e, NULL); in fillNativeNfcTagMembers5() local 927 uid.reset(e->NewByteArray(len)); in fillNativeNfcTagMembers5() 928 e->SetByteArrayRegion(uid.get(), 0, len, in fillNativeNfcTagMembers5() 929 (jbyte*) &mTechParams [0].param.pk.uid); in fillNativeNfcTagMembers5() 938 uid.reset(e->NewByteArray(len)); in fillNativeNfcTagMembers5() 939 e->SetByteArrayRegion(uid.get(), 0, len, in fillNativeNfcTagMembers5() 948 uid.reset(e->NewByteArray(NFC_NFCID0_MAX_LEN)); in fillNativeNfcTagMembers5() 949 e->SetByteArrayRegion(uid.get(), 0, NFC_NFCID0_MAX_LEN, in fillNativeNfcTagMembers5() [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 | 786 final int uid = mCurrentApp.key; in updateAppDetail() local 787 final UidDetail detail = mUidDetailProvider.getUidDetail(uid, true); in updateAppDetail() 800 final String[] packageNames = pm.getPackagesForUid(uid); in updateAppDetail() 825 if (UserHandle.isApp(uid) && !mPolicyManager.getRestrictBackground() in updateAppDetail() 906 final int uid = mCurrentApp.key; in getAppRestrictBackground() local 907 final int uidPolicy = mPolicyManager.getUidPolicy(uid); in getAppRestrictBackground() 913 final int uid = mCurrentApp.key; in setAppRestrictBackground() local 915 uid, restrictBackground ? POLICY_REJECT_METERED_BACKGROUND : POLICY_NONE); in setAppRestrictBackground() 1443 public void addUid(int uid) { in addUid() argument 1444 uids.put(uid, true); in addUid() [all …]
|
D | CredentialStorage.java | 216 final int uid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, -1); in installIfAvailable() local 223 if (uid == Process.WIFI_UID && isHardwareBackedKey(value)) { in installIfAvailable() 230 if (!mKeyStore.importKey(key, value, uid, flags)) { in installIfAvailable() 231 Log.e(TAG, "Failed to install " + key + " as user " + uid); in installIfAvailable() 236 int flags = (uid == Process.WIFI_UID) ? KeyStore.FLAG_NONE : KeyStore.FLAG_ENCRYPTED; in installIfAvailable() 242 if (!mKeyStore.put(certName, certData, uid, flags)) { in installIfAvailable() 243 Log.e(TAG, "Failed to install " + certName + " as user " + uid); in installIfAvailable() 252 if (!mKeyStore.put(caListName, caListData, uid, flags)) { in installIfAvailable() 253 Log.e(TAG, "Failed to install " + caListName + " as user " + uid); in installIfAvailable()
|
/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/Email/src/com/android/email/service/ |
D | Pop3Service.java | 330 final String uid = message.getUid(); in synchronizePop3Mailbox() local 331 remoteUidMap.put(uid, message); in synchronizePop3Mailbox() 351 final String uid = message.getUid(); in synchronizePop3Mailbox() local 352 final LocalMessageInfo localMessage = localMessageMap.get(uid); in synchronizePop3Mailbox() 369 LogUtils.d(Logging.LOG_TAG, "need to sync " + uid); in synchronizePop3Mailbox() 372 LogUtils.d(Logging.LOG_TAG, "don't need to sync " + uid); in synchronizePop3Mailbox() 406 String uid = msg.mServerId; in synchronizePop3Mailbox() local 407 Pop3Message popMessage = remoteUidMap.get(uid); in synchronizePop3Mailbox() 433 LogUtils.e(TAG, "Could not find message for attachment " + uid); in synchronizePop3Mailbox()
|
/packages/apps/Email/src/com/android/email/mail/store/ |
D | Pop3Store.java | 324 public Message getMessage(String uid) throws MessagingException { in getMessage() argument 336 Pop3Message message = mUidToMsgMap.get(uid); in getMessage() 660 String uid = message.getUid(); in setFlags() local 661 int msgNum = mUidToMsgNumMap.get(uid); in setFlags() 665 mUidToMsgNumMap.remove(uid); in setFlags() 758 public Message createMessage(String uid) { in createMessage() argument 759 return new Pop3Message(uid, this); in createMessage() 769 public Pop3Message(String uid, Pop3Folder folder) { in Pop3Message() argument 770 mUid = uid; in Pop3Message()
|
D | ImapFolder.java | 437 public Message getMessage(String uid) throws MessagingException { in getMessage() argument 440 final String[] uids = searchForUids(ImapConstants.UID + " " + uid); in getMessage() 442 if (uids[i].equals(uid)) { in getMessage() 443 return new ImapMessage(uid, this); in getMessage() 592 final String uid = uids[i]; in getMessagesInternal() local 593 final ImapMessage message = new ImapMessage(uid, this); in getMessagesInternal() 688 final String uid = fetchList.getKeyedStringOrEmpty(ImapConstants.UID) in fetchInternal() local 690 if (TextUtils.isEmpty(uid)) continue; in fetchInternal() 692 ImapMessage message = (ImapMessage) messageMap.get(uid); in fetchInternal() 1251 public Message createMessage(String uid) { in createMessage() argument [all …]
|
D | ImapStore.java | 200 byte[] uid = messageDigest.digest(); in getImapId() 201 String hexUid = Base64.encodeToString(uid, Base64.NO_WRAP); in getImapId() 581 ImapMessage(String uid, ImapFolder folder) { in ImapMessage() argument 582 mUid = uid; in ImapMessage()
|
/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/Nfc/nxp/jni/ |
D | com_android_nfc_NativeNfcManager.cpp | 644 phNfc_sData_t uid; in get_target_uid() local 652 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.Uid; in get_target_uid() 653 uid.length = psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.UidLength; in get_target_uid() 657 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso14443B_Info.AtqB.AtqResInfo.Pupi; in get_target_uid() 658 uid.length = sizeof(psRemoteDevInfo->RemoteDevInfo.Iso14443B_Info.AtqB.AtqResInfo.Pupi); in get_target_uid() 661 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Felica_Info.IDm; in get_target_uid() 662 uid.length = psRemoteDevInfo->RemoteDevInfo.Felica_Info.IDmLength; in get_target_uid() 665 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Jewel_Info.Uid; in get_target_uid() 666 uid.length = psRemoteDevInfo->RemoteDevInfo.Jewel_Info.UidLength; in get_target_uid() 669 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso15693_Info.Uid; in get_target_uid() [all …]
|
/packages/services/Telephony/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/apps/Settings/src/com/android/settings/applications/ |
D | RunningState.java | 369 public ProcessItem(Context context, int uid, String processName) { in ProcessItem() argument 370 super(true, UserHandle.getUserId(uid)); in ProcessItem() 373 mUid = uid; in ProcessItem() 385 if (ai.uid == mUid) { in ensureLabel() 465 UserHandle.getUserId(service.uid)); in updateService() 952 HashMap<String, ProcessItem> procs = mServiceProcessesByName.get(si.uid); in update() 955 mServiceProcessesByName.put(si.uid, procs); in update() 960 proc = new ProcessItem(context, si.uid, si.process); in update() 996 proc = new ProcessItem(context, pi.uid, pi.processName); in update() 1112 int uid = uidToDelete.get(i); in update() local [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);
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
D | CalendarUtilities.java | 1713 int messageFlag, String uid, Account account) { in createMessageForEntity() argument 1714 return createMessageForEntity(context, entity, messageFlag, uid, account, in createMessageForEntity() 1719 int messageFlag, String uid, Account account, String specifiedAttendee) { in createMessageForEntity() argument 1778 if (uid == null) { in createMessageForEntity() 1779 uid = entityValues.getAsString(Events.SYNC_DATA2); in createMessageForEntity() 1781 if (uid != null) { in createMessageForEntity() 1782 ics.writeTag("UID", uid); in createMessageForEntity() 2026 int messageFlag, String uid, Account account) { in createMessageForEventId() argument 2027 return createMessageForEventId(context, eventId, messageFlag, uid, account, in createMessageForEventId() 2032 int messageFlag, String uid, Account account, String specifiedAttendee) { in createMessageForEventId() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | RecentLocationApps.java | 111 int uid = ops.getUid(); in getAppList() local 112 boolean isAndroidOs = (uid == Process.SYSTEM_UID) in getAppList() 114 if (!isAndroidOs && ActivityManager.getCurrentUser() == UserHandle.getUserId(uid)) { in getAppList() 174 if (appInfo.uid == ops.getUid()) { in getPreferenceFromOps()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | RegisteredServicesCache.java | 93 final int uid = intent.getIntExtra(Intent.EXTRA_UID, -1); in RegisteredServicesCache() 96 if (uid != -1) { in RegisteredServicesCache() 102 if (currentUser == UserHandle.getUserId(uid)) { in RegisteredServicesCache() 103 invalidateCache(UserHandle.getUserId(uid)); in RegisteredServicesCache()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | EventViewer.java | 43 String uid = info.get(MeetingInfo.MEETING_UID); in onCreate() local 45 if (uid != null) { in onCreate() 49 new String[] {uid}, null); in onCreate()
|
/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()
|