Loading core/java/android/companion/CompanionDeviceManager.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -248,7 +248,7 @@ public final class CompanionDeviceManager { * The length limit of Association tag. * The length limit of Association tag. * @hide * @hide */ */ private static final int ASSOCIATION_TAG_LENGTH_LIMIT = 100; private static final int ASSOCIATION_TAG_LENGTH_LIMIT = 1024; /** /** * Callback for applications to receive updates about and the outcome of * Callback for applications to receive updates about and the outcome of Loading Loading @@ -1427,7 +1427,7 @@ public final class CompanionDeviceManager { /** /** * Sets the {@link AssociationInfo#getTag() tag} for this association. * Sets the {@link AssociationInfo#getTag() tag} for this association. * * * <p>The length of the tag must be at most 100 characters to save disk space. * <p>The length of the tag must be at most 1024 characters to save disk space. * * * <p>This allows to store useful information about the associated devices. * <p>This allows to store useful information about the associated devices. * * Loading @@ -1441,7 +1441,8 @@ public final class CompanionDeviceManager { Objects.requireNonNull(tag, "tag cannot be null"); Objects.requireNonNull(tag, "tag cannot be null"); if (tag.length() > ASSOCIATION_TAG_LENGTH_LIMIT) { if (tag.length() > ASSOCIATION_TAG_LENGTH_LIMIT) { throw new IllegalArgumentException("Length of the tag must be at most 100 characters"); throw new IllegalArgumentException("Length of the tag must be at most" + ASSOCIATION_TAG_LENGTH_LIMIT + " characters"); } } try { try { Loading Loading
core/java/android/companion/CompanionDeviceManager.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -248,7 +248,7 @@ public final class CompanionDeviceManager { * The length limit of Association tag. * The length limit of Association tag. * @hide * @hide */ */ private static final int ASSOCIATION_TAG_LENGTH_LIMIT = 100; private static final int ASSOCIATION_TAG_LENGTH_LIMIT = 1024; /** /** * Callback for applications to receive updates about and the outcome of * Callback for applications to receive updates about and the outcome of Loading Loading @@ -1427,7 +1427,7 @@ public final class CompanionDeviceManager { /** /** * Sets the {@link AssociationInfo#getTag() tag} for this association. * Sets the {@link AssociationInfo#getTag() tag} for this association. * * * <p>The length of the tag must be at most 100 characters to save disk space. * <p>The length of the tag must be at most 1024 characters to save disk space. * * * <p>This allows to store useful information about the associated devices. * <p>This allows to store useful information about the associated devices. * * Loading @@ -1441,7 +1441,8 @@ public final class CompanionDeviceManager { Objects.requireNonNull(tag, "tag cannot be null"); Objects.requireNonNull(tag, "tag cannot be null"); if (tag.length() > ASSOCIATION_TAG_LENGTH_LIMIT) { if (tag.length() > ASSOCIATION_TAG_LENGTH_LIMIT) { throw new IllegalArgumentException("Length of the tag must be at most 100 characters"); throw new IllegalArgumentException("Length of the tag must be at most" + ASSOCIATION_TAG_LENGTH_LIMIT + " characters"); } } try { try { Loading