summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-01-13 19:05:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-01-13 19:05:35 +0000
commitd08e71768debc97f5c6b34df2c1e85d67b4cf24d (patch)
treee23520be27ca120055a95fa4d8214fd914955f60 /tests
parent6d340f763cc8a23a9bd1a6adfd42b1650e77c291 (diff)
parenta31e2fa5f1daaa191c9fac69a100792a30d6c274 (diff)
Merge changes I14de89e4,Ic87cdfac
* changes: ClientModeManager: Use public API for getting TelephonyManager SarManager: Use public API to detect voice call over earpiece
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/ClientModeManagerTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/ClientModeManagerTest.java b/tests/wifitests/src/com/android/server/wifi/ClientModeManagerTest.java
index aa7b1bc24..5d3bb601b 100644
--- a/tests/wifitests/src/com/android/server/wifi/ClientModeManagerTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/ClientModeManagerTest.java
@@ -100,7 +100,7 @@ public class ClientModeManagerTest extends WifiBaseTest {
* from the context.
*/
private void setUpSystemServiceForContext() {
- when(mContext.getSystemService(Context.TELEPHONY_SERVICE)).thenReturn(mTelephonyManager);
+ when(mContext.getSystemService(TelephonyManager.class)).thenReturn(mTelephonyManager);
when(mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE))
.thenReturn(mCarrierConfigManager);
}