Home
last modified time | relevance | path

Searched refs:DctConstants (Results 1 – 12 of 12) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java31 import com.android.internal.telephony.DctConstants;
58 private DctConstants.State mState;
114 mState = DctConstants.State.IDLE; in ApnContext()
161 setState(DctConstants.State.IDLE); in releaseDataConnection()
270 public synchronized void setState(DctConstants.State s) { in setState()
277 if (mState == DctConstants.State.FAILED) { in setState()
288 public synchronized DctConstants.State getState() { in getState()
297 DctConstants.State currentState = getState(); in isDisconnected()
298 return ((currentState == DctConstants.State.IDLE) || in isDisconnected()
299 currentState == DctConstants.State.FAILED); in isDisconnected()
[all …]
DDcTracker.java81 import com.android.internal.telephony.DctConstants;
436 DctConstants.EVENT_ROAMING_ON); in registerSettingsObserver()
439 DctConstants.EVENT_DEVICE_PROVISIONED_CHANGE); in registerSettingsObserver()
442 DctConstants.EVENT_DEVICE_PROVISIONED_CHANGE); in registerSettingsObserver()
511 DctConstants.State apnContextState = apnContext.getState(); in onActionIntentReconnectAlarm()
515 if ((apnContextState == DctConstants.State.FAILED) in onActionIntentReconnectAlarm()
516 || (apnContextState == DctConstants.State.IDLE)) { in onActionIntentReconnectAlarm()
528 apnContext.setState(DctConstants.State.IDLE); in onActionIntentReconnectAlarm()
533 sendMessage(obtainMessage(DctConstants.EVENT_TRY_SETUP_DATA, apnContext)); in onActionIntentReconnectAlarm()
541 Message msg = obtainMessage(DctConstants.EVENT_DATA_STALL_ALARM, in onActionIntentDataStallAlarm()
[all …]
DDcRequest.java18 import static com.android.internal.telephony.DctConstants.APN_CBS_ID;
19 import static com.android.internal.telephony.DctConstants.APN_DEFAULT_ID;
20 import static com.android.internal.telephony.DctConstants.APN_DUN_ID;
21 import static com.android.internal.telephony.DctConstants.APN_EMERGENCY_ID;
22 import static com.android.internal.telephony.DctConstants.APN_FOTA_ID;
23 import static com.android.internal.telephony.DctConstants.APN_IA_ID;
24 import static com.android.internal.telephony.DctConstants.APN_IMS_ID;
25 import static com.android.internal.telephony.DctConstants.APN_INVALID_ID;
26 import static com.android.internal.telephony.DctConstants.APN_MMS_ID;
27 import static com.android.internal.telephony.DctConstants.APN_SUPL_ID;
DDcController.java31 import com.android.internal.telephony.DctConstants;
367 mDct.sendStopNetStatPoll(DctConstants.Activity.DORMANT); in onDataStateChanged()
375 mDct.sendStartNetStatPoll(DctConstants.Activity.NONE); in onDataStateChanged()
DDataConnection.java21 import com.android.internal.telephony.DctConstants;
545 notifyAllWithEvent(null, DctConstants.EVENT_DATA_SETUP_COMPLETE, reason); in notifyAllOfConnected()
549 notifyAllWithEvent(null, DctConstants.EVENT_DISCONNECT_DC_RETRYING, reason); in notifyAllOfDisconnectDcRetrying()
552 notifyAllWithEvent(null, DctConstants.EVENT_DISCONNECT_DONE, cause.toString()); in notifyAllDisconnectCompleted()
596 notifyAllWithEvent(alreadySent, DctConstants.EVENT_DATA_SETUP_COMPLETE_ERROR, in notifyConnectCompleted()
631 notifyAllWithEvent(alreadySent, DctConstants.EVENT_DISCONNECT_DONE, reason); in notifyDisconnectCompleted()
1791 Message msg = mDct.obtainMessage(DctConstants.EVENT_DISCONNECT_DONE, pair); in unwanted()
1812 Message msg = mDct.obtainMessage(DctConstants.EVENT_REDIRECTION_DETECTED, in networkStatus()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DApnContextTest.java24 import com.android.internal.telephony.DctConstants;
98 assertEquals(DctConstants.State.IDLE, mApnContext.getState()); in testDataCallAsyncChannel()
121 mApnContext.setState(DctConstants.State.DISCONNECTING); in testState()
122 assertEquals(DctConstants.State.DISCONNECTING, mApnContext.getState()); in testState()
127 mApnContext.setState(DctConstants.State.SCANNING); in testState()
131 mApnContext.setState(DctConstants.State.FAILED); in testState()
133 mApnContext.setState(DctConstants.State.IDLE); in testState()
142 verify(mDcTracker, times(1)).setEnabled(eq(DctConstants.APN_DEFAULT_ID), eq(true)); in testRefCount()
144 verify(mDcTracker, times(1)).setEnabled(eq(DctConstants.APN_DEFAULT_ID), eq(true)); in testRefCount()
147 verify(mDcTracker, never()).setEnabled(eq(DctConstants.APN_DEFAULT_ID), eq(false)); in testRefCount()
[all …]
DDcTrackerTest.java43 import com.android.internal.telephony.DctConstants;
359 assertEquals(DctConstants.State.CONNECTED, mDct.getOverallState()); in verifyDataConnected()
360 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected()
397 mDct.sendMessage(mDct.obtainMessage(DctConstants.EVENT_RECORDS_LOADED, null)); in testDataSetup()
408 mDct.sendMessage(mDct.obtainMessage(DctConstants.EVENT_DATA_CONNECTION_ATTACHED, null)); in testDataSetup()
460 mDct.sendMessage(mDct.obtainMessage(DctConstants.EVENT_RECORDS_LOADED, null)); in testDataRetry()
471 mDct.sendMessage(mDct.obtainMessage(DctConstants.EVENT_DATA_CONNECTION_ATTACHED, null)); in testDataRetry()
543 mDct.sendMessage(mDct.obtainMessage(DctConstants.EVENT_RECORDS_LOADED, null)); in testUserDisableData()
547 mDct.sendMessage(mDct.obtainMessage(DctConstants.EVENT_DATA_CONNECTION_ATTACHED, null)); in testUserDisableData()
568 assertEquals(DctConstants.State.CONNECTED, mDct.getOverallState()); in testUserDisableData()
[all …]
DDcControllerTest.java25 import com.android.internal.telephony.DctConstants;
127 verify(mDcTracker, times(1)).sendStopNetStatPoll(eq(DctConstants.Activity.DORMANT)); in testDataDormant()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DDcTrackerMock.java28 import com.android.internal.telephony.DctConstants;
53 public DctConstants.Activity getActivity() { in getActivity()
85 public DctConstants.State getState(String apnType) { in getState()
89 public DctConstants.State getOverallState() { in getOverallState()
165 public void sendStartNetStatPoll(DctConstants.Activity activity) { in sendStartNetStatPoll()
169 public void sendStopNetStatPoll(DctConstants.Activity activity) { in sendStopNetStatPoll()
/frameworks/base/telephony/java/com/android/internal/telephony/
DDctConstants.java23 public class DctConstants { class
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java226 doReturn(DctConstants.State.IDLE).when(mDcTracker).getState( in testGetDataConnectionState()
233 doReturn(DctConstants.State.CONNECTED).when(mDcTracker).getState( in testGetDataConnectionState()
/frameworks/base/
Dcompiled-classes-phone5510 com.android.internal.telephony.DctConstants$Activity
5511 com.android.internal.telephony.DctConstants$State