Home
last modified time | relevance | path

Searched refs:packageIndex (Results 1 – 5 of 5) 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/
DNotificationHistory.java444 final int packageIndex; in writeNotificationToParcel() local
446 packageIndex = findStringIndex(notification.mPackage); in writeNotificationToParcel()
448 packageIndex = -1; in writeNotificationToParcel()
472 p.writeInt(packageIndex); in writeNotificationToParcel()
490 final int packageIndex = p.readInt(); in readNotificationFromParcel() local
491 if (packageIndex >= 0) { in readNotificationFromParcel()
492 notificationOut.mPackage = mStringPool[packageIndex]; in readNotificationFromParcel()
/frameworks/base/core/java/android/app/usage/
DUsageEvents.java847 final int packageIndex; in writeEventToParcel() local
849 packageIndex = findStringIndex(event.mPackage); in writeEventToParcel()
851 packageIndex = -1; in writeEventToParcel()
874 p.writeInt(packageIndex); in writeEventToParcel()
912 final int packageIndex = p.readInt(); in readEventFromParcel() local
913 if (packageIndex >= 0) { in readEventFromParcel()
914 eventOut.mPackage = mStringPool[packageIndex]; in readEventFromParcel()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsProto.java324 final int packageIndex = stats.mStringCache.indexOf(usageStats.mPackageName); in writeUsageStats() local
325 if (packageIndex >= 0) { in writeUsageStats()
326 proto.write(IntervalStatsProto.UsageStats.PACKAGE_INDEX, packageIndex + 1); in writeUsageStats()
419 final int packageIndex = stats.mStringCache.indexOf(event.mPackage); in writeEvent() local
420 if (packageIndex >= 0) { in writeEvent()
421 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()