Home
last modified time | relevance | path

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

123456789

/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/cdma/
DCdmaCall.java27 import com.android.internal.telephony.Call.State;
36 /*package*/ State state = State.IDLE;
41 static State
42 stateFromDCState (DriverCall.State dcState) { in stateFromDCState()
44 case ACTIVE: return State.ACTIVE; in stateFromDCState()
45 case HOLDING: return State.HOLDING; in stateFromDCState()
46 case DIALING: return State.DIALING; in stateFromDCState()
47 case ALERTING: return State.ALERTING; in stateFromDCState()
48 case INCOMING: return State.INCOMING; in stateFromDCState()
49 case WAITING: return State.WAITING; in stateFromDCState()
[all …]
DCdmaMmiCode.java65 State state = State.PENDING;
146 public State
160 if (state == State.COMPLETE || state == State.FAILED) { in cancel()
164 state = State.CANCELLED; in cancel()
219 state = State.FAILED; in processCode()
226 state = State.FAILED; in handlePasswordError()
263 state = State.FAILED; in onSetComplete()
283 state = State.COMPLETE; in onSetComplete()
287 state = State.FAILED; in onSetComplete()
DCdmaDataConnectionTracker.java182 protected void setState(DctConstants.State s) { in setState()
192 public synchronized DctConstants.State getState(String apnType) { in getState()
197 public DctConstants.State getOverallState() { in getOverallState()
231 mPhone.getState() ==PhoneConstants.State.IDLE) && in isDataAllowed()
248 mPhone.getState() ==PhoneConstants.State.IDLE)) { in isDataAllowed()
264 mState == DctConstants.State.FAILED); in isDataPossible()
277 setState(DctConstants.State.CONNECTED); in trySetupData()
289 if ((mState == DctConstants.State.IDLE || mState == DctConstants.State.SCANNING) && in trySetupData()
319 setState(DctConstants.State.DISCONNECTING); in cleanUpConnection()
396 setState(DctConstants.State.INITING); in setupData()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedGsmCallState.java31 enum State { enum in CallInfo
39 State (int value) {this.value = value;} in State() method in CallInfo.State
46 State state;
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 state == State.ACTIVE || state == State.HOLDING; in isActiveOrHeld()
115 return state == State.DIALING || state == State.ALERTING; in isConnecting()
120 return state == State.INCOMING || state == State.WAITING; in isRinging()
189 && (call.state == CallInfo.State.INCOMING in triggerRing()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmCall.java40 static State
41 stateFromDCState (DriverCall.State dcState) { in stateFromDCState()
43 case ACTIVE: return State.ACTIVE; in stateFromDCState()
44 case HOLDING: return State.HOLDING; in stateFromDCState()
45 case DIALING: return State.DIALING; in stateFromDCState()
46 case ALERTING: return State.ALERTING; in stateFromDCState()
47 case INCOMING: return State.INCOMING; in stateFromDCState()
48 case WAITING: return State.WAITING; in stateFromDCState()
105 attachFake(Connection conn, State state) { in attachFake()
116 if (state != State.DISCONNECTED) { in connectionDisconnected()
[all …]
DGsmCallTracker.java88 PhoneConstants.State state = PhoneConstants.State.IDLE;
185 if (foregroundCall.getState() == GsmCall.State.ACTIVE) { in dial()
199 if (foregroundCall.getState() != GsmCall.State.IDLE) { in dial()
251 if (ringingCall.getState() == GsmCall.State.INCOMING) { in acceptCall()
256 } else if (ringingCall.getState() == GsmCall.State.WAITING) { in acceptCall()
278 if (ringingCall.getState() == GsmCall.State.INCOMING) { in switchWaitingOrHoldingAndActive()
306 return foregroundCall.getState() == GsmCall.State.ACTIVE in canConference()
307 && backgroundCall.getState() == GsmCall.State.HOLDING in canConference()
331 return foregroundCall.getState() == GsmCall.State.ACTIVE in canTransfer()
332 && backgroundCall.getState() == GsmCall.State.HOLDING; in canTransfer()
[all …]
/frameworks/base/core/java/android/net/
DNetworkInfo.java49 public enum State { enum in NetworkInfo
92 private static final EnumMap<DetailedState, State> stateMap =
93 new EnumMap<DetailedState, State>(DetailedState.class);
96 stateMap.put(DetailedState.IDLE, State.DISCONNECTED); in stateMap.put()
97 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED); in stateMap.put()
98 stateMap.put(DetailedState.CONNECTING, State.CONNECTING); in stateMap.put()
99 stateMap.put(DetailedState.AUTHENTICATING, State.CONNECTING); in stateMap.put()
100 stateMap.put(DetailedState.OBTAINING_IPADDR, State.CONNECTING); in stateMap.put()
101 stateMap.put(DetailedState.VERIFYING_POOR_LINK, State.CONNECTING); in stateMap.put()
102 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/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhone.java116 != SipSession.State.INCOMING_CALL) { in canTake()
135 if ((ringingCall.getState() == Call.State.INCOMING) || in acceptCall()
136 (ringingCall.getState() == Call.State.WAITING)) { in acceptCall()
171 if (foregroundCall.getState() == SipCall.State.ACTIVE) { in dialInternal()
174 if (foregroundCall.getState() != SipCall.State.IDLE) { in dialInternal()
204 if ((foregroundCall.getState() != SipCall.State.ACTIVE) in conference()
205 || (foregroundCall.getState() != SipCall.State.ACTIVE)) { in conference()
355 setState(Call.State.IDLE); in reset()
402 setState(Call.State.DIALING); in dial()
415 setState(State.DISCONNECTING); in hangup()
[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/opt/telephony/src/java/com/android/internal/telephony/
DOperatorInfo.java26 public enum State { enum in OperatorInfo
37 private State state = 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()
141 (State) in.readSerializable()); /*state*/
DDriverCall.java29 public enum State { enum in DriverCall
42 public State state; // May be null if unavail
118 public static State
121 case 0: return State.ACTIVE; in stateFromCLCC()
122 case 1: return State.HOLDING; in stateFromCLCC()
123 case 2: return State.DIALING; in stateFromCLCC()
124 case 3: return State.ALERTING; in stateFromCLCC()
125 case 4: return State.INCOMING; in stateFromCLCC()
126 case 5: return State.WAITING; in stateFromCLCC()
DIccCardProxy.java34 import com.android.internal.telephony.IccCardConstants.State;
96 private State mExternalState = State.UNKNOWN;
108 setExternalState(State.NOT_READY); in IccCardProxy()
172 setExternalState(State.READY); in updateQuietMode()
210 setExternalState(State.ABSENT); in handleMessage()
216 setExternalState(State.READY); in handleMessage()
226 setExternalState(State.NETWORK_LOCKED); in handleMessage()
267 setExternalState(State.ABSENT); in updateExternalState()
269 setExternalState(State.NOT_READY); in updateExternalState()
276 setExternalState(State.UNKNOWN); in updateExternalState()
[all …]
DApnContext.java38 private DctConstants.State mState;
67 mState = DctConstants.State.IDLE; in ApnContext()
153 public synchronized void setState(DctConstants.State s) { in setState()
160 if (mState == DctConstants.State.FAILED) { in setState()
167 public synchronized DctConstants.State getState() { in getState()
172 DctConstants.State currentState = getState(); in isDisconnected()
173 return ((currentState == DctConstants.State.IDLE) || in isDisconnected()
174 currentState == DctConstants.State.FAILED); in isDisconnected()
/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/base/wifi/java/android/net/wifi/
DSupplicantStateTracker.java19 import com.android.internal.util.State;
58 private State mUninitializedState = new UninitializedState();
59 private State mDefaultState = new DefaultState();
60 private State mInactiveState = new InactiveState();
61 private State mDisconnectState = new DisconnectedState();
62 private State mScanState = new ScanState();
63 private State mHandshakeState = new HandshakeState();
64 private State mCompletedState = new CompletedState();
65 private State mDormantState = new DormantState();
156 class DefaultState extends State {
[all …]
/frameworks/base/core/java/com/android/internal/util/
DStateMachine.java453 private State mState;
454 private State mOrgState;
464 LogRec(Message msg, String info, State state, State orgState) { in LogRec()
474 public void update(Message msg, String info, State state, State orgState) { in update()
506 public State getState() { in getState()
513 public State getOriginalState() { in getOriginalState()
632 synchronized void add(Message msg, String messageInfo, State state, State orgState) { in add()
692 State state;
712 private HashMap<State, StateInfo> mStateInfo =
713 new HashMap<State, StateInfo>();
[all …]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
DKeyguardUpdateMonitor.java93 private IccCardConstants.State mSimState = IccCardConstants.State.READY;
222 public final IccCardConstants.State simState;
224 SimArgs(IccCardConstants.State state) { in SimArgs()
229 IccCardConstants.State state; in fromIntent()
240 state = IccCardConstants.State.PERM_DISABLED; in fromIntent()
242 state = IccCardConstants.State.ABSENT; in fromIntent()
245 state = IccCardConstants.State.READY; in fromIntent()
250 state = IccCardConstants.State.PIN_REQUIRED; in fromIntent()
252 state = IccCardConstants.State.PUK_REQUIRED; in fromIntent()
254 state = IccCardConstants.State.UNKNOWN; in fromIntent()
[all …]
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()
/frameworks/compile/mclinker/include/mcld/LD/
DDiagnosticEngine.h101 struct State struct
104 State() : numArgs(0), ID(-1), severity(None), file(NULL) { } in State() function
105 ~State() { } in ~State() argument
125 State& state() in state() argument
128 const State& state() const in state()
148 State m_State;
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard_obsolete/
DKeyguardUpdateMonitor.java82 private IccCardConstants.State mSimState = IccCardConstants.State.READY;
197 public final IccCardConstants.State simState;
199 SimArgs(IccCardConstants.State state) { in SimArgs()
204 IccCardConstants.State state; in fromIntent()
215 state = IccCardConstants.State.PERM_DISABLED; in fromIntent()
217 state = IccCardConstants.State.ABSENT; in fromIntent()
220 state = IccCardConstants.State.READY; in fromIntent()
225 state = IccCardConstants.State.PIN_REQUIRED; in fromIntent()
227 state = IccCardConstants.State.PUK_REQUIRED; in fromIntent()
229 state = IccCardConstants.State.UNKNOWN; in fromIntent()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DQuickSettingsModel.java64 static class State { class in QuickSettingsModel
69 static class BatteryState extends State {
73 static class RSSIState extends State {
79 static class WifiState extends State {
83 static class UserState extends State {
86 static class BrightnessState extends State {
89 public static class BluetoothState extends State {
96 public void refreshView(QuickSettingsTileView view, State state); in refreshView()
184 private State mTimeState = new State();
188 private State mAlarmState = new State();
[all …]

123456789