commit | 656ec3629e1d76e6f46a5059c013f3c9ac4048b4 | [log] [tgz] |
---|---|---|
author | Shuo Qian <shuoq@google.com> | Wed Nov 04 17:48:06 2020 -0800 |
committer | Shuo Qian <shuoq@google.com> | Thu Nov 12 22:37:52 2020 +0000 |
tree | 0503f405d5c55732c455e1ad3e95e18df306c67d | |
parent | 8185680306c9ad5bbabb2f979d3641d016efb5de [diff] |
Add TelephonyManager test hidden API for testing Test: atest Bug: 172507765 Change-Id: I30a5b695770509dc803ab5623c75e653d40f4d11 Merged-In: I30a5b695770509dc803ab5623c75e653d40f4d11 (cherry picked from commit 53cfc4a8944c491934973d47f8c4503a5644b8ed)
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 27aadd5..9243467 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -13783,6 +13783,15 @@ } /** + * Setup sITelephony for testing. + * @hide + */ + @VisibleForTesting + public static void setupITelephonyForTest(ITelephony telephony) { + sITelephony = telephony; + } + + /** * Whether device can connect to 5G network when two SIMs are active. * @hide * TODO b/153669716: remove or make system API.