Home
last modified time | relevance | path

Searched refs:packageIndex (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/utils/quota/
DUptcMap.java122 private String getPackageNameAtIndex(int userIndex, int packageIndex) { in getPackageNameAtIndex() argument
123 return mData.keyAt(userIndex, packageIndex); in getPackageNameAtIndex()
128 private String getTagAtIndex(int userIndex, int packageIndex, int tagIndex) { in getTagAtIndex() argument
131 return mData.valueAt(userIndex, packageIndex).keyAt(tagIndex); in getTagAtIndex()
152 public T valueAt(int userIndex, int packageIndex, int tagIndex) { in valueAt() argument
153 final ArrayMap<String, T> data = mData.valueAt(userIndex, packageIndex); in valueAt()
/frameworks/base/core/java/android/app/usage/
DUsageEvents.java860 final int packageIndex; in writeEventToParcel() local
862 packageIndex = findStringIndex(event.mPackage); in writeEventToParcel()
864 packageIndex = -1; in writeEventToParcel()
887 p.writeInt(packageIndex); in writeEventToParcel()
925 final int packageIndex = p.readInt(); in readEventFromParcel() local
926 if (packageIndex >= 0) { in readEventFromParcel()
927 eventOut.mPackage = mStringPool[packageIndex]; in readEventFromParcel()
/frameworks/base/core/java/android/app/
DNotificationHistory.java463 final int packageIndex; in writeNotificationToParcel() local
465 packageIndex = findStringIndex(notification.mPackage); in writeNotificationToParcel()
467 packageIndex = -1; in writeNotificationToParcel()
491 p.writeInt(packageIndex); in writeNotificationToParcel()
509 final int packageIndex = p.readInt(); in readNotificationFromParcel() local
510 if (packageIndex >= 0) { in readNotificationFromParcel()
511 notificationOut.mPackage = mStringPool[packageIndex]; in readNotificationFromParcel()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsProto.java328 final int packageIndex = stats.mStringCache.indexOf(usageStats.mPackageName); in writeUsageStats() local
329 if (packageIndex >= 0) { in writeUsageStats()
330 proto.write(IntervalStatsProto.UsageStats.PACKAGE_INDEX, packageIndex + 1); in writeUsageStats()
426 final int packageIndex = stats.mStringCache.indexOf(event.mPackage); in writeEvent() local
427 if (packageIndex >= 0) { in writeEvent()
428 proto.write(IntervalStatsProto.Event.PACKAGE_INDEX, packageIndex + 1); in writeEvent()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryProtoHelper.java260 final int packageIndex = Arrays.binarySearch(stringPool, notification.getPackage()); in writeNotification() local
261 if (packageIndex >= 0) { in writeNotification()
262 proto.write(Notification.PACKAGE_INDEX, packageIndex + 1); in writeNotification()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationService.java764 for (int packageIndex = 0; packageIndex < packagesSize; packageIndex++) {
765 owners.add(new DomainOwner(packages.get(packageIndex), overrideable));