Home
last modified time | relevance | path

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

/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()
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 …]
DPowerUsageDetail.java301 private void fillControlsSection(int uid) { in fillControlsSection() argument
303 String[] packages = pm.getPackagesForUid(uid); in fillControlsSection()
439 private void fillPackagesSection(int uid) { in fillPackagesSection() argument
440 if (uid < 1) { in fillPackagesSection()
450 mPackages = pm.getPackagesForUid(uid); in fillPackagesSection()
DPowerUsageSummary.java166 Uid uid = sipper.uidObj; in onPreferenceTreeClick() local
192 mStats.dumpLocked(printWriter, "", mStatsType, uid.getUid()); in onPreferenceTreeClick()
197 mStats.dumpCheckinLocked(printWriter, mStatsType, uid.getUid()); in onPreferenceTreeClick()
/packages/apps/Email/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java253 String uid = "31415926535"; in testCreateMessageForEntity_Reply() local
257 Message.FLAG_OUTGOING_MEETING_ACCEPT, uid, account); in testCreateMessageForEntity_Reply()
296 String uid = "31415926535"; in testCreateMessageForEntity_Invite_AllDay() local
300 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); in testCreateMessageForEntity_Invite_AllDay()
337 assertEquals(uid, vevent.get("UID")); in testCreateMessageForEntity_Invite_AllDay()
358 String uid = "31415926535"; in testCreateMessageForEntity_Invite() local
362 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); in testCreateMessageForEntity_Invite()
399 assertEquals(uid, vevent.get("UID")); in testCreateMessageForEntity_Invite()
424 String uid = "31415926535"; in testCreateMessageForEntity_Recurring() local
428 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); in testCreateMessageForEntity_Recurring()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DRealSystemFacade.java89 public boolean userOwnsPackage(int uid, String packageName) throws NameNotFoundException { in userOwnsPackage() argument
90 return mContext.getPackageManager().getApplicationInfo(packageName, 0).uid == uid; in userOwnsPackage()
DSystemFacade.java47 public boolean userOwnsPackage(int uid, String pckg) throws NameNotFoundException; in userOwnsPackage() argument
DDownloadProvider.java409 mDefContainerUid = appInfo.uid; in onCreate()
512 int uid = Binder.getCallingUid(); in insert() local
514 if (uid == 0 || mSystemFacade.userOwnsPackage(uid, pckg)) { in insert()
/packages/apps/Email/tests/src/com/android/email/mail/
DMockFolder.java63 public Message getMessage(String uid) { in getMessage() argument
121 public Message createMessage(String uid) { in createMessage() argument
/packages/apps/Phone/src/com/android/phone/sip/
DSipSettings.java132 private String getPackageNameFromUid(int uid) { in getPackageNameFromUid() argument
134 String[] pkgs = mPackageManager.getPackagesForUid(uid); in getPackageNameFromUid()
139 Log.e(TAG, "cannot find name of uid " + uid, e); in getPackageNameFromUid()
141 return "uid:" + uid; in getPackageNameFromUid()
365 int uid = profile.getCallingUid(); in handleProfileClick() local
366 if (uid == mUid || uid == 0) { in handleProfileClick()
/packages/apps/Email/src/com/android/email/mail/store/
DPop3Store.java360 public Message getMessage(String uid) throws MessagingException { in getMessage() argument
372 Pop3Message message = mUidToMsgMap.get(uid); in getMessage()
464 for (String uid : uids) { in indexUids()
465 if (mUidToMsgMap.get(uid) == null) { in indexUids()
466 unindexedUids.add(uid); in indexUids()
937 public Message createMessage(String uid) throws MessagingException { in createMessage() argument
938 return new Pop3Message(uid, this); in createMessage()
943 public Pop3Message(String uid, Pop3Folder folder) throws MessagingException { in Pop3Message() argument
944 mUid = uid; in Pop3Message()
DImapStore.java274 byte[] uid = messageDigest.digest(); in getImapId()
275 String hexUid = Base64.encodeToString(uid, Base64.NO_WRAP); in getImapId()
787 public Message getMessage(String uid) throws MessagingException { in getMessage() argument
790 String[] uids = searchForUids(ImapConstants.UID + " " + uid); in getMessage()
792 if (uids[i].equals(uid)) { in getMessage()
793 return new ImapMessage(uid, this); in getMessage()
827 final String uid = uids[i]; in getMessagesInternal() local
828 final ImapMessage message = new ImapMessage(uid, this); in getMessagesInternal()
921 final String uid = fetchList.getKeyedStringOrEmpty(ImapConstants.UID) in fetchInternal() local
923 if (TextUtils.isEmpty(uid)) continue; in fetchInternal()
[all …]
DLocalStore.java978 public Message getMessage(String uid) throws MessagingException { in getMessage() argument
980 LocalMessage message = new LocalMessage(uid, this); in getMessage()
1040 for (String uid : uids) { in getMessages()
1041 messages.add(getMessage(uid)); in getMessages()
1165 String uid = message.getUid(); in appendMessages() local
1166 if (uid == null) { in appendMessages()
1491 private void deleteAttachments(String uid) throws MessagingException { in deleteAttachments() argument
1499 new String[] { Long.toString(mFolderId), uid }, in deleteAttachments()
1623 public Message createMessage(String uid) throws MessagingException { in createMessage() argument
1624 return new LocalMessage(uid, this); in createMessage()
[all …]
/packages/apps/Email/src/com/android/email/mail/
DFolder.java111 public abstract Message getMessage(String uid) throws MessagingException; in getMessage() argument
196 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java245 public String getNameForUid(int uid) { in getNameForUid() argument
250 public String[] getPackagesForUid(int uid) { in getPackagesForUid() argument
257 Integer uid = mReverse.get(packageName); in getApplicationInfo() local
258 info.uid = (uid != null) ? uid : -1; in getApplicationInfo()
/packages/apps/Nfc/jni/
Dcom_android_nfc_NativeNfcManager.cpp762 phNfc_sData_t uid; in get_target_uid() local
770 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.Uid; in get_target_uid()
771 uid.length = psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.UidLength; in get_target_uid()
775 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso14443B_Info.AtqB.AtqResInfo.Pupi; in get_target_uid()
776 uid.length = sizeof(psRemoteDevInfo->RemoteDevInfo.Iso14443B_Info.AtqB.AtqResInfo.Pupi); in get_target_uid()
779 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Felica_Info.IDm; in get_target_uid()
780 uid.length = psRemoteDevInfo->RemoteDevInfo.Felica_Info.IDmLength; in get_target_uid()
783 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Jewel_Info.Uid; in get_target_uid()
784 uid.length = psRemoteDevInfo->RemoteDevInfo.Jewel_Info.UidLength; in get_target_uid()
787 uid.buffer = psRemoteDevInfo->RemoteDevInfo.Iso15693_Info.Uid; in get_target_uid()
[all …]
Dcom_android_nfc_NativeNfcTag.cpp1109 jbyte* uid = e->GetByteArrayElements(uidBytes, NULL); in com_android_nfc_NativeNfcTag_doIsNdefFormatable() local
1112 if ((uid[5] >= 1) && (uid[5] <= 3) && in com_android_nfc_NativeNfcTag_doIsNdefFormatable()
1113 (uid[6] == 0x04)) { in com_android_nfc_NativeNfcTag_doIsNdefFormatable()
1116 e->ReleaseByteArrayElements(uidBytes, (jbyte *)uid, JNI_ABORT); in com_android_nfc_NativeNfcTag_doIsNdefFormatable()
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java254 public ProcessItem(Context context, int uid, String processName) { in ProcessItem() argument
258 mUid = uid; in ProcessItem()
269 if (ai.uid == mUid) { in ensureLabel()
641 HashMap<String, ProcessItem> procs = mServiceProcessesByName.get(si.uid); in update()
644 mServiceProcessesByName.put(si.uid, procs); in update()
649 proc = new ProcessItem(context, si.uid, si.process); in update()
688 proc = new ProcessItem(context, pi.uid, pi.processName); in update()
DInstalledAppDetails.java709 intent.putExtra(Intent.EXTRA_UID, mAppEntry.info.uid);
/packages/apps/Email/src/com/android/exchange/utility/
DCalendarUtilities.java1404 int messageFlag, String uid, Account account) { in createMessageForEntity() argument
1405 return createMessageForEntity(context, entity, messageFlag, uid, account, in createMessageForEntity()
1410 int messageFlag, String uid, Account account, String specifiedAttendee) { in createMessageForEntity() argument
1469 if (uid == null) { in createMessageForEntity()
1470 uid = entityValues.getAsString(Events._SYNC_DATA); in createMessageForEntity()
1472 if (uid != null) { in createMessageForEntity()
1473 ics.writeTag("UID", uid); in createMessageForEntity()
1712 int messageFlag, String uid, Account account) throws RemoteException { in createMessageForEventId() argument
1713 return createMessageForEventId(context, eventId, messageFlag, uid, account, in createMessageForEventId()
1718 int messageFlag, String uid, Account account, String specifiedAttendee) in createMessageForEventId() argument
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchableSource.java128 int uid = android.os.Process.myUid(); in canRead() local
129 if (getContext().checkPermission(readPermission, pid, uid) in canRead()
145 && getContext().checkPermission(pathReadPermission, pid, uid) in canRead()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DFakeSystemFacade.java57 public boolean userOwnsPackage(int uid, String pckg) throws NameNotFoundException { in userOwnsPackage() argument
/packages/apps/Nfc/src/com/android/nfc/
DNativeNfcTag.java333 native boolean doIsNdefFormatable(int libnfctype, byte[] uid, byte[] poll, byte[] act); in doIsNdefFormatable() argument
DNfcService.java1370 byte[] uid;
1380 uid = tag.getUid();
1381 return uid;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java2597 return clientInfo.uid; in getUidForPackageName()