/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | SmartReplyConstantsTest.java | 23 import android.app.RemoteInput; 120 RemoteInput.EDIT_CHOICES_BEFORE_SENDING_AUTO)); in testGetEffectiveEditChoicesBeforeSendingWithNoConfig() 123 RemoteInput.EDIT_CHOICES_BEFORE_SENDING_ENABLED)); in testGetEffectiveEditChoicesBeforeSendingWithNoConfig() 126 RemoteInput.EDIT_CHOICES_BEFORE_SENDING_DISABLED)); in testGetEffectiveEditChoicesBeforeSendingWithNoConfig() 134 RemoteInput.EDIT_CHOICES_BEFORE_SENDING_AUTO)); in testGetEffectiveEditChoicesBeforeSendingWithEnabledConfig() 137 RemoteInput.EDIT_CHOICES_BEFORE_SENDING_ENABLED)); in testGetEffectiveEditChoicesBeforeSendingWithEnabledConfig() 140 RemoteInput.EDIT_CHOICES_BEFORE_SENDING_DISABLED)); in testGetEffectiveEditChoicesBeforeSendingWithEnabledConfig() 148 RemoteInput.EDIT_CHOICES_BEFORE_SENDING_AUTO)); in testGetEffectiveEditChoicesBeforeSendingWithDisabledConfig() 151 RemoteInput.EDIT_CHOICES_BEFORE_SENDING_ENABLED)); in testGetEffectiveEditChoicesBeforeSendingWithDisabledConfig() 154 RemoteInput.EDIT_CHOICES_BEFORE_SENDING_DISABLED)); in testGetEffectiveEditChoicesBeforeSendingWithDisabledConfig()
|
H A D | RemoteInputViewTest.java | 27 import android.app.RemoteInput; 112 RemoteInput input = new RemoteInput.Builder(TEST_RESULT_KEY).build(); in setTestPendingIntent() 115 view.setRemoteInput(new RemoteInput[]{input}, input, null /* editedSuggestionInfo */); in setTestPendingIntent() 138 RemoteInput.getResultsFromIntent(resultIntent).get(TEST_RESULT_KEY)); in testSendRemoteInput_intentContainsResultsAndSource() 139 assertEquals(RemoteInput.SOURCE_FREE_FORM_INPUT, in testSendRemoteInput_intentContainsResultsAndSource() 140 RemoteInput.getResultsSource(resultIntent)); in testSendRemoteInput_intentContainsResultsAndSource()
|
H A D | SmartReplyViewTest.java | 32 import android.app.RemoteInput; 180 RemoteInput.getResultsFromIntent(resultIntent).get(TEST_RESULT_KEY)); in testSendSmartReply_intentContainsResultsAndSource() 181 assertEquals(RemoteInput.SOURCE_CHOICE, RemoteInput.getResultsSource(resultIntent)); in testSendSmartReply_intentContainsResultsAndSource() 212 RemoteInput.getResultsFromIntent(resultIntent).get(TEST_RESULT_KEY)); in testSendSmartReply_waitsForKeyguard() 213 assertEquals(RemoteInput.SOURCE_CHOICE, RemoteInput.getResultsSource(resultIntent)); in testSendSmartReply_waitsForKeyguard() 255 RemoteInput.getResultsFromIntent(resultIntent).get(TEST_RESULT_KEY)); in testTapSmartReply_afterInitDelay_clickReceived() 256 assertEquals(RemoteInput.SOURCE_CHOICE, RemoteInput.getResultsSource(resultIntent)); in testTapSmartReply_afterInitDelay_clickReceived() 270 RemoteInput.getResultsFromIntent(resultIntent).get(TEST_RESULT_KEY)); in testTapSmartReply_withoutDelayedOnClickListener_bypassesDelay() 271 assertEquals(RemoteInput.SOURCE_CHOICE, RemoteInput.getResultsSource(resultIntent)); in testTapSmartReply_withoutDelayedOnClickListener_bypassesDelay() 491 RemoteInput input = new RemoteInput.Builder(TEST_RESULT_KEY).setChoices(choices).build(); in createSmartReplies()
|
H A D | InflatedSmartRepliesTest.java | 29 import android.app.RemoteInput; 72 @Mock private RemoteInput mRemoteInput; 73 @Mock private RemoteInput mFreeFormRemoteInput; 252 new RemoteInput.Builder("key").build()).build() in chooseSmartRepliesAndActions_sysGeneratedPhishingSmartAction() 582 Pair<RemoteInput, Notification.Action> remoteInputActionPair = in setupAppGeneratedReplies() 590 Pair<RemoteInput, Notification.Action> freeFormRemoteInputActionPair = in setupAppGeneratedReplies()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | RemoteInput.java | 71 public final class RemoteInput implements Parcelable { class 126 private RemoteInput(String resultKey, CharSequence label, CharSequence[] choices, in RemoteInput() method in RemoteInput 362 public RemoteInput build() { in build() 368 private RemoteInput(Parcel in) { in RemoteInput() method in RemoteInput 446 public static void addResultsToIntent(RemoteInput[] remoteInputs, Intent intent, in addResultsToIntent() 456 for (RemoteInput remoteInput : remoteInputs) { in addResultsToIntent() 564 …lic static final @android.annotation.NonNull Creator<RemoteInput> CREATOR = new Creator<RemoteInpu… 566 public RemoteInput createFromParcel(Parcel in) { 567 return new RemoteInput(in); 571 public RemoteInput[] newArray(int size) { [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | NotificationUiAdjustmentTest.java | 22 import android.app.RemoteInput; 123 RemoteInput firstRemoteInput = in needReinflate_differentChoices() 125 RemoteInput secondRemoteInput = in needReinflate_differentChoices() 151 RemoteInput firstRemoteInput = in needReinflate_differentRemoteInputLabel() 153 RemoteInput secondRemoteInput = in needReinflate_differentRemoteInputLabel() 178 RemoteInput firstRemoteInput = in needReinflate_negative() 180 RemoteInput secondRemoteInput = in needReinflate_negative() 243 private RemoteInput createRemoteInput(String resultKey, String label, CharSequence[] choices) { in createRemoteInput() 244 return new RemoteInput.Builder(resultKey).setLabel(label).setChoices(choices).build(); in createRemoteInput()
|
/aosp12/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/utils/ |
H A D | MockMessageNotificationBuilder.java | 44 import androidx.core.app.RemoteInput; 313 new RemoteInput.Builder(mChannelId).build()).setSemanticAction( in getNonMockReplyAction() 327 when(action.getRemoteInputs()).thenReturn(new RemoteInput[]{new RemoteInput.Builder( in getMockReplyAction() 340 new RemoteInput.Builder(mChannelId).build()).setSemanticAction( in getNonMockMuteAction() 354 when(action.getRemoteInputs()).thenReturn(new RemoteInput[]{new RemoteInput.Builder( in getMockMuteAction() 367 new RemoteInput.Builder(mChannelId).build()).setSemanticAction( in getNonMockMarkAsReadAction() 381 when(action.getRemoteInputs()).thenReturn(new RemoteInput[]{new RemoteInput.Builder( in getMockMarkAsReadAction()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationUiAdjustment.java | 21 import android.app.RemoteInput; 127 @Nullable RemoteInput[] first, @Nullable RemoteInput[] second) { in areDifferent() 138 RemoteInput firstRemoteInput = first[i]; in areDifferent() 139 RemoteInput secondRemoteInput = second[i]; in areDifferent()
|
H A D | NotificationRemoteInputManager.java | 23 import android.app.RemoteInput; 232 RemoteInput[] inputs = null; 233 if (tag instanceof RemoteInput[]) { 234 inputs = (RemoteInput[]) tag; 241 RemoteInput input = null; 243 for (RemoteInput i : inputs) { 417 public boolean activateRemoteInput(View view, RemoteInput[] inputs, RemoteInput input, in activateRemoteInput() 437 public boolean activateRemoteInput(View view, RemoteInput[] inputs, RemoteInput input, in activateRemoteInput()
|
H A D | RemoteInputController.java | 20 import android.app.RemoteInput; 81 RemoteInput[] remoteInputs = action.getRemoteInputs(); in processForRemoteInput() 85 for (RemoteInput ri : remoteInputs) { in processForRemoteInput()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | SmartReplyConstants.java | 19 import android.app.RemoteInput; 202 @RemoteInput.EditChoicesBeforeSending int remoteInputEditChoicesBeforeSending) { in getEffectiveEditChoicesBeforeSending() 204 case RemoteInput.EDIT_CHOICES_BEFORE_SENDING_DISABLED: in getEffectiveEditChoicesBeforeSending() 206 case RemoteInput.EDIT_CHOICES_BEFORE_SENDING_ENABLED: in getEffectiveEditChoicesBeforeSending() 208 case RemoteInput.EDIT_CHOICES_BEFORE_SENDING_AUTO: in getEffectiveEditChoicesBeforeSending()
|
H A D | RemoteInputView.java | 26 import android.app.RemoteInput; 136 private RemoteInput mRemoteInput; 137 private RemoteInput[] mRemoteInputs; 338 RemoteInput.setResultsSource(fillInIntent, RemoteInput.SOURCE_FREE_FORM_INPUT); in prepareRemoteInputFromText() 340 RemoteInput.setResultsSource(fillInIntent, RemoteInput.SOURCE_CHOICE); in prepareRemoteInputFromText() 374 RemoteInput.setResultsSource(fillInIntent, RemoteInput.SOURCE_FREE_FORM_INPUT); in prepareRemoteInputFromData() 376 RemoteInput.setResultsSource(fillInIntent, RemoteInput.SOURCE_CHOICE); in prepareRemoteInputFromData() 550 public void setRemoteInput(RemoteInput[] remoteInputs, RemoteInput remoteInput, in setRemoteInput() 699 RemoteInput[] inputs = a.getRemoteInputs(); in updatePendingIntentFromActions() 708 RemoteInput input = null; in updatePendingIntentFromActions() [all …]
|
H A D | SmartReplyStateInflater.kt | 22 import android.app.RemoteInput 449 RemoteInput.addResultsToIntent(arrayOf(smartReplies.remoteInput), intent, results) 450 RemoteInput.setResultsSource(intent, RemoteInput.SOURCE_CHOICE)
|
/aosp12/packages/apps/Car/libs/car-assist-lib/src/com/android/car/assist/payloadhandlers/ |
H A D | ConversationPayloadHandler.java | 22 import android.app.RemoteInput; 180 private static androidx.core.app.RemoteInput toCompat(RemoteInput src) { in toCompat() 181 androidx.core.app.RemoteInput.Builder builder = in toCompat() 182 new androidx.core.app.RemoteInput.Builder(src.getResultKey()) in toCompat()
|
H A D | NotificationPayloadHandler.java | 21 import android.app.RemoteInput; 175 RemoteInput[] remoteInputs = actionCallback.getRemoteInputs(); in writeReply() 184 RemoteInput remoteInput = remoteInputs[0]; in writeReply() 193 RemoteInput.addResultsToIntent(remoteInputs, additionalData, results); in writeReply()
|
/aosp12/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/ |
H A D | NotificationUtils.java | 23 import android.app.RemoteInput; 76 RemoteInput remoteInput = new RemoteInput.Builder(KEY_REPLY) in sendDirectReplyNotification() 97 final Bundle remoteInput = RemoteInput.getResultsFromIntent(intent); in onReceiveDirectReply()
|
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | NotificationTest.java | 32 import android.app.RemoteInput; 446 .addRemoteInput(new RemoteInput.Builder("a") in testActionsIgnoresRemoteInputs() 453 .addRemoteInput(new RemoteInput.Builder("a") in testActionsIgnoresRemoteInputs() 478 RemoteInput remoteInput = new RemoteInput.Builder("a").build(); in testFreeformRemoteInputActionPair_hasRemoteInput() 495 Pair<RemoteInput, Notification.Action> remoteInputActionPair = in testFreeformRemoteInputActionPair_hasRemoteInput() 510 new RemoteInput.Builder("a") in testFreeformRemoteInputActionPair_requestFreeform_noFreeformRemoteInput() 522 RemoteInput remoteInput = in testFreeformRemoteInputActionPair_requestFreeform_hasFreeformRemoteInput() 523 new RemoteInput.Builder("a").setAllowFreeFormInput(false).build(); in testFreeformRemoteInputActionPair_requestFreeform_hasFreeformRemoteInput() 524 RemoteInput freeformRemoteInput = in testFreeformRemoteInputActionPair_requestFreeform_hasFreeformRemoteInput() 525 new RemoteInput.Builder("b").setAllowFreeFormInput(true).build(); in testFreeformRemoteInputActionPair_requestFreeform_hasFreeformRemoteInput() [all …]
|
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
H A D | MyNotificationListenerService.java | 21 import android.app.RemoteInput; 62 final RemoteInput[] remoteInputs = action.getRemoteInputs(); in onNotificationPosted() 64 for (RemoteInput remoteInput : remoteInputs) { in onNotificationPosted()
|
/aosp12/frameworks/base/core/java/android/app/slice/ |
H A D | SliceItem.java | 22 import android.app.RemoteInput; 231 public RemoteInput getRemoteInput() { in getRemoteInput() 232 return (RemoteInput) mObj; in getRemoteInput() 374 return RemoteInput.CREATOR.createFromParcel(in); in readObj()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/ |
H A D | BubbleHelper.java | 25 import android.app.RemoteInput; 123 RemoteInput remoteInput = new RemoteInput.Builder("key") in getNotificationBuilder()
|
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/ |
H A D | NotificationClickHandlerFactory.java | 23 import android.app.RemoteInput; 399 RemoteInput remoteInput = action.getRemoteInputs()[0]; 408 RemoteInput.addResultsToIntent( 409 new RemoteInput[]{remoteInput}, resultIntent, messageDataBundle);
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | NoConfirmationSmsSendService.java | 23 import androidx.core.app.RemoteInput; 137 final Bundle remoteInput = RemoteInput.getResultsFromIntent(intent); in getText()
|
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app2/src/com/android/cts/net/hostside/app2/ |
H A D | MyBroadcastReceiver.java | 39 import android.app.RemoteInput; 248 final RemoteInput remoteInput = new RemoteInput.Builder("RI") in sendNotification()
|
/aosp12/packages/modules/ExtServices/java/src/android/ext/services/notification/ |
H A D | NotificationEntry.java | 28 import android.app.RemoteInput; 284 RemoteInput[] remoteInputs = action.getRemoteInputs(); in hasInlineReply() 288 for (RemoteInput remoteInput : remoteInputs) { in hasInlineReply()
|
/aosp12/packages/apps/Car/Messenger/src/com/android/car/messenger/core/util/ |
H A D | VoiceUtil.java | 39 import android.app.RemoteInput; 175 new RemoteInput.Builder(Intent.EXTRA_TEXT).build()); in createTapToReadConversation() 239 final Bundle bundle = RemoteInput.getResultsFromIntent(intent); in voiceReply()
|