Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTest.java23 import android.telephony.NetworkRegistrationInfo;
128 NetworkRegistrationInfo nri = new NetworkRegistrationInfo.Builder() in testRAT()
131 .setDomain(NetworkRegistrationInfo.DOMAIN_PS) in testRAT()
137 nri = new NetworkRegistrationInfo.Builder() in testRAT()
140 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testRAT()
262 NetworkRegistrationInfo nri = new NetworkRegistrationInfo.Builder() in testBundle()
265 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testBundle()
266 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testBundle()
270 nri = new NetworkRegistrationInfo.Builder() in testBundle()
274 NetworkRegistrationInfo.REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING) in testBundle()
[all …]
DNetworkRegistrationInfoTest.java24 import android.telephony.NetworkRegistrationInfo;
39 NetworkRegistrationInfo nri = new NetworkRegistrationInfo.Builder() in testParcel()
40 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testParcel()
42 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testParcel()
44 .setAvailableServices(Arrays.asList(NetworkRegistrationInfo.SERVICE_TYPE_DATA)) in testParcel()
53 NetworkRegistrationInfo newNrs = NetworkRegistrationInfo.CREATOR.createFromParcel(p); in testParcel()
61 NetworkRegistrationInfo nri = new NetworkRegistrationInfo.Builder().build(); in testDefaultValues()
68 assertEquals("12345", new NetworkRegistrationInfo.Builder() in testBuilder()
DServiceStateTrackerTest.java79 import android.telephony.NetworkRegistrationInfo;
248 mSimulatedCommands.setVoiceRegState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in setUp()
250 mSimulatedCommands.setDataRegState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in setUp()
892 NetworkRegistrationInfo result = new NetworkRegistrationInfo.Builder() in testGsmCellLocation()
893 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testGsmCellLocation()
895 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testGsmCellLocation()
917 NetworkRegistrationInfo result = new NetworkRegistrationInfo.Builder() in testCdmaCellLocation()
918 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testCdmaCellLocation()
920 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testCdmaCellLocation()
1005 mSimulatedCommands.setVoiceRegState(NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING); in testRegAndUnregForVoiceRoamingOn()
[all …]
DCellularNetworkServiceTest.java32 import android.telephony.NetworkRegistrationInfo;
101 int voiceRegState = NetworkRegistrationInfo.REGISTRATION_STATE_HOME; in testGetNetworkRegistrationInfo()
102 int dataRegState = NetworkRegistrationInfo.REGISTRATION_STATE_HOME; in testGetNetworkRegistrationInfo()
105 int domain = NetworkRegistrationInfo.DOMAIN_CS; in testGetNetworkRegistrationInfo()
114 NetworkRegistrationInfo.SERVICE_TYPE_VOICE, in testGetNetworkRegistrationInfo()
115 NetworkRegistrationInfo.SERVICE_TYPE_SMS, in testGetNetworkRegistrationInfo()
116 NetworkRegistrationInfo.SERVICE_TYPE_VIDEO in testGetNetworkRegistrationInfo()
138 NetworkRegistrationInfo expectedState = new NetworkRegistrationInfo( in testGetNetworkRegistrationInfo()
151 domain = NetworkRegistrationInfo.DOMAIN_PS; in testGetNetworkRegistrationInfo()
152 availableServices = Arrays.asList(NetworkRegistrationInfo.SERVICE_TYPE_DATA); in testGetNetworkRegistrationInfo()
[all …]
DNetworkTypeControllerTest.java28 import android.telephony.NetworkRegistrationInfo;
113 doReturn(NetworkRegistrationInfo.NR_STATE_NONE).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
119 doReturn(NetworkRegistrationInfo.NR_STATE_RESTRICTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
125 doReturn(NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
131 doReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
183 doReturn(NetworkRegistrationInfo.NR_STATE_RESTRICTED).when(mServiceState).getNrState(); in testTransitionToCurrentStateRestricted()
194 doReturn(NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED).when(mServiceState).getNrState(); in testTransitionToCurrentStateIdle()
206 doReturn(NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED).when(mServiceState).getNrState(); in testTransitionToCurrentStateLteConnected()
218 doReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED).when(mServiceState).getNrState(); in testTransitionToCurrentStateNrConnected()
229 doReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED).when(mServiceState).getNrState(); in testTransitionToCurrentStateNrConnectedMmwave()
[all …]
DRatRatcheterTest.java25 import android.telephony.NetworkRegistrationInfo;
86 private NetworkRegistrationInfo createNetworkRegistrationInfo( in createNetworkRegistrationInfo()
93 return new NetworkRegistrationInfo( in createNetworkRegistrationInfo()
112 NetworkRegistrationInfo nri1; in setNetworkRegistrationInfo()
113 NetworkRegistrationInfo nri2; in setNetworkRegistrationInfo()
121 nri1 = createNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in setNetworkRegistrationInfo()
123 nri2 = createNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_CS, in setNetworkRegistrationInfo()
DCellularNetworkValidatorTest.java41 import android.telephony.NetworkRegistrationInfo;
165 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testSkipRecentlyValidatedNetwork()
167 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testSkipRecentlyValidatedNetwork()
188 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testDoNotSkipIfValidationFailed()
190 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testDoNotSkipIfValidationFailed()
210 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testDoNotSkipIfCacheExpires()
212 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testDoNotSkipIfCacheExpires()
236 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testNetworkCachingOfMultipleSub()
238 .setRegistrationState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testNetworkCachingOfMultipleSub()
278 mNetworkRegistrationInfo = new NetworkRegistrationInfo.Builder() in testNetworkCachingOfMultipleSub()
[all …]
DGsmCdmaPhoneTest.java65 import android.telephony.NetworkRegistrationInfo;
175 NetworkRegistrationInfo imsPsWwanRegInfo = new NetworkRegistrationInfo.Builder() in testGetMergedServiceState()
176 .setDomain(NetworkRegistrationInfo.DOMAIN_PS) in testGetMergedServiceState()
180 NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testGetMergedServiceState()
183 NetworkRegistrationInfo imsPsWlanRegInfo = new NetworkRegistrationInfo.Builder() in testGetMergedServiceState()
184 .setDomain(NetworkRegistrationInfo.DOMAIN_PS) in testGetMergedServiceState()
188 NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in testGetMergedServiceState()
205 NetworkRegistrationInfo csWwanRegInfo = new NetworkRegistrationInfo.Builder() in testGetMergedServiceState()
206 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in testGetMergedServiceState()
210 NetworkRegistrationInfo.REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING) in testGetMergedServiceState()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellularNetworkService.java32 import android.telephony.NetworkRegistrationInfo;
89 ? NetworkRegistrationInfo.DOMAIN_CS in CellularNetworkServiceProvider()
90 : NetworkRegistrationInfo.DOMAIN_PS; in CellularNetworkServiceProvider()
91 NetworkRegistrationInfo netState = in CellularNetworkServiceProvider()
130 return NetworkRegistrationInfo.REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING; in getRegStateFromHalRegState()
132 return NetworkRegistrationInfo.REGISTRATION_STATE_HOME; in getRegStateFromHalRegState()
135 return NetworkRegistrationInfo.REGISTRATION_STATE_NOT_REGISTERED_SEARCHING; in getRegStateFromHalRegState()
138 return NetworkRegistrationInfo.REGISTRATION_STATE_DENIED; in getRegStateFromHalRegState()
141 return NetworkRegistrationInfo.REGISTRATION_STATE_UNKNOWN; in getRegStateFromHalRegState()
143 return NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING; in getRegStateFromHalRegState()
[all …]
DTelephonyTester.java27 import android.telephony.NetworkRegistrationInfo;
419 NetworkRegistrationInfo nri = ss.getNetworkRegistrationInfo( in overrideServiceState()
420 NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); in overrideServiceState()
422 nri = new NetworkRegistrationInfo.Builder() in overrideServiceState()
423 .setDomain(NetworkRegistrationInfo.DOMAIN_PS) in overrideServiceState()
428 NetworkRegistrationInfo.NR_STATE_NONE)); in overrideServiceState()
433 NetworkRegistrationInfo nri = ss.getNetworkRegistrationInfo( in overrideServiceState()
434 NetworkRegistrationInfo.DOMAIN_CS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); in overrideServiceState()
436 nri = new NetworkRegistrationInfo.Builder() in overrideServiceState()
437 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in overrideServiceState()
[all …]
DRatRatcheter.java29 import android.telephony.NetworkRegistrationInfo;
133 NetworkRegistrationInfo.DOMAIN_CS, NetworkRegistrationInfo.DOMAIN_PS}; in ratchet()
135 NetworkRegistrationInfo oldNri = oldSS.getNetworkRegistrationInfo( in ratchet()
137 NetworkRegistrationInfo newNri = newSS.getNetworkRegistrationInfo( in ratchet()
156 ss1.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in isSameRatFamily()
160 ss2.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in isSameRatFamily()
DRegistrationFailedEvent.java21 import android.telephony.NetworkRegistrationInfo;
34 @NetworkRegistrationInfo.Domain public final int domain;
DServiceStateTracker.java73 import android.telephony.NetworkRegistrationInfo;
731 NetworkRegistrationInfo nrs = mSS.getNetworkRegistrationInfo( in updatePhoneType()
732 NetworkRegistrationInfo.DOMAIN_PS, transport); in updatePhoneType()
881 NetworkRegistrationInfo nrs = mSS.getNetworkRegistrationInfo( in getRegistrationInfo()
882 NetworkRegistrationInfo.DOMAIN_PS, transport); in getRegistrationInfo()
1309 CellIdentity cellIdentity = ((NetworkRegistrationInfo) ar.result) in handleMessage()
1388 .requestNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_CS, in handleMessage()
2051 NetworkRegistrationInfo regInfo = ss.getNetworkRegistrationInfo( in updateNrStateFromPhysicalChannelConfigs()
2052 NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); in updateNrStateFromPhysicalChannelConfigs()
2067 newNrState = NetworkRegistrationInfo.NR_STATE_CONNECTED; in updateNrStateFromPhysicalChannelConfigs()
[all …]
DNetworkRegistrationManager.java39 import android.telephony.NetworkRegistrationInfo;
149 public void requestNetworkRegistrationInfo(@NetworkRegistrationInfo.Domain int domain, in requestNetworkRegistrationInfo()
155 + ((domain == NetworkRegistrationInfo.DOMAIN_CS) ? "CS" : "PS")); in requestNetworkRegistrationInfo()
222 int result, NetworkRegistrationInfo info) { in onRequestNetworkRegistrationInfoComplete()
229 new NetworkRegistrationInfo(info), null); in onRequestNetworkRegistrationInfoComplete()
DNetworkTypeController.java29 import android.telephony.NetworkRegistrationInfo;
351 && (mPhone.getServiceState().getNrState() != NetworkRegistrationInfo.NR_STATE_NONE in getCurrentOverrideNetworkType()
376 case NetworkRegistrationInfo.NR_STATE_CONNECTED: in getNrDisplayType()
382 case NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED: in getNrDisplayType()
386 case NetworkRegistrationInfo.NR_STATE_RESTRICTED: in getNrDisplayType()
994 return mPhone.getServiceState().getNrState() == NetworkRegistrationInfo.NR_STATE_CONNECTED; in isNrConnected()
999 == NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED; in isNrNotRestricted()
1004 == NetworkRegistrationInfo.NR_STATE_RESTRICTED; in isNrRestricted()
/frameworks/base/telephony/java/android/telephony/
DServiceState.java33 import android.telephony.NetworkRegistrationInfo.Domain;
34 import android.telephony.NetworkRegistrationInfo.NRState;
360 private final List<NetworkRegistrationInfo> mNetworkRegistrationInfos = new ArrayList<>();
478 in.readList(mNetworkRegistrationInfos, NetworkRegistrationInfo.class.getClassLoader()); in ServiceState()
654 final NetworkRegistrationInfo regState = getNetworkRegistrationInfo( in getVoiceRoamingType()
655 NetworkRegistrationInfo.DOMAIN_CS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); in getVoiceRoamingType()
704 final NetworkRegistrationInfo regState = getNetworkRegistrationInfo( in getDataRoamingType()
705 NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); in getDataRoamingType()
1137 addNetworkRegistrationInfo(new NetworkRegistrationInfo.Builder() in init()
1138 .setDomain(NetworkRegistrationInfo.DOMAIN_CS) in init()
[all …]
DNetworkRegistrationInfo.java41 public final class NetworkRegistrationInfo implements Parcelable { class
246 private NetworkRegistrationInfo(@Domain int domain, @TransportType int transportType, in NetworkRegistrationInfo() method in NetworkRegistrationInfo
271 public NetworkRegistrationInfo(int domain, @TransportType int transportType, in NetworkRegistrationInfo() method in NetworkRegistrationInfo
289 public NetworkRegistrationInfo(int domain, @TransportType int transportType, in NetworkRegistrationInfo() method in NetworkRegistrationInfo
304 private NetworkRegistrationInfo(Parcel source) { in NetworkRegistrationInfo() method in NetworkRegistrationInfo
330 public NetworkRegistrationInfo(NetworkRegistrationInfo nri) { in NetworkRegistrationInfo() method in NetworkRegistrationInfo
658 if (!(o instanceof NetworkRegistrationInfo)) { in equals()
662 NetworkRegistrationInfo other = (NetworkRegistrationInfo) o; in equals()
729 public static final @NonNull Parcelable.Creator<NetworkRegistrationInfo> CREATOR =
730 new Parcelable.Creator<NetworkRegistrationInfo>() {
[all …]
DINetworkServiceCallback.aidl19 import android.telephony.NetworkRegistrationInfo;
27 void onRequestNetworkRegistrationInfoComplete(int result, in NetworkRegistrationInfo state); in onRequestNetworkRegistrationInfoComplete()
DNetworkRegistrationInfo.aidl19 parcelable NetworkRegistrationInfo;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/
DVendorServiceStateTracker.java23 import android.telephony.NetworkRegistrationInfo;
48 NetworkRegistrationInfo regStates = (NetworkRegistrationInfo) ar.result; in handlePollStateResultMessage()
51 if (regState == NetworkRegistrationInfo.REGISTRATION_STATE_DENIED) { in handlePollStateResultMessage()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java42 import android.telephony.NetworkRegistrationInfo;
80 private NetworkRegistrationInfo mNetworkRegistrationInfo;
231 when(mServiceState.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in isInService_voiceOutOfServiceDataInService_returnTrue()
234 NetworkRegistrationInfo.REGISTRATION_STATE_UNKNOWN); in isInService_voiceOutOfServiceDataInService_returnTrue()
242 when(mServiceState.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse()
245 NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse()
293 when(mServiceState.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in getCombinedServiceState_voiceOutOfServiceDataInService_returnInService()
296 NetworkRegistrationInfo.REGISTRATION_STATE_UNKNOWN); in getCombinedServiceState_voiceOutOfServiceDataInService_returnInService()
306 when(mServiceState.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in getCombinedServiceState_voiceOutOfServiceDataInServiceOnIwLan_returnOutOfService()
309 NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in getCombinedServiceState_voiceOutOfServiceDataInServiceOnIwLan_returnOutOfService()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerDataTest.java4 import static android.telephony.NetworkRegistrationInfo.DOMAIN_PS;
12 import android.telephony.NetworkRegistrationInfo;
231 NetworkRegistrationInfo fakeRegInfo = new NetworkRegistrationInfo.Builder() in testDataChangeWithoutConnectionState()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitorTest.java36 import android.telephony.NetworkRegistrationInfo;
241 when(serviceState.getNrState()).thenReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED); in test5g()
247 when(serviceState.getNrState()).thenReturn(NetworkRegistrationInfo.NR_STATE_NONE); in test5g()
254 when(serviceState.getNrState()).thenReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED); in test5g()
267 when(serviceState.getNrState()).thenReturn(NetworkRegistrationInfo.NR_STATE_NONE); in test5g()
/frameworks/base/services/core/java/com/android/server/connectivity/
DDataConnectionStats.java20 import static android.telephony.NetworkRegistrationInfo.DOMAIN_PS;
30 import android.telephony.NetworkRegistrationInfo;
98 NetworkRegistrationInfo regInfo = in notePhoneDataConnectionState()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java27 import android.telephony.NetworkRegistrationInfo;
436 final NetworkRegistrationInfo networkRegWlan = serviceState.getNetworkRegistrationInfo( in isNotInIwlan()
437 NetworkRegistrationInfo.DOMAIN_PS, in isNotInIwlan()
444 == NetworkRegistrationInfo.REGISTRATION_STATE_HOME) in isNotInIwlan()
446 == NetworkRegistrationInfo.REGISTRATION_STATE_ROAMING); in isNotInIwlan()

123