Home
last modified time | relevance | path

Searched refs:mApnContext (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DApnContextTest.java51 private ApnContext mApnContext; field in ApnContextTest
57 mApnContext = new ApnContext(mPhone, ApnSetting.TYPE_DEFAULT, TAG, mDcTracker, 1); in setUp()
62 mApnContext = null; in tearDown()
69 mApnContext.setApnSetting(mApnSetting); in testSetGetApnSetting()
70 assertEquals(mApnSetting, mApnContext.getApnSetting()); in testSetGetApnSetting()
76 assertEquals(PhoneConstants.APN_TYPE_DEFAULT, mApnContext.getApnType()); in testGetApnType()
83 mApnContext.incAndGetConnectionGeneration(); in testConnectionGeneration()
84 assertEquals(i + 1, mApnContext.getConnectionGeneration()); in testConnectionGeneration()
91 mApnContext.setReason("dataEnabled"); in testReason()
92 assertEquals("dataEnabled", mApnContext.getReason()); in testReason()
[all …]
DDataConnectionTest.java96 ApnContext mApnContext; field in DataConnectionTest
289 replaceInstance(ConnectionParams.class, "mApnContext", mCp, mApnContext); in setUp()
292 doReturn(mApn1).when(mApnContext).getApnSetting(); in setUp()
293 doReturn(PhoneConstants.APN_TYPE_DEFAULT).when(mApnContext).getApnType(); in setUp()
314 mDcp.mApnContext = mApnContext; in setUp()
585 doReturn(mApn2).when(mApnContext).getApnSetting(); in testNetworkCapability()
601 doReturn(mApn1).when(mApnContext).getApnSetting(); in testNetworkCapability()
704 doReturn(apn).when(mApnContext).getApnSetting(); in testShouldSkip464XlatEvent()
1022 doReturn(ApnSetting.TYPE_MMS).when(mApnContext).getApnTypeBitmask(); in testIsUnmeteredUseOnly()
DDcTrackerTest.java146 ApnContext mApnContext; field in DcTrackerTest
744 mApnContext)); in testDataRetry()
1011 doReturn(targetApn).when(mApnContext).getApnType(); in initApns()
1012 doReturn(ApnSetting.getApnTypesBitmaskFromString(mApnContext.getApnType())) in initApns()
1013 .when(mApnContext).getApnTypeBitmask(); in initApns()
1014 doReturn(true).when(mApnContext).isConnectable(); in initApns()
1017 doReturn(apnSetting).when(mApnContext).getNextApnSetting(); in initApns()
1018 doReturn(apnSetting).when(mApnContext).getApnSetting(); in initApns()
1019 doReturn(mDataConnection).when(mApnContext).getDataConnection(); in initApns()
1020 doReturn(true).when(mApnContext).isEnabled(); in initApns()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java194 ApnContext mApnContext; field in DataConnection.ConnectionParams
208 mApnContext = apnContext; in ConnectionParams()
220 return "{mTag=" + mTag + " mApnContext=" + mApnContext in toString()
236 public ApnContext mApnContext; field in DataConnection.DisconnectParams
244 mApnContext = apnContext; in DisconnectParams()
252 return "{mTag=" + mTag + " mApnContext=" + mApnContext in toString()
676 if (cp.mApnContext != null) cp.mApnContext.requestLog("DataConnection.connect"); in connect()
716 cp.mApnContext.getApnTypeBitmask(), mPhone); in connect()
742 if (dcTracker == null || cp.mApnContext == null) { in connect()
744 + cp.mApnContext); in connect()
[all …]