Home
last modified time | relevance | path

Searched refs:AutofillId (Results 1 – 25 of 86) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/view/autofill/
DAutofillIdTest.java19 import static android.view.autofill.AutofillId.NO_SESSION;
38 final AutofillId id = new AutofillId(42); in testNonVirtual()
41 final AutofillId clone = cloneThroughParcel(id); in testNonVirtual()
47 final AutofillId id = new AutofillId(42, 108); in testVirtual_int()
55 final AutofillId clone = cloneThroughParcel(id); in testVirtual_int()
66 final AutofillId id = new AutofillId(new AutofillId(42), 4815162342L, 108); in testVirtual_long()
74 final AutofillId clone = cloneThroughParcel(id); in testVirtual_long()
85 assertThrows(NullPointerException.class, () -> new AutofillId(null, 108)); in testVirtual_parentObjectConstructor()
87 final AutofillId id = new AutofillId(new AutofillId(42), 108); in testVirtual_parentObjectConstructor()
92 final AutofillId clone = cloneThroughParcel(id); in testVirtual_parentObjectConstructor()
[all …]
/frameworks/base/core/java/android/view/autofill/
DAutofillId.java28 public final class AutofillId implements Parcelable { class
45 public AutofillId(int id) { in AutofillId() method in AutofillId
51 public AutofillId(@NonNull AutofillId hostId, int virtualChildId) { in AutofillId() method in AutofillId
57 public AutofillId(int hostId, int virtualChildId) { in AutofillId() method in AutofillId
63 public AutofillId(@NonNull AutofillId hostId, long virtualChildId, int sessionId) { in AutofillId() method in AutofillId
67 private AutofillId(int flags, int parentId, long virtualChildId, int sessionId) { in AutofillId() method in AutofillId
78 public static AutofillId withoutSession(@NonNull AutofillId id) { in withoutSession()
83 return new AutofillId(flags, id.mViewId, virtualChildId, NO_SESSION); in withoutSession()
193 final AutofillId other = (AutofillId) obj; in equals()
203 public boolean equalsIgnoreSession(@Nullable AutofillId other) { in equalsIgnoreSession()
[all …]
DIAutoFillManagerClient.aidl27 import android.view.autofill.AutofillId;
48 void autofill(int sessionId, in List<AutofillId> ids, in List<AutofillValue> values, in autofill()
54 void autofillContent(int sessionId, in AutofillId id, in ClipData content); in autofillContent()
66 void setTrackedViews(int sessionId, in @nullable AutofillId[] savableIds, in setTrackedViews()
68 in @nullable AutofillId[] fillableIds, in AutofillId saveTriggerId); in setTrackedViews()
73 void requestShowFillUi(int sessionId, in AutofillId id, int width, int height, in requestShowFillUi()
79 void requestHideFillUi(int sessionId, in AutofillId id); in requestHideFillUi()
85 void notifyNoFillUi(int sessionId, in AutofillId id, int sessionFinishedState); in notifyNoFillUi()
90 void notifyFillUiShown(int sessionId, in AutofillId id); in notifyFillUiShown()
97 void notifyFillUiHidden(int sessionId, in AutofillId id); in notifyFillUiHidden()
[all …]
DIAugmentedAutofillManagerClient.aidl23 import android.view.autofill.AutofillId;
37 Rect getViewCoordinates(in AutofillId id); in getViewCoordinates()
42 AssistStructure.ViewNodeParcelable getViewNodeParcelable(in AutofillId id); in getViewNodeParcelable()
47 void autofill(int sessionId, in List<AutofillId> ids, in List<AutofillValue> values, in autofill()
53 void requestShowFillUi(int sessionId, in AutofillId id, int width, int height, in requestShowFillUi()
59 void requestHideFillUi(int sessionId, in AutofillId id); in requestHideFillUi()
65 boolean requestAutofill(int sessionId, in AutofillId id); in requestAutofill()
DHelper.java72 public static @NonNull AutofillId[] toArray(Collection<AutofillId> collection) { in toArray()
74 return new AutofillId[0]; in toArray()
76 final AutofillId[] array = new AutofillId[collection.size()]; in toArray()
DAutofillManager.java663 @Nullable private ArraySet<AutofillId> mFillableIds;
666 @Nullable private AutofillId mIdShownFillUi;
673 @Nullable private ArraySet<AutofillId> mEnteredIds;
680 @Nullable private Set<AutofillId> mEnteredForAugmentedAutofillIds;
684 @Nullable private AutofillId mSaveTriggerId;
723 @Nullable private List<AutofillId> mFillDialogTriggerIds;
734 private final ArraySet<AutofillId> mAllTrackedViews = new ArraySet<>();
792 @NonNull boolean[] autofillClientGetViewVisibility(@NonNull AutofillId[] autofillIds); in autofillClientGetViewVisibility()
814 @NonNull AutofillId[] autofillIds); in autofillClientFindViewsByAutofillIdTraversal()
823 @Nullable View autofillClientFindViewByAutofillIdTraversal(@NonNull AutofillId autofillId); in autofillClientFindViewByAutofillIdTraversal()
[all …]
DParcelableMap.java30 class ParcelableMap extends HashMap<AutofillId, AutofillValue> implements Parcelable {
44 for (Map.Entry<AutofillId, AutofillValue> entry : entrySet()) { in writeToParcel()
59AutofillId key = source.readParcelable(null, android.view.autofill.AutofillId.class);
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/
DContentCaptureEventTest.java31 import android.view.autofill.AutofillId;
89 final AutofillId id = new AutofillId(108); in testSetAutofillId()
99 final AutofillId id = new AutofillId(108); in testSetAutofillIds()
100 final ArrayList<AutofillId> ids = new ArrayList<>(1); in testSetAutofillIds()
111 final AutofillId id1 = new AutofillId(108); in testAddAutofillId()
116 final AutofillId id2 = new AutofillId(666); in testAddAutofillId()
126 final AutofillId id1 = new AutofillId(108); in testAddAutofillId_afterSetId()
131 final AutofillId id2 = new AutofillId(666); in testAddAutofillId_afterSetId()
141 final AutofillId id1 = new AutofillId(108); in testAddAutofillId_afterSetIds()
142 final ArrayList<AutofillId> ids = new ArrayList<>(1); in testAddAutofillId_afterSetIds()
[all …]
DContentCaptureSessionTest.java26 import android.view.autofill.AutofillId;
54 () -> mSession1.newAutofillId(new AutofillId(42, 42), 42L)); in testNewAutofillId_invalid()
59 final AutofillId parentId = new AutofillId(42); in testNewAutofillId_valid()
60 final AutofillId childId = mSession1.newAutofillId(parentId, 108L); in testNewAutofillId_valid()
70 final AutofillId parentId = new AutofillId(42); in testNewAutofillId_differentSessions()
71 final AutofillId childId1 = mSession1.newAutofillId(parentId, 108L); in testNewAutofillId_differentSessions()
72 final AutofillId childId2 = mSession2.newAutofillId(parentId, 108L); in testNewAutofillId_differentSessions()
95 final AutofillId parentId = new AutofillId(42); in testNewVirtualViewStructure()
98 final AutofillId childId = mSession1.newAutofillId(parentId, 108L); in testNewVirtualViewStructure()
109 () -> mSession1.notifyViewsDisappeared(new AutofillId(42), null)); in testNotifyViewsDisappeared_invalid()
[all …]
/frameworks/base/core/java/android/service/autofill/
DSaveInfo.java32 import android.view.autofill.AutofillId;
327 private final AutofillId[] mRequiredIds;
328 private final AutofillId[] mOptionalIds;
334 private final AutofillId[][] mSanitizerValues;
335 private final AutofillId mTriggerId;
354 mSanitizerValues = new AutofillId[size][]; in SaveInfo()
379 public @Nullable AutofillId[] getRequiredIds() { in getRequiredIds()
384 public @Nullable AutofillId[] getOptionalIds() { in getOptionalIds()
423 public AutofillId[][] getSanitizerValues() { in getSanitizerValues()
429 public AutofillId getTriggerId() { in getTriggerId()
[all …]
DFillEventHistory.java31 import android.view.autofill.AutofillId;
156 final AutofillId[] detectedFields = event.mDetectedFieldIds; in writeToParcel()
314 @Nullable private final ArrayList<AutofillId> mChangedFieldIds;
317 @Nullable private final ArrayList<AutofillId> mManuallyFilledFieldIds;
320 @Nullable private final AutofillId[] mDetectedFieldIds;
417 @NonNull public Map<AutofillId, String> getChangedFields() { in getChangedFields()
423 final ArrayMap<AutofillId, String> changedFields = new ArrayMap<>(size); in getChangedFields()
438 @NonNull public Map<AutofillId, FieldClassification> getFieldsClassification() { in getFieldsClassification()
443 final ArrayMap<AutofillId, FieldClassification> map = new ArrayMap<>(size); in getFieldsClassification()
445 final AutofillId id = mDetectedFieldIds[i]; in getFieldsClassification()
[all …]
DCharSequenceTransformation.java27 import android.view.autofill.AutofillId;
69 @NonNull private final LinkedHashMap<AutofillId, Pair<Pattern, String>> mFields;
83 for (Entry<AutofillId, Pair<Pattern, String>> entry : mFields.entrySet()) { in apply()
84 final AutofillId id = entry.getKey(); in apply()
119 @NonNull private final LinkedHashMap<AutofillId, Pair<Pattern, String>> mFields =
133 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @NonNull String subst) { in Builder()
148 public Builder addField(@NonNull AutofillId id, @NonNull Pattern regex, in addField()
194 final AutofillId[] ids = new AutofillId[size]; in writeToParcel()
199 for (Entry<AutofillId, Pair<Pattern, String>> entry : mFields.entrySet()) { in writeToParcel()
216 final AutofillId[] ids = parcel.readParcelableArray(null, AutofillId.class);
DFillResponse.java35 import android.view.autofill.AutofillId;
100 private final @Nullable AutofillId[] mAuthenticationIds;
101 private final @Nullable AutofillId[] mIgnoredIds;
102 private final @Nullable AutofillId[] mFillDialogTriggerIds;
104 private final @Nullable AutofillId[] mFieldClassificationIds;
191 public @Nullable AutofillId[] getAuthenticationIds() { in getAuthenticationIds()
196 public @Nullable AutofillId[] getFillDialogTriggerIds() { in getFillDialogTriggerIds()
201 public @Nullable AutofillId[] getIgnoredIds() { in getIgnoredIds()
211 public @Nullable AutofillId[] getFieldClassificationIds() { in getFieldClassificationIds()
271 private AutofillId[] mAuthenticationIds;
[all …]
DFillContext.java31 import android.view.autofill.AutofillId;
72 private final @NonNull AutofillId mFocusedId;
78 private transient @Nullable ArrayMap<AutofillId, AssistStructure.ViewNode> mViewNodeLookupTable;
97 @NonNull public ViewNode[] findViewNodesByAutofillIds(@NonNull AutofillId[] ids) { in findViewNodesByAutofillIds()
128 final AutofillId id = ids[index]; in findViewNodesByAutofillIds()
190 @NonNull AutofillId focusedId) { in FillContext()
225 public @NonNull AutofillId getFocusedId() { in getFocusedId()
260 AutofillId focusedId = (AutofillId) in.readTypedObject(AutofillId.CREATOR);
DLuhnChecksumValidator.java26 import android.view.autofill.AutofillId;
42 private final AutofillId[] mIds;
49 public LuhnChecksumValidator(@NonNull AutofillId... ids) { in LuhnChecksumValidator()
92 for (AutofillId id : mIds) { in isValid()
131 return new LuhnChecksumValidator(parcel.readParcelableArray(null, AutofillId.class));
DAutofillServiceHelper.java20 import android.view.autofill.AutofillId;
27 static AutofillId[] assertValid(@Nullable AutofillId[] ids) { in assertValid()
DDataset.java30 import android.view.autofill.AutofillId;
116 private final ArrayList<AutofillId> mFieldIds;
151 public @Nullable ArrayList<AutofillId> getFieldIds() { in getFieldIds()
289 private ArrayList<AutofillId> mFieldIds;
522 public @NonNull Builder setContent(@NonNull AutofillId id, @Nullable ClipData content) { in setContent()
563 public @NonNull Builder setValue(@NonNull AutofillId id, @Nullable AutofillValue value) { in setValue()
593 public @NonNull Builder setValue(@NonNull AutofillId id, @Nullable AutofillValue value, in setValue()
630 public @NonNull Builder setValue(@NonNull AutofillId id, @Nullable AutofillValue value, in setValue()
671 public @NonNull Builder setValue(@NonNull AutofillId id, @Nullable AutofillValue value, in setValue()
704 public @NonNull Builder setValue(@NonNull AutofillId id, @Nullable AutofillValue value, in setValue()
[all …]
DValueFinder.java21 import android.view.autofill.AutofillId;
36 default String findByAutofillId(@NonNull AutofillId id) { in findByAutofillId()
45 AutofillValue findRawValueByAutofillId(@NonNull AutofillId id); in findRawValueByAutofillId()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DHelper.java35 import android.view.autofill.AutofillId;
79 static AutofillId[] toArray(@Nullable ArraySet<AutofillId> set) { in toArray()
82 final AutofillId[] array = new AutofillId[set.size()]; in toArray()
97 static ArrayMap<AutofillId, AutofillValue> getFields(@NonNull Dataset dataset) { in getFields()
98 final ArrayList<AutofillId> ids = dataset.getFieldIds(); in getFields()
101 final ArrayMap<AutofillId, AutofillValue> fields = new ArrayMap<>(size); in getFields()
150 @NonNull AutofillId autofillId) { in findViewNodeByAutofillId()
221 static ArrayList<AutofillId> getAutofillIds(@NonNull AssistStructure structure, in getAutofillIds()
223 final ArrayList<AutofillId> ids = new ArrayList<>(); in getAutofillIds()
233 @NonNull ArrayList<AutofillId> ids, boolean autofillableOnly) { in addAutofillableIds()
[all …]
DAutofillInlineSessionController.java24 import android.view.autofill.AutofillId;
84 void onCreateInlineSuggestionsRequestLocked(@NonNull AutofillId autofillId, in onCreateInlineSuggestionsRequestLocked()
106 void destroyLocked(@NonNull AutofillId autofillId) { in destroyLocked()
136 boolean hideInlineSuggestionsUiLocked(@NonNull AutofillId autofillId) { in hideInlineSuggestionsUiLocked()
148 void disableFilterMatching(@NonNull AutofillId autofillId) { in disableFilterMatching()
175 boolean filterInlineFillUiLocked(@NonNull AutofillId autofillId, @Nullable String filterText) { in filterInlineFillUiLocked()
/frameworks/base/core/java/android/view/translation/
DViewTranslationRequest.java25 import android.view.autofill.AutofillId;
60 private final AutofillId mAutofillId;
95 public AutofillId getAutofillId() { in getAutofillId()
108 private @NonNull AutofillId mAutofillId;
118 public Builder(@NonNull AutofillId autofillId) { in Builder()
132 public Builder(@NonNull AutofillId autofillId, long virtualChildId) { in Builder()
133 mAutofillId = new AutofillId(autofillId, virtualChildId, AutofillId.NO_SESSION); in Builder()
220 @NonNull AutofillId autofillId, in ViewTranslationRequest()
294 AutofillId autofillId = (AutofillId) in.readTypedObject(AutofillId.CREATOR); in ViewTranslationRequest()
DViewTranslationResponse.java25 import android.view.autofill.AutofillId;
45 private final AutofillId mAutofillId;
80 public AutofillId getAutofillId() { in getAutofillId()
129 @NonNull AutofillId autofillId, in ViewTranslationResponse()
203 AutofillId autofillId = (AutofillId) in.readTypedObject(AutofillId.CREATOR); in ViewTranslationResponse()
238 private @NonNull AutofillId mAutofillId;
250 @NonNull AutofillId autofillId) { in Builder()
DUiTranslationController.java47 import android.view.autofill.AutofillId;
86 private final ArrayMap<AutofillId, WeakReference<View>> mViews;
91 private final ArraySet<AutofillId> mViewsToPadContent;
98 private ArraySet<AutofillId> mLastRequestAutofillIds;
119 TranslationSpec targetSpec, List<AutofillId> views, in updateUiTranslationState()
197 private void setLastRequestAutofillIdsLocked(List<AutofillId> views) { in setLastRequestAutofillIdsLocked()
233 final AutofillId autofillId = mViews.keyAt(i); in dump()
276 final AutofillId autofillId = view.getAutofillId(); in dumpViewInfo()
314 final AutofillId autofillId = result.getAutofillId(); in onTranslationCompleted()
359 final AutofillId autofillId = new AutofillId(translatedResult.keyAt(i)); in onVirtualViewTranslationCompleted()
[all …]
/frameworks/base/core/java/android/view/contentcapture/
DContentCaptureSession.java31 import android.view.autofill.AutofillId;
397 public final void notifyViewDisappeared(@NonNull AutofillId id) { in notifyViewDisappeared()
404 abstract void internalNotifyViewDisappeared(@NonNull AutofillId id); in internalNotifyViewDisappeared()
419 public final void notifyViewsDisappeared(@NonNull AutofillId hostId, in notifyViewsDisappeared()
428 internalNotifyViewDisappeared(new AutofillId(hostId, id, mId)); in notifyViewsDisappeared()
438 public final void notifyViewTextChanged(@NonNull AutofillId id, @Nullable CharSequence text) { in notifyViewTextChanged()
446 abstract void internalNotifyViewTextChanged(@NonNull AutofillId id, in internalNotifyViewTextChanged()
548 public @NonNull AutofillId newAutofillId(@NonNull AutofillId hostId, long virtualChildId) { in newAutofillId()
551 return new AutofillId(hostId, virtualChildId, mId); in newAutofillId()
565 public final ViewStructure newVirtualViewStructure(@NonNull AutofillId parentId, in newVirtualViewStructure()
/frameworks/base/core/java/com/android/internal/view/
DInlineSuggestionsRequestInfo.java23 import android.view.autofill.AutofillId;
46 private final @NonNull AutofillId mAutofillId;
81 @NonNull AutofillId autofillId, in InlineSuggestionsRequestInfo()
108 public @NonNull AutofillId getAutofillId() { in getAutofillId()
187 AutofillId autofillId = (AutofillId) in.readTypedObject(AutofillId.CREATOR); in InlineSuggestionsRequestInfo()

1234