Home
last modified time | relevance | path

Searched refs:mEntry (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/applications/
DApplicationsStateTest.java33 private ApplicationsState.AppEntry mEntry; field in ApplicationsStateTest
37 mEntry = mock(ApplicationsState.AppEntry.class); in setUp()
38 mEntry.info = mock(ApplicationInfo.class); in setUp()
43 mEntry.info.flags = ApplicationInfo.FLAG_IS_GAME; in testGamesFilterAcceptsGameDeprecated()
45 assertThat(ApplicationsState.FILTER_GAMES.filterApp(mEntry)).isTrue(); in testGamesFilterAcceptsGameDeprecated()
50 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testGameFilterAcceptsCategorizedGame()
52 assertThat(ApplicationsState.FILTER_GAMES.filterApp(mEntry)).isTrue(); in testGameFilterAcceptsCategorizedGame()
57 mEntry.info.flags = ApplicationInfo.FLAG_IS_GAME; in testGameFilterAcceptsCategorizedGameAndDeprecatedIsGame()
58 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testGameFilterAcceptsCategorizedGameAndDeprecatedIsGame()
60 assertThat(ApplicationsState.FILTER_GAMES.filterApp(mEntry)).isTrue(); in testGameFilterAcceptsCategorizedGameAndDeprecatedIsGame()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DAlertingNotificationManagerTest.java72 protected NotificationEntry mEntry; field in AlertingNotificationManagerTest
132 mEntry = new NotificationEntry(mSbn); in setUp()
133 mEntry.setRow(mRow); in setUp()
140 mAlertingNotificationManager.showNotification(mEntry); in testShowNotification_addsEntry()
142 assertTrue(mAlertingNotificationManager.isAlerting(mEntry.key)); in testShowNotification_addsEntry()
144 assertEquals(mEntry, mAlertingNotificationManager.getEntry(mEntry.key)); in testShowNotification_addsEntry()
149 mAlertingNotificationManager.showNotification(mEntry); in testShowNotification_autoDismisses()
156 assertFalse(mAlertingNotificationManager.isAlerting(mEntry.key)); in testShowNotification_autoDismisses()
161 mAlertingNotificationManager.showNotification(mEntry); in testRemoveNotification_removeDeferred()
164 mAlertingNotificationManager.removeNotification(mEntry.key, false /* releaseImmediately */); in testRemoveNotification_removeDeferred()
[all …]
DNotificationRemoteInputManagerTest.java64 private NotificationEntry mEntry; field in NotificationRemoteInputManagerTest
79 mEntry = new NotificationEntry(mSbn); in setUp()
80 mEntry.setRow(mRow); in setUp()
92 when(mController.isRemoteInputActive(mEntry)).thenReturn(true); in testPerformOnRemoveNotification()
93 mRemoteInputManager.onPerformRemoveNotification(mEntry, mSbn.getKey()); in testPerformOnRemoveNotification()
95 verify(mController).removeRemoteInput(mEntry, null); in testPerformOnRemoveNotification()
100 when(mController.isRemoteInputActive(mEntry)).thenReturn(true); in testShouldExtendLifetime_remoteInputActive()
102 assertTrue(mRemoteInputActiveExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_remoteInputActive()
108 when(mController.isSpinning(mEntry.key)).thenReturn(true); in testShouldExtendLifetime_isSpinning()
110 assertTrue(mRemoteInputHistoryExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_isSpinning()
[all …]
DSmartReplyControllerTest.java63 private NotificationEntry mEntry; field in SmartReplyControllerTest
97 mEntry = new NotificationEntry(mSbn); in setUp()
102 mSmartReplyController.smartReplySent(mEntry, TEST_CHOICE_INDEX, TEST_CHOICE_TEXT, in testSendSmartReply_updatesRemoteInput()
113 mSmartReplyController.smartReplySent(mEntry, TEST_CHOICE_INDEX, TEST_CHOICE_TEXT, in testSendSmartReply_logsToStatusBar()
124 mSmartReplyController.smartReplySent(mEntry, TEST_CHOICE_INDEX, TEST_CHOICE_TEXT, in testSendSmartReply_logsToStatusBar_modifiedBeforeSending()
136 mSmartReplyController.smartSuggestionsAdded(mEntry, TEST_CHOICE_COUNT, TEST_ACTION_COUNT, in testShowSmartSuggestions_logsToStatusBar()
146 mSmartReplyController.smartReplySent(mEntry, TEST_CHOICE_INDEX, TEST_CHOICE_TEXT, in testSendSmartReply_reportsSending()
154 mSmartReplyController.smartReplySent(mEntry, TEST_CHOICE_INDEX, TEST_CHOICE_TEXT, in testSendingSmartReply_afterRemove_shouldReturnFalse()
156 mSmartReplyController.stopSending(mEntry); in testSendingSmartReply_afterRemove_shouldReturnFalse()
DAmbientPulseManagerTest.java61 mAmbientPulseManager.showNotification(mEntry); in testExtendPulse()
63 () -> mLivesPastNormalTime = mAmbientPulseManager.isAlerting(mEntry.key); in testExtendPulse()
76 assertFalse(mAmbientPulseManager.isAlerting(mEntry.key)); in testExtendPulse()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java137 private NotificationEntry mEntry; field in NotificationEntryManagerTest
240 mEntry = new NotificationEntry(mSbn); in setUp()
241 mEntry.expandedIcon = mock(StatusBarIconView.class); in setUp()
256 setUserSentiment(mEntry.key, NotificationListenerService.Ranking.USER_SENTIMENT_NEUTRAL); in setUp()
292 assertEquals(mEntry.userSentiment, in testAddNotification()
301 mEntryManager.getNotificationData().add(mEntry); in testUpdateNotification()
303 setUserSentiment(mEntry.key, NotificationListenerService.Ranking.USER_SENTIMENT_NEGATIVE); in testUpdateNotification()
312 verify(mEntryListener).onPreEntryUpdated(mEntry); in testUpdateNotification()
314 verify(mEntryListener).onPostEntryUpdated(mEntry); in testUpdateNotification()
316 assertNotNull(mEntry.getRow()); in testUpdateNotification()
[all …]
DVisualStabilityManagerTest.java54 private NotificationEntry mEntry; field in VisualStabilityManagerTest
65 mEntry = new NotificationEntry(mock(StatusBarNotification.class)); in setUp()
66 mEntry.setRow(mRow); in setUp()
68 when(mRow.getEntry()).thenReturn(mEntry); in setUp()
149 mVisualStabilityManager.onHeadsUpStateChanged(mEntry, true); in testReorderingVisibleHeadsUpNotAllowed()
158 mVisualStabilityManager.onHeadsUpStateChanged(mEntry, true); in testReorderingVisibleHeadsUpAllowed()
167 mVisualStabilityManager.onHeadsUpStateChanged(mEntry, true); in testReorderingVisibleHeadsUpAllowedOnce()
/frameworks/base/core/java/android/hardware/camera2/params/
DReprocessFormatsMap.java113 mEntry = entry; in ReprocessFormatsMap()
132 int left = mEntry.length; in getInputs()
133 for (int i = 0, j = 0; i < mEntry.length; j++) { in getInputs()
134 final int format = mEntry[i]; in getInputs()
144 final int length = mEntry[i]; in getInputs()
180 int left = mEntry.length; in getOutputs()
181 for (int i = 0; i < mEntry.length; ) { in getOutputs()
182 final int inputFormat = mEntry[i]; in getOutputs()
192 final int length = mEntry[i]; in getOutputs()
210 outputs[k] = mEntry[i + k]; in getOutputs()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DInflatedSmartRepliesTest.java70 NotificationEntry mEntry; field in InflatedSmartRepliesTest
91 mEntry = new NotificationEntry(mStatusBarNotification); in setUp()
107 InflatedSmartReplies.chooseSmartRepliesAndActions(mSmartReplyConstants, mEntry); in chooseSmartRepliesAndActions_smartRepliesOff_noAppGeneratedSmartSuggestions()
115 mEntry.systemGeneratedSmartReplies = in chooseSmartRepliesAndActions_smartRepliesOff_noSystemGeneratedSmartSuggestions()
117 mEntry.systemGeneratedSmartActions = in chooseSmartRepliesAndActions_smartRepliesOff_noSystemGeneratedSmartSuggestions()
122 InflatedSmartReplies.chooseSmartRepliesAndActions(mSmartReplyConstants, mEntry); in chooseSmartRepliesAndActions_smartRepliesOff_noSystemGeneratedSmartSuggestions()
134 InflatedSmartReplies.chooseSmartRepliesAndActions(mSmartReplyConstants, mEntry); in chooseSmartRepliesAndActions_appGeneratedSmartReplies()
149 InflatedSmartReplies.chooseSmartRepliesAndActions(mSmartReplyConstants, mEntry); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions()
163 mEntry.systemGeneratedSmartReplies = in chooseSmartRepliesAndActions_sysGeneratedSmartReplies()
166 InflatedSmartReplies.chooseSmartRepliesAndActions(mSmartReplyConstants, mEntry); in chooseSmartRepliesAndActions_sysGeneratedSmartReplies()
[all …]
DHeadsUpManagerTest.java74 mHeadsUpManager.showNotification(mEntry); in testShowNotification_autoDismissesWithAccessibilityTimeout()
76 () -> mLivesPastNormalTime = mHeadsUpManager.isAlerting(mEntry.key); in testShowNotification_autoDismissesWithAccessibilityTimeout()
85 assertFalse(mHeadsUpManager.isAlerting(mEntry.key)); in testShowNotification_autoDismissesWithAccessibilityTimeout()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DHeadsUpManagerPhoneTest.java88 mHeadsUpManager.showNotification(mEntry); in testSnooze()
92 assertTrue(mHeadsUpManager.isSnoozed(mEntry.notification.getPackageName())); in testSnooze()
97 mHeadsUpManager.showNotification(mEntry); in testSwipedOutNotification()
98 mHeadsUpManager.addSwipedOutNotification(mEntry.key); in testSwipedOutNotification()
101 mHeadsUpManager.removeNotification(mEntry.key, false /* releaseImmediately */); in testSwipedOutNotification()
103 assertFalse(mHeadsUpManager.isAlerting(mEntry.key)); in testSwipedOutNotification()
108 mHeadsUpManager.showNotification(mEntry); in testCanRemoveImmediately_swipedOut()
109 mHeadsUpManager.addSwipedOutNotification(mEntry.key); in testCanRemoveImmediately_swipedOut()
112 assertTrue(mHeadsUpManager.canRemoveImmediately(mEntry.key)); in testCanRemoveImmediately_swipedOut()
119 mHeadsUpManager.showNotification(mEntry); in testCanRemoveImmediately_notTopEntry()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java91 private NotificationEntry mEntry; field in RemoteInputView
150 if (mEntry.editedSuggestionInfo == null) { in sendRemoteInput()
159 mEntry.remoteInputText = mEditText.getText(); in sendRemoteInput()
160 mEntry.lastRemoteInputSent = SystemClock.elapsedRealtime(); in sendRemoteInput()
161 mController.addSpinning(mEntry.key, mToken); in sendRemoteInput()
162 mController.removeRemoteInput(mEntry, mToken); in sendRemoteInput()
164 mController.remoteInputSent(mEntry); in sendRemoteInput()
165 mEntry.setHasSentReply(); in sendRemoteInput()
173 mEntry.notification.getPackageName(), in sendRemoteInput()
174 mEntry.notification.getUser().getIdentifier()); in sendRemoteInput()
[all …]
DHeadsUpManager.java111 setEntryPinned((HeadsUpEntry) alertEntry, shouldHeadsUpBecomePinned(alertEntry.mEntry)); in updateNotification()
128 NotificationEntry entry = headsUpEntry.mEntry; in setEntryPinned()
148 NotificationEntry entry = alertEntry.mEntry; in onAlertEntryAdded()
158 NotificationEntry entry = alertEntry.mEntry; in onAlertEntryRemoved()
209 String packageName = entry.mEntry.notification.getPackageName(); in snooze()
231 return (topEntry != null) ? topEntry.mEntry : null; in getTopEntry()
267 pw.print(" HeadsUpEntry="); pw.println(entry.mEntry); in dumpInternal()
287 if (entry.mEntry.isRowPinned()) { in hasPinnedNotificationInternal()
307 if (userUnPinned && entry.mEntry != null) { in unpinAll()
308 if (entry.mEntry.mustStayOnScreen()) { in unpinAll()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleView.java57 private NotificationEntry mEntry; field in BubbleView
99 mEntry = entry; in setNotif()
108 return mEntry; in getEntry()
116 return (mEntry != null) ? mEntry.key : null; in getKey()
123 mEntry = entry; in update()
133 return (mEntry != null) ? mEntry.getRow() : null; in getRowView()
210 if (mEntry == null) { in updateViews()
213 Notification.BubbleMetadata metadata = mEntry.getBubbleMetadata(); in updateViews()
214 Notification n = mEntry.notification.getNotification(); in updateViews()
233 animateDot(mEntry.showInShadeWhenBubble() /* showDot */, null /* after */); in updateViews()
DBubbleExpandedView.java90 private NotificationEntry mEntry; field in BubbleExpandedView
128 if (mEntry != null) {
130 post(() -> mBubbleController.removeBubble(mEntry.key,
268 mEntry = entry; in setEntry()
318 if (entry.key.equals(mEntry.key)) { in update()
319 mEntry = entry; in update()
324 + entry.key + " old entry: " + mEntry.key); in update()
329 mBubbleIntent = getBubbleIntent(mEntry); in updateExpandedView()
340 mNotifRow = mEntry.getRow(); in updateExpandedView()
355 Notification.BubbleMetadata data = mEntry.getBubbleMetadata(); in updateHeight()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryTest.java49 private NotificationEntry mEntry; field in NotificationEntryTest
62 mEntry = new NotificationEntry(mStatusBarNotification); in setUp()
70 assertEquals(msg, mEntry.getUpdateMessage(mContext)); in testGetUpdateMessage_default()
81 assertEquals(msg, mEntry.getUpdateMessage(mContext)); in testGetUpdateMessage_bigText()
89 assertNull(mEntry.getUpdateMessage(mContext)); in testGetUpdateMessage_media()
104 assertEquals("Really? I prefer them that way.", mEntry.getUpdateMessage(mContext)); in testGetUpdateMessage_inboxStyle()
119 assertEquals("Mady: Oh, hello!", mEntry.getUpdateMessage(mContext)); in testGetUpdateMessage_messagingStyle()
/frameworks/base/tools/aapt/tests/
DMockDirectoryWalker.h48 mEntry.d_type = DT_REG; in nextEntry()
49 mEntry.d_ino = mPos; in nextEntry()
53 mEntry.d_name[i] = mData[mPos].first[i]; in nextEntry()
54 mEntry.d_name[i] = '\0'; in nextEntry()
63 return &mEntry; in nextEntry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DAlertingNotificationManager.java114 alertEntry.mEntry.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); in updateNotification()
143 return entry != null ? entry.mEntry : null; in getEntry()
152 return mAlertEntries.values().stream().map(headsUpEntry -> headsUpEntry.mEntry); in getAllEntries()
205 NotificationEntry entry = alertEntry.mEntry; in removeAlertEntry()
241 || alertEntry.mEntry.isRowDismissed(); in canRemoveImmediately()
272 @Nullable public NotificationEntry mEntry; field in AlertingNotificationManager.AlertEntry
284 mEntry = entry; in setEntry()
335 ? mEntry.key.compareTo(alertEntry.mEntry.key) : -1); in compareTo()
339 mEntry = null; in reset()
DAmbientPulseManager.java86 NotificationEntry entry = alertEntry.mEntry; in onAlertEntryAdded()
95 NotificationEntry entry = alertEntry.mEntry; in onAlertEntryRemoved()
/frameworks/av/media/libnblog/
DEntry.cpp146 return EntryIterator(mEntry); in begin()
151 return (const char*) mEntry + offsetof(entry, data); in formatString()
156 return mEntry[offsetof(entry, length)]; in formatStringLength()
227 return EntryIterator(mEntry).payload<HistTsEntry>().ts; in timestamp()
232 return EntryIterator(mEntry).payload<HistTsEntry>().hash; in hash()
237 EntryIterator it(mEntry); in author()
249 memcpy(buffer, mEntry, sizeof(entry) + sizeof(HistTsEntry)); in copyWithAuthor()
258 return EntryIterator(mEntry).next(); in copyWithAuthor()
/frameworks/base/tools/aapt/
DDirectoryWalker.h41 struct dirent mEntry; variable
78 mEntry = *entryPtr; in nextEntry()
80 String8 fullPath = mBasePath.appendPathCopy(mEntry.d_name); in nextEntry()
82 return &mEntry; in nextEntry()
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DSimpleRecipientChip.java36 private final RecipientEntry mEntry; field in SimpleRecipientChip
49 mEntry = entry; in SimpleRecipientChip()
94 return mEntry; in getEntry()
108 return !TextUtils.isEmpty(mOriginalText) ? mOriginalText : mEntry.getDestination(); in getOriginalText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DRowInflaterTask.java39 private NotificationEntry mEntry; field in RowInflaterTask
53 mEntry = entry; in inflate()
67 mEntry.onInflationTaskFinished(); in onInflateFinished()
DExpandableNotificationRow.java204 private NotificationEntry mEntry; field in ExpandableNotificationRow
284 mOnExpandClickListener.onExpandClicked(mEntry, nowExpanded);
301 mOnExpandClickListener.onExpandClicked(mEntry, nowExpanded);
462 mEntry = entry; in setEntry()
529 if (mEntry != null && mEntry.mIsSystemNotification == null) { in cacheIsSystemNotification()
545 mEntry.channel.getId()); in getIsNonblockable()
549 if (mEntry != null && mEntry.mIsSystemNotification == null) { in getIsNonblockable()
554 mEntry.mIsSystemNotification = isSystemNotification(mContext, mStatusBarNotification); in getIsNonblockable()
557 isNonblockable |= mEntry.channel.isImportanceLockedByOEM(); in getIsNonblockable()
558 isNonblockable |= mEntry.channel.isImportanceLockedByCriticalDeviceFunction(); in getIsNonblockable()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/
DNotificationLoggerTest.java83 private NotificationEntry mEntry; field in NotificationLoggerTest
99 mEntry = new NotificationEntry(sbn); in setUp()
100 mEntry.setRow(mRow); in setUp()
113 NotificationVisibility.obtain(mEntry.key, 0, 1, true) in testOnChildLocationsChangedReportsVisibilityChanged()
131 when(mNotificationData.getActiveNotifications()).thenReturn(Lists.newArrayList(mEntry)); in testOnChildLocationsChangedReportsVisibilityChanged()
153 when(mNotificationData.getActiveNotifications()).thenReturn(Lists.newArrayList(mEntry)); in testStoppingNotificationLoggingReportsCurrentNotifications()

12