Home
last modified time | relevance | path

Searched refs:smartActions (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationUiAdjustment.java39 public final List<Notification.Action> smartActions; field in NotificationUiAdjustment
45 String key, List<Notification.Action> smartActions, List<CharSequence> smartReplies, in NotificationUiAdjustment() argument
48 this.smartActions = smartActions == null in NotificationUiAdjustment()
50 : smartActions; in NotificationUiAdjustment()
73 if (areDifferent(oldAdjustment.smartActions, newAdjustment.smartActions)) { in needReinflate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DSaveImageInBackgroundTaskTest.kt45 private val smartActions = mock<ScreenshotSmartActions>() constant
86 smartActions,
94 smartActions.getSmartActionsFuture( in setup()
106 smartActions.getSmartActionsFuture( in setup()
122 smartActions.getSmartActions( in testQueryQuickShare_noAction()
144 smartActions.getSmartActions( in testQueryQuickShare_withActions()
181 smartActions.getSmartActions( in testCreateQuickShareAction_immutableIntentDifferentAction_returnsNull()
211 smartActions.getSmartActions( in testCreateQuickShareAction_mutableIntent_returnsSafeIntent()
246 smartActions.getSmartActions( in testCreateQuickShareAction_immutableIntent_returnsSafeIntent()
DScreenshotNotificationSmartActionsTest.java88 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testExceptionHandlingInGetSmartActionsFuture() local
89 assertEquals(Collections.emptyList(), smartActions); in testExceptionHandlingInGetSmartActionsFuture() local
130 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testUnsupportedBitmapConfiguration() local
131 assertEquals(Collections.emptyList(), smartActions); in testUnsupportedBitmapConfiguration() local
160 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testSupportedBitmapConfiguration() local
161 assertEquals(smartActions.size(), 0); in testSupportedBitmapConfiguration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyStateInflater.kt73 smartReplyState.smartActions == null) { in <lambda>()
160 val smartActionButtons = newSmartReplyState.smartActions?.let { smartActions -> in inflateSmartReplyState() method
163 smartActions.actions.asSequence() in inflateSmartReplyState()
169 smartActions, in inflateSmartReplyState()
221 var smartActions: SmartActions? = when { in inflateSmartReplyState() variable
227 if (smartReplies == null && smartActions == null) { in inflateSmartReplyState()
229 val entryActions = entry.smartActions in inflateSmartReplyState()
249 smartActions = SmartActions(systemGeneratedActions, true /* fromAssistant */) in inflateSmartReplyState()
252 val hasPhishingAction = smartActions?.actions?.any { in inflateSmartReplyState()
265 return InflatedSmartReplyState(smartReplies, smartActions, suppressedActions, in inflateSmartReplyState()
[all …]
DInflatedSmartReplyState.kt27 val smartActions: SmartActions?, constant in com.android.systemui.statusbar.policy.InflatedSmartReplyState
34 get() = smartActions?.actions ?: emptyList()
DSmartReplyView.java250 List<View> smartActions = filterActionsOrReplies(SmartButtonType.ACTION); in onMeasure() local
252 List<View> smartSuggestions = new ArrayList<>(smartActions); in onMeasure()
/frameworks/base/core/java/android/service/notification/
DNotificationRankingUpdate.java122 ArrayList<Notification.Action> smartActions = in addSmartActionsFromBundleToRankingMap() local
126 ranking.setSmartActions(smartActions); in addSmartActionsFromBundleToRankingMap()
189 List<Notification.Action> smartActions = ranking.getSmartActions(); in writeToParcel() local
190 if (!smartActions.isEmpty()) { in writeToParcel()
191 smartActionsBundle.putParcelableList(key, smartActions); in writeToParcel()
DNotificationListenerService.java2041 public void setSmartActions(@Nullable ArrayList<Notification.Action> smartActions) { in setSmartActions() argument
2042 mSmartActions = smartActions; in setSmartActions()
2147 boolean noisy, ArrayList<Notification.Action> smartActions, in populate() argument
2169 mSmartActions = smartActions; in populate()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAdjustmentExtractorTest.java60 ArrayList<Notification.Action> smartActions = new ArrayList<>(); in testExtractsAdjustment() local
61 smartActions.add(createAction()); in testExtractsAdjustment()
62 signals.putParcelableArrayList(Adjustment.KEY_CONTEXTUAL_ACTIONS, smartActions); in testExtractsAdjustment()
75 assertEquals(smartActions, r.getSystemGeneratedSmartActions()); in testExtractsAdjustment()
DNotificationRecordTest.java1101 ArrayList<Notification.Action> smartActions = new ArrayList<>(); in testSmartActions() local
1102 smartActions.add(new Notification.Action.Builder( in testSmartActions()
1105 record.setSystemGeneratedSmartActions(smartActions); in testSmartActions()
1106 assertEquals(smartActions, record.getSystemGeneratedSmartActions()); in testSmartActions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/
DNotifUiAdjustment.kt33 val smartActions: List<Notification.Action>, constant in com.android.systemui.statusbar.notification.collection.inflation.NotifUiAdjustment
53 areDifferent(oldAdjustment.smartActions, newAdjustment.smartActions) -> true in needReinflate()
DNotifUiAdjustmentProvider.kt138 smartActions = entry.ranking.smartActions,
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
DRankingBuilder.java245 public RankingBuilder setSmartActions(@NonNull ArrayList<Notification.Action> smartActions) { in setSmartActions() argument
246 mSmartActions = smartActions; in setSmartActions()
250 public RankingBuilder setSmartActions(Notification.Action... smartActions) { in setSmartActions() argument
251 mSmartActions = new ArrayList<>(Arrays.asList(smartActions)); in setSmartActions()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryBuilder.java341 ArrayList<Notification.Action> smartActions) { in setSmartActions() argument
342 mRankingBuilder.setSmartActions(smartActions); in setSmartActions()
346 public NotificationEntryBuilder setSmartActions(Notification.Action... smartActions) { in setSmartActions() argument
347 mRankingBuilder.setSmartActions(smartActions); in setSmartActions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java562 SmartReplyView.SmartActions smartActions = new SmartReplyView.SmartActions( in setSmartActions() local
565 Stream<Button> buttons = IntStream.range(0, smartActions.actions.size()).mapToObj(idx -> in setSmartActions()
569 smartActions, in setSmartActions()
571 smartActions.actions.get(idx), in setSmartActions()
590 SmartReplyView.SmartActions smartActions = new SmartReplyView.SmartActions( in setSmartRepliesAndActions() local
593 IntStream.range(0, smartActions.actions.size()) in setSmartRepliesAndActions()
597 smartActions, in setSmartRepliesAndActions()
599 smartActions.actions.get(idx), in setSmartRepliesAndActions()
647 SmartReplyView.SmartActions smartActions = new SmartReplyView.SmartActions(actions, false); in buildExpectedView() local
649 IntStream.range(0, smartActions.actions.size()) in buildExpectedView()
[all …]
DInflatedSmartRepliesTest.java115 List<Notification.Action> smartActions = in chooseSmartRepliesAndActions_smartRepliesOff_noAppGeneratedSmartSuggestions() local
117 setupAppGeneratedSuggestions(smartReplies, smartActions); in chooseSmartRepliesAndActions_smartRepliesOff_noAppGeneratedSmartSuggestions()
166 List<Notification.Action> smartActions = in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions() local
168 setupAppGeneratedSuggestions(smartReplies, smartActions); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions()
177 .containsExactlyElementsIn(smartActions).inOrder(); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions()
600 CharSequence[] smartReplies, List<Notification.Action> smartActions) { in setupAppGeneratedSuggestions() argument
602 when(mNotification.getContextualActions()).thenReturn(smartActions); in setupAppGeneratedSuggestions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DSaveImageInBackgroundTask.java147 List<Notification.Action> smartActions = new ArrayList<>(); in doInBackground() local
153 smartActions.addAll(buildSmartActions( in doInBackground()
163 mImageData.smartActions = smartActions; in doInBackground()
DScreenshotController.java128 public List<Notification.Action> smartActions; field in ScreenshotController.SavedImageData
139 smartActions = null; in reset()
DScreenshotView.java840 for (Notification.Action smartAction : imageData.smartActions) { in setChipIntents()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationContentView.java1617 SmartReplyView.SmartActions smartActions =
1619 if (smartReplies != null || smartActions != null) {
1621 int numSmartActions = smartActions == null ? 0 : smartActions.actions.size();
1623 ? smartActions.fromAssistant
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java10622 ArrayList<Notification.Action> smartActions = record.getSystemGeneratedSmartActions();
10628 smartActions = null;
10648 smartActions,