Home
last modified time | relevance | path

Searched refs:sTelephonyManager (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DCallDomainSelectionTestOnMockModem.java85 private static TelephonyManager sTelephonyManager; field in CallDomainSelectionTestOnMockModem
105 sTelephonyManager = in beforeAllTests()
107 assertNotNull(sTelephonyManager); in beforeAllTests()
118 sTelephonyManager, (tm) -> tm.isDomainSelectionSupported()); in beforeAllTests()
137 int simCardState = sTelephonyManager.getSimCardState(); in beforeAllTests()
143 simCardState = sTelephonyManager.getSimState(); in beforeAllTests()
284 ServiceState ss = sTelephonyManager.createForSubscriptionId(subId).getServiceState(); in getRegState()
327 sTelephonyManager, in testCombinedAttachPsSelected()
344 assertTrue(sTelephonyManager.isImsRegistered()); in testCombinedAttachPsSelected()
354 sTelephonyManager.unregisterTelephonyCallback(sCallStateCallback); in testCombinedAttachPsSelected()
[all …]
DImsMmTelManagerTest.java89 private static TelephonyManager sTelephonyManager; field in ImsMmTelManagerTest
176 sTelephonyManager = InstrumentationRegistry.getInstrumentation().getContext() in beforeAllTests()
515 sTelephonyManager.registerTelephonyCallback(getContext().getMainExecutor(), in testVoWiFiRoamingModeSettingUsingNonTerrestrialNetwork()
524 String plmn = sTelephonyManager.getNetworkOperator(sTestSub); in testVoWiFiRoamingModeSettingUsingNonTerrestrialNetwork()
DImsCallingTest.java104 private static TelephonyManager sTelephonyManager; field in ImsCallingTest
121 sTelephonyManager = in beforeAllTests()
139 if (sTelephonyManager.getSimState(sTestSlot) != TelephonyManager.SIM_STATE_READY) { in isSimReady()
1237 sTelephonyManager.registerTelephonyCallback(Runnable::run, testCb); in testNotifyCallStateChanged()
1244 sTelephonyManager, (tm) -> tm.registerTelephonyCallback(Runnable::run, testCb)); in testNotifyCallStateChanged()
1321 sTelephonyManager.registerTelephonyCallback(Runnable::run, testCb); in testNotifyMediaCallStatusChanged()
1328 sTelephonyManager, in testNotifyMediaCallStatusChanged()
1373 ShellIdentityUtils.invokeMethodWithShellPermissions(sTelephonyManager, in testOutGoingEmergencyCall()
1384 sTelephonyManager, (tm) -> tm.registerTelephonyCallback(Runnable::run, testCb)); in testOutGoingEmergencyCall()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTestOnMockModem.java106 private static TelephonyManager sTelephonyManager; field in TelephonyManagerTestOnMockModem
144 sTelephonyManager = in beforeAllTests()
147 sIsMultiSimDevice = isMultiSim(sTelephonyManager); in beforeAllTests()
203 sTelephonyManager.unregisterTelephonyCallback(sServiceStateCallback); in afterAllTests()
208 sTelephonyManager.unregisterTelephonyCallback(sCallDisconnectCauseCallback); in afterAllTests()
213 sTelephonyManager.unregisterTelephonyCallback(sCallStateCallback); in afterAllTests()
231 sTelephonyManager.getHalVersion(TelephonyManager.HAL_SERVICE_RADIO); in beforeTest()
344 ServiceState ss = sTelephonyManager.createForSubscriptionId(subId).getServiceState(); in getNri()
389 int simCardState = sTelephonyManager.getSimCardState(); in testSimStateChange()
398 simCardState = sTelephonyManager.getSimCardState(); in testSimStateChange()
[all …]
DConnectivityManagerTestOnMockModem.java75 private static TelephonyManager sTelephonyManager; field in ConnectivityManagerTestOnMockModem
157 sTelephonyManager = in beforeAllTests()
159 sIsMultiSimDevice = isMultiSim(sTelephonyManager); in beforeAllTests()
282 ServiceState ss = sTelephonyManager.getServiceState(); in getRegState()
369 sTelephonyManager.setDataEnabled(subscriptionInfo.getSubscriptionId(), true); in testNetworkValidated()
431 boolean isDataEnabled = sTelephonyManager.getDataEnabled(slotIndex); in testDDSChange()
453 sTelephonyManager.setDataEnabled(subscriptionInfo.getSubscriptionId(), true); in testDDSChange()
DSimultaneousCallingRestrictionsTest.java93 private static TelephonyManager sTelephonyManager; field in SimultaneousCallingRestrictionsTest
150 sTelephonyManager = (TelephonyManager) getContext() in beforeAllTests()
152 sIsMultiSimDevice = isMultiSim(sTelephonyManager); in beforeAllTests()
232 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(sTelephonyManager, in afterAllTests()
279 if (sTelephonyManager.getSimState(TEST_SLOT_0) != TelephonyManager.SIM_STATE_READY in beforeTest()
280 || sTelephonyManager.getSimState(TEST_SLOT_1) != TelephonyManager.SIM_STATE_READY in beforeTest()
489 + sTelephonyManager.getSimState(phoneId) + "] for slot=[" + phoneId + "].", in waitForSimStateReadyOrTimeout()
490 ImsUtils.retryUntilTrue(() -> (sTelephonyManager.getSimState(phoneId) in waitForSimStateReadyOrTimeout()
656 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(sTelephonyManager, in registerNewSimultaneousCallingListener()
DDomainSelectionServiceTestOnMockModem.java103 private static TelephonyManager sTelephonyManager; field in DomainSelectionServiceTestOnMockModem
126 sTelephonyManager = in beforeAllTests()
130 ShellIdentityUtils.invokeMethodWithShellPermissions(sTelephonyManager, in beforeAllTests()
178 sTelephonyManager.getHalVersion(TelephonyManager.HAL_SERVICE_RADIO); in beforeTest()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DCarrierRoamingSatelliteTest.java87 sTelephonyManager.registerTelephonyCallback(getContext().getMainExecutor(), listener); in testCarrierRoamingNtnModeListener()
103 sTelephonyManager.unregisterTelephonyCallback(listener); in testCarrierRoamingNtnModeListener()
DSatelliteManagerTestBase.java88 protected static TelephonyManager sTelephonyManager = null; field in SatelliteManagerTestBase
97 sTelephonyManager = getContext().getSystemService(TelephonyManager.class); in beforeAllTestsBase()
103 sTelephonyManager = null; in afterAllTestsBase()
1091 sTelephonyManager.getServiceState(), sTelephonyManager.getRadioPowerState()); in turnRadioOff()
1092 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(sTelephonyManager, in turnRadioOff()
1094 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(sTelephonyManager, in turnRadioOff()
1102 sTelephonyManager.getServiceState(), sTelephonyManager.getRadioPowerState()); in turnRadioOn()
1103 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(sTelephonyManager, in turnRadioOn()
1105 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(sTelephonyManager, in turnRadioOn()
DCarrierRoamingSatelliteTestBase.java71 protected static TelephonyManager sTelephonyManager; field in CarrierRoamingSatelliteTestBase
84 sTelephonyManager = getContext().getSystemService(TelephonyManager.class); in beforeAllTestsBase()
97 sTelephonyManager = null; in afterAllTestsBase()
413 sTelephonyManager.registerTelephonyCallback(getContext().getMainExecutor(), in insertSatelliteEnabledSim()
DCarrierRoamingSatelliteSmsTest.java319 sTelephonyManager.registerTelephonyCallback(getContext().getMainExecutor(), in sendMessageAutomaticallyAfterSatelliteConnectionIsRestored()
DSatelliteManagerTestOnMockService.java1307 assumeTrue(sTelephonyManager != null); in testSatelliteEnableErrorHandling()
2528 sTelephonyManager.getServiceState(), sTelephonyManager.getRadioPowerState()); in testSatelliteModeRadiosWithAirplaneMode()
2529 sTelephonyManager.registerTelephonyCallback(Runnable::run, callback); in testSatelliteModeRadiosWithAirplaneMode()
2592 sTelephonyManager.unregisterTelephonyCallback(callback); in testSatelliteModeRadiosWithAirplaneMode()
/cts/tests/devicepolicy/telephony/src/android/devicepolicy/cts/telephony/
DWorkProfileTelephonyTest.java134 private static final TelephonyManager sTelephonyManager = sContext.getSystemService( field in WorkProfileTelephonyTest
595 assumeTrue(sTelephonyManager.isSmsCapable() || (sRoleManager != null in assumeSmsCapableDevice()
600 assumeTrue(sTelephonyManager.isVoiceCapable() || (sRoleManager != null in assumeCallCapableDevice()
611 return sTelephonyManager.getSimState() == TelephonyManager.SIM_STATE_READY; in isSimCardPresent()
629 sTelephonyManager.getPhoneAccountHandleForSubscriptionId(subId); in setDefaultSimForCallInWorkProfile()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DConnectedNetworkScorerTest.java107 private static TelephonyManager sTelephonyManager; field in ConnectedNetworkScorerTest
165 sTelephonyManager = sContext.getSystemService(TelephonyManager.class); in setUpClass()
317 if (sTelephonyManager != null) { in testWifiUsabilityStatsEntry()
319 sTelephonyManager.getDataState() == TelephonyManager.DATA_CONNECTED; in testWifiUsabilityStatsEntry()