Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / library / aosp-stubs / src / main / java / android / telephony / TelephonyManager$BootstrapAuthenticationCallback.java
TelephonyManager$BootstrapAuthenticationCallback.java29 lines · 1.2 KiBRaw
| 1 | package android.telephony; |
| 2 | |
| 3 | /** |
| 4 | * Compile-only stub of the framework's {@code @SystemApi} nested class |
| 5 | * {@code android.telephony.TelephonyManager.BootstrapAuthenticationCallback}. |
| 6 | * |
| 7 | * The outer {@code TelephonyManager} ships in the public SDK (so it cannot |
| 8 | * be stubbed — the SDK bootclasspath wins), but this nested callback is |
| 9 | * {@code @hide} and absent from {@code android.jar}. Declared here as a |
| 10 | * top-level class whose binary name matches the framework nested class, so |
| 11 | * compile-time references link and runtime links against the real framework |
| 12 | * class. Kotlin callers import it with backticks: |
| 13 | * {@code import android.telephony.`TelephonyManager$BootstrapAuthenticationCallback`}. |
| 14 | * |
| 15 | * Not packaged; the real class is provided by the framework at runtime. |
| 16 | */ |
| 17 | public class TelephonyManager$BootstrapAuthenticationCallback { |
| 18 | public TelephonyManager$BootstrapAuthenticationCallback() { |
| 19 | throw new RuntimeException("Stub"); |
| 20 | } |
| 21 | |
| 22 | public void onKeysAvailable(byte[] gbaKey, String transactionId) { |
| 23 | throw new RuntimeException("Stub"); |
| 24 | } |
| 25 | |
| 26 | public void onAuthenticationFailure(int reason) { |
| 27 | throw new RuntimeException("Stub"); |
| 28 | } |
| 29 | } |