Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 818) sorted by relevance

12345678910>>...33

/frameworks/base/services/core/java/com/android/server/wm/
DDisplayWindowSettings.java169 Entry entry; in getEntry() local
171 if ((entry = mEntries.get(identifier)) != null) { in getEntry()
172 return entry; in getEntry()
175 if ((entry = mEntries.get(displayInfo.name)) != null) { in getEntry()
177 return updateIdentifierForEntry(entry, displayInfo); in getEntry()
183 final Entry entry = getEntry(displayInfo); in getOrCreateEntry() local
184 return entry != null ? entry : new Entry(getIdentifier(displayInfo)); in getOrCreateEntry()
192 private Entry updateIdentifierForEntry(Entry entry, DisplayInfo displayInfo) { in updateIdentifierForEntry() argument
193 final Entry newEntry = new Entry(getIdentifier(displayInfo), entry); in updateIdentifierForEntry()
200 final Entry entry = getOrCreateEntry(displayInfo); in setOverscanLocked() local
[all …]
/frameworks/base/core/java/com/android/internal/os/
DLooperStats.java99 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/media/libmediaplayerservice/nuplayer/
DNuPlayerStreamListener.cpp54 QueueEntry entry; in queueBuffer() local
55 entry.mIsCommand = false; in queueBuffer()
56 entry.mIndex = index; in queueBuffer()
57 entry.mSize = size; in queueBuffer()
58 entry.mOffset = 0; in queueBuffer()
61 mQueue.push_back(entry); in queueBuffer()
76 QueueEntry entry; in issueCommand() local
77 entry.mIsCommand = true; in issueCommand()
78 entry.mCommand = cmd; in issueCommand()
79 entry.mExtra = extra; in issueCommand()
[all …]
/frameworks/av/camera/ndk/impl/
DACameraMetadata.cpp64 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/base/libs/androidfw/tests/
DResourceUtils_test.cpp24 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/compile/mclinker/lib/MC/
DSearchDirs.cpp92 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/base/core/java/android/net/
DNetworkStats.java335 NetworkStats.Entry entry = null; in clone() local
337 entry = getValues(i, entry); in clone()
338 clone.addValues(entry); in clone()
389 public NetworkStats addValues(Entry entry) { in addValues() argument
407 setValues(size, entry); in addValues()
413 private void setValues(int i, Entry entry) { in setValues() argument
414 iface[i] = entry.iface; in setValues()
415 uid[i] = entry.uid; in setValues()
416 set[i] = entry.set; in setValues()
417 tag[i] = entry.tag; in setValues()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DGnssGeofenceProvider.java52 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/tests/src/com/android/systemui/statusbar/notification/
DNotificationListControllerTest.java102 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/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationEntryManager.java104 for (NotificationEntry entry : mPendingNotifications.values()) { in dump()
105 pw.println(entry.notification); in dump()
112 for (Map.Entry<NotificationEntry, NotificationLifetimeExtender> entry in dump()
114 pw.println(" " + entry.getKey().notification + " retained by " in dump()
115 + entry.getValue().getClass().getName()); in dump()
201 NotificationEntry entry = mPendingNotifications.get(key); in abortExistingInflation() local
202 entry.abortTask(); in abortExistingInflation()
228 public void onAsyncInflationFinished(NotificationEntry entry, in onAsyncInflationFinished() argument
230 mPendingNotifications.remove(entry.key); in onAsyncInflationFinished()
233 if (!entry.isRowRemoved()) { in onAsyncInflationFinished()
[all …]
DNotificationAlertingManager.java75 public void onEntryInflated(NotificationEntry entry, int inflatedFlags) { in NotificationAlertingManager()
76 showAlertingView(entry, inflatedFlags); in NotificationAlertingManager()
80 public void onPostEntryUpdated(NotificationEntry entry) { in NotificationAlertingManager()
81 updateAlertState(entry); in NotificationAlertingManager()
86 NotificationEntry entry, in NotificationAlertingManager()
89 stopAlerting(entry.key); in NotificationAlertingManager()
105 private void showAlertingView(NotificationEntry entry, @InflationFlag int inflatedFlags) { in showAlertingView() argument
109 if (mNotificationInterruptionStateProvider.shouldHeadsUp(entry)) { in showAlertingView()
110 mHeadsUpManager.showNotification(entry); in showAlertingView()
112 setNotificationShown(entry.notification); in showAlertingView()
[all …]
/frameworks/base/tools/aapt/
DResourceFilter.cpp27 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/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dmap.js117 var entry = this.map_[strKeys[i]];
118 var valueWrapper = /** @type {!Object} */ (entry.valueWrapper);
122 this.arr_.push([entry.key, entry.value]);
200 var entry = this.map_[strKeys[i]];
201 entries.push([entry.key, entry.value]);
218 var entry = this.map_[strKeys[i]];
219 entries.push([entry.key, this.wrapEntry_(entry)]);
234 var entry = this.map_[strKeys[i]];
235 keys.push(entry.key);
250 var entry = this.map_[strKeys[i]];
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupAlertTransferHelper.java111 public boolean isAlertTransferPending(@NonNull NotificationEntry entry) { in isAlertTransferPending() argument
112 PendingAlertInfo alertInfo = mPendingAlerts.get(entry.key); in isAlertTransferPending()
175 public void onAmbientStateChanged(NotificationEntry entry, boolean isAmbient) { in onAmbientStateChanged() argument
176 onAlertStateChanged(entry, isAmbient, mAmbientPulseManager); in onAmbientStateChanged()
180 public void onHeadsUpStateChanged(NotificationEntry entry, boolean isHeadsUp) { in onHeadsUpStateChanged() argument
181 onAlertStateChanged(entry, isHeadsUp, mHeadsUpManager); in onHeadsUpStateChanged()
184 private void onAlertStateChanged(NotificationEntry entry, boolean isAlerting, in onAlertStateChanged() argument
186 if (isAlerting && mGroupManager.isSummaryOfSuppressedGroup(entry.notification)) { in onAlertStateChanged()
187 handleSuppressedSummaryAlerted(entry, alertManager); in onAlertStateChanged()
196 public void onPendingEntryAdded(NotificationEntry entry) {
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationRowBinderImpl.java121 NotificationEntry entry, in inflateViews() argument
124 ViewGroup parent = mListContainer.getViewParentForNotification(entry); in inflateViews()
126 entry.notification.getUser().getIdentifier()); in inflateViews()
128 final StatusBarNotification sbn = entry.notification; in inflateViews()
129 if (entry.rowExists()) { in inflateViews()
130 entry.updateIcons(mContext, sbn); in inflateViews()
131 entry.reset(); in inflateViews()
132 updateNotification(entry, pmUser, sbn, entry.getRow()); in inflateViews()
134 entry.createIcons(mContext, sbn); in inflateViews()
135 new RowInflaterTask().inflate(mContext, parent, entry, in inflateViews()
[all …]
/frameworks/base/telecomm/java/android/telecom/Logging/
DTimedEvent.java34 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/
DTimedEvent.java34 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/
DCSVFormatter.java42 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/base/services/core/java/com/android/server/net/
DNetworkStatsFactory.java111 for (Map.Entry<String, String> entry : sStackedIfaces.entrySet()) { in augmentWithStackedInterfaces()
112 if (relatedIfaces.contains(entry.getKey())) { in augmentWithStackedInterfaces()
113 relatedIfaces.add(entry.getValue()); in augmentWithStackedInterfaces()
114 } else if (relatedIfaces.contains(entry.getValue())) { in augmentWithStackedInterfaces()
115 relatedIfaces.add(entry.getKey()); in augmentWithStackedInterfaces()
176 final NetworkStats.Entry entry = new NetworkStats.Entry(); in readNetworkStatsSummaryDev() local
183 entry.iface = reader.nextString(); in readNetworkStatsSummaryDev()
184 entry.uid = UID_ALL; in readNetworkStatsSummaryDev()
185 entry.set = SET_ALL; in readNetworkStatsSummaryDev()
186 entry.tag = TAG_NONE; in readNetworkStatsSummaryDev()
[all …]
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64GOT.cpp43 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/
DARMGOT.cpp40 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/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/
DWmTraceSubject.java57 public static WmTraceSubject assertThat(@Nullable WindowManagerTrace entry) { in assertThat() argument
58 return assertAbout(FACTORY).that(entry); in assertThat()
119 mChecker.add(entry -> entry.isAboveAppWindowVisible(partialWindowTitle), in showsAboveAppWindow()
125 mChecker.add(entry -> entry.isAboveAppWindowVisible(partialWindowTitle).negate(), in hidesAboveAppWindow()
131 mChecker.add(entry -> entry.isBelowAppWindowVisible(partialWindowTitle), in showsBelowAppWindow()
137 mChecker.add(entry -> entry.isBelowAppWindowVisible(partialWindowTitle).negate(), in hidesBelowAppWindow()
143 mChecker.add(entry -> entry.isImeWindowVisible(partialWindowTitle), in showsImeWindow()
149 mChecker.add(entry -> entry.isImeWindowVisible(partialWindowTitle).negate(), in hidesImeWindow()
156 entry -> { in showsAppWindowOnTop()
157 Result result = entry.isAppWindowVisible(partialWindowTitle); in showsAppWindowOnTop()
[all …]
/frameworks/av/services/camera/libcameraservice/utils/
DExifUtils.cpp39 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/
DNotificationRemoteInputManager.java277 public void onPreEntryUpdated(NotificationEntry entry) { in NotificationRemoteInputManager()
280 mSmartReplyController.stopSending(entry); in NotificationRemoteInputManager()
285 @Nullable NotificationEntry entry, in NotificationRemoteInputManager()
289 mSmartReplyController.stopSending(entry); in NotificationRemoteInputManager()
291 if (removedByUser && entry != null) { in NotificationRemoteInputManager()
292 onPerformRemoveNotification(entry, entry.key); in NotificationRemoteInputManager()
304 public void onRemoteInputSent(NotificationEntry entry) { in setUpWithCallback()
306 && isNotificationKeptForRemoteInputHistory(entry.key)) { in setUpWithCallback()
307 mNotificationLifetimeFinishedCallback.onSafeToRemove(entry.key); in setUpWithCallback()
308 } else if (mEntriesKeptForRemoteInputActive.contains(entry)) { in setUpWithCallback()
[all …]
DRemoteInputController.java104 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 …]

12345678910>>...33