Loading src/java/com/android/internal/telephony/data/DataNetwork.java +7 −4 Original line number Diff line number Diff line Loading @@ -2446,7 +2446,8 @@ public class DataNetwork extends StateMachine { getDataNetworkType(), apnTypeBitmask, protocol, mFailCause); // Log the raw fail cause to avoid large amount of UNKNOWN showing on metrics. response != null ? response.getCause() : mFailCause); } /** Loading Loading @@ -3263,7 +3264,7 @@ public class DataNetwork extends StateMachine { mDataNetworkCallback.invokeFromExecutor( () -> mDataNetworkCallback.onHandoverFailed(DataNetwork.this, mFailCause, retry, handoverFailureMode)); trackHandoverFailure(); trackHandoverFailure(response != null ? response.getCause() : mFailCause); } // No matter handover succeeded or not, transit back to connected state. Loading @@ -3273,13 +3274,15 @@ public class DataNetwork extends StateMachine { /** * Called when handover failed. Record the source and target RAT{@link NetworkType} and the * failure cause {@link android.telephony.DataFailCause}. * * @param cause The fail cause. */ private void trackHandoverFailure() { private void trackHandoverFailure(int cause) { int sourceRat = getDataNetworkType(); int targetTransport = DataUtils.getTargetTransport(mTransport); int targetRat = getDataNetworkType(targetTransport); mDataCallSessionStats.onHandoverFailure(mFailCause, sourceRat, targetRat); mDataCallSessionStats.onHandoverFailure(cause, sourceRat, targetRat); } /** Loading src/java/com/android/internal/telephony/metrics/DataCallSessionStats.java +2 −2 Original line number Diff line number Diff line Loading @@ -84,14 +84,14 @@ public class DataCallSessionStats { * @param currentRat The data call current Network Type * @param apnTypeBitmask APN type bitmask * @param protocol Data connection protocol * @param failureCause failure cause as per android.telephony.DataFailCause * @param failureCause The raw failure cause from modem/IWLAN data service. */ public synchronized void onSetupDataCallResponse( @Nullable DataCallResponse response, @NetworkType int currentRat, @ApnType int apnTypeBitmask, @ProtocolType int protocol, @DataFailureCause int failureCause) { int failureCause) { // there should've been a call to onSetupDataCall to initiate the atom, // so this method is being called out of order -> no metric will be logged if (mDataCallSession == null) { Loading Loading
src/java/com/android/internal/telephony/data/DataNetwork.java +7 −4 Original line number Diff line number Diff line Loading @@ -2446,7 +2446,8 @@ public class DataNetwork extends StateMachine { getDataNetworkType(), apnTypeBitmask, protocol, mFailCause); // Log the raw fail cause to avoid large amount of UNKNOWN showing on metrics. response != null ? response.getCause() : mFailCause); } /** Loading Loading @@ -3263,7 +3264,7 @@ public class DataNetwork extends StateMachine { mDataNetworkCallback.invokeFromExecutor( () -> mDataNetworkCallback.onHandoverFailed(DataNetwork.this, mFailCause, retry, handoverFailureMode)); trackHandoverFailure(); trackHandoverFailure(response != null ? response.getCause() : mFailCause); } // No matter handover succeeded or not, transit back to connected state. Loading @@ -3273,13 +3274,15 @@ public class DataNetwork extends StateMachine { /** * Called when handover failed. Record the source and target RAT{@link NetworkType} and the * failure cause {@link android.telephony.DataFailCause}. * * @param cause The fail cause. */ private void trackHandoverFailure() { private void trackHandoverFailure(int cause) { int sourceRat = getDataNetworkType(); int targetTransport = DataUtils.getTargetTransport(mTransport); int targetRat = getDataNetworkType(targetTransport); mDataCallSessionStats.onHandoverFailure(mFailCause, sourceRat, targetRat); mDataCallSessionStats.onHandoverFailure(cause, sourceRat, targetRat); } /** Loading
src/java/com/android/internal/telephony/metrics/DataCallSessionStats.java +2 −2 Original line number Diff line number Diff line Loading @@ -84,14 +84,14 @@ public class DataCallSessionStats { * @param currentRat The data call current Network Type * @param apnTypeBitmask APN type bitmask * @param protocol Data connection protocol * @param failureCause failure cause as per android.telephony.DataFailCause * @param failureCause The raw failure cause from modem/IWLAN data service. */ public synchronized void onSetupDataCallResponse( @Nullable DataCallResponse response, @NetworkType int currentRat, @ApnType int apnTypeBitmask, @ProtocolType int protocol, @DataFailureCause int failureCause) { int failureCause) { // there should've been a call to onSetupDataCall to initiate the atom, // so this method is being called out of order -> no metric will be logged if (mDataCallSession == null) { Loading