Merge "Added build from existing NetworkRegistrationInfo" am: 9e6697d6a9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2506094 Change-Id: I5aae062cc8c1da1f1a2a887b001bbd66207ebcc7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -855,6 +855,31 @@ public final class NetworkRegistrationInfo implements Parcelable {
|
||||
*/
|
||||
public Builder() {}
|
||||
|
||||
/**
|
||||
* Builder from the existing {@link NetworkRegistrationInfo}.
|
||||
*
|
||||
* @param nri The network registration info object.
|
||||
* @hide
|
||||
*/
|
||||
public Builder(@NonNull NetworkRegistrationInfo nri) {
|
||||
mDomain = nri.mDomain;
|
||||
mTransportType = nri.mTransportType;
|
||||
mInitialRegistrationState = nri.mInitialRegistrationState;
|
||||
mAccessNetworkTechnology = nri.mAccessNetworkTechnology;
|
||||
mRejectCause = nri.mRejectCause;
|
||||
mEmergencyOnly = nri.mEmergencyOnly;
|
||||
mAvailableServices = new ArrayList<>(nri.mAvailableServices);
|
||||
mCellIdentity = nri.mCellIdentity;
|
||||
if (nri.mDataSpecificInfo != null) {
|
||||
mDataSpecificRegistrationInfo = new DataSpecificRegistrationInfo(
|
||||
nri.mDataSpecificInfo);
|
||||
}
|
||||
if (nri.mVoiceSpecificInfo != null) {
|
||||
mVoiceSpecificRegistrationInfo = new VoiceSpecificRegistrationInfo(
|
||||
nri.mVoiceSpecificInfo);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the network domain.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user