Home
last modified time | relevance | path

Searched refs:NetworkRegistrationInfo (Results 1 – 25 of 112) sorted by relevance

12345

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNetworkRegistrationInfoTest.java27 import android.telephony.NetworkRegistrationInfo;
51 NetworkRegistrationInfo nri = new NetworkRegistrationInfo.Builder() in testParcel()
52 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testParcel()
54 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testParcel()
56 .setAvailableServices(Arrays.asList(NetworkRegistrationInfo.SERVICE_TYPE_DATA)) in testParcel()
66 NetworkRegistrationInfo newNrs = NetworkRegistrationInfo.CREATOR.createFromParcel(p); in testParcel()
74 NetworkRegistrationInfo nri = new NetworkRegistrationInfo.Builder().build(); in testDefaultValues()
82 assertEquals("12345", new NetworkRegistrationInfo.Builder() in testBuilder()
84 assertThat(new NetworkRegistrationInfo.Builder().setIsNonTerrestrialNetwork(true).build() in testBuilder()
91 NetworkRegistrationInfo nri = new NetworkRegistrationInfo.Builder() in testSetRoamingType()
[all …]
DCellularNetworkServiceTest.java37 import android.telephony.NetworkRegistrationInfo;
115 int voiceRegState = NetworkRegistrationInfo.REGISTRATION_STATE_HOME; in testGetNetworkRegistrationInfo()
116 int dataRegState = NetworkRegistrationInfo.REGISTRATION_STATE_HOME; in testGetNetworkRegistrationInfo()
119 int domain = NetworkRegistrationInfo.DOMAIN_CS; in testGetNetworkRegistrationInfo()
128 NetworkRegistrationInfo.SERVICE_TYPE_VOICE, in testGetNetworkRegistrationInfo()
129 NetworkRegistrationInfo.SERVICE_TYPE_SMS, in testGetNetworkRegistrationInfo()
130 NetworkRegistrationInfo.SERVICE_TYPE_VIDEO in testGetNetworkRegistrationInfo()
152 NetworkRegistrationInfo expectedState = new NetworkRegistrationInfo( in testGetNetworkRegistrationInfo()
165 domain = NetworkRegistrationInfo.DOMAIN_PS; in testGetNetworkRegistrationInfo()
166 availableServices = Arrays.asList(NetworkRegistrationInfo.SERVICE_TYPE_DATA); in testGetNetworkRegistrationInfo()
[all …]
DServiceStateTest.java28 import android.telephony.NetworkRegistrationInfo;
135 NetworkRegistrationInfo nri = new NetworkRegistrationInfo.Builder() in testRAT()
138 .setDomain(NetworkRegistrationInfo.DOMAIN_PS) in testRAT()
144 nri = new NetworkRegistrationInfo.Builder() in testRAT()
147 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testRAT()
269 NetworkRegistrationInfo nri = new NetworkRegistrationInfo.Builder() in testBundle()
272 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testBundle()
273 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testBundle()
277 nri = new NetworkRegistrationInfo.Builder() in testBundle()
281 NetworkRegistrationInfo.REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING) in testBundle()
[all …]
DServiceStateTrackerTest.java19 import static android.telephony.NetworkRegistrationInfo.SERVICE_TYPE_EMERGENCY;
20 import static android.telephony.NetworkRegistrationInfo.SERVICE_TYPE_SMS;
80 import android.telephony.NetworkRegistrationInfo;
297 mSimulatedCommands.setVoiceRegState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in setUp()
299 mSimulatedCommands.setDataRegState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in setUp()
944 NetworkRegistrationInfo result = new NetworkRegistrationInfo.Builder() in testGsmCellLocation()
945 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testGsmCellLocation()
947 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testGsmCellLocation()
969 NetworkRegistrationInfo result = new NetworkRegistrationInfo.Builder() in testCdmaCellLocation()
970 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testCdmaCellLocation()
[all …]
DNetworkTypeControllerTest.java39 import android.telephony.NetworkRegistrationInfo;
134 doReturn(NetworkRegistrationInfo.NR_STATE_NONE).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
140 doReturn(NetworkRegistrationInfo.NR_STATE_RESTRICTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
146 doReturn(NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
152 doReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
168 doReturn(NetworkRegistrationInfo.NR_STATE_NONE).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrSa()
174 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testUpdateOverrideNetworkTypeNrSa()
176 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testUpdateOverrideNetworkTypeNrSa()
189 doReturn(NetworkRegistrationInfo.NR_STATE_NONE).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrSaMmwave()
195 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testUpdateOverrideNetworkTypeNrSaMmwave()
[all …]
DDisplayInfoControllerTest.java36 import android.telephony.NetworkRegistrationInfo;
158 NetworkRegistrationInfo dataResult = new NetworkRegistrationInfo( in changeRegState()
159 NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN, in changeRegState()
175 NetworkRegistrationInfo voiceResult = new NetworkRegistrationInfo( in changeRegState()
176 NetworkRegistrationInfo.DOMAIN_CS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN, in changeRegState()
193 changeRegState(NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING); in testIsRoamingOverride_NonRoamingOperator()
213 changeRegState(NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING); in testIsRoamingOverride_ForceHomeNetwork()
234 changeRegState(NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING); in testIsRoamingOverride_RoamingOperator()
256 changeRegState(NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING); in testIsRoamingOverride_NonRoamingGsmOperator()
277 changeRegState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in testIsRoamingOverride_RoamingGsmOperator()
[all …]
DRatRatcheterTest.java30 import android.telephony.NetworkRegistrationInfo;
95 private NetworkRegistrationInfo createNetworkRegistrationInfo( in createNetworkRegistrationInfo()
102 return new NetworkRegistrationInfo( in createNetworkRegistrationInfo()
121 NetworkRegistrationInfo nri1; in setNetworkRegistrationInfo()
122 NetworkRegistrationInfo nri2; in setNetworkRegistrationInfo()
130 nri1 = createNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in setNetworkRegistrationInfo()
132 nri2 = createNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_CS, in setNetworkRegistrationInfo()
DSmsDispatchersControllerTest.java51 import android.telephony.NetworkRegistrationInfo;
367 sendDataWithDomainSelection(NetworkRegistrationInfo.DOMAIN_PS, false); in testSendDataWhenDomainPs()
374 sendDataWithDomainSelection(NetworkRegistrationInfo.DOMAIN_PS, true); in testSendDataWhenDomainCsAndCdma()
381 sendDataWithDomainSelection(NetworkRegistrationInfo.DOMAIN_PS, false); in testSendDataWhenDomainCsAndGsm()
387 sendTextWithDomainSelection(NetworkRegistrationInfo.DOMAIN_PS, false); in testSendTextWhenDomainPs()
394 sendTextWithDomainSelection(NetworkRegistrationInfo.DOMAIN_PS, true); in testSendTextWhenDomainCsAndCdma()
401 sendTextWithDomainSelection(NetworkRegistrationInfo.DOMAIN_PS, false); in testSendTextWhenDomainCsAndGsm()
407 sendMultipartTextWithDomainSelection(NetworkRegistrationInfo.DOMAIN_PS, false); in testSendMultipartTextWhenDomainPs()
414 sendMultipartTextWithDomainSelection(NetworkRegistrationInfo.DOMAIN_PS, true); in testSendMultipartTextWhenDomainCsAndCdma()
421 sendMultipartTextWithDomainSelection(NetworkRegistrationInfo.DOMAIN_PS, false); in testSendMultipartTextWhenDomainCsAndGsm()
[all …]
/frameworks/base/telephony/java/android/telephony/
DServiceState.java35 import android.telephony.NetworkRegistrationInfo.Domain;
36 import android.telephony.NetworkRegistrationInfo.NRState;
365 private final List<NetworkRegistrationInfo> mNetworkRegistrationInfos = new ArrayList<>();
450 for (NetworkRegistrationInfo nri : s.getNetworkRegistrationInfoList()) { in copyFrom()
451 mNetworkRegistrationInfos.add(new NetworkRegistrationInfo(nri)); in copyFrom()
485 …List(mNetworkRegistrationInfos, NetworkRegistrationInfo.class.getClassLoader(), android.telephony. in ServiceState()
669 final NetworkRegistrationInfo regState = getNetworkRegistrationInfo( in getVoiceRoamingType()
670 NetworkRegistrationInfo.DOMAIN_CS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); in getVoiceRoamingType()
719 final NetworkRegistrationInfo regState = getNetworkRegistrationInfo( in getDataRoamingType()
720 NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); in getDataRoamingType()
[all …]
DNetworkRegistrationInfo.java47 public final class NetworkRegistrationInfo implements Parcelable { class
303 private NetworkRegistrationInfo(@Domain int domain, @TransportType int transportType, in NetworkRegistrationInfo() method in NetworkRegistrationInfo
336 public NetworkRegistrationInfo(int domain, @TransportType int transportType, in NetworkRegistrationInfo() method in NetworkRegistrationInfo
353 public NetworkRegistrationInfo(int domain, @TransportType int transportType, in NetworkRegistrationInfo() method in NetworkRegistrationInfo
371 private NetworkRegistrationInfo(Parcel source) { in NetworkRegistrationInfo() method in NetworkRegistrationInfo
399 public NetworkRegistrationInfo(NetworkRegistrationInfo nri) { in NetworkRegistrationInfo() method in NetworkRegistrationInfo
863 if (!(o instanceof NetworkRegistrationInfo)) { in equals()
867 NetworkRegistrationInfo other = (NetworkRegistrationInfo) o; in equals()
938 public static final @NonNull Parcelable.Creator<NetworkRegistrationInfo> CREATOR =
939 new Parcelable.Creator<NetworkRegistrationInfo>() {
[all …]
DEmergencyRegistrationResult.java48 private @NetworkRegistrationInfo.RegistrationState int mRegState;
53 private @NetworkRegistrationInfo.Domain int mDomain;
106 @NetworkRegistrationInfo.RegistrationState int regState, in EmergencyRegistrationResult()
107 @NetworkRegistrationInfo.Domain int domain, in EmergencyRegistrationResult()
162 public @NetworkRegistrationInfo.RegistrationState int getRegState() { in getRegState()
171 public @NetworkRegistrationInfo.Domain int getDomain() { in getDomain()
245 + ", regState=" + NetworkRegistrationInfo.registrationStateToString(mRegState) in toString()
246 + ", domain=" + NetworkRegistrationInfo.domainToString(mDomain) in toString()
DINetworkServiceCallback.aidl19 import android.telephony.NetworkRegistrationInfo;
27 void onRequestNetworkRegistrationInfoComplete(int result, in NetworkRegistrationInfo state); in onRequestNetworkRegistrationInfoComplete()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/
DNtnCapabilityResolverTest.java20 import static android.telephony.NetworkRegistrationInfo.DOMAIN_PS;
21 import static android.telephony.NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING;
22 import static android.telephony.NetworkRegistrationInfo.SERVICE_TYPE_DATA;
23 import static android.telephony.NetworkRegistrationInfo.SERVICE_TYPE_EMERGENCY;
24 import static android.telephony.NetworkRegistrationInfo.SERVICE_TYPE_SMS;
39 import android.telephony.NetworkRegistrationInfo;
95 NetworkRegistrationInfo satelliteNri = createNetworkRegistrationInfo(SATELLITE_PLMN); in testResolveNTNCapability()
96 NetworkRegistrationInfo originalNri = new NetworkRegistrationInfo(satelliteNri); in testResolveNTNCapability()
114 NetworkRegistrationInfo cellularNri = createNetworkRegistrationInfo(VISITING_PLMN); in testResolveNTNCapability()
115 originalNri = new NetworkRegistrationInfo(cellularNri); in testResolveNTNCapability()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellularNetworkService.java42 import android.telephony.NetworkRegistrationInfo;
141 ? NetworkRegistrationInfo.DOMAIN_CS in CellularNetworkServiceProvider()
142 : NetworkRegistrationInfo.DOMAIN_PS; in CellularNetworkServiceProvider()
144 NetworkRegistrationInfo netState = in CellularNetworkServiceProvider()
183 return NetworkRegistrationInfo.REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING; in getRegStateFromHalRegState()
185 return NetworkRegistrationInfo.REGISTRATION_STATE_HOME; in getRegStateFromHalRegState()
188 return NetworkRegistrationInfo.REGISTRATION_STATE_NOT_REGISTERED_SEARCHING; in getRegStateFromHalRegState()
191 return NetworkRegistrationInfo.REGISTRATION_STATE_DENIED; in getRegStateFromHalRegState()
194 return NetworkRegistrationInfo.REGISTRATION_STATE_UNKNOWN; in getRegStateFromHalRegState()
196 return NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING; in getRegStateFromHalRegState()
[all …]
DTelephonyTester.java32 import android.telephony.NetworkRegistrationInfo;
478 NetworkRegistrationInfo nri = ss.getNetworkRegistrationInfo( in overrideServiceState()
479 NetworkRegistrationInfo.DOMAIN_CS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); in overrideServiceState()
480 NetworkRegistrationInfo.Builder builder = new NetworkRegistrationInfo.Builder(nri); in overrideServiceState()
482 builder.setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in overrideServiceState()
485 NetworkRegistrationInfo.REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING); in overrideServiceState()
494 NetworkRegistrationInfo nri = ss.getNetworkRegistrationInfo( in overrideServiceState()
495 NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); in overrideServiceState()
496 NetworkRegistrationInfo.Builder builder = new NetworkRegistrationInfo.Builder(nri); in overrideServiceState()
498 builder.setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in overrideServiceState()
[all …]
DRatRatcheter.java23 import android.telephony.NetworkRegistrationInfo;
122 NetworkRegistrationInfo.DOMAIN_CS, NetworkRegistrationInfo.DOMAIN_PS}; in ratchet()
124 NetworkRegistrationInfo oldNri = oldSS.getNetworkRegistrationInfo( in ratchet()
126 NetworkRegistrationInfo newNri = newSS.getNetworkRegistrationInfo( in ratchet()
145 if (ss1.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in isSameRatFamily()
147 || ss2.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in isSameRatFamily()
153 ss1.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in isSameRatFamily()
157 ss2.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in isSameRatFamily()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DAutoDataSwitchControllerTest.java48 import android.telephony.NetworkRegistrationInfo;
124 ss.addNetworkRegistrationInfo(new NetworkRegistrationInfo.Builder() in setUp()
127 NetworkRegistrationInfo.REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING) in setUp()
128 .setDomain(NetworkRegistrationInfo.DOMAIN_PS) in setUp()
229 serviceStateChanged(PHONE_1, NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in testCancelSwitch_onPrimary()
274 serviceStateChanged(PHONE_1, NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING); in testRoaming_prefer_home_over_roam()
275 serviceStateChanged(PHONE_2, NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in testRoaming_prefer_home_over_roam()
282 serviceStateChanged(PHONE_1, NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in testRoaming_prefer_home_over_roam()
283 serviceStateChanged(PHONE_2, NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING); in testRoaming_prefer_home_over_roam()
295 serviceStateChanged(PHONE_1, NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING); in testRoaming_prefer_roam_over_nonTerrestrial()
[all …]
DCellularNetworkValidatorTest.java42 import android.telephony.NetworkRegistrationInfo;
173 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testSkipRecentlyValidatedNetwork()
175 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testSkipRecentlyValidatedNetwork()
196 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testDoNotSkipIfValidationFailed()
198 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testDoNotSkipIfValidationFailed()
218 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testDoNotSkipIfCacheExpires()
220 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testDoNotSkipIfCacheExpires()
244 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testNetworkCachingOfMultipleSub()
246 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testNetworkCachingOfMultipleSub()
286 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testNetworkCachingOfMultipleSub()
[all …]
DDataNetworkControllerTest.java75 import android.telephony.NetworkRegistrationInfo;
76 import android.telephony.NetworkRegistrationInfo.RegistrationState;
629 NetworkRegistrationInfo.REGISTRATION_STATE_HOME, dsri); in serviceStateChanged()
635 NetworkRegistrationInfo.REGISTRATION_STATE_HOME, dsri); in serviceStateChanged()
642 if (dataRegState == NetworkRegistrationInfo.REGISTRATION_STATE_DENIED) { in serviceStateChanged()
686 ss.addNetworkRegistrationInfo(new NetworkRegistrationInfo.Builder() in createSS()
690 .setDomain(NetworkRegistrationInfo.DOMAIN_PS) in createSS()
696 ss.addNetworkRegistrationInfo(new NetworkRegistrationInfo.Builder() in createSS()
700 .setDomain(NetworkRegistrationInfo.DOMAIN_PS) in createSS()
705 ss.addNetworkRegistrationInfo(new NetworkRegistrationInfo.Builder() in createSS()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DServiceStateStats.java32 import android.telephony.NetworkRegistrationInfo;
130 newState.dataRat = getRat(serviceState, NetworkRegistrationInfo.DOMAIN_PS); in onServiceStateChanged()
132 getNetworkRoamingState(serviceState, NetworkRegistrationInfo.DOMAIN_CS); in onServiceStateChanged()
134 getNetworkRoamingState(serviceState, NetworkRegistrationInfo.DOMAIN_PS); in onServiceStateChanged()
267 @NetworkType int rat = getRat(serviceState, NetworkRegistrationInfo.DOMAIN_PS); in getBand()
367 || getRat(state, NetworkRegistrationInfo.DOMAIN_PS) in getVoiceRat()
377 return getRat(state, NetworkRegistrationInfo.DOMAIN_CS); in getVoiceRat()
391 ServiceState state, @NetworkRegistrationInfo.Domain int domain) { in getRat()
392 final NetworkRegistrationInfo wwanRegInfo = in getRat()
401 NetworkRegistrationInfo regInfo = in isEmergencyOnly()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/domainselection/
DSmsDomainSelectionConnectionTest.java32 import android.telephony.NetworkRegistrationInfo;
124 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testOnWlanSelected()
152 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testOnDomainSelectedPs()
155 mDsConnection.onDomainSelected(NetworkRegistrationInfo.DOMAIN_PS); in testOnDomainSelectedPs()
169 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_CS), domain); in testOnDomainSelectedCs()
172 mDsConnection.onDomainSelected(NetworkRegistrationInfo.DOMAIN_CS); in testOnDomainSelectedCs()
186 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testFinishSelection()
189 mDsConnection.onDomainSelected(NetworkRegistrationInfo.DOMAIN_PS); in testFinishSelection()
203 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testCancelSelection()
DEmergencySmsDomainSelectionConnectionTest.java40 import android.telephony.NetworkRegistrationInfo;
127 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testOnWlanSelected()
148 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testOnWlanSelectedWithDifferentTransportType()
186 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testOnWlanSelectedWithDifferentTransportTypeAndImsPdn()
211 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testOnWlanSelectedWithDifferentTransportTypeWhilePreferredTransportChanged()
261 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testOnDomainSelectedPs()
264 mDsConnection.onDomainSelected(NetworkRegistrationInfo.DOMAIN_PS, true); in testOnDomainSelectedPs()
280 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testOnDomainSelectedPsWithDifferentTransportType()
283 mDsConnection.onDomainSelected(NetworkRegistrationInfo.DOMAIN_PS, true); in testOnDomainSelectedPsWithDifferentTransportType()
316 assertEquals(Integer.valueOf(NetworkRegistrationInfo.DOMAIN_PS), domain); in testOnDomainSelectedPsWithDifferentTransportTypeAndImsPdn()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DServiceStateStatsTest.java49 import android.telephony.NetworkRegistrationInfo;
658 doReturn(NetworkRegistrationInfo.NR_STATE_RESTRICTED).when(mServiceState).getNrState(); in onServiceStateChanged_endc()
662 doReturn(NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED).when(mServiceState).getNrState(); in onServiceStateChanged_endc()
666 doReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED).when(mServiceState).getNrState(); in onServiceStateChanged_endc()
816 NetworkRegistrationInfo voiceNri = new NetworkRegistrationInfo.Builder() in onServiceStateChanged_roaming()
819 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING) in onServiceStateChanged_roaming()
825 NetworkRegistrationInfo.DOMAIN_CS, in onServiceStateChanged_roaming()
830 NetworkRegistrationInfo dataNri = new NetworkRegistrationInfo.Builder() in onServiceStateChanged_roaming()
833 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING) in onServiceStateChanged_roaming()
839 NetworkRegistrationInfo.DOMAIN_PS, in onServiceStateChanged_roaming()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/domainselection/
DEmergencySmsDomainSelectionConnection.java25 import android.telephony.NetworkRegistrationInfo;
105 public void onDomainSelected(@NetworkRegistrationInfo.Domain int domain, in onDomainSelected()
113 if (useEmergencyPdn && domain == NetworkRegistrationInfo.DOMAIN_PS) { in onDomainSelected()
151 super.onDomainSelected(NetworkRegistrationInfo.DOMAIN_PS, true); in onQualifiedNetworksChanged()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsHistoryTest.java37 import android.telephony.NetworkRegistrationInfo;
438 NetworkRegistrationInfo.NR_STATE_RESTRICTED); in testNrState_dump()
440 NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED); in testNrState_dump()
442 NetworkRegistrationInfo.NR_STATE_CONNECTED); in testNrState_dump()
444 NetworkRegistrationInfo.NR_STATE_NONE); in testNrState_dump()
479 NetworkRegistrationInfo.NR_STATE_RESTRICTED); in testNrState_checkin()
481 NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED); in testNrState_checkin()
483 NetworkRegistrationInfo.NR_STATE_CONNECTED); in testNrState_checkin()
485 NetworkRegistrationInfo.NR_STATE_NONE); in testNrState_checkin()
514 NetworkRegistrationInfo.NR_STATE_RESTRICTED); in testNrState_aTrace()
[all …]

12345