/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyStateInflater.kt | 59 smartReplyState.smartActions == null) { in <lambda>() 146 val smartActionButtons = newSmartReplyState.smartActions?.let { smartActions -> in inflateSmartReplyState() method 149 smartActions.actions.asSequence() in inflateSmartReplyState() 155 smartActions, in inflateSmartReplyState() 207 var smartActions: SmartActions? = when { in inflateSmartReplyState() variable 213 if (smartReplies == null && smartActions == null) { in inflateSmartReplyState() 215 val entryActions = entry.smartActions in inflateSmartReplyState() 235 smartActions = SmartActions(systemGeneratedActions, true /* fromAssistant */) in inflateSmartReplyState() 238 val hasPhishingAction = smartActions?.actions?.any { in inflateSmartReplyState() 251 return InflatedSmartReplyState(smartReplies, smartActions, suppressedActions, in inflateSmartReplyState() [all …]
|
D | InflatedSmartReplyState.kt | 27 val smartActions: SmartActions?, constant in com.android.systemui.statusbar.policy.InflatedSmartReplyState 34 get() = smartActions?.actions ?: emptyList()
|
D | SmartReplyView.java | 236 List<View> smartActions = filterActionsOrReplies(SmartButtonType.ACTION); in onMeasure() local 238 List<View> smartSuggestions = new ArrayList<>(smartActions); in onMeasure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationUiAdjustment.java | 39 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()
|
/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 | 878 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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ScreenshotNotificationSmartActionsTest.java | 95 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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | RankingBuilder.java | 227 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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntryBuilder.java | 301 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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyViewTest.java | 524 SmartReplyView.SmartActions smartActions = new SmartReplyView.SmartActions( in setSmartActions() local 527 Stream<Button> buttons = IntStream.range(0, smartActions.actions.size()).mapToObj(idx -> in setSmartActions() 531 smartActions, in setSmartActions() 533 smartActions.actions.get(idx), in setSmartActions() 552 SmartReplyView.SmartActions smartActions = new SmartReplyView.SmartActions( in setSmartRepliesAndActions() local 555 IntStream.range(0, smartActions.actions.size()) in setSmartRepliesAndActions() 559 smartActions, in setSmartRepliesAndActions() 561 smartActions.actions.get(idx), in setSmartRepliesAndActions() 615 SmartReplyView.SmartActions smartActions = new SmartReplyView.SmartActions(actions, false); in buildExpectedView() local 617 IntStream.range(0, smartActions.actions.size()) in buildExpectedView() [all …]
|
D | InflatedSmartRepliesTest.java | 115 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | SaveImageInBackgroundTask.java | 153 List<Notification.Action> smartActions = new ArrayList<>(); in doInBackground() local 159 smartActions.addAll(buildSmartActions( in doInBackground() 167 mImageData.smartActions = smartActions; in doInBackground()
|
D | ScreenshotController.java | 163 public List<Notification.Action> smartActions; field in ScreenshotController.SavedImageData 183 smartActions = null; in reset()
|
D | ScreenshotView.java | 738 for (Notification.Action smartAction : imageData.smartActions) { in setChipIntents()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationContentView.java | 1388 SmartReplyView.SmartActions smartActions = state.getSmartActions(); in applySmartReplyView() local 1389 if (smartReplies != null || smartActions != null) { in applySmartReplyView() 1391 int numSmartActions = smartActions == null ? 0 : smartActions.actions.size(); in applySmartReplyView() 1393 ? smartActions.fromAssistant in applySmartReplyView()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManagerTest.java | 157 private void setSmartActions(String key, ArrayList<Notification.Action> smartActions) { in setSmartActions() argument 171 false, smartActions, null, false, false, false, null, 0, false); in setSmartActions()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerService.java | 2033 boolean noisy, ArrayList<Notification.Action> smartActions, in populate() argument 2054 mSmartActions = smartActions; in populate()
|