Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / library / aosp-stubs / src / main / java / android / service / euicc / EuiccProfileInfo.java
EuiccProfileInfo.java51 lines · 1.7 KiBRaw
| 1 | package android.service.euicc; |
| 2 | |
| 3 | /** |
| 4 | * Compile-only stub of the {@code @SystemApi} |
| 5 | * {@code android.service.euicc.EuiccProfileInfo}. Only the members the LPA |
| 6 | * constructs are declared. Not packaged; the framework provides the real class. |
| 7 | * |
| 8 | * <p>Note the package: this class lives in {@code android.service.euicc}, unlike its |
| 9 | * siblings {@code DownloadableSubscription} and {@code EuiccInfo} which really are in |
| 10 | * {@code android.telephony.euicc}. Declaring the stub in the latter compiles, then fails |
| 11 | * at runtime with {@code ClassNotFoundException} the first time the framework calls |
| 12 | * {@code onGetEuiccProfileInfoList}. |
| 13 | */ |
| 14 | public final class EuiccProfileInfo { |
| 15 | public static final int PROFILE_STATE_UNSET = -1; |
| 16 | public static final int PROFILE_STATE_DISABLED = 0; |
| 17 | public static final int PROFILE_STATE_ENABLED = 1; |
| 18 | |
| 19 | public static final int PROFILE_CLASS_UNSET = -1; |
| 20 | public static final int PROFILE_CLASS_TESTING = 0; |
| 21 | public static final int PROFILE_CLASS_PROVISIONING = 1; |
| 22 | public static final int PROFILE_CLASS_OPERATIONAL = 2; |
| 23 | |
| 24 | public static final class Builder { |
| 25 | public Builder(String iccid) {} |
| 26 | |
| 27 | public Builder setNickname(String nickname) { |
| 28 | return this; |
| 29 | } |
| 30 | |
| 31 | public Builder setServiceProviderName(String serviceProviderName) { |
| 32 | return this; |
| 33 | } |
| 34 | |
| 35 | public Builder setProfileName(String profileName) { |
| 36 | return this; |
| 37 | } |
| 38 | |
| 39 | public Builder setState(int state) { |
| 40 | return this; |
| 41 | } |
| 42 | |
| 43 | public Builder setProfileClass(int profileClass) { |
| 44 | return this; |
| 45 | } |
| 46 | |
| 47 | public EuiccProfileInfo build() { |
| 48 | return null; |
| 49 | } |
| 50 | } |
| 51 | } |