Home
last modified time | relevance | path

Searched refs:entries (Results 1 – 25 of 201) sorted by relevance

123456789

/frameworks/base/core/java/android/metrics/
DLogMaker.java50 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/
DPackageDynamicCodeLoadingTests.java65 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/
Degl_layers.cpp112 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 …]
Degldefs.h53 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/
DLayerUpdateQueueTests.cpp29 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/libs/androidfw/tests/
DAssetManager2_test.cpp235 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/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java90 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/accessibilityservice/
DAccessibilityButtonController.java149 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/tools/aapt2/link/
DAutoVersioner_test.cpp90 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 …]
DAutoVersioner.cpp81 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()
DReferenceLinker_test.cpp93 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/content/res/
DThemedResourceCache.java69 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/core/java/android/util/jar/
DStrictJarManifest.java51 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/
DListPreferenceTest.java26 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/
DRecoverySessionStorage.java93 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/
DDisplayDensityUtils.java115 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/tools/preload-check/device/src/com/android/preload/check/
DNotInitializedRegex.java42 Enumeration<String> entries = dexFile.entries(); in main() local
43 while (entries.hasMoreElements()) { in main()
44 String entry = entries.nextElement(); in main()
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DResizeSplitScreenTest.java97 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/
DDiagGOTPLT.inc15 "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/
DResourceFilter.cpp30 for (auto it = type->entries.begin(); it != type->entries.end(); ) { in Consume()
33 it = type->entries.erase(it); in Consume()
/frameworks/base/telephony/java/android/telephony/ims/
DImsConferenceState.java118 Set<Entry<String, Bundle>> entries = mParticipants.entrySet(); in writeToParcel() local
120 if (entries != null) { in writeToParcel()
121 Iterator<Entry<String, Bundle>> iterator = entries.iterator(); in writeToParcel()
192 Set<Entry<String, Bundle>> entries = mParticipants.entrySet(); in toString() local
194 if (entries != null) { in toString()
195 Iterator<Entry<String, Bundle>> iterator = entries.iterator(); in toString()
/frameworks/base/tools/aapt2/
DResourceValues.cpp884 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 …]
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DConvert.java45 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/opt/chips/src/com/android/ex/chips/
DBaseRecipientAdapter.java193 public final List<RecipientEntry> entries; field in BaseRecipientAdapter.DefaultFilterResult
199 public DefaultFilterResult(List<RecipientEntry> entries, in DefaultFilterResult() argument
204 this.entries = entries; in DefaultFilterResult()
290 final List<RecipientEntry> entries = constructEntryList( in performFiltering() local
297 entries, entryMap, nonAggregatedEntries, in performFiltering()
299 results.count = entries.size(); in performFiltering()
321 cacheCurrentEntriesIfNeeded(defaultFilterResult.entries.size(), in publishResults()
325 updateEntries(defaultFilterResult.entries); in publishResults()
858 final List<RecipientEntry> entries = new ArrayList<RecipientEntry>(); in constructEntryList() local
865 entries.add(entry); in constructEntryList()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunk/
DChunkListingMap.java44 Map<ChunkHash, Entry> entries = new HashMap(); in readFromProto() local
52 entries.put(new ChunkHash(chunk.getHash()), new Entry(start, chunk.getLength())); in readFromProto()
58 return new ChunkListingMap(entries); in readFromProto()

123456789