From 91081949634baa17d48affd2554e5515d24e2765 Mon Sep 17 00:00:00 2001 From: Mengjie Xie Date: Wed, 14 Apr 2021 15:21:23 +0800 Subject: [PATCH] Change Nci to CellInfo.UNAVAILABLE_LONG Problem: CellInfoTest#testCellInfo fail Root cause: In CellIdentityNr.sanitizeLocationInfo, Nci is set to CellInfo.UNAVAILABLE But in test case, CellInfo.UNAVAILABLE_LONG is expected Solution: Change Nci to CellInfo.UNAVAILABLE_LONG in CellIdentityNr.sanitizeLocationInfo Bug: 185446912 Test: CellInfoTest#testCellInfo can pass Change-Id: Idd2566c51ab388c22d76b6d6f795faba4af60d05 --- telephony/java/android/telephony/CellIdentityNr.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telephony/java/android/telephony/CellIdentityNr.java b/telephony/java/android/telephony/CellIdentityNr.java index 45a67b39ea552..0dfc7f6df27d0 100644 --- a/telephony/java/android/telephony/CellIdentityNr.java +++ b/telephony/java/android/telephony/CellIdentityNr.java @@ -116,7 +116,7 @@ public final class CellIdentityNr extends CellIdentity { @Override public @NonNull CellIdentityNr sanitizeLocationInfo() { return new CellIdentityNr(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mNrArfcn, - mBands, mMccStr, mMncStr, CellInfo.UNAVAILABLE, mAlphaLong, mAlphaShort, + mBands, mMccStr, mMncStr, CellInfo.UNAVAILABLE_LONG, mAlphaLong, mAlphaShort, mAdditionalPlmns); }