Home
last modified time | relevance | path

Searched refs:State (Results 1 – 25 of 189) sorted by relevance

12345678

/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DNetworkState.java19 import android.net.NetworkInfo.State;
30 private List<State> mStateDepository;
31 private State mTransitionTarget;
36 mStateDepository = new ArrayList<State>(); in NetworkState()
38 mTransitionTarget = State.UNKNOWN; in NetworkState()
41 public NetworkState(State currentState) { in NetworkState()
42 mStateDepository = new ArrayList<State>(); in NetworkState()
45 mTransitionTarget = State.UNKNOWN; in NetworkState()
52 mTransitionTarget = State.UNKNOWN; in resetNetworkState()
57 public void setStateTransitionCriteria(State initState, int transitionDir, State targetState) { in setStateTransitionCriteria()
[all …]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DNetworkState.java19 import android.net.NetworkInfo.State;
36 private List<State> mStateDepository;
37 private State mTransitionTarget;
42 mStateDepository = new ArrayList<State>(); in NetworkState()
44 mTransitionTarget = State.UNKNOWN; in NetworkState()
47 public NetworkState(State currentState) { in NetworkState()
48 mStateDepository = new ArrayList<State>(); in NetworkState()
51 mTransitionTarget = State.UNKNOWN; in NetworkState()
60 mTransitionTarget = State.UNKNOWN; in resetNetworkState()
69 public void setStateTransitionCriteria(State initState, StateTransitionDirection transitionDir, in setStateTransitionCriteria()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java142 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); in brokenTestGeneral()
147 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState()); in brokenTestGeneral()
148 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState()); in brokenTestGeneral()
149 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState()); in brokenTestGeneral()
161 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral()
166 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral()
167 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState()); in brokenTestGeneral()
178 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState()); in brokenTestGeneral()
179 assertEquals(Call.State.DIALING, in brokenTestGeneral()
181 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState()); in brokenTestGeneral()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedGsmCallState.java31 enum State { enum in CallInfo
39 State(int value) {mValue = value;} in State() method in CallInfo.State
46 State mState;
51 CallInfo (boolean isMT, State state, boolean isMpty, String number) { in CallInfo()
66 return new CallInfo (false, State.DIALING, false, number); in createOutgoingCall()
71 return new CallInfo (true, State.INCOMING, false, number); in createIncomingCall()
110 return mState == State.ACTIVE || mState == State.HOLDING; in isActiveOrHeld()
115 return mState == State.DIALING || mState == State.ALERTING; in isConnecting()
120 return mState == State.INCOMING || mState == State.WAITING; in isRinging()
190 && (call.mState == CallInfo.State.INCOMING in triggerRing()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmCall.java38 static State
39 stateFromDCState (DriverCall.State dcState) { in stateFromDCState()
41 case ACTIVE: return State.ACTIVE; in stateFromDCState()
42 case HOLDING: return State.HOLDING; in stateFromDCState()
43 case DIALING: return State.DIALING; in stateFromDCState()
44 case ALERTING: return State.ALERTING; in stateFromDCState()
45 case INCOMING: return State.INCOMING; in stateFromDCState()
46 case WAITING: return State.WAITING; in stateFromDCState()
108 attachFake(Connection conn, State state) { in attachFake()
119 if (mState != State.DISCONNECTED) { in connectionDisconnected()
[all …]
DGsmCallTracker.java88 PhoneConstants.State mState = PhoneConstants.State.IDLE;
190 if (mForegroundCall.getState() == GsmCall.State.ACTIVE) { in dial()
204 if (mForegroundCall.getState() != GsmCall.State.IDLE) { in dial()
256 if (mRingingCall.getState() == GsmCall.State.INCOMING) { in acceptCall()
261 } else if (mRingingCall.getState() == GsmCall.State.WAITING) { in acceptCall()
283 if (mRingingCall.getState() == GsmCall.State.INCOMING) { in switchWaitingOrHoldingAndActive()
311 return mForegroundCall.getState() == GsmCall.State.ACTIVE in canConference()
312 && mBackgroundCall.getState() == GsmCall.State.HOLDING in canConference()
336 return mForegroundCall.getState() == GsmCall.State.ACTIVE in canTransfer()
337 && mBackgroundCall.getState() == GsmCall.State.HOLDING; in canTransfer()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaCall.java37 static State
38 stateFromDCState (DriverCall.State dcState) { in stateFromDCState()
40 case ACTIVE: return State.ACTIVE; in stateFromDCState()
41 case HOLDING: return State.HOLDING; in stateFromDCState()
42 case DIALING: return State.DIALING; in stateFromDCState()
43 case ALERTING: return State.ALERTING; in stateFromDCState()
44 case INCOMING: return State.INCOMING; in stateFromDCState()
45 case WAITING: return State.WAITING; in stateFromDCState()
105 attachFake(Connection conn, State state) { in attachFake()
116 if (mState != State.DISCONNECTED) { in connectionDisconnected()
[all …]
DCdmaMmiCode.java65 State mState = State.PENDING;
147 public State
163 if (mState == State.COMPLETE || mState == State.FAILED) { in cancel()
167 mState = State.CANCELLED; in cancel()
224 mState = State.FAILED; in processCode()
231 mState = State.FAILED; in handlePasswordError()
269 mState = State.FAILED; in onSetComplete()
289 mState = State.COMPLETE; in onSetComplete()
293 mState = State.FAILED; in onSetComplete()
DCdmaCallTracker.java85 PhoneConstants.State mState = PhoneConstants.State.IDLE;
142 if (mState != PhoneConstants.State.IDLE) { in registerForVoiceCallStarted()
201 if (mForegroundCall.getState() == CdmaCall.State.ACTIVE) { in dial()
265 if (mRingingCall.getState() == CdmaCall.State.INCOMING) { in acceptCall()
270 } else if (mRingingCall.getState() == CdmaCall.State.WAITING) { in acceptCall()
300 if (mRingingCall.getState() == CdmaCall.State.INCOMING) { in switchWaitingOrHoldingAndActive()
334 return mForegroundCall.getState() == CdmaCall.State.ACTIVE in canConference()
335 && mBackgroundCall.getState() == CdmaCall.State.HOLDING in canConference()
352 || (mForegroundCall.getState() == CdmaCall.State.ACTIVE) in canDial()
370 mForegroundCall.getState() == CdmaCall.State.ACTIVE, in canDial()
[all …]
/frameworks/base/core/java/android/net/
DNetworkInfo.java51 public enum State { enum in NetworkInfo
94 private static final EnumMap<DetailedState, State> stateMap =
95 new EnumMap<DetailedState, State>(DetailedState.class);
98 stateMap.put(DetailedState.IDLE, State.DISCONNECTED); in stateMap.put()
99 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED); in stateMap.put()
100 stateMap.put(DetailedState.CONNECTING, State.CONNECTING); in stateMap.put()
101 stateMap.put(DetailedState.AUTHENTICATING, State.CONNECTING); in stateMap.put()
102 stateMap.put(DetailedState.OBTAINING_IPADDR, State.CONNECTING); in stateMap.put()
103 stateMap.put(DetailedState.VERIFYING_POOR_LINK, State.CONNECTING); in stateMap.put()
104 stateMap.put(DetailedState.CAPTIVE_PORTAL_CHECK, State.CONNECTING); in stateMap.put()
[all …]
DDhcpStateMachine.java20 import com.android.internal.util.State;
106 private State mDefaultState = new DefaultState();
107 private State mStoppedState = new StoppedState();
108 private State mWaitBeforeStartState = new WaitBeforeStartState();
109 private State mRunningState = new RunningState();
110 private State mWaitBeforeRenewalState = new WaitBeforeRenewalState();
181 class DefaultState extends State {
203 class StoppedState extends State {
236 class WaitBeforeStartState extends State {
268 class RunningState extends State {
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DConnectivityManagerMobileTest.java22 import android.net.NetworkInfo.State;
69 if (!cmActivity.waitForNetworkState(ConnectivityManager.TYPE_MOBILE, State.CONNECTED, in setUp()
129 State.DISCONNECTED, ConnectivityManagerTestActivity.LONG_TIMEOUT)); in test3GToWifiNotification()
131 State.CONNECTED, ConnectivityManagerTestActivity.LONG_TIMEOUT)); in test3GToWifiNotification()
139 networkInfo.getState(), NetworkState.DO_NOTHING, State.CONNECTED); in test3GToWifiNotification()
142 NetworkState.DO_NOTHING, State.DISCONNECTED); in test3GToWifiNotification()
173 networkInfo.getState(), NetworkState.TO_DISCONNECTION, State.DISCONNECTED); in testConnectToWifi()
177 NetworkState.TO_CONNECTION, State.CONNECTED); in testConnectToWifi()
186 assertTrue(cmActivity.waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED, in testConnectToWifi()
190 State.DISCONNECTED, ConnectivityManagerTestActivity.LONG_TIMEOUT)); in testConnectToWifi()
[all …]
/frameworks/base/core/java/android/os/
DSystemService.java33 private static HashMap<String, State> sStates = Maps.newHashMap();
38 public enum State { enum in SystemService
44 State(String state) { in State() method in SystemService.State
80 public static State getState(String service) { in getState()
82 final State state = sStates.get(rawState); in getState()
86 return State.STOPPED; in getState()
94 return State.STOPPED.equals(getState(service)); in isStopped()
101 return State.RUNNING.equals(getState(service)); in isRunning()
107 public static void waitForState(String service, State state, long timeoutMillis) in waitForState()
112 final State currentState = getState(service); in waitForState()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DOperatorInfo.java26 public enum State { enum in OperatorInfo
37 private State mState = State.UNKNOWN;
55 public State
63 State state) { in OperatorInfo()
84 private static State rilStateToState(String s) { in rilStateToState()
86 return State.UNKNOWN; in rilStateToState()
88 return State.AVAILABLE; in rilStateToState()
90 return State.CURRENT; in rilStateToState()
92 return State.FORBIDDEN; in rilStateToState()
145 (State) in.readSerializable()); /*state*/
DDriverCall.java29 public enum State { enum in DriverCall
42 public State state; // May be null if unavail
119 public static State
122 case 0: return State.ACTIVE; in stateFromCLCC()
123 case 1: return State.HOLDING; in stateFromCLCC()
124 case 2: return State.DIALING; in stateFromCLCC()
125 case 3: return State.ALERTING; in stateFromCLCC()
126 case 4: return State.INCOMING; in stateFromCLCC()
127 case 5: return State.WAITING; in stateFromCLCC()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhone.java126 != SipSession.State.INCOMING_CALL) { in canTake()
148 if ((mRingingCall.getState() == Call.State.INCOMING) || in acceptCall()
149 (mRingingCall.getState() == Call.State.WAITING)) { in acceptCall()
195 if (mForegroundCall.getState() == SipCall.State.ACTIVE) { in dialInternal()
198 if (mForegroundCall.getState() != SipCall.State.IDLE) { in dialInternal()
232 if ((mForegroundCall.getState() != SipCall.State.ACTIVE) in conference()
233 || (mForegroundCall.getState() != SipCall.State.ACTIVE)) { in conference()
395 private static Call.State getCallStateFrom(SipAudioCall sipAudioCall) { in getCallStateFrom()
396 if (sipAudioCall.isOnHold()) return Call.State.HOLDING; in getCallStateFrom()
399 case SipSession.State.READY_TO_CALL: return Call.State.IDLE; in getCallStateFrom()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java42 private DctConstants.State mState;
69 mState = DctConstants.State.IDLE; in ApnContext()
146 public synchronized void setState(DctConstants.State s) { in setState()
153 if (mState == DctConstants.State.FAILED) { in setState()
160 public synchronized DctConstants.State getState() { in getState()
165 DctConstants.State currentState = getState(); in isDisconnected()
166 return ((currentState == DctConstants.State.IDLE) || in isDisconnected()
167 currentState == DctConstants.State.FAILED); in isDisconnected()
186 return isReady() && ((mState == DctConstants.State.IDLE) in isConnectable()
187 || (mState == DctConstants.State.SCANNING) in isConnectable()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DSupplicantStateTracker.java19 import com.android.internal.util.State;
61 private State mUninitializedState = new UninitializedState();
62 private State mDefaultState = new DefaultState();
63 private State mInactiveState = new InactiveState();
64 private State mDisconnectState = new DisconnectedState();
65 private State mScanState = new ScanState();
66 private State mHandshakeState = new HandshakeState();
67 private State mCompletedState = new CompletedState();
68 private State mDormantState = new DormantState();
160 class DefaultState extends State {
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccCardProxy.java40 import com.android.internal.telephony.IccCardConstants.State;
105 private State mExternalState = State.UNKNOWN;
117 setExternalState(State.NOT_READY); in IccCardProxy()
181 setExternalState(State.READY); in updateQuietMode()
220 setExternalState(State.ABSENT); in handleMessage()
226 setExternalState(State.READY); in handleMessage()
236 setExternalState(State.NETWORK_LOCKED); in handleMessage()
277 setExternalState(State.ABSENT); in updateExternalState()
279 setExternalState(State.NOT_READY); in updateExternalState()
286 setExternalState(State.UNKNOWN); in updateExternalState()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DDiagnosticEngine.h99 struct State struct
102 State() : numArgs(0), ID(-1), severity(None), file(NULL) { } in State() argument
103 ~State() { } in ~State() argument
123 State& state() in state() argument
126 const State& state() const in state()
146 State m_State;
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
DCarrierText.java26 import com.android.internal.telephony.IccCardConstants.State;
37 private State mSimState;
47 public void onSimStateChanged(IccCardConstants.State simState) {
75 protected void updateCarrierText(State simState, CharSequence plmn, CharSequence spn) { in updateCarrierText()
112 private CharSequence getCarrierTextForSimState(IccCardConstants.State simState, in getCarrierTextForSimState()
181 private StatusMode getStatusForIccState(IccCardConstants.State simState) { in getStatusForIccState()
189 && (simState == IccCardConstants.State.ABSENT || in getStatusForIccState()
190 simState == IccCardConstants.State.PERM_DISABLED); in getStatusForIccState()
193 simState = missingAndNotProvisioned ? IccCardConstants.State.NETWORK_LOCKED : simState; in getStatusForIccState()
229 private CharSequence getCarrierHelpTextForSimState(IccCardConstants.State simState, in getCarrierHelpTextForSimState()
DKeyguardUpdateMonitor.java102 private IccCardConstants.State mSimState = IccCardConstants.State.READY;
306 public final IccCardConstants.State simState;
308 SimArgs(IccCardConstants.State state) { in SimArgs()
313 IccCardConstants.State state; in fromIntent()
324 state = IccCardConstants.State.PERM_DISABLED; in fromIntent()
326 state = IccCardConstants.State.ABSENT; in fromIntent()
329 state = IccCardConstants.State.READY; in fromIntent()
334 state = IccCardConstants.State.PIN_REQUIRED; in fromIntent()
336 state = IccCardConstants.State.PUK_REQUIRED; in fromIntent()
338 state = IccCardConstants.State.UNKNOWN; in fromIntent()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DQuickSettingsModel.java63 static class State { class in QuickSettingsModel
68 static class BatteryState extends State {
72 static class RSSIState extends State {
78 static class WifiState extends State {
82 static class UserState extends State {
85 static class BrightnessState extends State {
88 public static class BluetoothState extends State {
95 public void refreshView(QuickSettingsTileView view, State state); in refreshView()
105 public void refreshView(QuickSettingsTileView ignored, State state) { in refreshView()
208 private State mTimeState = new State();
[all …]
/frameworks/ex/common/java/com/android/common/
DNetworkConnectivityListener.java45 private State mState;
77 mState = State.NOT_CONNECTED; in onReceive()
79 mState = State.CONNECTED; in onReceive()
107 public enum State { enum in NetworkConnectivityListener
128 mState = State.UNKNOWN; in NetworkConnectivityListener()
181 public State getState() { in getState()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionGroup.java372 + SipSession.State.toString(session.mState)); in process()
489 SipSession.State.INCOMING_CALL); in processNewInviteRequest()
499 SipSession.State.INCOMING_CALL); in processNewInviteRequest()
509 + SipSession.State.toString(mState) + ": processing " in process()
539 int mState = SipSession.State.READY_TO_CALL;
604 mState = SipSession.State.READY_TO_CALL; in reset()
756 + SipSession.State.toString(mState); in toString()
764 + SipSession.State.toString(mState) + ": processing " in process()
786 case SipSession.State.REGISTERING: in process()
787 case SipSession.State.DEREGISTERING: in process()
[all …]

12345678