Home
last modified time | relevance | path

Searched refs:mTelephonyManager (Results 1 – 25 of 37) sorted by relevance

12

/cts/tests/tests/telephony4/src/android/telephony4/cts/
DSimRestrictedApisTest.java38 private TelephonyManager mTelephonyManager; field in SimRestrictedApisTest
45 mTelephonyManager = in setUp()
50 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE && in isSimCardPresent()
51 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; in isSimCardPresent()
78 mTelephonyManager.setLine1NumberForDisplay("", ""); in testSetLine1NumberForDisplay()
94 mTelephonyManager.iccCloseLogicalChannel( in testIccOpenLogicalChannel()
95 mTelephonyManager.iccOpenLogicalChannel("").getChannel()); in testIccOpenLogicalChannel()
111 mTelephonyManager.iccCloseLogicalChannelBySlot(0, in testIccOpenLogicalChannelBySlot()
112 mTelephonyManager.iccOpenLogicalChannel("").getChannel()); in testIccOpenLogicalChannelBySlot()
128 mTelephonyManager.iccCloseLogicalChannel(0); in testIccCloseLogicalChannel()
[all …]
/cts/tests/tests/telephony2/src/android/telephony2/cts/
DTelephonyManagerReadPhoneStatePermissionTest.java50 TelephonyManager mTelephonyManager = null; field in TelephonyManagerReadPhoneStatePermissionTest
57 mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in setUp()
58 assertNotNull(mTelephonyManager); in setUp()
115 mTelephonyManager, (tm) -> tm.getCallState()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
118 mTelephonyManager, (tm) -> tm.getCallStateForSubscription()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
127 int subId = mTelephonyManager.getSubscriptionId(); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
131 mTelephonyManager, (tm) -> tm.getDeviceSoftwareVersion()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
138 mTelephonyManager, (tm) -> tm.getCarrierConfig()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
145 mTelephonyManager, (tm) -> tm.getGroupIdLevel1()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
152 mTelephonyManager, (tm) -> tm.getLine1AlphaTag()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
[all …]
DTelephonyManagerNoPermissionTest.java42 private TelephonyManager mTelephonyManager; field in TelephonyManagerNoPermissionTest
47 mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in setUp()
68 mTelephonyManager.getCallState(); in testGetCallState_redirectToTelecom()
86 mTelephonyManager.getCallStateForSubscription(); in testGetCallStateForSubscription()
99 assumeNotNull(mTelephonyManager.getCarrierRestrictionRules()); in getCarrierRestrictionRules_SecurityException()
100 mTelephonyManager.getCarrierRestrictionRules(); in getCarrierRestrictionRules_SecurityException()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java116 private TelephonyManager mTelephonyManager; field in CarrierApiTest
198 mTelephonyManager = context.getSystemService(TelephonyManager.class); in setUp()
229 .that(mTelephonyManager.getSimState()) in testSimCardPresent()
236 .that(mTelephonyManager.hasCarrierPrivileges()) in testHasCarrierPrivileges()
261 mTelephonyManager.createForSubscriptionId(info.getSubscriptionId()); in getFirstActivateCarrierPrivilegedSubscriptionId()
277 if (mTelephonyManager.getPhoneCount() == 1) { in testUpdateAvailableNetworksWithCarrierPrivilege()
282 if (mTelephonyManager.getPhoneCount() == 2 && activeSubscriptionInfoCount != 2) { in testUpdateAvailableNetworksWithCarrierPrivilege()
316 mTelephonyManager.updateAvailableNetworks( in testUpdateAvailableNetworksWithCarrierPrivilege()
323 mTelephonyManager.updateAvailableNetworks( in testUpdateAvailableNetworksWithCarrierPrivilege()
340 mTelephonyManager.updateAvailableNetworks( in testUpdateAvailableNetworksWithCarrierPrivilege()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java201 private TelephonyManager mTelephonyManager; field in TelephonyManagerTest
435 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyManager, in CarrierPrivilegeChangeMonitor()
450 if(mTelephonyManager != null) { in close()
451 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyManager, in close()
584 mTelephonyManager = getContext().getSystemService(TelephonyManager.class) in setUp()
587 mTelephonyManager.getHalVersion(TelephonyManager.HAL_SERVICE_RADIO); in setUp()
592 mTelephonyManager.getHalVersion(TelephonyManager.HAL_SERVICE_NETWORK); in setUp()
595 mTelephonyManager.getHalVersion(TelephonyManager.HAL_SERVICE_MODEM); in setUp()
598 mTelephonyManager.getHalVersion(TelephonyManager.HAL_SERVICE_RADIO); in setUp()
614 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
[all …]
DPhoneStateListenerTest.java114 private TelephonyManager mTelephonyManager; field in PhoneStateListenerTest
155 mTelephonyManager = in setUp()
167 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
200 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnServiceStateChanged()
230 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnUnRegisterFollowedByRegister()
244 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in testOnUnRegisterFollowedByRegister()
254 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnUnRegisterFollowedByRegister()
283 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTH); in testOnSignalStrengthChanged()
357 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in testOnSignalStrengthsChanged()
442 mTelephonyManager.listen( in testOnMessageWaitingIndicatorChanged()
[all …]
DCellLocationTest.java51 private TelephonyManager mTelephonyManager; field in CellLocationTest
59 mTelephonyManager = in setUp()
69 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
92 if (mTelephonyManager.getNetworkType() != TelephonyManager.NETWORK_TYPE_LTE) { in testCellLocation()
94 mTelephonyManager.getCellLocation()); in testCellLocation()
117 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION); in testCellLocation()
DApnCarrierIdTest.java107 private TelephonyManager mTelephonyManager; field in ApnCarrierIdTest
128 mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in setUp()
130 if (mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_READY in setUp()
131 || mTelephonyManager.getSubscriptionId() in setUp()
141 mTelephonyManager, /* desiredDataState= */ TelephonyManager.DATA_CONNECTED); in setUp()
177 mTelephonyManager, in tearDown()
200 int carrierId = mTelephonyManager.getSimSpecificCarrierId(); in validateDataConnectionWithCarrierIdApn()
207 mTelephonyManager, /* desiredDataState= */ TelephonyManager.DATA_CONNECTED); in validateDataConnectionWithCarrierIdApn()
239 mTelephonyManager, in validateAndSetupInitialState()
338 mTelephonyManager.unregisterTelephonyCallback(this); in awaitDataStateChanged()
DVisualVoicemailServiceTest.java98 private TelephonyManager mTelephonyManager; field in VisualVoicemailServiceTest
124 mTelephonyManager = mContext.getSystemService(TelephonyManager.class) in setUp()
127 mTelephonyManager.getHalVersion(TelephonyManager.HAL_SERVICE_RADIO); in setUp()
135 int subId = mTelephonyManager.getSubscriptionId(mPhoneAccountHandle); in setUp()
181 mTelephonyManager.setVisualVoicemailSmsFilterSettings( in testPermissionlessService_ignored()
187 mTelephonyManager in testPermissionlessService_ignored()
434 assertEquals(PACKAGE, mTelephonyManager.getVisualVoicemailPackageName()); in testGetVisualVoicemailPackageName_isSelf()
468 int carrierId = mTelephonyManager.getSimCarrierId(); in getSmsFromText()
473 mTelephonyManager.setVisualVoicemailSmsFilterSettings(settings); in getSmsFromText()
480 mTelephonyManager in getSmsFromText()
[all …]
DTelephonyCallbackTest.java131 private TelephonyManager mTelephonyManager; field in TelephonyCallbackTest
184 mTelephonyManager = in setUp()
187 mTelephonyManager.getHalVersion(TelephonyManager.HAL_SERVICE_RADIO); in setUp()
202 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyManager, in registerTelephonyCallbackWithPermission()
207 mTelephonyManager.registerTelephonyCallback(mSimpleExecutor, callback); in registerTelephonyCallback()
218 mTelephonyManager.registerTelephonyCallback(includeLocationData, mSimpleExecutor, in registerTelephonyCallback()
226 mTelephonyManager.unregisterTelephonyCallback(callback); in unRegisterTelephonyCallback()
405 mTelephonyManager.unregisterTelephonyCallback(mServiceStateCallback); in testOnUnRegisterFollowedByRegisterTelephonyCallback()
761 assertThat(mTelephonyManager.getRadioPowerState()).isEqualTo(mRadioPowerState); in testOnRadioPowerStateChangedByRegisterTelephonyCallback()
800 int state = ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testOnVoiceActivationStateChangedByRegisterTelephonyCallback()
[all …]
DSmsManagerTest.java123 private TelephonyManager mTelephonyManager; field in SmsManagerTest
157 mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in setUp()
162 mDestAddr = mSubscriptionManager.getPhoneNumber(mTelephonyManager.getSubscriptionId()); in setUp()
166 String mccmnc = mTelephonyManager.getSimOperator(); in setUp()
244 if (TelephonyUtils.isSkt(mTelephonyManager)) { in testDivideMessage()
247 } else if (TelephonyUtils.isKt(mTelephonyManager)) { in testDivideMessage()
283 String mccmnc = mTelephonyManager.getSimOperator(); in testSmsRetriever()
284 int carrierId = mTelephonyManager.getSimCarrierId(); in testSmsRetriever()
409 String mccmnc = mTelephonyManager.getSimOperator(); in testSendAndReceiveMessages()
410 int carrierId = mTelephonyManager.getSimCarrierId(); in testSendAndReceiveMessages()
[all …]
DCarrierConfigManagerTest.java110 private TelephonyManager mTelephonyManager; field in CarrierConfigManagerTest
125 mTelephonyManager = (TelephonyManager) in setUp()
151 return mTelephonyManager.isDataCapable(); in hasTelephony()
155 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE && in isSimCardPresent()
156 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_UNKNOWN && in isSimCardPresent()
157 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; in isSimCardPresent()
161 return mTelephonyManager.getSimState() == TelephonyManager.SIM_STATE_ABSENT; in isSimCardAbsent()
537 || mTelephonyManager.getServiceState().getState() != STATE_IN_SERVICE) { in testCarrierConfigNameOverride()
557 mTelephonyManager.getSimOperatorName())) { in testCarrierConfigNameOverride()
715 || mTelephonyManager.getServiceState().getState() != STATE_IN_SERVICE) { in testCellularServiceCapabilitiesOverride()
/cts/tests/tests/telephony3/src/android/telephony3/cts/
DTelephonyManagerTest.java47 private TelephonyManager mTelephonyManager; field in TelephonyManagerTest
52 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in setUp()
66 mTelephonyManager.getDeviceId()); in testDeviceIdentifiersAreNotAccessible()
70 mTelephonyManager.getImei()); in testDeviceIdentifiersAreNotAccessible()
74 mTelephonyManager.getMeid()); in testDeviceIdentifiersAreNotAccessible()
78 mTelephonyManager.getSubscriberId()); in testDeviceIdentifiersAreNotAccessible()
82 mTelephonyManager.getSimSerialNumber()); in testDeviceIdentifiersAreNotAccessible()
86 mTelephonyManager.getNai()); in testDeviceIdentifiersAreNotAccessible()
DPhoneStateListenerTest.java44 private TelephonyManager mTelephonyManager; field in PhoneStateListenerTest
52 mTelephonyManager = in setUp()
68 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
97 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnUnRegisterFollowedByRegister()
118 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in testOnUnRegisterFollowedByRegister()
128 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnUnRegisterFollowedByRegister()
/cts/tests/tests/telephony-cuj/src/android/telephony/cts/cuj/
DDataTest.java52 private TelephonyManager mTelephonyManager; field in DataTest
56 mTelephonyManager = getContext().getSystemService(TelephonyManager.class); in setUp()
63 mTelephonyManager.getHalVersion(TelephonyManager.HAL_SERVICE_DATA); in setUp()
69 mTelephonyManager, TelephonyManager::getSimState)); in setUp()
79 mTelephonyManager, TelephonyManager::getActiveModemCount)).isGreaterThan(0); in testBasicPhoneAttributes()
81 mTelephonyManager, TelephonyManager::getNetworkOperatorName)).isNotEmpty(); in testBasicPhoneAttributes()
83 mTelephonyManager, TelephonyManager::getLine1Number)).isNotEmpty(); in testBasicPhoneAttributes()
85 mTelephonyManager, TelephonyManager::getDataNetworkType)) in testBasicPhoneAttributes()
95 mTelephonyManager, (tm) -> tm.requestCellInfoUpdate(getContext().getMainExecutor(), in testCellInfoList()
/cts/tests/tests/telephony5/src/android/telephony5/cts/
DTelephonyManagerReadNonDangerousPermissionTest.java47 private TelephonyManager mTelephonyManager; field in TelephonyManagerReadNonDangerousPermissionTest
54 mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in setUp()
73 mTelephonyManager.isDataEnabled(); in testReadNonDangerousPermission()
74 mTelephonyManager.isDataRoamingEnabled(); in testReadNonDangerousPermission()
75 mTelephonyManager.isDataEnabledForReason(TelephonyManager.DATA_ENABLED_REASON_POLICY); in testReadNonDangerousPermission()
76 mTelephonyManager.isDataConnectionAllowed(); in testReadNonDangerousPermission()
110 mTelephonyManager.purchasePremiumCapability( in testPremiumCapabilities()
113 if (mTelephonyManager.isPremiumCapabilityAvailableForPurchase(capability)) { in testPremiumCapabilities()
118 mTelephonyManager.purchasePremiumCapability( in testPremiumCapabilities()
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DSmsNiSuplTest.java52 private TelephonyManager mTelephonyManager; field in SmsNiSuplTest
59 mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in setUp()
63 assertNotNull(mTelephonyManager); in setUp()
90 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE in isSimCardPresent()
91 && mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; in isSimCardPresent()
/cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/
DCtsLocationAccessService.java61 result = mTelephonyManager.getServiceState();
64 result = mTelephonyManager.getAllCellInfo();
68 CellLocation cellLocation = mTelephonyManager.getCellLocation();
80 result = listenForServiceState(mTelephonyManager);
94 private TelephonyManager mTelephonyManager; field in CtsLocationAccessService
98 mTelephonyManager = getSystemService(TelephonyManager.class); in onBind()
115 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE); in listenForCellInfo()
139 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE); in listenForCellLocation()
190 mTelephonyManager.requestCellInfoUpdate(executor, cb); in requestCellInfoUpdate()
/cts/hostsidetests/telephony/devicetest/src/android/telephony/device/cts/
DTelephonyTest.java53 private TelephonyManager mTelephonyManager; field in TelephonyTest
60 mTelephonyManager = InstrumentationRegistry.getContext() in setUp()
89 mTelephonyManager.listen(testListener, PhoneStateListener.LISTEN_CALL_STATE); in testListenerRegistrationWithChangeEnabled()
96 mTelephonyManager.listen(fillerListeners.get(0), PhoneStateListener.LISTEN_NONE); in testListenerRegistrationWithChangeEnabled()
98 mTelephonyManager.listen(testListener, PhoneStateListener.LISTEN_CALL_STATE); in testListenerRegistrationWithChangeEnabled()
124 mTelephonyManager.listen(testListener, PhoneStateListener.LISTEN_CALL_STATE); in testListenerRegistrationWithChangeDisabled()
146 fillerListeners.forEach((l) -> mTelephonyManager.listen( in registerFillerListeners()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCarrierPrivilegeUtils.java71 private final TelephonyManager mTelephonyManager; field in CarrierPrivilegeUtils.CarrierPrivilegeChangeMonitor
93 mTelephonyManager = mContext.getSystemService( in CarrierPrivilegeChangeMonitor()
95 Objects.requireNonNull(mTelephonyManager); in CarrierPrivilegeChangeMonitor()
128 if (mTelephonyManager.hasCarrierPrivileges() != gainCarrierPrivileges) { in CarrierPrivilegeChangeMonitor()
147 mTelephonyManager.registerCarrierPrivilegesCallback( in CarrierPrivilegeChangeMonitor()
151 mTelephonyManager.registerCarrierPrivilegesCallback( in CarrierPrivilegeChangeMonitor()
161 if (mTelephonyManager == null) return; in close()
164 mTelephonyManager.unregisterCarrierPrivilegesCallback(mCarrierPrivilegesCallback); in close()
167 () -> mTelephonyManager.unregisterCarrierPrivilegesCallback( in close()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/dialer/
DDialerImplementsTelecomIntentsActivity.java43 private TelephonyManager mTelephonyManager; field in DialerImplementsTelecomIntentsActivity
57 mTelephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); in onCreate()
94 if (!mTelephonyManager.isHearingAidCompatibilitySupported() in onCreate()
95 && !mTelephonyManager.isTtyModeSupported() in onCreate()
96 && !mTelephonyManager.isRttSupported()) { in onCreate()
/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/
DRemovableSims.java41 private final TelephonyManager mTelephonyManager; field in RemovableSims
48 mTelephonyManager = Objects.requireNonNull( in RemovableSims()
62 mTelephonyManager.getCardIdForDefaultEuicc() != in initialize()
68 mTelephonyManager::getUiccCardsInfo, in initialize()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDefaultDialerApplicationTest.java76 private TelephonyManager mTelephonyManager; field in DefaultDialerApplicationTest
84 mTelephonyManager = sContext.getSystemService(TelephonyManager.class); in setUp()
93 assumeTrue(mTelephonyManager.isVoiceCapable() in setDefaultDialerApplication_works()
109 assumeTrue(mTelephonyManager.isVoiceCapable() in setDefaultDialerApplication_unchanged()
127 assumeTrue(mTelephonyManager.isVoiceCapable() in setDefaultDialerApplication_dialerPackageDoesNotExist_unchanged()
146 assumeTrue(!mTelephonyManager.isVoiceCapable() in setDefaultDialerApplication_notVoiceCapable_unchanged()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DDirectDelegatedCertInstallerTest.java75 private TelephonyManager mTelephonyManager; field in DirectDelegatedCertInstallerTest
86 mTelephonyManager = (TelephonyManager) getContext().getSystemService( in setUp()
186 .that(mTelephonyManager).isNotNull(); in validateNoAccessToIdentifier()
188 assertThrows(SecurityException.class, () -> mTelephonyManager.getImei()); in validateNoAccessToIdentifier()
199 .that(mTelephonyManager).isNotNull(); in validateCanAccessDeviceIdentifiers()
202 mTelephonyManager.getImei(); in validateCanAccessDeviceIdentifiers()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DServiceStateTest.java74 private TelephonyManager mTelephonyManager; field in ServiceStateTest
83 mTelephonyManager = in setUp()
86 mInitialServiceState = mTelephonyManager.getServiceState(); in setUp()
132 assertThat(voiceRegState).isEqualTo(mTelephonyManager.getServiceState().getState()); in testGetVoiceRegState_query()
194 mTelephonyManager.getServiceState().getDataNetworkType()); in testGetDataNetworkType_query()
269 mTelephonyManager.getServiceState().getDuplexMode()); in testGetDuplexMode_query()
317 mTelephonyManager.getServiceState().getDataRegState()); in testGetDataRegState_query()

12