Package org.robolectric.shadows
Class NetworkRegistrationInfoTestBuilder
java.lang.Object
org.robolectric.shadows.NetworkRegistrationInfoTestBuilder
Builder class to create instance of
NetworkRegistrationInfo
.
NRI was first made a @SystemApi in Q then finally exposed as public in R.
This builder class does not extend NetworkRegistrationInfo.Builder
. It uses NetworkRegistrationInfo.Builder
and some additional APIs to set NRI private fields.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setAccessNetworkTechnology
(int value) setAvailableServices
(List<Integer> value) setCellIdentity
(CellIdentity value) setDomain
(int value) setEmergencyOnly
(boolean value) setRegisteredPlmn
(String value) setRegistrationState
(int value) setRejectCause
(int value) setRoamingType
(int value) setTransportType
(int value)
-
Constructor Details
-
NetworkRegistrationInfoTestBuilder
public NetworkRegistrationInfoTestBuilder()
-
-
Method Details
-
newBuilder
-
build
-
setAccessNetworkTechnology
-
setAvailableServices
-
setCellIdentity
-
setDomain
-
setEmergencyOnly
-
setRegisteredPlmn
-
setRegistrationState
-
setRejectCause
-
setTransportType
-
setDataSpecificInfo
-
setVoiceSpecificInfo
-
setRoamingType
-