/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/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/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() 206 char const* const* entries) { in LayerPlatformEntries() argument 207 while (*entries) { in LayerPlatformEntries() 208 char const* name = *entries; in LayerPlatformEntries() 225 entries++; in LayerPlatformEntries() 230 char const* const* entries) { in LayerDriverEntries() argument 231 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/androidfw/tests/ |
D | AssetManager2_test.cpp | 235 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[0].value.dataType); in TEST_F() 236 EXPECT_EQ(1u, bag->entries[0].value.data); in TEST_F() 237 EXPECT_EQ(0, bag->entries[0].cookie); in TEST_F() 239 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[1].value.dataType); in TEST_F() 240 EXPECT_EQ(2u, bag->entries[1].value.data); in TEST_F() 241 EXPECT_EQ(0, bag->entries[1].cookie); in TEST_F() 243 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[2].value.dataType); in TEST_F() 244 EXPECT_EQ(3u, bag->entries[2].value.data); in TEST_F() 245 EXPECT_EQ(0, bag->entries[2].cookie); in TEST_F() 263 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/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()
|
D | ReferenceLinker_test.cpp | 93 style->entries.back().value = in TEST() 128 ASSERT_EQ(2u, style->entries.size()); in TEST() 130 ASSERT_TRUE(style->entries[0].key.id); in TEST() 131 EXPECT_EQ(ResourceId(0x01010001), style->entries[0].key.id.value()); in TEST() 132 ASSERT_THAT(ValueCast<BinaryPrimitive>(style->entries[0].value.get()), NotNull()); in TEST() 134 ASSERT_TRUE(style->entries[1].key.id); in TEST() 135 EXPECT_EQ(ResourceId(0x01010002), style->entries[1].key.id.value()); in TEST() 136 ASSERT_THAT(ValueCast<BinaryPrimitive>(style->entries[1].value.get()), NotNull()); in TEST() 171 ASSERT_EQ(1u, style->entries.size()); in TEST() 172 ASSERT_TRUE(style->entries.front().key.id); in TEST() [all …]
|
/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/tests/FlickerTests/lib/src/com/android/server/wm/flicker/ |
D | AssertionsChecker.java | 78 List<Result> test(List<T> entries) { in test() argument 83 filteredEntries = entries.stream() in test() 88 filteredEntries = entries; in test() 110 private List<Result> assertChanges(List<T> entries) { in assertChanges() argument 120 while (assertionIndex < mAssertions.size() && entryIndex < entries.size()) { in assertChanges() 122 Result result = currentAssertion.apply(entries.get(entryIndex)); in assertChanges() 169 private List<Result> assertAll(List<T> entries) { in assertAll() argument 171 assertion -> entries.stream() in assertAll()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/ |
D | ResizeSplitScreenTest.java | 99 LayersTrace entries = LayersTrace.parseFrom(result.getLayersTrace(), in checkPosition_appsStartingBounds() 102 assertThat(entries.getEntries()).isNotEmpty(); in checkPosition_appsStartingBounds() 103 Rect startingDividerBounds = entries.getEntries().get(0).getVisibleBounds in checkPosition_appsStartingBounds() 128 LayersTrace entries = LayersTrace.parseFrom(result.getLayersTrace(), in checkPosition_appsEndingBounds() 131 assertThat(entries.getEntries()).isNotEmpty(); in checkPosition_appsEndingBounds() 132 Rect endingDividerBounds = entries.getEntries().get( in checkPosition_appsEndingBounds() 133 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()
|
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/java/com/prefabulated/bouncyball/ |
D | SettingsFragment.java | 57 String[] entries = new String[numEntries]; in onCreatePreferences() local 64 entries[interval] = String.format(Locale.US, "%.2fms (%.0ffps)", ms, fps); in onCreatePreferences() 68 entries[numEntries - 1] = String.format(Locale.US, "No pacing"); in onCreatePreferences() 71 mSwapIntervalPreference.setEntries(entries); in onCreatePreferences() 73 mSwapIntervalPreference.setDefaultValue(entries[0]); in onCreatePreferences()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/ |
D | Convert.java | 45 Set<Map.Entry<String, String>> entries = map.entrySet(); in stringMapToNative() local 46 int len = entries.size(); in stringMapToNative() 50 for (Map.Entry<String, String> entry : entries) { in stringMapToNative()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsConferenceState.java | 113 Set<Entry<String, Bundle>> entries = mParticipants.entrySet(); in writeToParcel() local 115 if (entries != null) { in writeToParcel() 116 Iterator<Entry<String, Bundle>> iterator = entries.iterator(); in writeToParcel() 186 Set<Entry<String, Bundle>> entries = mParticipants.entrySet(); in toString() local 188 if (entries != null) { in toString() 189 Iterator<Entry<String, Bundle>> iterator = entries.iterator(); in toString()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/ |
D | map.js | 196 var entries = []; 201 entries.push([entry.key, entry.value]); 203 return entries; 213 jspb.Map.prototype.entries = function() { method in jspb.Map 214 var entries = []; 219 entries.push([entry.key, this.wrapEntry_(entry)]); 221 return jspb.Map.arrayIterator_(entries);
|
/frameworks/base/tools/aapt2/ |
D | ResourceValues.cpp | 884 if (entries.size() != other->entries.size()) { in Equals() 888 std::vector<const Entry*> sorted_a = ToPointerVec(entries); in Equals() 891 std::vector<const Entry*> sorted_b = ToPointerVec(other->entries); in Equals() 906 for (auto& entry : entries) { in Clone() 907 style->entries.push_back(Entry{entry.key, std::unique_ptr<Item>(entry.value->Clone(new_pool))}); in Clone() 921 *out << " [" << util::Joiner(entries, ", ") << "]"; in Print() 944 std::vector<Entry*> this_sorted = ToPointerVec(entries); in MergeWith() 947 std::vector<Entry*> other_sorted = ToPointerVec(other->entries); in MergeWith() 981 entries = std::move(merged_entries); in MergeWith() 1083 if (entries.size() != other->entries.size()) { in Equals() [all …]
|