Home
last modified time | relevance | path

Searched refs:AutofillId (Results 1 – 25 of 83) 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.java546 @Nullable private ArraySet<AutofillId> mFillableIds;
549 @Nullable private AutofillId mIdShownFillUi;
556 @Nullable private ArraySet<AutofillId> mEnteredIds;
563 @Nullable private Set<AutofillId> mEnteredForAugmentedAutofillIds;
567 @Nullable private AutofillId mSaveTriggerId;
651 @NonNull boolean[] autofillClientGetViewVisibility(@NonNull AutofillId[] autofillIds); in autofillClientGetViewVisibility()
673 @NonNull AutofillId[] autofillIds); in autofillClientFindViewsByAutofillIdTraversal()
682 @Nullable View autofillClientFindViewByAutofillIdTraversal(@NonNull AutofillId autofillId); in autofillClientFindViewByAutofillIdTraversal()
722 @Nullable AutofillId autofillClientGetNextAutofillId(); in autofillClientGetNextAutofillId()
1009 private boolean shouldIgnoreViewEnteredLocked(@NonNull AutofillId id, int flags) { in shouldIgnoreViewEnteredLocked()
[all …]
/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;
326 private final AutofillId[] mRequiredIds;
327 private final AutofillId[] mOptionalIds;
333 private final AutofillId[][] mSanitizerValues;
334 private final AutofillId mTriggerId;
353 mSanitizerValues = new AutofillId[size][]; in SaveInfo()
378 public @Nullable AutofillId[] getRequiredIds() { in getRequiredIds()
383 public @Nullable AutofillId[] getOptionalIds() { in getOptionalIds()
422 public AutofillId[][] getSanitizerValues() { in getSanitizerValues()
428 public AutofillId getTriggerId() { in getTriggerId()
[all …]
DFillEventHistory.java31 import android.view.autofill.AutofillId;
156 final AutofillId[] detectedFields = event.mDetectedFieldIds; in writeToParcel()
290 @Nullable private final ArrayList<AutofillId> mChangedFieldIds;
293 @Nullable private final ArrayList<AutofillId> mManuallyFilledFieldIds;
296 @Nullable private final AutofillId[] mDetectedFieldIds;
389 @NonNull public Map<AutofillId, String> getChangedFields() { in getChangedFields()
395 final ArrayMap<AutofillId, String> changedFields = new ArrayMap<>(size); in getChangedFields()
410 @NonNull public Map<AutofillId, FieldClassification> getFieldsClassification() { in getFieldsClassification()
415 final ArrayMap<AutofillId, FieldClassification> map = new ArrayMap<>(size); in getFieldsClassification()
417 final AutofillId id = mDetectedFieldIds[i]; in getFieldsClassification()
[all …]
DCharSequenceTransformation.java27 import android.view.autofill.AutofillId;
68 @NonNull private final LinkedHashMap<AutofillId, Pair<Pattern, String>> mFields;
82 for (Entry<AutofillId, Pair<Pattern, String>> entry : mFields.entrySet()) { in apply()
83 final AutofillId id = entry.getKey(); in apply()
118 @NonNull private final LinkedHashMap<AutofillId, Pair<Pattern, String>> mFields =
132 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @NonNull String subst) { in Builder()
147 public Builder addField(@NonNull AutofillId id, @NonNull Pattern regex, in addField()
193 final AutofillId[] ids = new AutofillId[size]; in writeToParcel()
198 for (Entry<AutofillId, Pair<Pattern, String>> entry : mFields.entrySet()) { in writeToParcel()
215 final AutofillId[] ids = parcel.readParcelableArray(null, AutofillId.class);
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);
DFillResponse.java34 import android.view.autofill.AutofillId;
84 private final @Nullable AutofillId[] mAuthenticationIds;
85 private final @Nullable AutofillId[] mIgnoredIds;
87 private final @Nullable AutofillId[] mFieldClassificationIds;
161 public @Nullable AutofillId[] getAuthenticationIds() { in getAuthenticationIds()
166 public @Nullable AutofillId[] getIgnoredIds() { in getIgnoredIds()
176 public @Nullable AutofillId[] getFieldClassificationIds() { in getFieldClassificationIds()
234 private AutofillId[] mAuthenticationIds;
235 private AutofillId[] mIgnoredIds;
237 private AutofillId[] mFieldClassificationIds;
[all …]
DDataset.java30 import android.view.autofill.AutofillId;
106 private final ArrayList<AutofillId> mFieldIds;
137 public @Nullable ArrayList<AutofillId> getFieldIds() { in getFieldIds()
263 private ArrayList<AutofillId> mFieldIds;
473 public @NonNull Builder setContent(@NonNull AutofillId id, @Nullable ClipData content) { in setContent()
512 public @NonNull Builder setValue(@NonNull AutofillId id, @Nullable AutofillValue value) { in setValue()
540 public @NonNull Builder setValue(@NonNull AutofillId id, @Nullable AutofillValue value, in setValue()
575 public @NonNull Builder setValue(@NonNull AutofillId id, @Nullable AutofillValue value, in setValue()
613 public @NonNull Builder setValue(@NonNull AutofillId id, @Nullable AutofillValue value, in setValue()
644 public @NonNull Builder setValue(@NonNull AutofillId id, @Nullable AutofillValue value, in setValue()
[all …]
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()
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.java44 import android.view.autofill.AutofillId;
79 private final ArrayMap<AutofillId, WeakReference<View>> mViews;
84 private final ArraySet<AutofillId> mViewsToPadContent;
91 private ArraySet<AutofillId> mLastRequestAutofillIds;
111 TranslationSpec targetSpec, List<AutofillId> views, in updateUiTranslationState()
198 private void setLastRequestAutofillIdsLocked(List<AutofillId> views) { in setLastRequestAutofillIdsLocked()
230 final AutofillId autofillId = mViews.keyAt(i); in dump()
273 final AutofillId autofillId = view.getAutofillId(); in dumpViewInfo()
311 final AutofillId autofillId = result.getAutofillId(); in onTranslationCompleted()
358 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;
385 public final void notifyViewDisappeared(@NonNull AutofillId id) { in notifyViewDisappeared()
392 abstract void internalNotifyViewDisappeared(@NonNull AutofillId id); in internalNotifyViewDisappeared()
407 public final void notifyViewsDisappeared(@NonNull AutofillId hostId, in notifyViewsDisappeared()
416 internalNotifyViewDisappeared(new AutofillId(hostId, id, mId)); in notifyViewsDisappeared()
426 public final void notifyViewTextChanged(@NonNull AutofillId id, @Nullable CharSequence text) { in notifyViewTextChanged()
434 abstract void internalNotifyViewTextChanged(@NonNull AutofillId id, in internalNotifyViewTextChanged()
536 public @NonNull AutofillId newAutofillId(@NonNull AutofillId hostId, long virtualChildId) { in newAutofillId()
539 return new AutofillId(hostId, virtualChildId, mId); in newAutofillId()
553 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()
/frameworks/base/core/java/android/inputmethodservice/
DInlineSuggestionSessionController.java30 import android.view.autofill.AutofillId;
75 private AutofillId mImeClientFieldId;
127 @Nullable AutofillId imeFieldId) { in notifyOnStartInput()
237 boolean match(@Nullable AutofillId autofillId) { in match()
243 @Nullable String imeClientPackageName, @Nullable AutofillId imeClientFieldId) { in match()
253 private static boolean match(@Nullable AutofillId autofillId, in match()
254 @Nullable AutofillId imeClientFieldId) { in match()

1234