Home
last modified time | relevance | path

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

/aosp14/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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSmartReplyStateInflater.kt73 smartReplyState.smartActions == null) {
160 val smartActionButtons = newSmartReplyState.smartActions?.let { smartActions ->
163 smartActions.actions.asSequence()
169 smartActions,
221 var smartActions: SmartActions? = when {
227 if (smartReplies == null && smartActions == null) {
229 val entryActions = entry.smartActions
290 smartActions: SmartActions,
353 smartActions: SmartActions,
389 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DSaveImageInBackgroundTaskTest.kt46 private val smartActions = mock<ScreenshotSmartActions>() regex
89 smartActions,
98 smartActions.getSmartActionsFuture(
110 smartActions.getSmartActionsFuture(
126 smartActions.getSmartActions(
148 smartActions.getSmartActions(
185 smartActions.getSmartActions(
215 smartActions.getSmartActions(
250 smartActions.getSmartActions(
H A DScreenshotNotificationSmartActionsTest.java94 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testExceptionHandlingInGetSmartActionsFuture() local
95 assertEquals(Collections.emptyList(), smartActions); in testExceptionHandlingInGetSmartActionsFuture() local
136 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testUnsupportedBitmapConfiguration() local
137 assertEquals(Collections.emptyList(), smartActions); in testUnsupportedBitmapConfiguration() local
166 List<Notification.Action> smartActions = smartActionsFuture.get(5, TimeUnit.MILLISECONDS); in testSupportedBitmapConfiguration() local
167 assertEquals(smartActions.size(), 0); in testSupportedBitmapConfiguration()
/aosp14/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.java935 ArrayList<Notification.Action> smartActions = new ArrayList<>(); in testSmartActions() local
936 smartActions.add(new Notification.Action.Builder( in testSmartActions()
939 record.setSystemGeneratedSmartActions(smartActions); in testSmartActions()
940 assertEquals(smartActions, record.getSystemGeneratedSmartActions()); in testSmartActions()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/
H A DNotifUiAdjustment.kt31 val smartActions: List<Notification.Action>,
49 areDifferent(oldAdjustment.smartActions, newAdjustment.smartActions) -> true
H A DNotifUiAdjustmentProvider.kt118 smartActions = entry.ranking.smartActions,
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/collection/
H A DNotificationEntryBuilder.java324 ArrayList<Notification.Action> smartActions) { in setSmartActions() argument
325 mRankingBuilder.setSmartActions(smartActions); in setSmartActions()
329 public NotificationEntryBuilder setSmartActions(Notification.Action... smartActions) { in setSmartActions() argument
330 mRankingBuilder.setSmartActions(smartActions); in setSmartActions()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DSmartReplyViewTest.java569 smartActions, in setSmartActions()
571 smartActions.actions.get(idx), in setSmartActions()
593 IntStream.range(0, smartActions.actions.size()) in setSmartRepliesAndActions()
597 smartActions, in setSmartRepliesAndActions()
599 smartActions.actions.get(idx), in setSmartRepliesAndActions()
649 IntStream.range(0, smartActions.actions.size()) in buildExpectedView()
653 smartActions, in buildExpectedView()
655 smartActions.actions.get(idx), in buildExpectedView()
952 List<Button> buttons = IntStream.range(0, smartActions.actions.size()) in testInflateActionButton_smartActionIconSingleLineSizeForTwoLineButton()
956 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()
600 CharSequence[] smartReplies, List<Notification.Action> smartActions) { in setupAppGeneratedSuggestions() argument
602 when(mNotification.getContextualActions()).thenReturn(smartActions); in setupAppGeneratedSuggestions()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DSaveImageInBackgroundTask.java161 List<Notification.Action> smartActions = new ArrayList<>(); in doInBackground() local
167 smartActions.addAll(buildSmartActions( in doInBackground()
177 mImageData.smartActions = smartActions; in doInBackground()
H A DScreenshotController.java180 public List<Notification.Action> smartActions; field in ScreenshotController.SavedImageData
202 smartActions = null; in reset()
H A DScreenshotView.java861 for (Notification.Action smartAction : imageData.smartActions) { in setChipIntents()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationContentView.java1509 SmartReplyView.SmartActions smartActions =
1511 if (smartReplies != null || smartActions != null) {
1513 int numSmartActions = smartActions == null ? 0 : smartActions.actions.size();
1515 ? smartActions.fromAssistant
/aosp14/frameworks/base/core/java/android/service/notification/
H A DNotificationListenerService.java2113 boolean noisy, ArrayList<Notification.Action> smartActions, in populate() argument
2135 mSmartActions = smartActions; in populate()