aboutsummaryrefslogtreecommitdiff
path: root/tests/telephonytests
diff options
context:
space:
mode:
authorJack Yu <jackyu@google.com>2020-06-19 16:04:41 -0700
committerJack Yu <jackyu@google.com>2020-06-19 19:15:24 -0700
commit6999223d9d7d27d6ab34b04ec2fcbf923efd79bf (patch)
treea4f1408fa0df06486ed5c3576b2e0feb8db2a97c /tests/telephonytests
parente51ecf749da6f7b015079b0e34db24f6dc6adfdf (diff)
downloadtelephony-6999223d9d7d27d6ab34b04ec2fcbf923efd79bf.tar.gz
Exclude IWLAN from data dormant
For now exclude IWLAN from data dormant and data activity. The network type controller is interfered by the incorrect data activity triggered by IWLAN tear down, thus showing incorrect icon for 5G. This might not 100% fix the issue because Android data activity state is mixed with data traffic counting, not exactly taking the signal from modem. To fix 5G icon issue, we need to make physical config channel reflecting the RRC connection state in S. Fix: 158557159 Test: DcControllerTest Change-Id: Iff8c36f5093903d854420968ebeebf79e796da3f
Diffstat (limited to 'tests/telephonytests')
-rw-r--r--tests/telephonytests/src/com/android/internal/telephony/dataconnection/DcControllerTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/telephonytests/src/com/android/internal/telephony/dataconnection/DcControllerTest.java b/tests/telephonytests/src/com/android/internal/telephony/dataconnection/DcControllerTest.java
index 9c1d1a854c..a0c9913e0a 100644
--- a/tests/telephonytests/src/com/android/internal/telephony/dataconnection/DcControllerTest.java
+++ b/tests/telephonytests/src/com/android/internal/telephony/dataconnection/DcControllerTest.java
@@ -36,6 +36,7 @@ import android.net.LinkProperties;
import android.os.AsyncResult;
import android.os.Handler;
import android.os.Looper;
+import android.telephony.AccessNetworkConstants;
import android.telephony.data.ApnSetting;
import android.telephony.data.DataCallResponse;
import android.test.suitebuilder.annotation.SmallTest;
@@ -99,6 +100,8 @@ public class DcControllerTest extends TelephonyTest {
LinkProperties lp = new LinkProperties();
mResult = new UpdateLinkPropertyResult(lp);
doReturn(mResult).when(mDc).updateLinkProperty(any(DataCallResponse.class));
+ doReturn(AccessNetworkConstants.TRANSPORT_TYPE_WWAN)
+ .when(mDataServiceManager).getTransportType();
mDcc = DcController.makeDcc(mPhone, mDcTracker, mDataServiceManager,
new Handler(Looper.myLooper()), "");