/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/native/libs/input/tests/ |
D | TouchResampling_test.cpp | 71 void publishInputEventEntries(const std::vector<InputEventEntry>& entries); 72 void consumeInputEventEntries(const std::vector<InputEventEntry>& entries, 123 void TouchResamplingTest::publishInputEventEntries(const std::vector<InputEventEntry>& entries) { in publishInputEventEntries() argument 124 for (const InputEventEntry& entry : entries) { in publishInputEventEntries() 162 void TouchResamplingTest::consumeInputEventEntries(const std::vector<InputEventEntry>& entries, in consumeInputEventEntries() argument 164 ASSERT_GE(entries.size(), 1U) << "Must have at least 1 InputEventEntry to compare against"; in consumeInputEventEntries() 174 ASSERT_EQ(entries.size() - 1, motionEvent->getHistorySize()); in consumeInputEventEntries() 175 for (size_t i = 0; i < entries.size(); i++) { // most recent sample is last in consumeInputEventEntries() 177 const InputEventEntry& entry = entries[i]; in consumeInputEventEntries() 227 std::vector<InputEventEntry> entries, expectedEntries; in TEST_F() local [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/native/opengl/libs/EGL/ |
D | egl_layers.cpp | 118 void SetupFuncMaps(FunctionTable& functions, char const* const* entries, EGLFuncPointer* curr, in SetupFuncMaps() argument 120 while (*entries) { in SetupFuncMaps() 121 const char* name = *entries; in SetupFuncMaps() 148 entries++; in SetupFuncMaps() 216 char const* const* entries) { in LayerPlatformEntries() argument 217 while (*entries) { in LayerPlatformEntries() 218 char const* name = *entries; in LayerPlatformEntries() 235 entries++; in LayerPlatformEntries() 240 char const* const* entries) { in LayerDriverEntries() argument 241 while (*entries) { in LayerDriverEntries() [all …]
|
D | egldefs.h | 48 const char* const* entries = platform_names; in egl_connection_t() local 50 while (*entries) { in egl_connection_t() 51 const char* name = *entries; in egl_connection_t() 60 entries++; in egl_connection_t()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | PackageDynamicCodeLoadingTests.java | 68 Entry[] entries = { in testRecord() local 75 PackageDynamicCodeLoading info = makePackageDcl(entries); in testRecord() 76 assertHasEntries(info, entries); in testRecord() 134 Set<Entry> entries = entriesFrom(info); in testRecord_tooManyFiles_ignored() local 136 assertThat(entries).contains(entry); in testRecord_tooManyFiles_ignored() 139 assertThat(entries).doesNotContain(entry); in testRecord_tooManyFiles_ignored() 147 Entry[] entries = { in testClear() local 151 PackageDynamicCodeLoading info = makePackageDcl(entries); in testClear() 160 Entry[] entries = { in testRemovePackage_present() local 165 PackageDynamicCodeLoading info = makePackageDcl(entries); in testRemovePackage_present() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/ |
D | MediaDataCombineLatest.kt | 29 private val entries: MutableMap<String, Pair<MediaData?, MediaDeviceData?>> = mutableMapOf() constant in com.android.systemui.media.controls.domain.pipeline.MediaDataCombineLatest 39 if (oldKey != null && oldKey != key && entries.contains(oldKey)) { in onMediaDataLoaded() 40 entries[key] = data to entries.remove(oldKey)?.second in onMediaDataLoaded() 43 entries[key] = data to entries[key]?.second in onMediaDataLoaded() 65 if (oldKey != null && oldKey != key && entries.contains(oldKey)) { in onMediaDeviceChanged() 66 entries[key] = entries.remove(oldKey)?.first to data in onMediaDeviceChanged() 69 entries[key] = entries[key]?.first to data in onMediaDeviceChanged() 87 val (entry, device) = entries[key] ?: null to null in addListener() 96 entries.remove(key)?.let { in remove()
|
/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()
|
D | TouchInteractionController.java | 190 final ArrayMap<Callback, Executor> entries; in sendEventToAllListeners() local 194 entries = new ArrayMap<>(mCallbacks); in sendEventToAllListeners() 196 for (int i = 0, count = entries.size(); i < count; i++) { in sendEventToAllListeners() 197 final Callback callback = entries.keyAt(i); in sendEventToAllListeners() 198 final Executor executor = entries.valueAt(i); in sendEventToAllListeners() 214 final ArrayMap<Callback, Executor> entries; in onStateChanged() local 218 entries = new ArrayMap<>(mCallbacks); in onStateChanged() 220 for (int i = 0, count = entries.size(); i < count; i++) { in onStateChanged() 221 final Callback callback = entries.keyAt(i); in onStateChanged() 222 final Executor executor = entries.valueAt(i); in onStateChanged()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LooperStatsTest.java | 95 List<LooperStats.ExportedEntry> entries = looperStats.getEntries(); in testSingleMessageDispatched() local 96 assertThat(entries).hasSize(1); in testSingleMessageDispatched() 97 LooperStats.ExportedEntry entry = entries.get(0); in testSingleMessageDispatched() 127 List<LooperStats.ExportedEntry> entries = looperStats.getEntries(); in testThrewException() local 128 assertThat(entries).hasSize(1); in testThrewException() 129 LooperStats.ExportedEntry entry = entries.get(0); in testThrewException() 200 List<LooperStats.ExportedEntry> entries = looperStats.getEntries(); in testMultipleMessagesDispatched() local 201 assertThat(entries).hasSize(3); in testMultipleMessagesDispatched() 202 entries.sort(Comparator.comparing(e -> e.handlerClassName)); in testMultipleMessagesDispatched() 205 LooperStats.ExportedEntry entry1 = entries.get(0); in testMultipleMessagesDispatched() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_test.cpp | 261 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), (*bag)->entries[0].value.dataType); in TEST_F() 262 EXPECT_EQ(1u, (*bag)->entries[0].value.data); in TEST_F() 263 EXPECT_EQ(0, (*bag)->entries[0].cookie); in TEST_F() 265 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), (*bag)->entries[1].value.dataType); in TEST_F() 266 EXPECT_EQ(2u, (*bag)->entries[1].value.data); in TEST_F() 267 EXPECT_EQ(0, (*bag)->entries[1].cookie); in TEST_F() 269 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), (*bag)->entries[2].value.dataType); in TEST_F() 270 EXPECT_EQ(3u, (*bag)->entries[2].value.data); in TEST_F() 271 EXPECT_EQ(0, (*bag)->entries[2].cookie); in TEST_F() 289 EXPECT_EQ(1, (*bag)->entries[0].cookie); in TEST_F() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | AutoVersioner_test.cpp | 89 ASSERT_EQ(style->entries.size(), 1u); in TEST() 90 EXPECT_EQ(test::ParseNameOrDie("android:attr/onClick"), style->entries.front().key.name); in TEST() 94 ASSERT_EQ(style->entries.size(), 2u); in TEST() 95 EXPECT_EQ(test::ParseNameOrDie("android:attr/onClick"), style->entries[0].key.name); in TEST() 97 style->entries[1].key.name); in TEST() 101 ASSERT_EQ(style->entries.size(), 3u); in TEST() 102 EXPECT_EQ(test::ParseNameOrDie("android:attr/onClick"), style->entries[0].key.name); in TEST() 104 style->entries[1].key.name); in TEST() 105 EXPECT_EQ(test::ParseNameOrDie("android:attr/paddingStart"), style->entries[2].key.name); in TEST() 109 ASSERT_EQ(1u, style->entries.size()); in TEST() [all …]
|
D | AutoVersioner.cpp | 82 for (auto& entry : type->entries) { in Consume() 96 auto iter = style->entries.begin(); in Consume() 97 while (iter != style->entries.end()) { in Consume() 115 iter = style->entries.erase(iter); in Consume() 137 new_style->entries.insert( in Consume() 138 new_style->entries.end(), in Consume()
|
/frameworks/base/core/java/android/content/res/ |
D | ThemedResourceCache.java | 75 final LongSparseArray<WeakReference<T>> entries; in put() local 77 entries = getUnthemedLocked(true); in put() 79 entries = getThemedLocked(theme, true); in put() 81 if (entries != null in put() 83 entries.put(key, new WeakReference<>(entry)); in put() 235 private boolean pruneEntriesLocked(@Nullable LongSparseArray<WeakReference<T>> entries, in pruneEntriesLocked() argument 237 if (entries == null) { in pruneEntriesLocked() 241 for (int i = entries.size() - 1; i >= 0; i--) { in pruneEntriesLocked() 242 final WeakReference<T> ref = entries.valueAt(i); in pruneEntriesLocked() 244 entries.removeAt(i); in pruneEntriesLocked() [all …]
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarManifest.java | 54 private final HashMap<String, Attributes> entries; field in StrictJarManifest 78 entries = new HashMap<String, Attributes>(); in StrictJarManifest() 106 entries = (HashMap<String, Attributes>) ((HashMap<String, Attributes>) man in StrictJarManifest() 123 entries.clear(); in clear() 147 return entries; in getEntries() 202 im.readEntries(entries, chunks); in read() 273 Iterator<?> entries = manifest.mainAttributes.keySet().iterator(); in write() local 274 while (entries.hasNext()) { in write() 275 Attributes.Name name = (Attributes.Name) entries.next(); in write() 286 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/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | DataStoreCoordinator.kt | 39 pipeline.addOnAfterRenderListListener { entries, _ -> onAfterRenderList(entries) } in <lambda>() method 46 private fun onAfterRenderList(entries: List<ListEntry>) { in <lambda>() 47 val flatEntryList = flattenedEntryList(entries) in <lambda>() 51 private fun flattenedEntryList(entries: List<ListEntry>) = in <lambda>() 53 entries.forEach { entry -> in <lambda>()
|
D | StackCoordinator.kt | 58 fun onAfterRenderList(entries: List<ListEntry>, controller: NotifStackController) = in onAfterRenderList() 60 val notifStats = calculateNotifStats(entries) in onAfterRenderList() 67 renderListInteractor.setRenderedList(entries) in onAfterRenderList() 70 notificationIconAreaController.updateNotificationIcons(entries) in onAfterRenderList() 74 private fun calculateNotifStats(entries: List<ListEntry>): NotifStats { in calculateNotifStats() 82 entries.forEach { in calculateNotifStats() 97 numActiveNotifs = entries.size, in calculateNotifStats()
|
/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/SystemUI/src/com/android/systemui/media/controls/data/repository/ |
D | MediaFilterRepository.kt | 119 val entries = LinkedHashMap<String, MediaData>(_allUserEntries.value) in <lambda>() constant 120 entries[key] = data in <lambda>() 121 _allUserEntries.value = entries in <lambda>() 130 val entries = LinkedHashMap<String, MediaData>(_allUserEntries.value) in <lambda>() constant 131 val mediaData = entries.remove(key) in <lambda>() 132 _allUserEntries.value = entries in <lambda>() 137 val entries = LinkedHashMap<InstanceId, MediaData>(_selectedUserEntries.value) in <lambda>() constant 138 entries[data.instanceId] = data in <lambda>() 139 _selectedUserEntries.value = entries in <lambda>() 148 val entries = LinkedHashMap<InstanceId, MediaData>(_selectedUserEntries.value) in <lambda>() constant [all …]
|
D | MediaDataRepository.kt | 107 val entries = LinkedHashMap<String, MediaData>(_mediaEntries.value) in removeMediaEntry() constant 108 val mediaData = entries.remove(key) in removeMediaEntry() 109 _mediaEntries.value = entries in removeMediaEntry() 114 val entries = LinkedHashMap<String, MediaData>(_mediaEntries.value) in addMediaEntry() constant 115 val mediaData = entries.put(key, data) in addMediaEntry() 116 _mediaEntries.value = entries in addMediaEntry()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | BluetoothLeBroadcastMetadataExt.kt | 73 val entries = mutableListOf<Pair<String, String>>() in <lambda>() constant 76 entries.add(Pair(KEY_BT_BROADCAST_NAME, Base64.encodeToString( in <lambda>() 78 entries.add(Pair(KEY_BT_ADVERTISER_ADDRESS_TYPE, this.sourceAddressType.toString())) in <lambda>() 79 entries.add(Pair(KEY_BT_ADVERTISER_ADDRESS, this.sourceDevice.address.replace(":", ""))) in <lambda>() 80 entries.add(Pair(KEY_BT_BROADCAST_ID, String.format("%X", this.broadcastId.toLong()))) in <lambda>() 82 entries.add(Pair(KEY_BT_BROADCAST_CODE, in <lambda>() 87 entries.add(Pair(KEY_BT_STREAM_METADATA, Base64.encodeToString( in <lambda>() 92 entries.add(Pair(KEY_BT_STANDARD_QUALITY, "1")) in <lambda>() 96 entries.add(Pair(KEY_BT_HIGH_QUALITY, "1")) in <lambda>() 100 entries.add(Pair(KEY_BT_ADVERTISING_SID, in <lambda>() [all …]
|
/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/libs/binary_translation/tools/ |
D | symbolize_trace.py | 68 entries = line.split(maxsplit=5) 70 addrs = entries[0].split("-") 74 map_entry.prot = self.parse_prot(entries[1]) 75 map_entry.offset = int(entries[2], 16) 76 map_entry.size = int(entries[3], 16) 77 if len(entries) >= 5: 78 map_entry.file = entries[4]
|
/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()
|