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

Commit da247eb5 authored by Jack Yu's avatar Jack Yu Committed by Android (Google) Code Review
Browse files

Merge "Added annotations to the API"

parents d4f756e8 1eb3f0cd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -8115,19 +8115,19 @@ package android.telephony.data {
  }
  public final class DataProfile implements android.os.Parcelable {
    method public String getApn();
    method @NonNull public String getApn();
    method public int getAuthType();
    method public int getBearerBitmap();
    method public int getMaxConns();
    method public int getMaxConnsTime();
    method public int getMtu();
    method public String getPassword();
    method @Nullable public String getPassword();
    method public int getProfileId();
    method public int getProtocol();
    method public int getRoamingProtocol();
    method public int getSupportedApnTypesBitmap();
    method public int getType();
    method public String getUserName();
    method @Nullable public String getUserName();
    method public int getWaitTime();
    method public boolean isEnabled();
    method public boolean isPersistent();
+5 −0
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@ package android.telephony.data;
import static android.telephony.data.ApnSetting.ProtocolType;

import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.os.Build;
import android.os.Parcel;
@@ -158,6 +160,7 @@ public final class DataProfile implements Parcelable {
    /**
     * @return The APN to establish data connection.
     */
    @NonNull
    public String getApn() { return mApn; }

    /**
@@ -173,11 +176,13 @@ public final class DataProfile implements Parcelable {
    /**
     * @return The username for APN. Can be null.
     */
    @Nullable
    public String getUserName() { return mUserName; }

    /**
     * @return The password for APN. Can be null.
     */
    @Nullable
    public String getPassword() { return mPassword; }

    /**