Home
last modified time | relevance | path

Searched refs:mDataTelephonyManager (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DTelephonyUtilTest.java60 TelephonyManager mDataTelephonyManager; field in TelephonyUtilTest
66 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
74 when(mDataTelephonyManager.getSubscriberId()).thenReturn("3214561234567890"); in getSimIdentityEapSim()
75 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in getSimIdentityEapSim()
76 when(mDataTelephonyManager.getSimOperator()).thenReturn("321456"); in getSimIdentityEapSim()
77 when(mDataTelephonyManager.getCarrierInfoForImsiEncryption(anyInt())).thenReturn(null); in getSimIdentityEapSim()
93 when(mDataTelephonyManager.getSubscriberId()).thenReturn("3214561234567890"); in getSimIdentityEapAka()
95 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in getSimIdentityEapAka()
96 when(mDataTelephonyManager.getSimOperator()).thenReturn("321456"); in getSimIdentityEapAka()
97 when(mDataTelephonyManager.getCarrierInfoForImsiEncryption(anyInt())).thenReturn(null); in getSimIdentityEapAka()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DSystemInfoTest.java43 @Mock TelephonyManager mDataTelephonyManager; field in SystemInfoTest
54 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
64 when(mDataTelephonyManager.getImei()).thenReturn(imei); in getDeviceIdWithImei()
74 when(mDataTelephonyManager.getImei()).thenReturn(null); in getDeviceIdWithMeid()
75 when(mDataTelephonyManager.getMeid()).thenReturn(meid); in getDeviceIdWithMeid()
85 when(mDataTelephonyManager.getImei()).thenReturn(null); in getDeviceIdWithoutSim()
86 when(mDataTelephonyManager.getMeid()).thenReturn(null); in getDeviceIdWithoutSim()
DPasspointNetworkEvaluatorTest.java88 @Mock TelephonyManager mDataTelephonyManager; field in PasspointNetworkEvaluatorTest
157 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
160 when(mDataTelephonyManager.getSimOperator()).thenReturn("123456"); in setUp()
161 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in setUp()
477 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in skipCreateEphemeralPasspointConfigurationForNonMNO()
480 when(mDataTelephonyManager.getCarrierIdFromSimMccMnc()).thenReturn(1); in skipCreateEphemeralPasspointConfigurationForNonMNO()
481 when(mDataTelephonyManager.getSimCarrierId()).thenReturn(20); in skipCreateEphemeralPasspointConfigurationForNonMNO()
502 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in skipCreateEphemeralPasspointConfigurationForApDisconnectedByUser()
503 when(mDataTelephonyManager.getSimCarrierId()).thenReturn(20); in skipCreateEphemeralPasspointConfigurationForApDisconnectedByUser()
543 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in createEphemeralPasspointConfigurationWhenEapMethodIsFoundFromMatchingNAIRealm()
[all …]
DPasspointManagerTest.java189 @Mock TelephonyManager mDataTelephonyManager; field in PasspointManagerTest
1631 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in verifyCreateEphemeralPasspointConfigurationWithNonCarrierEapMethod()
1632 when(mDataTelephonyManager.getSimOperator()).thenReturn("123456"); in verifyCreateEphemeralPasspointConfigurationWithNonCarrierEapMethod()
1648 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in verifyCreateEphemeralPasspointConfigurationWithCarrierEapMethod()
1649 when(mDataTelephonyManager.getSimOperator()).thenReturn(mccmnc); in verifyCreateEphemeralPasspointConfigurationWithCarrierEapMethod()
1650 when(mDataTelephonyManager.getSimOperatorName()).thenReturn("test"); in verifyCreateEphemeralPasspointConfigurationWithCarrierEapMethod()
1730 .thenReturn(mDataTelephonyManager); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch()
1731 when(mDataTelephonyManager.getSimOperator()).thenReturn(TEST_MCC_MNC); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch()
1774 .thenReturn(mDataTelephonyManager); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithNoMatch()
1775 when(mDataTelephonyManager.getSimOperator()).thenReturn(TEST_MCC_MNC); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithNoMatch()
DPasspointProvisionerTest.java187 @Mock TelephonyManager mDataTelephonyManager; field in PasspointProvisionerTest
234 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
243 when(mDataTelephonyManager.getSubscriberId()).thenReturn(TEST_IMSI); in setUp()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DCarrierNetworkConfigTest.java69 @Mock TelephonyManager mDataTelephonyManager; field in CarrierNetworkConfigTest
107 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
112 when(mDataTelephonyManager.getCarrierInfoForImsiEncryption(TelephonyManager.KEY_TYPE_WLAN)) in setUp()
184 when(mDataTelephonyManager.getCarrierInfoForImsiEncryption(TelephonyManager.KEY_TYPE_WLAN)) in verifyIsCarrierEncryptionInfoAvailableReturnsFalseWhenEncryptionInfoNotAvailable()
256 when(mDataTelephonyManager.getCarrierInfoForImsiEncryption(TelephonyManager.KEY_TYPE_WLAN)) in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled()
263 when(mDataTelephonyManager.getCarrierInfoForImsiEncryption(TelephonyManager.KEY_TYPE_WLAN)) in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled()
DCarrierNetworkEvaluatorTest.java84 @Mock private TelephonyManager mDataTelephonyManager; field in CarrierNetworkEvaluatorTest
162 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
163 when(mDataTelephonyManager.getSimOperator()).thenReturn(TEST_MCC_MNC); in setUp()
164 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in setUp()
DClientModeImplTest.java374 @Mock TelephonyManager mDataTelephonyManager; field in ClientModeImplTest
435 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
499 }).when(mDataTelephonyManager).listen(any(PhoneStateListener.class), anyInt()); in setUp()
1055 when(mDataTelephonyManager.getSimOperator()).thenReturn("123456"); in testSetAnonymousIdentityWhenConnectionIsEstablishedNoPseudonym()
1056 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in testSetAnonymousIdentityWhenConnectionIsEstablishedNoPseudonym()
1106 when(mDataTelephonyManager.getSimOperator()).thenReturn("123456"); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonym()
1107 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonym()
1155 when(mDataTelephonyManager.getSimOperator()).thenReturn("123456"); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithNonDecoratedPseudonym()
1156 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithNonDecoratedPseudonym()
1601 verify(mDataTelephonyManager).resetCarrierKeysForImsiEncryption(); in testEapSimErrorVendorSpecific()
[all …]
DWifiConfigManagerTest.java125 @Mock private TelephonyManager mDataTelephonyManager; field in WifiConfigManagerTest
250 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
4387 when(mDataTelephonyManager.getSubscriberId()).thenReturn("3214561234567890"); in testResetSimNetworks()
4388 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in testResetSimNetworks()
4389 when(mDataTelephonyManager.getSimOperator()).thenReturn("321456"); in testResetSimNetworks()
4390 when(mDataTelephonyManager.getCarrierInfoForImsiEncryption(anyInt())).thenReturn(null); in testResetSimNetworks()
4432 when(mDataTelephonyManager.getSubscriberId()).thenReturn("3214561234567890"); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities()
4433 when(mDataTelephonyManager.getSimState()).thenReturn(TelephonyManager.SIM_STATE_READY); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities()
4434 when(mDataTelephonyManager.getSimOperator()).thenReturn("321456"); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities()
4435 when(mDataTelephonyManager.getCarrierInfoForImsiEncryption(anyInt())).thenReturn(null); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/omadm/
DDevDetailMoTest.java61 private TelephonyManager mDataTelephonyManager; field in DevDetailMoTest
69 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
76 when(mDataTelephonyManager.getSubscriberId()).thenReturn(TEST_IMSI); in setUp()
237 when(mDataTelephonyManager.getSubscriberId()).thenReturn(null); in serializeDevDetailMoWithoutSim()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DPostDevDataMessageTest.java73 private TelephonyManager mDataTelephonyManager; field in PostDevDataMessageTest
82 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
92 when(mDataTelephonyManager.getSubscriberId()).thenReturn(TEST_IMSI); in setUp()