/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayWindowSettings.java | 175 Entry entry; in getEntry() local 177 if ((entry = mEntries.get(identifier)) != null) { in getEntry() 178 return entry; in getEntry() 181 if ((entry = mEntries.get(displayInfo.name)) != null) { in getEntry() 183 return updateIdentifierForEntry(entry, displayInfo); in getEntry() 189 final Entry entry = getEntry(displayInfo); in getOrCreateEntry() local 190 return entry != null ? entry : new Entry(getIdentifier(displayInfo)); in getOrCreateEntry() 198 private Entry updateIdentifierForEntry(Entry entry, DisplayInfo displayInfo) { in updateIdentifierForEntry() argument 199 final Entry newEntry = new Entry(getIdentifier(displayInfo), entry); in updateIdentifierForEntry() 206 final Entry entry = getOrCreateEntry(displayInfo); in setOverscanLocked() local [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Queue.h | 33 inline void enqueueAtTail(T* entry) { in enqueueAtTail() 35 entry->prev = tail; in enqueueAtTail() 37 tail->next = entry; in enqueueAtTail() 39 head = entry; in enqueueAtTail() 41 entry->next = nullptr; in enqueueAtTail() 42 tail = entry; in enqueueAtTail() 45 inline void enqueueAtHead(T* entry) { in enqueueAtHead() 47 entry->next = head; in enqueueAtHead() 49 head->prev = entry; in enqueueAtHead() 51 tail = entry; in enqueueAtHead() [all …]
|
D | InputState.cpp | 39 bool InputState::trackKey(const KeyEntry* entry, int32_t action, int32_t flags) { in trackKey() argument 42 if (entry->flags & AKEY_EVENT_FLAG_FALLBACK) { in trackKey() 44 if (mFallbackKeys.valueAt(i) == entry->keyCode) { in trackKey() 51 ssize_t index = findKeyMemento(entry); in trackKey() 76 ssize_t index = findKeyMemento(entry); in trackKey() 80 addKeyMemento(entry, flags); in trackKey() 89 bool InputState::trackMotion(const MotionEntry* entry, int32_t action, int32_t flags) { in trackMotion() argument 94 ssize_t index = findMotionMemento(entry, false /*hovering*/); in trackMotion() 102 entry->deviceId, entry->source, entry->displayId, actionMasked); in trackMotion() 108 ssize_t index = findMotionMemento(entry, false /*hovering*/); in trackMotion() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | LooperStats.java | 99 Entry entry = findEntry(msg, /* allowCreateNew= */session != DispatchSession.NOT_SAMPLED); in messageDispatched() local 100 if (entry != null) { in messageDispatched() 101 synchronized (entry) { in messageDispatched() 102 entry.messageCount++; in messageDispatched() 104 entry.recordedMessageCount++; in messageDispatched() 107 entry.totalLatencyMicro += latency; in messageDispatched() 108 entry.maxLatencyMicro = Math.max(entry.maxLatencyMicro, latency); in messageDispatched() 109 entry.cpuUsageMicro += cpuUsage; in messageDispatched() 110 entry.maxCpuUsageMicro = Math.max(entry.maxCpuUsageMicro, cpuUsage); in messageDispatched() 113 entry.delayMillis += delay; in messageDispatched() [all …]
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraMetadata.cpp | 64 camera_metadata_entry entry = mData.find(ANDROID_REQUEST_AVAILABLE_CAPABILITIES); in filterUnsupportedFeatures() local 65 if (entry.count == 0 || entry.type != TYPE_BYTE) { in filterUnsupportedFeatures() 67 __FUNCTION__, entry.count, entry.type); in filterUnsupportedFeatures() 72 capabilities.setCapacity(entry.count); in filterUnsupportedFeatures() 73 for (size_t i = 0; i < entry.count; i++) { in filterUnsupportedFeatures() 74 uint8_t capability = entry.data.u8[i]; in filterUnsupportedFeatures() 88 ACameraMetadata_const_entry entry; in derivePhysicalCameraIds() local 89 auto ret = getConstEntry(ACAMERA_LOGICAL_MULTI_CAMERA_PHYSICAL_IDS, &entry); in derivePhysicalCameraIds() 96 const uint8_t* ids = entry.data.u8; in derivePhysicalCameraIds() 98 for (size_t i = 0; i < entry.count; ++i) { in derivePhysicalCameraIds() [all …]
|
/frameworks/compile/mclinker/lib/MC/ |
D | SearchDirs.cpp | 92 MCLDDirectory::iterator entry = (*mcld_dir)->begin(); in find() local 97 while (entry != enEnd) { in find() 98 if (file == entry.path()->filename().native()) in find() 99 return entry.path(); in find() 100 ++entry; in find() 105 while (entry != enEnd) { in find() 106 if (file == entry.path()->stem().native()) { in find() 108 entry.path()->extension().native()) { in find() 109 return entry.path(); in find() 112 ++entry; in find() [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerStreamListener.cpp | 56 QueueEntry entry; in queueBuffer() local 57 entry.mIsCommand = false; in queueBuffer() 58 entry.mIndex = index; in queueBuffer() 59 entry.mSize = size; in queueBuffer() 60 entry.mOffset = 0; in queueBuffer() 63 mQueue.push_back(entry); in queueBuffer() 78 QueueEntry entry; in issueCommand() local 79 entry.mIsCommand = true; in issueCommand() 80 entry.mCommand = cmd; in issueCommand() 81 entry.mExtra = extra; in issueCommand() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ResourceUtils_test.cpp | 24 StringPiece package, type, entry; in TEST() local 25 ASSERT_TRUE(ExtractResourceName("android:string/foo", &package, &type, &entry)); in TEST() 28 EXPECT_EQ("foo", entry); in TEST() 30 ASSERT_TRUE(ExtractResourceName("@android:string/foo", &package, &type, &entry)); in TEST() 33 EXPECT_EQ("foo", entry); in TEST() 35 ASSERT_TRUE(ExtractResourceName("string/foo", &package, &type, &entry)); in TEST() 38 EXPECT_EQ("foo", entry); in TEST() 40 ASSERT_TRUE(ExtractResourceName("@string/foo", &package, &type, &entry)); in TEST() 43 EXPECT_EQ("foo", entry); in TEST() 45 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); in TEST() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationInterruptionStateProviderTest.java | 214 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testCanAlertCommon_true() local 215 assertThat(mNotifInterruptionStateProvider.canAlertCommon(entry)).isTrue(); in testCanAlertCommon_true() 226 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testCanAlertCommon_false_filteredOut() local 227 assertThat(mNotifInterruptionStateProvider.canAlertCommon(entry)).isFalse(); in testCanAlertCommon_false_filteredOut() 245 NotificationEntry entry = new NotificationEntry(sbn); in testCanAlertCommon_false_suppressedForGroups() local 246 entry.importance = IMPORTANCE_DEFAULT; in testCanAlertCommon_false_suppressedForGroups() 248 assertThat(mNotifInterruptionStateProvider.canAlertCommon(entry)).isFalse(); in testCanAlertCommon_false_suppressedForGroups() 258 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testShouldHeadsUpWhenDozing_true() local 259 assertThat(mNotifInterruptionStateProvider.shouldHeadsUp(entry)).isTrue(); in testShouldHeadsUpWhenDozing_true() 270 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testShouldHeadsUpWhenDozing_false_pulseDisabled() local [all …]
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssGeofenceProvider.java | 52 GeofenceEntry entry = mGeofenceEntries.valueAt(i); in resumeIfStarted() local 53 boolean added = mNative.addGeofence(entry.geofenceId, entry.latitude, in resumeIfStarted() 54 entry.longitude, in resumeIfStarted() 55 entry.radius, in resumeIfStarted() 56 entry.lastTransition, entry.monitorTransitions, in resumeIfStarted() 57 entry.notificationResponsiveness, entry.unknownTimer); in resumeIfStarted() 58 if (added && entry.paused) { in resumeIfStarted() 59 mNative.pauseGeofence(entry.geofenceId); in resumeIfStarted() 81 GeofenceEntry entry = new GeofenceEntry(); in addCircularHardwareGeofence() local 82 entry.geofenceId = geofenceId; in addCircularHardwareGeofence() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManager.java | 108 for (NotificationEntry entry : mPendingNotifications.values()) { in dump() 109 pw.println(entry.notification); in dump() 116 for (Map.Entry<NotificationEntry, NotificationLifetimeExtender> entry in dump() 118 pw.println(" " + entry.getKey().notification + " retained by " in dump() 119 + entry.getValue().getClass().getName()); in dump() 206 NotificationEntry entry = mPendingNotifications.get(key); in abortExistingInflation() local 207 entry.abortTask(); in abortExistingInflation() 233 public void onAsyncInflationFinished(NotificationEntry entry, in onAsyncInflationFinished() argument 235 mPendingNotifications.remove(entry.key); in onAsyncInflationFinished() 238 if (!entry.isRowRemoved()) { in onAsyncInflationFinished() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationListControllerTest.java | 102 final NotificationEntry entry = buildEntry(); in testCleanUpViewStateOnEntryRemoved() local 104 entry, in testCleanUpViewStateOnEntryRemoved() 105 NotificationVisibility.obtain(entry.key, 0, 0, true), in testCleanUpViewStateOnEntryRemoved() 107 verify(mListContainer).cleanUpViewStateForEntry(entry); in testCleanUpViewStateOnEntryRemoved() 119 final NotificationEntry entry = buildEntry(); in testAppOps_appOpAddedToForegroundNotif() local 120 mNotificationData.add(entry); in testAppOps_appOpAddedToForegroundNotif() 122 .thenReturn(entry.key); in testAppOps_appOpAddedToForegroundNotif() 127 entry.notification.getUid(), in testAppOps_appOpAddedToForegroundNotif() 128 entry.notification.getPackageName(), in testAppOps_appOpAddedToForegroundNotif() 132 assertTrue(entry.mActiveAppOps.contains(AppOpsManager.OP_CAMERA)); in testAppOps_appOpAddedToForegroundNotif() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 501 NetworkStats.Entry entry = null; in clone() local 503 entry = getValues(i, entry); in clone() 504 clone.insertEntry(entry); in clone() 560 public NetworkStats insertEntry(Entry entry) { in insertEntry() argument 578 setValues(size, entry); in insertEntry() 584 private void setValues(int i, Entry entry) { in setValues() argument 585 iface[i] = entry.iface; in setValues() 586 uid[i] = entry.uid; in setValues() 587 set[i] = entry.set; in setValues() 588 tag[i] = entry.tag; in setValues() [all …]
|
/frameworks/base/tools/aapt/ |
D | ResourceFilter.cpp | 27 std::pair<ConfigDescription, uint32_t>& entry = mConfigs.editItemAt(i); in parse() local 33 val.writeTo(&entry.first); in parse() 34 } else if (!AaptConfig::parse(part, &entry.first)) { in parse() 39 entry.second = mDefault.diff(entry.first); in parse() 42 entry.second &= ~ResTable_config::CONFIG_VERSION; in parse() 45 if ((entry.second & ResTable_config::CONFIG_DENSITY) != 0) { in parse() 46 …derr, "warning: ignoring flag -c %s. Use --preferred-density instead.\n", entry.first.toString().s… in parse() 47 entry.first.density = 0; in parse() 48 entry.second &= ~ResTable_config::CONFIG_DENSITY; in parse() 51 mConfigMask |= entry.second; in parse() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationRowBinderImpl.java | 128 NotificationEntry entry, in inflateViews() argument 131 ViewGroup parent = mListContainer.getViewParentForNotification(entry); in inflateViews() 133 entry.notification.getUser().getIdentifier()); in inflateViews() 135 final StatusBarNotification sbn = entry.notification; in inflateViews() 136 if (entry.rowExists()) { in inflateViews() 137 entry.updateIcons(mContext, sbn); in inflateViews() 138 entry.reset(); in inflateViews() 139 updateNotification(entry, pmUser, sbn, entry.getRow()); in inflateViews() 140 entry.getRow().setOnDismissRunnable(onDismissRunnable); in inflateViews() 142 entry.createIcons(mContext, sbn); in inflateViews() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationGroupAlertTransferHelper.java | 107 public boolean isAlertTransferPending(@NonNull NotificationEntry entry) { in isAlertTransferPending() argument 108 PendingAlertInfo alertInfo = mPendingAlerts.get(entry.key); in isAlertTransferPending() 170 public void onHeadsUpStateChanged(NotificationEntry entry, boolean isHeadsUp) { in onHeadsUpStateChanged() argument 171 onAlertStateChanged(entry, isHeadsUp, mHeadsUpManager); in onHeadsUpStateChanged() 174 private void onAlertStateChanged(NotificationEntry entry, boolean isAlerting, in onAlertStateChanged() argument 176 if (isAlerting && mGroupManager.isSummaryOfSuppressedGroup(entry.notification)) { in onAlertStateChanged() 177 handleSuppressedSummaryAlerted(entry, alertManager); in onAlertStateChanged() 186 public void onPendingEntryAdded(NotificationEntry entry) { 187 String groupKey = mGroupManager.getGroupKey(entry.notification); 197 public void onEntryReinflated(NotificationEntry entry) { [all …]
|
/frameworks/base/telecomm/java/android/telecom/Logging/ |
D | TimedEvent.java | 34 for (TimedEvent<T> entry : events) { in averageTimings() 35 if (counts.containsKey(entry.getKey())) { in averageTimings() 36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); in averageTimings() 37 result.put(entry.getKey(), result.get(entry.getKey()) + entry.getTime()); in averageTimings() 39 counts.put(entry.getKey(), 1); in averageTimings() 40 result.put(entry.getKey(), (double) entry.getTime()); in averageTimings() 44 for (Map.Entry<T, Double> entry : result.entrySet()) { in averageTimings() 45 result.put(entry.getKey(), entry.getValue() / counts.get(entry.getKey())); in averageTimings()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | TimedEvent.java | 34 for (TimedEvent<T> entry : events) { in averageTimings() 35 if (counts.containsKey(entry.getKey())) { in averageTimings() 36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); in averageTimings() 37 result.put(entry.getKey(), result.get(entry.getKey()) + entry.getTime()); in averageTimings() 39 counts.put(entry.getKey(), 1); in averageTimings() 40 result.put(entry.getKey(), (double) entry.getTime()); in averageTimings() 44 for (Map.Entry<T, Double> entry : result.entrySet()) { in averageTimings() 45 result.put(entry.getKey(), entry.getValue() / counts.get(entry.getKey())); in averageTimings()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | CSVFormatter.java | 42 public String getOutput(TrackerEntry entry) { in getOutput() argument 45 rowOutput.append(entry.getTimestamp()); in getOutput() 47 rowOutput.append(entry.getTag()); in getOutput() 51 if (entry.getType() == EntryType.LOCATION_TYPE) { in getOutput() 52 if (entry.getLocation().hasAccuracy()) { in getOutput() 53 rowOutput.append(entry.getLocation().getAccuracy()); in getOutput() 56 rowOutput.append(entry.getLocation().getLatitude()); in getOutput() 58 rowOutput.append(entry.getLocation().getLongitude()); in getOutput() 60 if (entry.getLocation().hasAltitude()) { in getOutput() 61 rowOutput.append(entry.getLocation().getAltitude()); in getOutput() [all …]
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
D | AArch64GOT.cpp | 43 AArch64GOTEntry* entry = new AArch64GOTEntry(0, NULL); in createGOT() local 44 m_GOT.push_back(entry); in createGOT() 45 return entry; in createGOT() 49 AArch64GOTEntry* entry = new AArch64GOTEntry(0, NULL); in createGOTPLT() local 50 m_GOTPLT.push_back(entry); in createGOTPLT() 51 return entry; in createGOTPLT() 69 AArch64GOTEntry* entry = *it; in finalizeSectionSize() local 70 frag_list.push_back(entry); in finalizeSectionSize() 71 entry->setParent(m_SectionData); in finalizeSectionSize() 72 entry->setOffset(offset); in finalizeSectionSize() [all …]
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMGOT.cpp | 40 ARMGOTEntry* entry = new ARMGOTEntry(0, NULL); in createGOT() local 41 m_GOT.push_back(entry); in createGOT() 42 return entry; in createGOT() 46 ARMGOTEntry* entry = new ARMGOTEntry(0, NULL); in createGOTPLT() local 47 m_GOTPLT.push_back(entry); in createGOTPLT() 48 return entry; in createGOTPLT() 66 ARMGOTEntry* entry = *it; in finalizeSectionSize() local 67 frag_list.push_back(entry); in finalizeSectionSize() 68 entry->setParent(m_SectionData); in finalizeSectionSize() 69 entry->setOffset(offset); in finalizeSectionSize() [all …]
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | ExifUtils.cpp | 39 inline void operator()(ExifEntry* entry) const { exif_entry_unref(entry); } in operator ()() 495 std::unique_ptr<ExifEntry> entry = addVariableLengthEntry( in setGpsAltitude() local 497 if (!entry) { in setGpsAltitude() 502 exif_set_rational(entry->data, EXIF_BYTE_ORDER_INTEL, in setGpsAltitude() 524 std::unique_ptr<ExifEntry> entry = addVariableLengthEntry( in setGpsLatitude() local 526 if (!entry) { in setGpsLatitude() 531 setLatitudeOrLongitudeData(entry->data, latitude); in setGpsLatitude() 552 std::unique_ptr<ExifEntry> entry = addVariableLengthEntry( in setGpsLongitude() local 554 if (!entry) { in setGpsLongitude() 559 setLatitudeOrLongitudeData(entry->data, longitude); in setGpsLongitude() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationRemoteInputManager.java | 281 public void onPreEntryUpdated(NotificationEntry entry) { in NotificationRemoteInputManager() 284 mSmartReplyController.stopSending(entry); in NotificationRemoteInputManager() 289 @Nullable NotificationEntry entry, in NotificationRemoteInputManager() 293 mSmartReplyController.stopSending(entry); in NotificationRemoteInputManager() 295 if (removedByUser && entry != null) { in NotificationRemoteInputManager() 296 onPerformRemoveNotification(entry, entry.key); in NotificationRemoteInputManager() 308 public void onRemoteInputSent(NotificationEntry entry) { in setUpWithCallback() 310 && isNotificationKeptForRemoteInputHistory(entry.key)) { in setUpWithCallback() 311 mNotificationLifetimeFinishedCallback.onSafeToRemove(entry.key); in setUpWithCallback() 312 } else if (mEntriesKeptForRemoteInputActive.contains(entry)) { in setUpWithCallback() [all …]
|
D | RemoteInputController.java | 104 public void addRemoteInput(NotificationEntry entry, Object token) { in addRemoteInput() argument 105 Preconditions.checkNotNull(entry); in addRemoteInput() 109 entry /* contains */, null /* remove */, token /* removeToken */); in addRemoteInput() 111 mOpen.add(new Pair<>(new WeakReference<>(entry), token)); in addRemoteInput() 114 apply(entry); in addRemoteInput() 125 public void removeRemoteInput(NotificationEntry entry, Object token) { in removeRemoteInput() argument 126 Preconditions.checkNotNull(entry); in removeRemoteInput() 128 pruneWeakThenRemoveAndContains(null /* contains */, entry /* remove */, token); in removeRemoteInput() 130 apply(entry); in removeRemoteInput() 176 private void apply(NotificationEntry entry) { in apply() argument [all …]
|
/frameworks/base/cmds/idmap2/tests/ |
D | BinaryStreamVisitorTests.cpp | 95 EntryId entry; in TEST() local 96 bool success = LoadedIdmap::Lookup(header, 0x0000, &entry); in TEST() 98 ASSERT_EQ(entry, 0x0000); in TEST() 103 success = LoadedIdmap::Lookup(header, 0x0000, &entry); // string/a in TEST() 106 success = LoadedIdmap::Lookup(header, 0x0001, &entry); // string/b in TEST() 109 success = LoadedIdmap::Lookup(header, 0x0002, &entry); // string/c in TEST() 112 success = LoadedIdmap::Lookup(header, 0x0003, &entry); // string/policy_odm in TEST() 115 success = LoadedIdmap::Lookup(header, 0x0004, &entry); // string/policy_oem in TEST() 118 success = LoadedIdmap::Lookup(header, 0x0005, &entry); // string/other in TEST() 121 success = LoadedIdmap::Lookup(header, 0x0006, &entry); // string/not_overlayable in TEST() [all …]
|