Home
last modified time | relevance | path

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

12345678910>>...40

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/
DIconManager.kt57 override fun onEntryInit(entry: NotificationEntry) { in <lambda>()
58 entry.addOnSensitivityChangedListener(sensitivityListener) in <lambda>()
61 override fun onEntryCleanUp(entry: NotificationEntry) { in <lambda>()
62 entry.removeOnSensitivityChangedListener(sensitivityListener) in <lambda>()
68 for (entry in notifCollection.allNotifs) { in <lambda>() method
69 val isImportant = isImportantConversation(entry) in <lambda>()
70 if (entry.icons.areIconsAvailable && in <lambda>()
71 isImportant != entry.icons.isImportantConversation) { in <lambda>()
72 updateIconsSafe(entry) in <lambda>()
74 entry.icons.isImportantConversation = isImportant in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifCollection.java237 NotificationEntry entry = entriesToDismiss.get(i).first; in dismissNotifications() local
241 if (entry != mNotificationSet.get(entry.getKey())) { in dismissNotifications()
243 new IllegalStateException("Invalid entry: " + entry.getKey())); in dismissNotifications()
246 if (entry.getDismissState() == DISMISSED) { in dismissNotifications()
250 updateDismissInterceptors(entry); in dismissNotifications()
251 if (isDismissIntercepted(entry)) { in dismissNotifications()
252 mLogger.logNotifDismissedIntercepted(entry.getKey()); in dismissNotifications()
256 entriesToLocallyDismiss.add(entry); in dismissNotifications()
257 if (!isCanceled(entry)) { in dismissNotifications()
261 entry.getSbn().getPackageName(), in dismissNotifications()
[all …]
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssGeofenceProxy.java72 GeofenceEntry entry = new GeofenceEntry(); in addCircularHardwareGeofence() local
73 entry.geofenceId = geofenceId; in addCircularHardwareGeofence()
74 entry.latitude = latitude; in addCircularHardwareGeofence()
75 entry.longitude = longitude; in addCircularHardwareGeofence()
76 entry.radius = radius; in addCircularHardwareGeofence()
77 entry.lastTransition = lastTransition; in addCircularHardwareGeofence()
78 entry.monitorTransitions = monitorTransitions; in addCircularHardwareGeofence()
79 entry.notificationResponsiveness = notificationResponsiveness; in addCircularHardwareGeofence()
80 entry.unknownTimer = unknownTimer; in addCircularHardwareGeofence()
81 mGeofenceEntries.put(geofenceId, entry); in addCircularHardwareGeofence()
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DZoomRatioTest.cpp76 camera_metadata_entry_t entry; in TEST() local
97 entry = deviceInfo.find(ANDROID_CONTROL_ZOOM_RATIO_RANGE); in TEST()
98 ASSERT_EQ(entry.count, 2U); in TEST()
99 ASSERT_EQ(entry.data.f[0], 1.0); in TEST()
100 ASSERT_EQ(entry.data.f[1], maxDigitalZoom); in TEST()
102 entry = deviceInfo.find(ANDROID_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS); in TEST()
103 ASSERT_GT(entry.count, 0U); in TEST()
104 ASSERT_NE(std::find(entry.data.i32, entry.data.i32 + entry.count, in TEST()
105 ANDROID_CONTROL_ZOOM_RATIO_RANGE), entry.data.i32 + entry.count); in TEST()
107 entry = deviceInfo.find(ANDROID_REQUEST_AVAILABLE_REQUEST_KEYS); in TEST()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/
DGroupMembershipManagerImpl.java35 public boolean isGroupSummary(NotificationEntry entry) { in isGroupSummary() argument
36 return getGroupSummary(entry) == entry; in isGroupSummary()
40 public NotificationEntry getGroupSummary(NotificationEntry entry) { in getGroupSummary() argument
41 if (isEntryTopLevel(entry) || entry.getParent() == null) { in getGroupSummary()
45 return entry.getParent().getRepresentativeEntry(); in getGroupSummary()
49 public boolean isChildInGroup(NotificationEntry entry) { in isChildInGroup() argument
50 return !isEntryTopLevel(entry); in isChildInGroup()
54 public boolean isOnlyChildInGroup(NotificationEntry entry) { in isOnlyChildInGroup() argument
55 if (entry.getParent() == null) { in isOnlyChildInGroup()
59 return !isGroupSummary(entry) && entry.getParent().getChildren().size() == 1; in isOnlyChildInGroup()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DZoomRatioMapper.cpp44 camera_metadata_entry_t entry; in initZoomRatioInTemplate() local
45 entry = request->find(ANDROID_CONTROL_ZOOM_RATIO); in initZoomRatioInTemplate()
47 if (entry.count == 0) { in initZoomRatioInTemplate()
59 camera_metadata_entry_t entry; in overrideZoomRatioTags() local
60 entry = deviceInfo->find(ANDROID_CONTROL_ZOOM_RATIO_RANGE); in overrideZoomRatioTags()
61 if (entry.count != 2 && entry.count != 0) return BAD_VALUE; in overrideZoomRatioTags()
64 if (entry.count == 2) { in overrideZoomRatioTags()
72 entry = deviceInfo->find(ANDROID_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM); in overrideZoomRatioTags()
73 if (entry.count != 1) { in overrideZoomRatioTags()
79 float zoomRange[] = {1.0f, entry.data.f[0]}; in overrideZoomRatioTags()
[all …]
DRotateAndCropMapper.cpp43 auto entry = deviceInfo->find(ANDROID_SCALER_AVAILABLE_ROTATE_AND_CROP_MODES); in isNeeded() local
44 for (size_t i = 0; i < entry.count; i++) { in isNeeded()
45 if (entry.data.u8[i] == ANDROID_SCALER_ROTATE_AND_CROP_AUTO) return true; in isNeeded()
53 auto entry = deviceInfo->find(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE); in RotateAndCropMapper() local
54 if (entry.count != 4) return; in RotateAndCropMapper()
56 mArrayWidth = entry.data.i32[2]; in RotateAndCropMapper()
57 mArrayHeight = entry.data.i32[3]; in RotateAndCropMapper()
66 auto entry = request->find(ANDROID_SCALER_ROTATE_AND_CROP); in updateCaptureRequest() local
67 if (entry.count == 0) return OK; in updateCaptureRequest()
68 uint8_t rotateMode = entry.data.u8[0]; in updateCaptureRequest()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DLooperStats.java101 Entry entry = findEntry(msg, /* allowCreateNew= */session != DispatchSession.NOT_SAMPLED); in messageDispatched() local
102 if (entry != null) { in messageDispatched()
103 synchronized (entry) { in messageDispatched()
104 entry.messageCount++; in messageDispatched()
106 entry.recordedMessageCount++; in messageDispatched()
109 entry.totalLatencyMicro += latency; in messageDispatched()
110 entry.maxLatencyMicro = Math.max(entry.maxLatencyMicro, latency); in messageDispatched()
111 entry.cpuUsageMicro += cpuUsage; in messageDispatched()
112 entry.maxCpuUsageMicro = Math.max(entry.maxCpuUsageMicro, cpuUsage); in messageDispatched()
115 entry.delayMillis += delay; in messageDispatched()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DPreparationCoordinator.java137 public void onEntryInit(NotificationEntry entry) {
138 mInflationStates.put(entry, STATE_UNINFLATED);
142 public void onEntryUpdated(NotificationEntry entry) {
143 abortInflation(entry, "entryUpdated");
144 @InflationState int state = getInflationState(entry);
146 mInflationStates.put(entry, STATE_INFLATED_INVALID);
149 mInflationStates.put(entry, STATE_UNINFLATED);
154 public void onEntryRemoved(NotificationEntry entry, int reason) {
155 abortInflation(entry, "entryRemoved reason=" + reason);
159 public void onEntryCleanUp(NotificationEntry entry) {
[all …]
DHeadsUpCoordinator.java100 private void onHeadsUpViewBound(NotificationEntry entry) { in onHeadsUpViewBound() argument
101 mHeadsUpManager.showNotification(entry); in onHeadsUpViewBound()
109 public void onEntryAdded(NotificationEntry entry) {
110 if (mNotificationInterruptStateProvider.shouldHeadsUp(entry)) {
112 entry,
123 public void onEntryUpdated(NotificationEntry entry) {
124 boolean hunAgain = alertAgain(entry, entry.getSbn().getNotification());
126 boolean shouldHeadsUp = mNotificationInterruptStateProvider.shouldHeadsUp(entry);
127 final boolean wasHeadsUp = mHeadsUpManager.isAlerting(entry.getKey());
130 mHeadsUpManager.updateNotification(entry.getKey(), hunAgain);
[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/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/native/services/inputflinger/dispatcher/
DInputState.cpp43 bool InputState::trackKey(const KeyEntry& entry, int32_t action, int32_t flags) { in trackKey() argument
46 if (entry.flags & AKEY_EVENT_FLAG_FALLBACK) { in trackKey()
48 if (mFallbackKeys.valueAt(i) == entry.keyCode) { in trackKey()
55 ssize_t index = findKeyMemento(entry); in trackKey()
80 ssize_t index = findKeyMemento(entry); in trackKey()
84 addKeyMemento(entry, flags); in trackKey()
93 bool InputState::trackMotion(const MotionEntry& entry, int32_t action, int32_t flags) { in trackMotion() argument
98 ssize_t index = findMotionMemento(entry, false /*hovering*/); in trackMotion()
106 entry.deviceId, entry.source, entry.displayId, actionMasked); in trackMotion()
112 ssize_t index = findMotionMemento(entry, false /*hovering*/); in trackMotion()
[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/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/icon/
DIconManagerTest.kt92 val entry = notificationEntry(true, true, true) in testCreateIcons_importantConversation_shortcutIcon() constant
93 entry?.channel?.isImportantConversation = true in testCreateIcons_importantConversation_shortcutIcon()
94 entry?.let { in testCreateIcons_importantConversation_shortcutIcon()
97 assertEquals(entry?.icons?.statusBarIcon?.sourceIcon, shortcutIc) in testCreateIcons_importantConversation_shortcutIcon()
102 val entry = notificationEntry(false, true, true) in testCreateIcons_importantConversation_messageIcon() constant
103 entry?.channel?.isImportantConversation = true in testCreateIcons_importantConversation_messageIcon()
104 entry?.let { in testCreateIcons_importantConversation_messageIcon()
107 assertEquals(entry?.icons?.statusBarIcon?.sourceIcon, messageIc) in testCreateIcons_importantConversation_messageIcon()
112 val entry = notificationEntry(false, false, true) in testCreateIcons_importantConversation_largeIcon() constant
113 entry?.channel?.isImportantConversation = true in testCreateIcons_importantConversation_largeIcon()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/
DHighPriorityProvider.java66 public boolean isHighPriority(ListEntry entry) { in isHighPriority() argument
67 if (entry == null) { in isHighPriority()
71 final NotificationEntry notifEntry = entry.getRepresentativeEntry(); in isHighPriority()
78 || hasHighPriorityChild(entry); in isHighPriority()
82 private boolean hasHighPriorityChild(ListEntry entry) { in hasHighPriorityChild() argument
83 if (entry instanceof NotificationEntry in hasHighPriorityChild()
84 && !mGroupMembershipManager.isGroupSummary((NotificationEntry) entry)) { in hasHighPriorityChild()
88 List<NotificationEntry> children = mGroupMembershipManager.getChildren(entry); in hasHighPriorityChild()
91 if (child != entry && isHighPriority(child)) { in hasHighPriorityChild()
100 private boolean hasHighPriorityCharacteristics(NotificationEntry entry) { in hasHighPriorityCharacteristics() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotifBindPipeline.java113 @NonNull NotificationEntry entry, in manageRow()
115 mLogger.logManagedRow(entry.getKey()); in manageRow()
117 final BindEntry bindEntry = getBindEntry(entry); in manageRow()
123 requestPipelineRun(entry); in manageRow()
128 @NonNull NotificationEntry entry, in onBindRequested()
131 final BindEntry bindEntry = getBindEntry(entry); in onBindRequested()
146 requestPipelineRun(entry); in onBindRequested()
156 private void requestPipelineRun(NotificationEntry entry) { in requestPipelineRun() argument
157 mLogger.logRequestPipelineRun(entry.getKey()); in requestPipelineRun()
159 final BindEntry bindEntry = getBindEntry(entry); in requestPipelineRun()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImplTest.java164 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testDefaultSuppressorDoesNotSuppress() local
167 assertThat(defaultSuppressor.suppressAwakeHeadsUp(entry)).isFalse(); in testDefaultSuppressorDoesNotSuppress()
168 assertThat(defaultSuppressor.suppressAwakeInterruptions(entry)).isFalse(); in testDefaultSuppressorDoesNotSuppress()
169 assertThat(defaultSuppressor.suppressInterruptions(entry)).isFalse(); in testDefaultSuppressorDoesNotSuppress()
176 NotificationEntry entry = createNotification(IMPORTANCE_HIGH); in testShouldHeadsUpAwake() local
177 assertThat(mNotifInterruptionStateProvider.shouldHeadsUp(entry)).isTrue(); in testShouldHeadsUpAwake()
186 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testShouldNotHeadsUpAwake_flteredOut() local
187 when(mNotificationFilter.shouldFilterOut(entry)).thenReturn(true); in testShouldNotHeadsUpAwake_flteredOut()
190 assertThat(mNotifInterruptionStateProvider.shouldHeadsUp(entry)).isFalse(); in testShouldNotHeadsUpAwake_flteredOut()
200 NotificationEntry entry = new NotificationEntryBuilder() in testShouldNotHeadsUp_suppressedForGroups() local
[all …]
/frameworks/av/camera/ndk/impl/
DACameraMetadata.cpp107 camera_metadata_entry entry = mData->find(ANDROID_REQUEST_AVAILABLE_CAPABILITIES); in filterUnsupportedFeatures() local
108 if (entry.count == 0 || entry.type != TYPE_BYTE) { in filterUnsupportedFeatures()
110 __FUNCTION__, entry.count, entry.type); in filterUnsupportedFeatures()
115 capabilities.setCapacity(entry.count); in filterUnsupportedFeatures()
116 for (size_t i = 0; i < entry.count; i++) { in filterUnsupportedFeatures()
117 uint8_t capability = entry.data.u8[i]; in filterUnsupportedFeatures()
131 ACameraMetadata_const_entry entry; in derivePhysicalCameraIds() local
132 auto ret = getConstEntry(ACAMERA_LOGICAL_MULTI_CAMERA_PHYSICAL_IDS, &entry); in derivePhysicalCameraIds()
139 const uint8_t* ids = entry.data.u8; in derivePhysicalCameraIds()
141 for (size_t i = 0; i < entry.count; ++i) { in derivePhysicalCameraIds()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/
DNotificationRowBinderImpl.java118 NotificationEntry entry, in inflateViews() argument
121 ViewGroup parent = mListContainer.getViewParentForNotification(entry); in inflateViews()
123 if (entry.rowExists()) { in inflateViews()
124 mIconManager.updateIcons(entry); in inflateViews()
125 ExpandableNotificationRow row = entry.getRow(); in inflateViews()
127 updateRow(entry, row); in inflateViews()
128 inflateContentViews(entry, row, callback); in inflateViews()
130 mIconManager.createIcons(entry); in inflateViews()
131 mRowInflaterTaskProvider.get().inflate(mContext, parent, entry, in inflateViews()
137 .notificationEntry(entry) in inflateViews()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationEntryManager.java164 for (NotificationEntry entry : mAllNotifications) { in dump()
165 dumpEntry(pw, " ", i, entry); in dump()
173 for (NotificationEntry entry : mPendingNotifications.values()) { in dump()
174 pw.println(entry.getSbn()); in dump()
189 for (Map.Entry<NotificationEntry, NotificationLifetimeExtender> entry in dump()
191 pw.println(" " + entry.getKey().getSbn() + " retained by " in dump()
192 + entry.getValue().getClass().getName()); in dump()
313 NotificationEntry entry = mPendingNotifications.get(key); in abortExistingInflation() local
314 entry.abortTask(); in abortExistingInflation()
317 listener.onEntryCleanUp(entry); in abortExistingInflation()
[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/base/packages/SystemUI/src/com/android/systemui/wmshell/
DBubblesManager.java272 NotificationEntry entry = in BubblesManager()
274 callback.accept(entry == null ? null : notifToBubbleEntry(entry)); in BubblesManager()
286 NotificationEntry entry = activeEntries.get(i); in BubblesManager()
287 if (savedBubbleKeys.contains(entry.getKey()) in BubblesManager()
288 && mNotificationInterruptStateProvider.shouldBubbleUp(entry) in BubblesManager()
289 && entry.isBubble()) { in BubblesManager()
290 result.add(notifToBubbleEntry(entry)); in BubblesManager()
300 final NotificationEntry entry = in BubblesManager()
302 if (entry != null in BubblesManager()
303 && entry.getImportance() >= NotificationManager.IMPORTANCE_HIGH) { in BubblesManager()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DHeadsUpController.java85 public void onEntryAdded(NotificationEntry entry) {
86 if (mInterruptStateProvider.shouldHeadsUp(entry)) {
88 entry, HeadsUpController.this::showAlertingView);
93 public void onEntryUpdated(NotificationEntry entry) {
94 updateHunState(entry);
98 public void onEntryRemoved(NotificationEntry entry, int reason) {
99 stopAlerting(entry);
103 public void onEntryCleanUp(NotificationEntry entry) {
104 mHeadsUpViewBinder.abortBindCallback(entry);
111 private void showAlertingView(NotificationEntry entry) { in showAlertingView() argument
[all …]
/frameworks/base/core/java/android/net/
DNetworkStats.java504 NetworkStats.Entry entry = null; in clone() local
506 entry = getValues(i, entry); in clone()
507 clone.insertEntry(entry); in clone()
563 public NetworkStats insertEntry(Entry entry) { in insertEntry() argument
581 setValues(size, entry); in insertEntry()
587 private void setValues(int i, Entry entry) { in setValues() argument
588 iface[i] = entry.iface; in setValues()
589 uid[i] = entry.uid; in setValues()
590 set[i] = entry.set; in setValues()
591 tag[i] = entry.tag; in setValues()
[all …]

12345678910>>...40