Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSmartReplyStateInflater.kt59 smartReplyState.smartActions == null) {
146 val smartActionButtons = newSmartReplyState.smartActions?.let { smartActions ->
149 smartActions.actions.asSequence()
155 smartActions,
207 var smartActions: SmartActions? = when {
213 if (smartReplies == null && smartActions == null) {
215 val entryActions = entry.smartActions
276 smartActions: SmartActions,
294 smartActions: SmartActions,
330 smartActions: SmartActions,
[all …]
H A DInflatedSmartReplyState.kt27 val smartActions: SmartActions?,
34 get() = smartActions?.actions ?: emptyList()
H A DSmartReplyView.java250 List<View> smartActions = filterActionsOrReplies(SmartButtonType.ACTION); in onMeasure() local
252 List<View> smartSuggestions = new ArrayList<>(smartActions); in onMeasure()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DScreenshotNotificationSmartActionsTest.java95 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testExceptionHandlingInGetSmartActionsFuture() local
96 assertEquals(Collections.emptyList(), smartActions); in testExceptionHandlingInGetSmartActionsFuture() local
137 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testUnsupportedBitmapConfiguration() local
138 assertEquals(Collections.emptyList(), smartActions); in testUnsupportedBitmapConfiguration() local
168 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testSupportedBitmapConfiguration() local
169 assertEquals(smartActions.size(), 0); in testSupportedBitmapConfiguration()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A 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()
H A DNotificationRecordTest.java878 ArrayList<Notification.Action> smartActions = new ArrayList<>(); in testSmartActions() local
879 smartActions.add(new Notification.Action.Builder( in testSmartActions()
882 record.setSystemGeneratedSmartActions(smartActions); in testSmartActions()
883 assertEquals(smartActions, record.getSystemGeneratedSmartActions()); in testSmartActions()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DRankingBuilder.java227 public RankingBuilder setSmartActions(@NonNull ArrayList<Notification.Action> smartActions) { in setSmartActions() argument
228 mSmartActions = smartActions; in setSmartActions()
232 public RankingBuilder setSmartActions(Notification.Action... smartActions) { in setSmartActions() argument
233 mSmartActions = new ArrayList<>(Arrays.asList(smartActions)); in setSmartActions()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
H A DNotificationEntryBuilder.java301 ArrayList<Notification.Action> smartActions) { in setSmartActions() argument
302 mRankingBuilder.setSmartActions(smartActions); in setSmartActions()
306 public NotificationEntryBuilder setSmartActions(Notification.Action... smartActions) { in setSmartActions() argument
307 mRankingBuilder.setSmartActions(smartActions); in setSmartActions()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DSmartReplyViewTest.java531 smartActions, in setSmartActions()
533 smartActions.actions.get(idx), in setSmartActions()
555 IntStream.range(0, smartActions.actions.size()) in setSmartRepliesAndActions()
559 smartActions, in setSmartRepliesAndActions()
561 smartActions.actions.get(idx), in setSmartRepliesAndActions()
617 IntStream.range(0, smartActions.actions.size()) in buildExpectedView()
621 smartActions, in buildExpectedView()
623 smartActions.actions.get(idx), in buildExpectedView()
924 List<Button> buttons = IntStream.range(0, smartActions.actions.size()) in testInflateActionButton_smartActionIconSingleLineSizeForTwoLineButton()
928 smartActions, in testInflateActionButton_smartActionIconSingleLineSizeForTwoLineButton()
[all …]
H A 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()
599 CharSequence[] smartReplies, List<Notification.Action> smartActions) { in setupAppGeneratedSuggestions() argument
601 when(mNotification.getContextualActions()).thenReturn(smartActions); in setupAppGeneratedSuggestions()
/aosp12/packages/modules/ExtServices/java/src/android/ext/services/notification/
H A DAssistant.java131 @NonNull ArrayList<Notification.Action> smartActions, in createEnqueuedNotificationAdjustment() argument
135 if (!smartActions.isEmpty()) { in createEnqueuedNotificationAdjustment()
136 signals.putParcelableArrayList(Adjustment.KEY_CONTEXTUAL_ACTIONS, smartActions); in createEnqueuedNotificationAdjustment()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DSaveImageInBackgroundTask.java153 List<Notification.Action> smartActions = new ArrayList<>(); in doInBackground() local
159 smartActions.addAll(buildSmartActions( in doInBackground()
167 mImageData.smartActions = smartActions; in doInBackground()
H A DScreenshotController.java164 public List<Notification.Action> smartActions; field in ScreenshotController.SavedImageData
184 smartActions = null; in reset()
H A DScreenshotView.java754 for (Notification.Action smartAction : imageData.smartActions) { in setChipIntents()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationContentView.java1390 SmartReplyView.SmartActions smartActions = state.getSmartActions(); in applySmartReplyView() local
1391 if (smartReplies != null || smartActions != null) { in applySmartReplyView()
1393 int numSmartActions = smartActions == null ? 0 : smartActions.actions.size(); in applySmartReplyView()
1395 ? smartActions.fromAssistant in applySmartReplyView()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
H A DNotificationEntryManagerTest.java164 private void setSmartActions(String key, ArrayList<Notification.Action> smartActions) { in setSmartActions() argument
178 false, smartActions, null, false, false, false, null, 0, false); in setSmartActions()
/aosp12/frameworks/base/core/java/android/service/notification/
H A DNotificationListenerService.java2034 boolean noisy, ArrayList<Notification.Action> smartActions, in populate() argument
2055 mSmartActions = smartActions; in populate()