Loading core/java/android/service/autofill/AutofillService.java +0 −1 Original line number Diff line number Diff line Loading @@ -528,7 +528,6 @@ import android.view.autofill.AutofillValue; * <compatibility-package android:name="foo.bar.baz" android:maxLongVersionCode="1000000000"/> * </autofill-service></pre> */ // TODO(b/70407264): add code snippets to field classification ??? public abstract class AutofillService extends Service { private static final String TAG = "AutofillService"; Loading core/java/android/service/autofill/UserData.java +6 −9 Original line number Diff line number Diff line Loading @@ -169,17 +169,15 @@ public final class UserData implements Parcelable { * @param categoryId string used to identify the category the value is associated with. * * @throws IllegalArgumentException if any of the following occurs: * <ol> * <ul> * <li>{@code id} is empty</li> * <li>{@code categoryId} is empty</li> * <li>{@code value} is empty</li> * <li>the length of {@code value} is lower than {@link UserData#getMinValueLength()}</li> * <li>the length of {@code value} is higher than * {@link UserData#getMaxValueLength()}</li> * </ol> * * </ul> */ // TODO(b/70407264): ignore entry instead of throwing exception when settings changed public Builder(@NonNull String id, @NonNull String value, @NonNull String categoryId) { mId = checkNotEmpty("id", id); checkNotEmpty("categoryId", categoryId); Loading Loading @@ -222,26 +220,25 @@ public final class UserData implements Parcelable { * @param categoryId string used to identify the category the value is associated with. * * @throws IllegalStateException if: * <ol> * <ul> * <li>{@link #build()} already called</li> * <li>the {@code value} has already been added</li> * <li>the number of unique {@code categoryId} values added so far is more than * {@link UserData#getMaxCategoryCount()}</li> * <li>the number of {@code values} added so far is is more than * {@link UserData#getMaxUserDataSize()}</li> * </ol> * </ul> * * @throws IllegalArgumentException if any of the following occurs: * <ol> * <ul> * <li>{@code id} is empty</li> * <li>{@code categoryId} is empty</li> * <li>{@code value} is empty</li> * <li>the length of {@code value} is lower than {@link UserData#getMinValueLength()}</li> * <li>the length of {@code value} is higher than * {@link UserData#getMaxValueLength()}</li> * </ol> * </ul> */ // TODO(b/70407264): ignore entry instead of throwing exception when settings changed public Builder add(@NonNull String value, @NonNull String categoryId) { throwIfDestroyed(); checkNotEmpty("categoryId", categoryId); Loading services/autofill/java/com/android/server/autofill/Session.java +1 −1 Original line number Diff line number Diff line Loading @@ -1874,7 +1874,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState isIgnored ? ViewState.STATE_IGNORED : ViewState.STATE_INITIAL); mViewStates.put(id, viewState); // TODO(b/70407264): for optimization purposes, should also ignore if change is // TODO(b/73648631): for optimization purposes, should also ignore if change is // detectable, and batch-send them when the session is finished (but that will // require tracking detectable fields on AutofillManager) if (isIgnored) { Loading Loading
core/java/android/service/autofill/AutofillService.java +0 −1 Original line number Diff line number Diff line Loading @@ -528,7 +528,6 @@ import android.view.autofill.AutofillValue; * <compatibility-package android:name="foo.bar.baz" android:maxLongVersionCode="1000000000"/> * </autofill-service></pre> */ // TODO(b/70407264): add code snippets to field classification ??? public abstract class AutofillService extends Service { private static final String TAG = "AutofillService"; Loading
core/java/android/service/autofill/UserData.java +6 −9 Original line number Diff line number Diff line Loading @@ -169,17 +169,15 @@ public final class UserData implements Parcelable { * @param categoryId string used to identify the category the value is associated with. * * @throws IllegalArgumentException if any of the following occurs: * <ol> * <ul> * <li>{@code id} is empty</li> * <li>{@code categoryId} is empty</li> * <li>{@code value} is empty</li> * <li>the length of {@code value} is lower than {@link UserData#getMinValueLength()}</li> * <li>the length of {@code value} is higher than * {@link UserData#getMaxValueLength()}</li> * </ol> * * </ul> */ // TODO(b/70407264): ignore entry instead of throwing exception when settings changed public Builder(@NonNull String id, @NonNull String value, @NonNull String categoryId) { mId = checkNotEmpty("id", id); checkNotEmpty("categoryId", categoryId); Loading Loading @@ -222,26 +220,25 @@ public final class UserData implements Parcelable { * @param categoryId string used to identify the category the value is associated with. * * @throws IllegalStateException if: * <ol> * <ul> * <li>{@link #build()} already called</li> * <li>the {@code value} has already been added</li> * <li>the number of unique {@code categoryId} values added so far is more than * {@link UserData#getMaxCategoryCount()}</li> * <li>the number of {@code values} added so far is is more than * {@link UserData#getMaxUserDataSize()}</li> * </ol> * </ul> * * @throws IllegalArgumentException if any of the following occurs: * <ol> * <ul> * <li>{@code id} is empty</li> * <li>{@code categoryId} is empty</li> * <li>{@code value} is empty</li> * <li>the length of {@code value} is lower than {@link UserData#getMinValueLength()}</li> * <li>the length of {@code value} is higher than * {@link UserData#getMaxValueLength()}</li> * </ol> * </ul> */ // TODO(b/70407264): ignore entry instead of throwing exception when settings changed public Builder add(@NonNull String value, @NonNull String categoryId) { throwIfDestroyed(); checkNotEmpty("categoryId", categoryId); Loading
services/autofill/java/com/android/server/autofill/Session.java +1 −1 Original line number Diff line number Diff line Loading @@ -1874,7 +1874,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState isIgnored ? ViewState.STATE_IGNORED : ViewState.STATE_INITIAL); mViewStates.put(id, viewState); // TODO(b/70407264): for optimization purposes, should also ignore if change is // TODO(b/73648631): for optimization purposes, should also ignore if change is // detectable, and batch-send them when the session is finished (but that will // require tracking detectable fields on AutofillManager) if (isIgnored) { Loading