/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyStateInflater.kt | 58 if (smartReplyState.smartReplies == null && in <lambda>() 132 val smartReplies = newSmartReplyState.smartReplies in inflateSmartReplyState() constant 133 smartReplyView.setSmartRepliesGeneratedByAssistant(smartReplies?.fromAssistant ?: false) in inflateSmartReplyState() 134 val smartReplyButtons = smartReplies?.let { in inflateSmartReplyState() 135 smartReplies.choices.asSequence().mapIndexed { index, choice -> in inflateSmartReplyState() 139 smartReplies, in inflateSmartReplyState() 193 var smartReplies: SmartReplies? = when { in inflateSmartReplyState() variable 213 if (smartReplies == null && smartActions == null) { in inflateSmartReplyState() 214 val entryReplies = entry.smartReplies in inflateSmartReplyState() 220 smartReplies = SmartReplies( in inflateSmartReplyState() [all …]
|
D | InflatedSmartReplyState.kt | 26 val smartReplies: SmartReplies?, constant in com.android.systemui.statusbar.policy.InflatedSmartReplyState 32 get() = smartReplies?.choices ?: emptyList()
|
D | SmartReplyView.java | 237 List<View> smartReplies = filterActionsOrReplies(SmartButtonType.REPLY); in onMeasure() local 239 smartSuggestions.addAll(smartReplies); in onMeasure() 333 if (!gotEnoughSmartReplies(smartReplies)) { in onMeasure() 335 for (View smartReplyButton : smartReplies) { in onMeasure() 397 private boolean gotEnoughSmartReplies(List<View> smartReplies) { in gotEnoughSmartReplies() argument 399 for (View smartReplyButton : smartReplies) { in gotEnoughSmartReplies()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationUiAdjustment.java | 40 public final List<CharSequence> smartReplies; field in NotificationUiAdjustment 45 String key, List<Notification.Action> smartActions, List<CharSequence> smartReplies, in NotificationUiAdjustment() argument 51 this.smartReplies = smartReplies == null in NotificationUiAdjustment() 53 : smartReplies; in NotificationUiAdjustment() 76 if (!newAdjustment.smartReplies.equals(oldAdjustment.smartReplies)) { in needReinflate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | InflatedSmartRepliesTest.java | 114 CharSequence[] smartReplies = new String[] {"Reply1", "Reply2"}; in chooseSmartRepliesAndActions_smartRepliesOff_noAppGeneratedSmartSuggestions() local 117 setupAppGeneratedSuggestions(smartReplies, smartActions); in chooseSmartRepliesAndActions_smartRepliesOff_noAppGeneratedSmartSuggestions() 149 CharSequence[] smartReplies = new String[] {"Reply1", "Reply2"}; in chooseSmartRepliesAndActions_appGeneratedSmartReplies() local 150 setupAppGeneratedReplies(smartReplies); in chooseSmartRepliesAndActions_appGeneratedSmartReplies() 156 .containsExactlyElementsIn(smartReplies).inOrder(); in chooseSmartRepliesAndActions_appGeneratedSmartReplies() 165 CharSequence[] smartReplies = new String[] {"Reply1", "Reply2"}; in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions() local 168 setupAppGeneratedSuggestions(smartReplies, smartActions); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions() 174 .containsExactlyElementsIn(smartReplies).inOrder(); in chooseSmartRepliesAndActions_appGeneratedSmartRepliesAndActions() 570 private void setupAppGeneratedReplies(CharSequence[] smartReplies) { in setupAppGeneratedReplies() argument 571 setupAppGeneratedReplies(smartReplies, true /* allowSystemGeneratedReplies */); in setupAppGeneratedReplies() [all …]
|
D | SmartReplyViewTest.java | 498 SmartReplyView.SmartReplies smartReplies = createSmartReplies(choices, fromAssistant); in inflateSmartReplies() local 501 mView, mEntry, smartReplies, idx, choices[idx], useDelayedOnClickListener)); in inflateSmartReplies() 588 SmartReplyView.SmartReplies smartReplies = in buildExpectedView() local 592 IntStream.range(0, smartReplies.choices.size()).mapToObj( in buildExpectedView() 596 smartReplies, in buildExpectedView() 598 smartReplies.choices.get(idx), in buildExpectedView()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | RankingBuilder.java | 237 public RankingBuilder setSmartReplies(@NonNull ArrayList<CharSequence> smartReplies) { in setSmartReplies() argument 238 mSmartReplies = smartReplies; in setSmartReplies() 242 public RankingBuilder setSmartReplies(CharSequence... smartReplies) { in setSmartReplies() argument 243 mSmartReplies = new ArrayList<>(Arrays.asList(smartReplies)); in setSmartReplies()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntryBuilder.java | 311 public NotificationEntryBuilder setSmartReplies(ArrayList<CharSequence> smartReplies) { in setSmartReplies() argument 312 mRankingBuilder.setSmartReplies(smartReplies); in setSmartReplies() 316 public NotificationEntryBuilder setSmartReplies(CharSequence... smartReplies) { in setSmartReplies() argument 317 mRankingBuilder.setSmartReplies(smartReplies); in setSmartReplies()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationContentView.java | 1387 SmartReplyView.SmartReplies smartReplies = state.getSmartReplies(); in applySmartReplyView() local 1389 if (smartReplies != null || smartActions != null) { in applySmartReplyView() 1390 int numSmartReplies = smartReplies == null ? 0 : smartReplies.choices.size(); in applySmartReplyView() 1392 boolean fromAssistant = smartReplies == null in applySmartReplyView() 1394 : smartReplies.fromAssistant; in applySmartReplyView() 1395 boolean editBeforeSending = smartReplies != null in applySmartReplyView() 1397 smartReplies.remoteInput.getEditChoicesBeforeSending()); in applySmartReplyView()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerService.java | 2034 ArrayList<CharSequence> smartReplies, boolean canBubble, in populate() argument 2055 mSmartReplies = smartReplies; in populate()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationRecord.java | 1250 public void setSmartReplies(ArrayList<CharSequence> smartReplies) { in setSmartReplies() argument 1251 mSmartReplies = smartReplies; in setSmartReplies()
|