Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DInflatedSmartRepliesTest.java101 List<Notification.Action> smartActions = in chooseSmartRepliesAndActions_smartRepliesOff_noAppGeneratedSmartSuggestions() local
103 setupAppGeneratedSuggestions(smartReplies, smartActions); in chooseSmartRepliesAndActions_smartRepliesOff_noAppGeneratedSmartSuggestions()
110 assertThat(repliesAndActions.smartActions).isNull(); in chooseSmartRepliesAndActions_smartRepliesOff_noAppGeneratedSmartSuggestions()
125 assertThat(repliesAndActions.smartActions).isNull(); in chooseSmartRepliesAndActions_smartRepliesOff_noSystemGeneratedSmartSuggestions()
138 assertThat(repliesAndActions.smartActions).isNull(); in chooseSmartRepliesAndActions_appGeneratedSmartReplies()
144 List<Notification.Action> smartActions = in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions() local
146 setupAppGeneratedSuggestions(smartReplies, smartActions); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions()
153 assertThat(repliesAndActions.smartActions.actions).isEqualTo(smartActions); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions()
154 assertThat(repliesAndActions.smartActions.fromAssistant).isFalse(); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions()
171 assertThat(repliesAndActions.smartActions).isNull(); in chooseSmartRepliesAndActions_sysGeneratedSmartReplies()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DInflatedSmartReplies.java110 if (newSmartRepliesAndActions.smartActions != null) { in inflate()
113 newSmartRepliesAndActions.smartActions, smartReplyController, entry, in inflate()
142 && smartRepliesAndActions.smartActions == null) { in shouldShowSmartReplyView()
200 SmartReplyView.SmartActions smartActions = null; in chooseSmartRepliesAndActions() local
209 smartActions = new SmartReplyView.SmartActions(appGeneratedSmartActions, in chooseSmartRepliesAndActions()
237 smartActions = new SmartReplyView.SmartActions( in chooseSmartRepliesAndActions()
241 return new SmartRepliesAndActions(smartReplies, smartActions); in chooseSmartRepliesAndActions()
283 @Nullable public final SmartReplyView.SmartActions smartActions; field in InflatedSmartReplies.SmartRepliesAndActions
287 @Nullable SmartReplyView.SmartActions smartActions) { in SmartRepliesAndActions() argument
289 this.smartActions = smartActions; in SmartRepliesAndActions()
[all …]
DSmartReplyView.java240 @NonNull SmartActions smartActions, SmartReplyController smartReplyController, in inflateSmartActions() argument
244 int numSmartActions = smartActions.actions.size(); in inflateSmartActions()
246 Notification.Action action = smartActions.actions.get(n); in inflateSmartActions()
249 this, getContext(), themedPackageContext, n, smartActions, in inflateSmartActions()
333 Context packageContext, int actionIndex, SmartActions smartActions, in inflateActionButton() argument
336 Notification.Action action = smartActions.actions.get(actionIndex); in inflateActionButton()
355 entry, actionIndex, action, smartActions.fromAssistant); in inflateActionButton()
409 List<View> smartActions = filterActionsOrReplies(SmartButtonType.ACTION); in onMeasure() local
411 List<View> smartSuggestions = new ArrayList<>(smartActions); in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationUiAdjustment.java41 public final List<Notification.Action> smartActions; field in NotificationUiAdjustment
46 String key, List<Notification.Action> smartActions, CharSequence[] smartReplies) { in NotificationUiAdjustment() argument
48 this.smartActions = smartActions == null in NotificationUiAdjustment()
50 : new ArrayList<>(smartActions); in NotificationUiAdjustment()
66 if (areDifferent(oldAdjustment.smartActions, newAdjustment.smartActions)) { in needReinflate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotNotificationSmartActionsTest.java89 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testExceptionHandlingInGetSmartActionsFuture() local
90 Assert.assertEquals(Collections.emptyList(), smartActions); in testExceptionHandlingInGetSmartActionsFuture() local
129 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testUnsupportedBitmapConfiguration() local
130 Assert.assertEquals(Collections.emptyList(), smartActions); in testUnsupportedBitmapConfiguration() local
158 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testSupportedBitmapConfiguration() local
159 Assert.assertEquals(smartActions.size(), 0); in testSupportedBitmapConfiguration()
/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.java818 ArrayList<Notification.Action> smartActions = new ArrayList<>(); in testSmartActions() local
819 smartActions.add(new Notification.Action.Builder( in testSmartActions()
822 record.setSystemGeneratedSmartActions(smartActions); in testSmartActions()
823 assertEquals(smartActions, record.getSystemGeneratedSmartActions()); in testSmartActions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationContentView.java1181 mCurrentSmartRepliesAndActions.smartActions == null ? 0 :
1182 mCurrentSmartRepliesAndActions.smartActions.actions.size(),
1296 || smartRepliesAndActions.smartActions != null) {
1299 int numSmartActions = smartRepliesAndActions.smartActions == null
1300 ? 0 : smartRepliesAndActions.smartActions.actions.size();
1302 ? smartRepliesAndActions.smartActions.fromAssistant
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java478 List<Notification.Action> smartActions = GlobalScreenshot.getSmartActions(mScreenshotId, in populateNotificationActions() local
480 smartActions = buildSmartActions(smartActions, context); in populateNotificationActions()
481 for (Notification.Action action : smartActions) { in populateNotificationActions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java190 private void setSmartActions(String key, ArrayList<Notification.Action> smartActions) { in setSmartActions() argument
204 false, smartActions, null, false, false); in setSmartActions()
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java1789 boolean noisy, ArrayList<Notification.Action> smartActions, in populate() argument
1809 mSmartActions = smartActions; in populate()