/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | InflatedSmartRepliesTest.java | 101 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/ |
D | InflatedSmartReplies.java | 109 if (newSmartRepliesAndActions.smartActions != null) { in inflate() 111 smartReplyView.inflateSmartActions(newSmartRepliesAndActions.smartActions, in inflate() 141 && smartRepliesAndActions.smartActions == null) { in shouldShowSmartReplyView() 199 SmartReplyView.SmartActions smartActions = null; in chooseSmartRepliesAndActions() local 208 smartActions = new SmartReplyView.SmartActions(appGeneratedSmartActions, in chooseSmartRepliesAndActions() 236 smartActions = new SmartReplyView.SmartActions( in chooseSmartRepliesAndActions() 240 return new SmartRepliesAndActions(smartReplies, smartActions); in chooseSmartRepliesAndActions() 282 @Nullable public final SmartReplyView.SmartActions smartActions; field in InflatedSmartReplies.SmartRepliesAndActions 286 @Nullable SmartReplyView.SmartActions smartActions) { in SmartRepliesAndActions() argument 288 this.smartActions = smartActions; in SmartRepliesAndActions() [all …]
|
D | SmartReplyView.java | 238 public List<Button> inflateSmartActions(@NonNull SmartActions smartActions, in inflateSmartActions() argument 242 int numSmartActions = smartActions.actions.size(); in inflateSmartActions() 244 Notification.Action action = smartActions.actions.get(n); in inflateSmartActions() 247 this, getContext(), n, smartActions, smartReplyController, entry, in inflateSmartActions() 330 int actionIndex, SmartActions smartActions, in inflateActionButton() argument 333 Notification.Action action = smartActions.actions.get(actionIndex); in inflateActionButton() 350 entry, actionIndex, action, smartActions.fromAssistant); in inflateActionButton() 404 List<View> smartActions = filterActionsOrReplies(SmartButtonType.ACTION); in onMeasure() local 406 List<View> smartSuggestions = new ArrayList<>(smartActions); in onMeasure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationUiAdjustment.java | 41 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/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationAdjustmentExtractorTest.java | 60 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()
|
D | NotificationRecordTest.java | 792 ArrayList<Notification.Action> smartActions = new ArrayList<>(); in testSmartActions() local 793 smartActions.add(new Notification.Action.Builder( in testSmartActions() 796 record.setSystemGeneratedSmartActions(smartActions); in testSmartActions() 797 assertEquals(smartActions, record.getSystemGeneratedSmartActions()); in testSmartActions()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationContentView.java | 1275 mCurrentSmartRepliesAndActions.smartActions == null ? 0 : 1276 mCurrentSmartRepliesAndActions.smartActions.actions.size(), 1390 || smartRepliesAndActions.smartActions != null) { 1393 int numSmartActions = smartRepliesAndActions.smartActions == null 1394 ? 0 : smartRepliesAndActions.smartActions.actions.size(); 1396 ? smartRepliesAndActions.smartActions.fromAssistant
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManagerTest.java | 188 private void setSmartActions(String key, ArrayList<Notification.Action> smartActions) { in setSmartActions() argument 202 false, smartActions, null, false); in setSmartActions()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerService.java | 1781 boolean noisy, ArrayList<Notification.Action> smartActions, in populate() argument 1800 mSmartActions = smartActions; in populate()
|