/frameworks/base/core/java/android/metrics/ |
D | LogMaker.java | 50 private SparseArray<Object> entries = new SparseArray(); field in LogMaker 68 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_CATEGORY, category); in setCategory() 74 entries.remove(MetricsEvent.RESERVED_FOR_LOGBUILDER_CATEGORY); in clearCategory() 80 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_TYPE, type); in setType() 86 entries.remove(MetricsEvent.RESERVED_FOR_LOGBUILDER_TYPE); in clearType() 92 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_SUBTYPE, subtype); in setSubtype() 98 entries.remove(MetricsEvent.RESERVED_FOR_LOGBUILDER_SUBTYPE); in clearSubtype() 108 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_LATENCY_MILLIS, milliseconds); in setLatency() 120 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_TIMESTAMP, timestamp); in setTimestamp() 128 entries.remove(MetricsEvent.RESERVED_FOR_LOGBUILDER_TIMESTAMP); in clearTimestamp() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | PackageDynamicCodeLoadingTests.java | 65 Entry[] entries = { in testRecord() local 72 PackageDynamicCodeLoading info = makePackageDcl(entries); in testRecord() 73 assertHasEntries(info, entries); in testRecord() 131 Set<Entry> entries = entriesFrom(info); in testRecord_tooManyFiles_ignored() local 133 assertThat(entries).contains(entry); in testRecord_tooManyFiles_ignored() 136 assertThat(entries).doesNotContain(entry); in testRecord_tooManyFiles_ignored() 144 Entry[] entries = { in testClear() local 148 PackageDynamicCodeLoading info = makePackageDcl(entries); in testClear() 157 Entry[] entries = { in testRemovePackage_present() local 162 PackageDynamicCodeLoading info = makePackageDcl(entries); in testRemovePackage_present() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_layers.cpp | 112 void SetupFuncMaps(FunctionTable& functions, char const* const* entries, EGLFuncPointer* curr, in SetupFuncMaps() argument 114 while (*entries) { in SetupFuncMaps() 115 const char* name = *entries; in SetupFuncMaps() 136 entries++; in SetupFuncMaps() 204 char const* const* entries) { in LayerPlatformEntries() argument 205 while (*entries) { in LayerPlatformEntries() 206 char const* name = *entries; in LayerPlatformEntries() 223 entries++; in LayerPlatformEntries() 228 char const* const* entries) { in LayerDriverEntries() argument 229 while (*entries) { in LayerDriverEntries() [all …]
|
D | egldefs.h | 53 char const* const* entries = platform_names; in egl_connection_t() local 55 while (*entries) { in egl_connection_t() 56 const char* name = *entries; in egl_connection_t() 65 entries++; in egl_connection_t()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | LayerUpdateQueueTests.cpp | 29 EXPECT_TRUE(queue.entries().empty()); in TEST() 49 EXPECT_EQ(3u, queue.entries().size()); in TEST() 51 EXPECT_EQ(a.get(), queue.entries()[0].renderNode.get()); in TEST() 52 EXPECT_EQ(Rect(25, 25, 75, 75), queue.entries()[0].damage); in TEST() 53 EXPECT_EQ(b.get(), queue.entries()[1].renderNode.get()); in TEST() 54 EXPECT_EQ(Rect(100, 100, 200, 200), queue.entries()[1].damage); // clipped to bounds in TEST() 55 EXPECT_EQ(c.get(), queue.entries()[2].renderNode.get()); in TEST() 56 EXPECT_EQ(Rect(0, 0, 1, 1), queue.entries()[2].damage); // rounded out in TEST() 66 EXPECT_EQ(1u, queue.entries().size()); in TEST() 68 EXPECT_EQ(a.get(), queue.entries()[0].renderNode.get()); in TEST() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | MediaDataCombineLatest.kt | 31 private val entries: MutableMap<String, Pair<MediaData?, MediaDeviceData?>> = mutableMapOf() in <lambda>() constant in com.android.systemui.media.MediaDataCombineLatest 37 val s = entries[oldKey]?.second in <lambda>() 38 entries[key] = data to entries[oldKey]?.second in <lambda>() 39 entries.remove(oldKey) in <lambda>() 41 entries[key] = data to entries[key]?.second in <lambda>() 51 entries[key] = entries[key]?.first to data in <lambda>() 64 return entries.filter { in <lambda>() 82 val (entry, device) = entries[key] ?: null to null in <lambda>() 93 entries.remove(key)?.let { in <lambda>()
|
/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_test.cpp | 264 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[0].value.dataType); in TEST_F() 265 EXPECT_EQ(1u, bag->entries[0].value.data); in TEST_F() 266 EXPECT_EQ(0, bag->entries[0].cookie); in TEST_F() 268 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[1].value.dataType); in TEST_F() 269 EXPECT_EQ(2u, bag->entries[1].value.data); in TEST_F() 270 EXPECT_EQ(0, bag->entries[1].cookie); in TEST_F() 272 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[2].value.dataType); in TEST_F() 273 EXPECT_EQ(3u, bag->entries[2].value.data); in TEST_F() 274 EXPECT_EQ(0, bag->entries[2].cookie); in TEST_F() 292 EXPECT_EQ(1, bag->entries[0].cookie); in TEST_F() [all …]
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityButtonController.java | 149 final ArrayMap<AccessibilityButtonCallback, Handler> entries; in dispatchAccessibilityButtonClicked() local 158 entries = new ArrayMap<>(mCallbacks); in dispatchAccessibilityButtonClicked() 161 for (int i = 0, count = entries.size(); i < count; i++) { in dispatchAccessibilityButtonClicked() 162 final AccessibilityButtonCallback callback = entries.keyAt(i); in dispatchAccessibilityButtonClicked() 163 final Handler handler = entries.valueAt(i); in dispatchAccessibilityButtonClicked() 173 final ArrayMap<AccessibilityButtonCallback, Handler> entries; in dispatchAccessibilityButtonAvailabilityChanged() local 183 entries = new ArrayMap<>(mCallbacks); in dispatchAccessibilityButtonAvailabilityChanged() 186 for (int i = 0, count = entries.size(); i < count; i++) { in dispatchAccessibilityButtonAvailabilityChanged() 187 final AccessibilityButtonCallback callback = entries.keyAt(i); in dispatchAccessibilityButtonAvailabilityChanged() 188 final Handler handler = entries.valueAt(i); in dispatchAccessibilityButtonAvailabilityChanged()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LooperStatsTest.java | 90 List<LooperStats.ExportedEntry> entries = looperStats.getEntries(); in testSingleMessageDispatched() local 91 assertThat(entries).hasSize(1); in testSingleMessageDispatched() 92 LooperStats.ExportedEntry entry = entries.get(0); in testSingleMessageDispatched() 122 List<LooperStats.ExportedEntry> entries = looperStats.getEntries(); in testThrewException() local 123 assertThat(entries).hasSize(1); in testThrewException() 124 LooperStats.ExportedEntry entry = entries.get(0); in testThrewException() 195 List<LooperStats.ExportedEntry> entries = looperStats.getEntries(); in testMultipleMessagesDispatched() local 196 assertThat(entries).hasSize(3); in testMultipleMessagesDispatched() 197 entries.sort(Comparator.comparing(e -> e.handlerClassName)); in testMultipleMessagesDispatched() 200 LooperStats.ExportedEntry entry1 = entries.get(0); in testMultipleMessagesDispatched() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/kv/ |
D | KeyValueListingBuilderTest.java | 73 assertThat(listing.entries).isEmpty(); in build_noPairs_buildsEmptyListing() 82 assertThat(listing.entries.length).isEqualTo(1); in build_returnsCorrectListing() 83 assertThat(listing.entries[0].key).isEqualTo(TEST_KEY_1); in build_returnsCorrectListing() 84 assertThat(listing.entries[0].hash).isEqualTo(TEST_HASH_1.getHash()); in build_returnsCorrectListing() 98 assertThat(listing.entries.length).isEqualTo(2); in addAll_addsAllPairsInMap() 99 assertThat(listing.entries[0].key).isEqualTo(TEST_KEY_1); in addAll_addsAllPairsInMap() 100 assertThat(listing.entries[0].hash).isEqualTo(TEST_HASH_1.getHash()); in addAll_addsAllPairsInMap() 101 assertThat(listing.entries[1].key).isEqualTo(TEST_KEY_2); in addAll_addsAllPairsInMap() 102 assertThat(listing.entries[1].hash).isEqualTo(TEST_HASH_2.getHash()); in addAll_addsAllPairsInMap() 108 assertThat(emptyListing.entries).isEmpty(); in emptyListing_returnsListingWithoutAnyPairs()
|
/frameworks/base/core/java/android/content/res/ |
D | ThemedResourceCache.java | 69 final LongSparseArray<WeakReference<T>> entries; in put() local 71 entries = getUnthemedLocked(true); in put() 73 entries = getThemedLocked(theme, true); in put() 75 if (entries != null) { in put() 76 entries.put(key, new WeakReference<>(entry)); in put() 217 private boolean pruneEntriesLocked(@Nullable LongSparseArray<WeakReference<T>> entries, in pruneEntriesLocked() argument 219 if (entries == null) { in pruneEntriesLocked() 223 for (int i = entries.size() - 1; i >= 0; i--) { in pruneEntriesLocked() 224 final WeakReference<T> ref = entries.valueAt(i); in pruneEntriesLocked() 226 entries.removeAt(i); in pruneEntriesLocked() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | AutoVersioner_test.cpp | 90 ASSERT_EQ(style->entries.size(), 1u); in TEST() 91 …EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/onClick")), style->entries.front().key.nam… in TEST() 95 ASSERT_EQ(style->entries.size(), 2u); in TEST() 96 EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/onClick")),style->entries[0].key.name); in TEST() 97 …e_value(test::ParseNameOrDie("android:attr/requiresSmallestWidthDp")), style->entries[1].key.name); in TEST() 101 ASSERT_EQ(style->entries.size(), 3u); in TEST() 102 EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/onClick")), style->entries[0].key.name); in TEST() 103 …e_value(test::ParseNameOrDie("android:attr/requiresSmallestWidthDp")), style->entries[1].key.name); in TEST() 104 …EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/paddingStart")), style->entries[2].key.nam… in TEST() 108 ASSERT_EQ(1u, style->entries.size()); in TEST() [all …]
|
D | AutoVersioner.cpp | 81 for (auto& entry : type->entries) { in Consume() 95 auto iter = style->entries.begin(); in Consume() 96 while (iter != style->entries.end()) { in Consume() 114 iter = style->entries.erase(iter); in Consume() 136 new_style->entries.insert( in Consume() 137 new_style->entries.end(), in Consume()
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarManifest.java | 51 private final HashMap<String, Attributes> entries; field in StrictJarManifest 75 entries = new HashMap<String, Attributes>(); in StrictJarManifest() 103 entries = (HashMap<String, Attributes>) ((HashMap<String, Attributes>) man in StrictJarManifest() 120 entries.clear(); in clear() 144 return entries; in getEntries() 199 im.readEntries(entries, chunks); in read() 270 Iterator<?> entries = manifest.mainAttributes.keySet().iterator(); in write() local 271 while (entries.hasNext()) { in write() 272 Attributes.Name name = (Attributes.Name) entries.next(); in write() 283 Attributes attributes = manifest.entries.get(key); in write() [all …]
|
/frameworks/base/core/tests/coretests/src/android/preference/ |
D | ListPreferenceTest.java | 26 String[] entries = { "one", "two", "three" }; in testListPreferenceSummaryFromEntries() local 29 lp.setEntries(entries); in testListPreferenceSummaryFromEntries() 36 assertEquals(entries[1], lp.getSummary()); in testListPreferenceSummaryFromEntries() 39 assertEquals(entries[2], lp.getSummary()); in testListPreferenceSummaryFromEntries() 45 assertEquals("The color is " + entries[2], lp.getSummary()); in testListPreferenceSummaryFromEntries()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverySessionStorage.java | 93 ArrayList<Entry> entries = mSessionsByUid.get(uid); in remove() local 94 if (entries == null) { in remove() 97 for (Entry entry : entries) { in remove() 112 ArrayList<Entry> entries = mSessionsByUid.valueAt(i); in size() local 113 size += entries.size(); in size() 127 ArrayList<Entry> entries = mSessionsByUid.valueAt(i); in destroy() local 128 for (Entry entry : entries) { in destroy()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | DisplayDensityUtils.java | 115 String[] entries = new String[1 + numSmaller + numLarger]; in DisplayDensityUtils() local 116 int[] values = new int[entries.length]; in DisplayDensityUtils() 127 entries[curIndex] = res.getString(SUMMARIES_SMALLER[i]); in DisplayDensityUtils() 137 entries[curIndex] = res.getString(SUMMARY_DEFAULT); in DisplayDensityUtils() 149 entries[curIndex] = res.getString(SUMMARIES_LARGER[i]); in DisplayDensityUtils() 164 entries = Arrays.copyOf(entries, newLength); in DisplayDensityUtils() 165 entries[curIndex] = res.getString(SUMMARY_CUSTOM, currentDensity); in DisplayDensityUtils() 172 mEntries = entries; in DisplayDensityUtils()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotifViewManager.kt | 51 listBuilder.setOnRenderListListener { entries: List<ListEntry> -> in <lambda>() method 52 this.onNotifTreeBuilt(entries) in <lambda>() 79 private fun detachRows(entries: List<ListEntry>) { in <lambda>() 99 val idx = entries.indexOf(listItem.entry) in <lambda>() 113 } else if (entries[idx] is GroupEntry) { in <lambda>() 115 val groupChildren = (entries[idx] as GroupEntry).children in <lambda>() 138 private fun attachRows(entries: List<ListEntry>) { in <lambda>() 144 entries.forEach { entry -> in <lambda>()
|
D | NotificationRankingManager.kt | 114 entries: Collection<NotificationEntry>, in <lambda>() 121 updateRankingForEntries(entries) in <lambda>() 124 filterAndSortLocked(entries, reason) in <lambda>() 130 entries: Collection<NotificationEntry>, in <lambda>() 134 val filtered = entries.asSequence() in <lambda>() 138 entries.forEach { it.bucket = getBucketForEntry(it) } in <lambda>() 164 private fun updateRankingForEntries(entries: Iterable<NotificationEntry>) { in <lambda>() 166 synchronized(entries) { in <lambda>() 167 for (entry in entries) { in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | ForegroundServiceSectionController.kt | 53 private val entries = mutableSetOf<NotificationEntry>() in <lambda>() constant in com.android.systemui.statusbar.notification.stack.ForegroundServiceSectionController 63 if (entries.contains(entry)) { in <lambda>() 114 entries.remove(entry) in <lambda>() 119 entries.add(entry) in <lambda>() 124 return entries.contains(entry) in <lambda>() 148 entries.sortedBy { it.ranking.rank }.forEach { entry -> in <lambda>() 165 if (entries.isEmpty()) { in <lambda>()
|
/frameworks/base/tools/preload-check/device/src/com/android/preload/check/ |
D | NotInitializedRegex.java | 42 Enumeration<String> entries = dexFile.entries(); in main() local 43 while (entries.hasMoreElements()) { in main() 44 String entry = entries.nextElement(); in main()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | IonMemoryUtil.java | 99 final SparseArray<IonAllocations> entries = new SparseArray<>(); in parseProcessIonHeapSizesFromDebugfs() local 104 IonAllocations allocations = entries.get(pid); in parseProcessIonHeapSizesFromDebugfs() 107 entries.put(pid, allocations); in parseProcessIonHeapSizesFromDebugfs() 118 final List<IonAllocations> result = new ArrayList<>(entries.size()); in parseProcessIonHeapSizesFromDebugfs() 119 for (int i = 0; i < entries.size(); i++) { in parseProcessIonHeapSizesFromDebugfs() 120 result.add(entries.valueAt(i)); in parseProcessIonHeapSizesFromDebugfs()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/ |
D | ResizeSplitScreenTest.java | 97 LayersTrace entries = LayersTrace.parseFrom(result.getLayersTrace(), in checkPosition_appsStartingBounds() 100 assertThat(entries.getEntries()).isNotEmpty(); in checkPosition_appsStartingBounds() 101 Rect startingDividerBounds = entries.getEntries().get(0).getVisibleBounds in checkPosition_appsStartingBounds() 126 LayersTrace entries = LayersTrace.parseFrom(result.getLayersTrace(), in checkPosition_appsEndingBounds() 129 assertThat(entries.getEntries()).isNotEmpty(); in checkPosition_appsEndingBounds() 130 Rect endingDividerBounds = entries.getEntries().get( in checkPosition_appsEndingBounds() 131 entries.getEntries().size() - 1).getVisibleBounds( in checkPosition_appsEndingBounds()
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | DiagGOTPLT.inc | 15 "The number of reserved entries for GOT is inconsist", 16 "The number of reserved entries for GOT is inconsist") 19 "The number of reserved entries for PLT is inconsist", 20 "The number of reserved entries for PLT is inconsist")
|
/frameworks/base/tools/aapt2/optimize/ |
D | ResourceFilter.cpp | 30 for (auto it = type->entries.begin(); it != type->entries.end(); ) { in Consume() 33 it = type->entries.erase(it); in Consume()
|