Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7757f1c authored by Evan Chen's avatar Evan Chen
Browse files

Add more details for the builder of DeviceId

User must provide at least one of the following:
mac address, custom id.

Test: cts
Bug: 382346818
Flag: android.companion.association_tag
Change-Id: I7edd851dcae09a92f4a17b6b7d9fe9476d30c5cb
parent 7879f67a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -154,6 +154,10 @@ public final class DeviceId implements Parcelable {

    /**
     * A builder for {@link DeviceId}
     *
     * <p>Calling apps must provide at least one of the following to identify
     * the device: a custom ID using {@link #setCustomId(String)}, or a MAC address using
     * {@link #setMacAddress(MacAddress)}.</p>
     */
    public static final class Builder extends OneTimeUseBuilder<DeviceId> {
        private String mCustomId;