/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/applications/ |
D | ApplicationsStateTest.java | 33 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/ |
D | AlertingNotificationManagerTest.java | 72 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 …]
|
D | NotificationRemoteInputManagerTest.java | 68 private NotificationEntry mEntry; field in NotificationRemoteInputManagerTest 84 mEntry = new NotificationEntry(mSbn); in setUp() 85 mEntry.setRow(mRow); in setUp() 97 when(mController.isRemoteInputActive(mEntry)).thenReturn(true); in testPerformOnRemoveNotification() 98 mRemoteInputManager.onPerformRemoveNotification(mEntry, mSbn.getKey()); in testPerformOnRemoveNotification() 100 verify(mController).removeRemoteInput(mEntry, null); in testPerformOnRemoveNotification() 105 when(mController.isRemoteInputActive(mEntry)).thenReturn(true); in testShouldExtendLifetime_remoteInputActive() 107 assertTrue(mRemoteInputActiveExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_remoteInputActive() 113 when(mController.isSpinning(mEntry.key)).thenReturn(true); in testShouldExtendLifetime_isSpinning() 115 assertTrue(mRemoteInputHistoryExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_isSpinning() [all …]
|
D | SmartReplyControllerTest.java | 64 private NotificationEntry mEntry; field in SmartReplyControllerTest 100 mEntry = new NotificationEntry(mSbn); in setUp() 105 mSmartReplyController.smartReplySent(mEntry, TEST_CHOICE_INDEX, TEST_CHOICE_TEXT, in testSendSmartReply_updatesRemoteInput() 116 mSmartReplyController.smartReplySent(mEntry, TEST_CHOICE_INDEX, TEST_CHOICE_TEXT, in testSendSmartReply_logsToStatusBar() 127 mSmartReplyController.smartReplySent(mEntry, TEST_CHOICE_INDEX, TEST_CHOICE_TEXT, in testSendSmartReply_logsToStatusBar_modifiedBeforeSending() 139 mSmartReplyController.smartSuggestionsAdded(mEntry, TEST_CHOICE_COUNT, TEST_ACTION_COUNT, in testShowSmartSuggestions_logsToStatusBar() 149 mSmartReplyController.smartReplySent(mEntry, TEST_CHOICE_INDEX, TEST_CHOICE_TEXT, in testSendSmartReply_reportsSending() 157 mSmartReplyController.smartReplySent(mEntry, TEST_CHOICE_INDEX, TEST_CHOICE_TEXT, in testSendingSmartReply_afterRemove_shouldReturnFalse() 159 mSmartReplyController.stopSending(mEntry); in testSendingSmartReply_afterRemove_shouldReturnFalse()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManagerTest.java | 139 private NotificationEntry mEntry; field in NotificationEntryManagerTest 242 mEntry = new NotificationEntry(mSbn); in setUp() 243 mEntry.expandedIcon = mock(StatusBarIconView.class); in setUp() 259 setUserSentiment(mEntry.key, NotificationListenerService.Ranking.USER_SENTIMENT_NEUTRAL); in setUp() 295 assertEquals(mEntry.userSentiment, in testAddNotification() 304 mEntryManager.getNotificationData().add(mEntry); in testUpdateNotification() 306 setUserSentiment(mEntry.key, NotificationListenerService.Ranking.USER_SENTIMENT_NEGATIVE); in testUpdateNotification() 315 verify(mEntryListener).onPreEntryUpdated(mEntry); in testUpdateNotification() 317 verify(mEntryListener).onPostEntryUpdated(mEntry); in testUpdateNotification() 319 assertNotNull(mEntry.getRow()); in testUpdateNotification() [all …]
|
D | VisualStabilityManagerTest.java | 54 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/ |
D | ReprocessFormatsMap.java | 113 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/ |
D | InflatedSmartRepliesTest.java | 70 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 …]
|
D | HeadsUpManagerTest.java | 74 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/src/com/android/systemui/bubbles/ |
D | Bubble.java | 55 private NotificationEntry mEntry; field in Bubble 93 mEntry = e; in Bubble() 102 mEntry.notification.getPackageName(), in Bubble() 110 Drawable appIcon = pm.getApplicationIcon(mEntry.notification.getPackageName()); in Bubble() 111 mUserBadgedAppIcon = pm.getUserBadgedIcon(appIcon, mEntry.notification.getUser()); in Bubble() 113 mAppName = mEntry.notification.getPackageName(); in Bubble() 122 return mEntry; in getEntry() 130 return mEntry.notification.getPackageName(); in getPackageName() 192 mEntry = entry; in updateEntry() 242 return !mEntry.isRowDismissed() && !shouldSuppressNotification() in showInShadeWhenBubble() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | HeadsUpManagerPhoneTest.java | 95 mHeadsUpManager.showNotification(mEntry); in testSnooze() 99 assertTrue(mHeadsUpManager.isSnoozed(mEntry.notification.getPackageName())); in testSnooze() 104 mHeadsUpManager.showNotification(mEntry); in testSwipedOutNotification() 105 mHeadsUpManager.addSwipedOutNotification(mEntry.key); in testSwipedOutNotification() 108 mHeadsUpManager.removeNotification(mEntry.key, false /* releaseImmediately */); in testSwipedOutNotification() 110 assertFalse(mHeadsUpManager.isAlerting(mEntry.key)); in testSwipedOutNotification() 115 mHeadsUpManager.showNotification(mEntry); in testCanRemoveImmediately_swipedOut() 116 mHeadsUpManager.addSwipedOutNotification(mEntry.key); in testCanRemoveImmediately_swipedOut() 119 assertTrue(mHeadsUpManager.canRemoveImmediately(mEntry.key)); in testCanRemoveImmediately_swipedOut() 126 mHeadsUpManager.showNotification(mEntry); in testCanRemoveImmediately_notTopEntry() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputView.java | 91 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 …]
|
D | HeadsUpManager.java | 111 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/tools/aapt/tests/ |
D | MockDirectoryWalker.h | 48 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/ |
D | AlertingNotificationManager.java | 114 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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ForegroundServiceLifetimeExtenderTest.java | 43 private NotificationEntry mEntry; field in ForegroundServiceLifetimeExtenderTest 57 mEntry = new NotificationEntry(mSbn); in setup() 66 assertTrue(mExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_should_foreground() 73 assertFalse(mExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_shouldNot_foreground() 80 assertFalse(mExtender.shouldExtendLifetime(mEntry)); in testShouldExtendLifetime_shouldNot_notForeground()
|
/frameworks/av/media/libnblog/ |
D | Entry.cpp | 146 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/ |
D | DirectoryWalker.h | 41 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/ |
D | SimpleRecipientChip.java | 36 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/tests/src/com/android/systemui/statusbar/notification/logging/ |
D | NotificationLoggerTest.java | 83 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | RowInflaterTask.java | 39 private NotificationEntry mEntry; field in RowInflaterTask 53 mEntry = entry; in inflate() 67 mEntry.onInflationTaskFinished(); in onInflateFinished()
|
D | ExpandableNotificationRow.java | 200 private NotificationEntry mEntry; field in ExpandableNotificationRow 269 mOnExpandClickListener.onExpandClicked(mEntry, nowExpanded); 286 mOnExpandClickListener.onExpandClicked(mEntry, nowExpanded); 446 mEntry = entry; in setEntry() 507 if (mEntry != null && mEntry.mIsSystemNotification == null) { in cacheIsSystemNotification() 523 mEntry.channel.getId()); in getIsNonblockable() 527 if (mEntry != null && mEntry.mIsSystemNotification == null) { in getIsNonblockable() 532 mEntry.mIsSystemNotification = isSystemNotification(mContext, mStatusBarNotification); in getIsNonblockable() 535 isNonblockable |= mEntry.channel.isImportanceLockedByOEM(); in getIsNonblockable() 536 isNonblockable |= mEntry.channel.isImportanceLockedByCriticalDeviceFunction(); in getIsNonblockable() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/ |
D | BubbleTest.java | 51 private NotificationEntry mEntry; field in BubbleTest 64 mEntry = new NotificationEntry(mStatusBarNotification); in setUp() 66 mBubble = new Bubble(mContext, mEntry); in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | HeadsUpManagerPhone.java | 445 mKeysToRemoveWhenLeavingKeyguard.remove(alertEntry.mEntry.key); in onAlertEntryRemoved() 541 mIsAutoHeadsUp = mEntry.isAutoHeadsUp(); in updateEntry() 544 if (mEntriesToRemoveAfterExpand.contains(mEntry)) { in updateEntry() 545 mEntriesToRemoveAfterExpand.remove(mEntry); in updateEntry() 547 if (mEntriesToRemoveWhenReorderingAllowed.contains(mEntry)) { in updateEntry() 548 mEntriesToRemoveWhenReorderingAllowed.remove(mEntry); in updateEntry() 550 mKeysToRemoveWhenLeavingKeyguard.remove(mEntry.key); in updateEntry()
|
D | NotificationGroupAlertTransferHelper.java | 422 final NotificationEntry mEntry; field in NotificationGroupAlertTransferHelper.PendingAlertInfo 435 mEntry = entry; in PendingAlertInfo() 448 if (mEntry.notification.getGroupKey() != mOriginalNotification.getGroupKey()) { in isStillValid() 452 if (mEntry.notification.getNotification().isGroupSummary() in isStillValid()
|