/frameworks/base/core/java/android/metrics/ |
D | LogMaker.java | 48 private SparseArray<Object> entries = new SparseArray(); field in LogMaker 66 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_CATEGORY, category); in setCategory() 72 entries.remove(MetricsEvent.RESERVED_FOR_LOGBUILDER_CATEGORY); in clearCategory() 78 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_TYPE, type); in setType() 84 entries.remove(MetricsEvent.RESERVED_FOR_LOGBUILDER_TYPE); in clearType() 90 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_SUBTYPE, subtype); in setSubtype() 96 entries.remove(MetricsEvent.RESERVED_FOR_LOGBUILDER_SUBTYPE); in clearSubtype() 106 entries.put(MetricsEvent.NOTIFICATION_SINCE_CREATE_MILLIS, milliseconds); in setLatency() 118 entries.put(MetricsEvent.RESERVED_FOR_LOGBUILDER_TIMESTAMP, timestamp); in setTimestamp() 126 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/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
D | armVCM4P2_CheckVLCEscapeMode.c | 82 OMX_U8 escape = 0, fMode = 0, entries; in armVCM4P2_CheckVLCEscapeMode() local 91 entries = pRunIndexTable[run + 1] in armVCM4P2_CheckVLCEscapeMode() 95 entries = 1; in armVCM4P2_CheckVLCEscapeMode() 97 if (level > entries) in armVCM4P2_CheckVLCEscapeMode() 119 entries = pRunIndexTable[run + 1] in armVCM4P2_CheckVLCEscapeMode() 123 entries = 1; in armVCM4P2_CheckVLCEscapeMode() 125 if (levelPlus > entries) in armVCM4P2_CheckVLCEscapeMode() 144 entries = pRunIndexTable[runPlus + 1] in armVCM4P2_CheckVLCEscapeMode() 148 entries = 1; in armVCM4P2_CheckVLCEscapeMode() 150 if (level > entries) in armVCM4P2_CheckVLCEscapeMode()
|
/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_test.cpp | 213 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[0].value.dataType); in TEST_F() 214 EXPECT_EQ(1u, bag->entries[0].value.data); in TEST_F() 215 EXPECT_EQ(0, bag->entries[0].cookie); in TEST_F() 217 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[1].value.dataType); in TEST_F() 218 EXPECT_EQ(2u, bag->entries[1].value.data); in TEST_F() 219 EXPECT_EQ(0, bag->entries[1].cookie); in TEST_F() 221 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[2].value.dataType); in TEST_F() 222 EXPECT_EQ(3u, bag->entries[2].value.data); in TEST_F() 223 EXPECT_EQ(0, bag->entries[2].cookie); in TEST_F() 241 EXPECT_EQ(1, bag->entries[0].cookie); in TEST_F() [all …]
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
D | AbsSpinnerBindingAdapter.java | 28 public static <T extends CharSequence> void setEntries(AbsSpinner view, T[] entries) { in setEntries() argument 29 if (entries != null) { in setEntries() 32 if (oldAdapter != null && oldAdapter.getCount() == entries.length) { in setEntries() 34 for (int i = 0; i < entries.length; i++) { in setEntries() 35 if (!entries[i].equals(oldAdapter.getItem(i))) { in setEntries() 44 android.R.layout.simple_spinner_item, entries); in setEntries() 54 public static <T> void setEntries(AbsSpinner view, List<T> entries) { in setEntries() argument 55 if (entries != null) { in setEntries() 58 ((ObservableListAdapter) oldAdapter).setList(entries); in setEntries() 60 view.setAdapter(new ObservableListAdapter<T>(view.getContext(), entries, in setEntries()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityButtonController.java | 147 final ArrayMap<AccessibilityButtonCallback, Handler> entries; in dispatchAccessibilityButtonClicked() local 156 entries = new ArrayMap<>(mCallbacks); in dispatchAccessibilityButtonClicked() 159 for (int i = 0, count = entries.size(); i < count; i++) { in dispatchAccessibilityButtonClicked() 160 final AccessibilityButtonCallback callback = entries.keyAt(i); in dispatchAccessibilityButtonClicked() 161 final Handler handler = entries.valueAt(i); in dispatchAccessibilityButtonClicked() 171 final ArrayMap<AccessibilityButtonCallback, Handler> entries; in dispatchAccessibilityButtonAvailabilityChanged() local 181 entries = new ArrayMap<>(mCallbacks); in dispatchAccessibilityButtonAvailabilityChanged() 184 for (int i = 0, count = entries.size(); i < count; i++) { in dispatchAccessibilityButtonAvailabilityChanged() 185 final AccessibilityButtonCallback callback = entries.keyAt(i); in dispatchAccessibilityButtonAvailabilityChanged() 186 final Handler handler = entries.valueAt(i); in dispatchAccessibilityButtonAvailabilityChanged()
|
/frameworks/base/tools/aapt2/link/ |
D | AutoVersioner_test.cpp | 88 ASSERT_EQ(style->entries.size(), 1u); in TEST() 89 …EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/onClick")), style->entries.front().key.nam… in TEST() 93 ASSERT_EQ(style->entries.size(), 2u); in TEST() 94 EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/onClick")),style->entries[0].key.name); in TEST() 95 …e_value(test::ParseNameOrDie("android:attr/requiresSmallestWidthDp")), style->entries[1].key.name); in TEST() 99 ASSERT_EQ(style->entries.size(), 3u); in TEST() 100 EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/onClick")), style->entries[0].key.name); in TEST() 101 …e_value(test::ParseNameOrDie("android:attr/requiresSmallestWidthDp")), style->entries[1].key.name); in TEST() 102 …EXPECT_EQ(make_value(test::ParseNameOrDie("android:attr/paddingStart")), style->entries[2].key.nam… in TEST() 106 ASSERT_EQ(1u, style->entries.size()); in TEST() [all …]
|
D | ReferenceLinker_test.cpp | 91 style->entries.back().value = in TEST() 126 ASSERT_EQ(2u, style->entries.size()); in TEST() 128 ASSERT_TRUE(style->entries[0].key.id); in TEST() 129 EXPECT_EQ(ResourceId(0x01010001), style->entries[0].key.id.value()); in TEST() 130 ASSERT_THAT(ValueCast<BinaryPrimitive>(style->entries[0].value.get()), NotNull()); in TEST() 132 ASSERT_TRUE(style->entries[1].key.id); in TEST() 133 EXPECT_EQ(ResourceId(0x01010002), style->entries[1].key.id.value()); in TEST() 134 ASSERT_THAT(ValueCast<BinaryPrimitive>(style->entries[1].value.get()), NotNull()); in TEST() 169 ASSERT_EQ(1u, style->entries.size()); in TEST() 170 ASSERT_TRUE(style->entries.front().key.id); in TEST() [all …]
|
D | AutoVersioner.cpp | 77 for (auto& entry : type->entries) { in Consume() 91 auto iter = style->entries.begin(); in Consume() 92 while (iter != style->entries.end()) { in Consume() 110 iter = style->entries.erase(iter); in Consume() 132 new_style->entries.insert( in Consume() 133 new_style->entries.end(), in Consume()
|
D | PrivateAttributeMover.cpp | 73 move_if(type->entries, std::back_inserter(private_attr_entries), in Consume() 84 CHECK(priv_attr_type->entries.empty()); in Consume() 85 priv_attr_type->entries = std::move(private_attr_entries); in Consume()
|
/frameworks/base/core/java/android/content/res/ |
D | ThemedResourceCache.java | 67 final LongSparseArray<WeakReference<T>> entries; in put() local 69 entries = getUnthemedLocked(true); in put() 71 entries = getThemedLocked(theme, true); in put() 73 if (entries != null) { in put() 74 entries.put(key, new WeakReference<>(entry)); in put() 214 private boolean pruneEntriesLocked(@Nullable LongSparseArray<WeakReference<T>> entries, in pruneEntriesLocked() argument 216 if (entries == null) { in pruneEntriesLocked() 220 for (int i = entries.size() - 1; i >= 0; i--) { in pruneEntriesLocked() 221 final WeakReference<T> ref = entries.valueAt(i); in pruneEntriesLocked() 223 entries.removeAt(i); in pruneEntriesLocked() [all …]
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | AbsSpinnerBindingAdapterTest.java | 68 CharSequence[] entries = mBindingObject.getEntries(); in validateEntries() local 70 for (int i = 0; i < entries.length; i++) { in validateEntries() 71 assertEquals(adapter.getItem(i), entries[i]); in validateEntries() local 76 List<String> entries = mBindingObject.getList(); in validateList() local 78 assertEquals(entries.size(), adapter.getCount()); in validateList() 79 for (int i = 0; i < entries.size(); i++) { in validateList() 80 assertEquals(adapter.getItem(i), entries.get(i)); in validateList()
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarManifest.java | 48 private final HashMap<String, Attributes> entries; field in StrictJarManifest 72 entries = new HashMap<String, Attributes>(); in StrictJarManifest() 100 entries = (HashMap<String, Attributes>) ((HashMap<String, Attributes>) man in StrictJarManifest() 117 entries.clear(); in clear() 141 return entries; in getEntries() 196 im.readEntries(entries, chunks); in read() 267 Iterator<?> entries = manifest.mainAttributes.keySet().iterator(); in write() local 268 while (entries.hasNext()) { in write() 269 Attributes.Name name = (Attributes.Name) entries.next(); in write() 280 Attributes attributes = manifest.entries.get(key); in write() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
D | AppCompatResources.java | 127 final SparseArray<ColorStateListCacheEntry> entries = sColorStateCaches.get(context); in getCachedColorStateList() local 128 if (entries != null && entries.size() > 0) { in getCachedColorStateList() 129 final ColorStateListCacheEntry entry = entries.get(resId); in getCachedColorStateList() 136 entries.remove(resId); in getCachedColorStateList() 147 SparseArray<ColorStateListCacheEntry> entries = sColorStateCaches.get(context); in addColorStateListToCache() local 148 if (entries == null) { in addColorStateListToCache() 149 entries = new SparseArray<>(); in addColorStateListToCache() 150 sColorStateCaches.put(context, entries); in addColorStateListToCache() 152 entries.append(resId, new ColorStateListCacheEntry(value, in addColorStateListToCache()
|
/frameworks/base/core/tests/coretests/src/android/preference/ |
D | ListPreferenceTest.java | 24 String[] entries = { "one", "two", "three" }; in testListPreferenceSummaryFromEntries() local 27 lp.setEntries(entries); in testListPreferenceSummaryFromEntries() 34 assertEquals(entries[1], lp.getSummary()); in testListPreferenceSummaryFromEntries() 37 assertEquals(entries[2], lp.getSummary()); in testListPreferenceSummaryFromEntries() 43 assertEquals("The color is " + entries[2], lp.getSummary()); in testListPreferenceSummaryFromEntries()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | DisplayDensityUtils.java | 116 String[] entries = new String[1 + numSmaller + numLarger]; in DisplayDensityUtils() local 117 int[] values = new int[entries.length]; in DisplayDensityUtils() 128 entries[curIndex] = res.getString(SUMMARIES_SMALLER[i]); in DisplayDensityUtils() 138 entries[curIndex] = res.getString(SUMMARY_DEFAULT); in DisplayDensityUtils() 150 entries[curIndex] = res.getString(SUMMARIES_LARGER[i]); in DisplayDensityUtils() 165 entries = Arrays.copyOf(entries, newLength); in DisplayDensityUtils() 166 entries[curIndex] = res.getString(SUMMARY_CUSTOM, currentDensity); in DisplayDensityUtils() 173 mEntries = entries; in DisplayDensityUtils()
|
/frameworks/native/cmds/lshal/ |
D | TableEntry.h | 77 Entries entries; member 79 Entries::iterator begin() { return entries.begin(); } in begin() 80 Entries::const_iterator begin() const { return entries.begin(); } in begin() 81 Entries::iterator end() { return entries.end(); } in end() 82 Entries::const_iterator end() const { return entries.end(); } in end()
|
/frameworks/support/core-utils/java/android/support/v4/content/ |
D | LocalBroadcastManager.java | 146 ArrayList<ReceiverRecord> entries = mActions.get(action); in registerReceiver() local 147 if (entries == null) { in registerReceiver() 148 entries = new ArrayList<ReceiverRecord>(1); in registerReceiver() 149 mActions.put(action, entries); in registerReceiver() 151 entries.add(entry); in registerReceiver() 223 ArrayList<ReceiverRecord> entries = mActions.get(intent.getAction()); in sendBroadcast() local 224 if (entries != null) { in sendBroadcast() 225 if (debug) Log.v(TAG, "Action list: " + entries); in sendBroadcast() 228 for (int i=0; i<entries.size(); i++) { in sendBroadcast() 229 ReceiverRecord receiver = entries.get(i); in sendBroadcast()
|
/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/ |
D | ResourceValues.cpp | 702 if (entries.size() != other->entries.size()) { in Equals() 706 std::vector<const Entry*> sorted_a = ToPointerVec(entries); in Equals() 709 std::vector<const Entry*> sorted_b = ToPointerVec(other->entries); in Equals() 724 for (auto& entry : entries) { in Clone() 725 style->entries.push_back(Entry{entry.key, std::unique_ptr<Item>(entry.value->Clone(new_pool))}); in Clone() 739 *out << " [" << util::Joiner(entries, ", ") << "]"; in Print() 762 std::vector<Entry*> this_sorted = ToPointerVec(entries); in MergeWith() 765 std::vector<Entry*> other_sorted = ToPointerVec(other->entries); in MergeWith() 799 entries = std::move(merged_entries); in MergeWith() 901 if (entries.size() != other->entries.size()) { in Equals() [all …]
|
/frameworks/base/telephony/java/com/android/ims/ |
D | ImsConferenceState.java | 109 Set<Entry<String, Bundle>> entries = mParticipants.entrySet(); in writeToParcel() local 111 if (entries != null) { in writeToParcel() 112 Iterator<Entry<String, Bundle>> iterator = entries.iterator(); in writeToParcel() 182 Set<Entry<String, Bundle>> entries = mParticipants.entrySet(); in toString() local 184 if (entries != null) { in toString() 185 Iterator<Entry<String, Bundle>> iterator = entries.iterator(); in toString()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/ |
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/opt/chips/src/com/android/ex/chips/ |
D | BaseRecipientAdapter.java | 193 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/support/room/compiler/src/main/kotlin/android/arch/persistence/room/processor/cache/ |
D | Cache.kt | 42 private val entries: MutableMap<FullKey<K>, T> = source?.entries ?: mutableMapOf() constant in android.arch.persistence.room.processor.cache.Cache 45 return entries.getOrPut(fullKey, { in get()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | IconCache.java | 253 Iterator<Map.Entry<EssKey, Map<String, FileEntry>>> entries = in notifyIconReceived() local 256 while (entries.hasNext()) { in notifyIconReceived() 257 Map.Entry<EssKey, Map<String, FileEntry>> entry = entries.next(); in notifyIconReceived() 266 entries.remove(); in notifyIconReceived() 281 Iterator<Map.Entry<EssKey, Map<String, FileEntry>>> entries = in tick() local 285 while (entries.hasNext()) { in tick() 286 Map<String, FileEntry> fileMap = entries.next().getValue(); in tick() 298 entries.remove(); in tick()
|