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

Commit 22241e17 authored by Jack Yu's avatar Jack Yu
Browse files

Added annotations to the API

Added @NonNull and @Nullable to APIs.

Test: Build
Bug: 126702898

Merged-In: I697298837858829bb0851aba389159701fa0fc5e
Change-Id: I697298837858829bb0851aba389159701fa0fc5e
(cherry picked from commit 1eb3f0cd)
parent c5461c44
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -6535,19 +6535,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; }

    /**