Home
last modified time | relevance | path

Searched refs:indexes (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DHeavyHitterSketch.java268 ArrayList<Integer> indexes = null; in getTopHeavyHitters() local
272 if (indexes == null) { in getTopHeavyHitters()
273 indexes = new ArrayList<>(); in getTopHeavyHitters()
275 indexes.add(i); in getTopHeavyHitters()
278 if (indexes == null) { in getTopHeavyHitters()
282 Collections.sort(indexes, (a, b) -> mFrequencies.valueAt(b) - mFrequencies.valueAt(a)); in getTopHeavyHitters()
285 final int max = Math.min(k == 0 ? (mCapacity - 1) : k, indexes.size()); in getTopHeavyHitters()
287 final int index = indexes.get(i); in getTopHeavyHitters()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/utils/
DWatcherTest.java934 public int[] indexes(int size) { in indexes() method in WatcherTest.IndexGenerator
956 private void fill(WatchedSparseBooleanMatrix matrix, int size, int[] indexes) { in fill() argument
958 int row = indexes[i]; in fill()
960 int col = indexes[j]; in fill()
969 int newCapacity, int[] indexes) { in fillNew() argument
977 final int row = indexes[i]; in fillNew()
978 final int col = indexes[j]; in fillNew()
986 private void verify(WatchedSparseBooleanMatrix matrix, int[] indexes, boolean[] absent) { in verify() argument
988 int row = indexes[i]; in verify()
990 int col = indexes[j]; in verify()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLongArrayMultiStateCounterTest.java242 int[] indexes = {2, 1, 1, 0, 0}; in combineValues() local
243 boolean nonZero = container.combineValues(out, indexes); in combineValues()
249 nonZero = container.combineValues(out, indexes); in combineValues()
/frameworks/base/services/people/java/com/android/server/people/data/
DEventHistoryImpl.java372 void scheduleIndexesSave(SparseArray<EventIndex> indexes) {
373 scheduleSave(INDEXES_FILE, indexes);
377 void saveIndexesImmediately(SparseArray<EventIndex> indexes) {
378 saveImmediately(INDEXES_FILE, indexes);
/frameworks/base/services/core/java/com/android/server/integrity/serializer/
DRuleBinarySerializer.java265 LinkedHashMap<String, Integer> indexes, in serializeIndexGroup() argument
271 serializeIntValue(indexes.get(START_INDEXING_KEY), bitOutputStream); in serializeIndexGroup()
275 for (Map.Entry<String, Integer> entry : indexes.entrySet()) { in serializeIndexGroup()
287 serializeIntValue(indexes.get(END_INDEXING_KEY), bitOutputStream); in serializeIndexGroup()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistoryIterator.java207 final int indexes = src.readInt(); in readHistoryDelta() local
208 final int wakeLockIndex = indexes & 0xffff; in readHistoryDelta()
209 final int wakeReasonIndex = (indexes >> 16) & 0xffff; in readHistoryDelta()
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/
Dvulkan_xml.go1108 indexes := []uint{}
1122 indexes = append(indexes, uint(array_size))
1124 for i := len(indexes) - 1; i >= 0; i-- {
1125 member_type = cpp_types.ArrayType(member_type, indexes[i])
/frameworks/base/core/proto/android/server/
Dpeopleservice.proto89 // On disk data of event indexes.
/frameworks/libs/binary_translation/interpreter/riscv64/
Dinterpreter.h928 IndexElementType indexes[kElementsCount * kIndexRegistersInvolved]; in OpVector() local
929 memcpy(indexes, state_->cpu.v + args.idx, sizeof(SIMD128Register) * kIndexRegistersInvolved); in OpVector()
931 args.dst, src, [&indexes](size_t index) { return indexes[index]; }); in OpVector()
2145 alignas(alignof(SIMD128Register)) ElementType indexes[vlmax]; in OpVector() local
2146 memcpy(indexes, state_->cpu.v + args.src2, sizeof(indexes)); in OpVector()
2148 args.dst, args.src1, [&indexes](size_t index) { return indexes[index]; }); in OpVector()
2835 IndexElementType indexes[kElementsCount * kIndexRegistersInvolved]; in OpVector() local
2836 memcpy(indexes, state_->cpu.v + args.idx, sizeof(SIMD128Register) * kIndexRegistersInvolved); in OpVector()
2838 args.data, src, [&indexes](size_t index) { return indexes[index]; }); in OpVector()