Searched refs:State (Results 1 - 25 of 161) sorted by relevance

1234567

/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DNetworkState.java19 import android.net.NetworkInfo.State;
30 private List<State> mStateDepository;
31 private State mTransitionTarget;
36 mStateDepository = new ArrayList<State>();
38 mTransitionTarget = State.UNKNOWN;
41 public NetworkState(State currentState) {
42 mStateDepository = new ArrayList<State>();
45 mTransitionTarget = State.UNKNOWN;
52 mTransitionTarget = State.UNKNOWN;
57 public void setStateTransitionCriteria(State initStat
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DMmiCode.java27 public enum State { enum in interface:MmiCode
38 public State getState();
49 * State becomes CANCELLED unless already COMPLETE or FAILED
H A DOperatorInfo.java26 public enum State { enum in class:OperatorInfo
37 private State state = State.UNKNOWN;
55 public State
63 State state) {
84 private static State rilStateToState(String s) {
86 return State.UNKNOWN;
88 return State.AVAILABLE;
90 return State.CURRENT;
92 return State
[all...]
H A DDriverCall.java29 public enum State { enum in class:DriverCall
42 public State state; // May be null if unavail
118 public static State
121 case 0: return State.ACTIVE;
122 case 1: return State.HOLDING;
123 case 2: return State.DIALING;
124 case 3: return State.ALERTING;
125 case 4: return State.INCOMING;
126 case 5: return State.WAITING;
H A DApnContext.java38 private DctConstants.State mState;
67 mState = DctConstants.State.IDLE;
153 public synchronized void setState(DctConstants.State s) {
160 if (mState == DctConstants.State.FAILED) {
167 public synchronized DctConstants.State getState() {
172 DctConstants.State currentState = getState();
173 return ((currentState == DctConstants.State.IDLE) ||
174 currentState == DctConstants.State.FAILED);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmCall.java40 static State
41 stateFromDCState (DriverCall.State dcState) {
43 case ACTIVE: return State.ACTIVE;
44 case HOLDING: return State.HOLDING;
45 case DIALING: return State.DIALING;
46 case ALERTING: return State.ALERTING;
47 case INCOMING: return State.INCOMING;
48 case WAITING: return State.WAITING;
105 attachFake(Connection conn, State state) {
116 if (state != State
[all...]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
H A DNetworkState.java19 import android.net.NetworkInfo.State;
36 private List<State> mStateDepository;
37 private State mTransitionTarget;
42 mStateDepository = new ArrayList<State>();
44 mTransitionTarget = State.UNKNOWN;
47 public NetworkState(State currentState) {
48 mStateDepository = new ArrayList<State>();
51 mTransitionTarget = State.UNKNOWN;
60 mTransitionTarget = State.UNKNOWN;
65 * @param initState initial {@link State}
[all...]
/frameworks/base/core/java/android/os/
H A DSystemService.java33 private static HashMap<String, State> sStates = Maps.newHashMap();
36 * State of a known {@code init} service.
38 public enum State { enum in class:SystemService
44 State(String state) { method in class:SystemService.State
80 public static State getState(String service) {
82 final State state = sStates.get(rawState);
86 return State.STOPPED;
91 * Check if given service is {@link State#STOPPED}.
94 return State.STOPPED.equals(getState(service));
98 * Check if given service is {@link State#RUNNIN
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaCall.java27 import com.android.internal.telephony.Call.State;
36 /*package*/ State state = State.IDLE;
41 static State
42 stateFromDCState (DriverCall.State dcState) {
44 case ACTIVE: return State.ACTIVE;
45 case HOLDING: return State.HOLDING;
46 case DIALING: return State.DIALING;
47 case ALERTING: return State.ALERTING;
48 case INCOMING: return State
[all...]
H A DCdmaMmiCode.java65 State state = State.PENDING;
146 public State
160 if (state == State.COMPLETE || state == State.FAILED) {
164 state = State.CANCELLED;
219 state = State.FAILED;
226 state = State.FAILED;
263 state = State.FAILED;
283 state = State
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DState.java26 public class State implements IState { class in inherits:IState
31 protected State() { method in class:State
57 * Name of State for debugging purposes.
60 * the instance name would better in cases where a State class
H A DStateMachine.java39 * <p>A state is a <code>State</code> object and must implement
87 * <p>In addition to <code>processMessage</code> each <code>State</code> has
149 class State1 extends State {
266 class P1 extends State {
293 class S1 extends State {
313 class S2 extends State {
341 class P2 extends State {
453 private State mState;
454 private State mOrgState;
464 LogRec(Message msg, String info, State stat
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A DGSMPhoneTest.java142 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState());
147 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState());
148 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
149 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState());
161 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
166 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
167 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState());
178 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState());
179 assertEquals(Call.State.DIALING,
181 assertEquals(Call.State
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard_obsolete/
H A DLockPatternKeyguardViewProperties.java58 final IccCardConstants.State simState = mUpdateMonitor.getSimState();
59 return (simState == IccCardConstants.State.PIN_REQUIRED
60 || simState == IccCardConstants.State.PUK_REQUIRED
61 || simState == IccCardConstants.State.PERM_DISABLED);
/frameworks/base/core/java/android/net/
H A DNetworkInfo.java49 public enum State { enum in class:NetworkInfo
56 * {@link android.net.NetworkInfo.State State} instead.
92 private static final EnumMap<DetailedState, State> stateMap =
93 new EnumMap<DetailedState, State>(DetailedState.class);
96 stateMap.put(DetailedState.IDLE, State.DISCONNECTED);
97 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED);
98 stateMap.put(DetailedState.CONNECTING, State.CONNECTING);
99 stateMap.put(DetailedState.AUTHENTICATING, State.CONNECTING);
100 stateMap.put(DetailedState.OBTAINING_IPADDR, State
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DSimulatedGsmCallState.java31 enum State { enum in class:CallInfo
39 State (int value) {this.value = value;} method in class:CallInfo.State
46 State state;
51 CallInfo (boolean isMT, State state, boolean isMpty, String number) {
66 return new CallInfo (false, State.DIALING, false, number);
71 return new CallInfo (true, State.INCOMING, false, number);
110 return state == State.ACTIVE || state == State.HOLDING;
115 return state == State.DIALING || state == State
[all...]
/frameworks/compile/mclinker/include/mcld/LD/
H A DDiagnosticEngine.h101 struct State struct in class:mcld::DiagnosticEngine
104 State() : numArgs(0), ID(-1), severity(None), file(NULL) { } function in struct:mcld::DiagnosticEngine::State
105 ~State() { }
125 State& state()
128 const State& state() const
148 State m_State;
/frameworks/base/wifi/java/android/net/wifi/
H A 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/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
H A DConnectivityManagerMobileTest.java22 import android.net.NetworkInfo.State;
69 if (!cmActivity.waitForNetworkState(ConnectivityManager.TYPE_MOBILE, State.CONNECTED,
129 State.DISCONNECTED, ConnectivityManagerTestActivity.LONG_TIMEOUT));
131 State.CONNECTED, ConnectivityManagerTestActivity.LONG_TIMEOUT));
139 networkInfo.getState(), NetworkState.DO_NOTHING, State.CONNECTED);
142 NetworkState.DO_NOTHING, State.DISCONNECTED);
173 networkInfo.getState(), NetworkState.TO_DISCONNECTION, State.DISCONNECTED);
177 NetworkState.TO_CONNECTION, State.CONNECTED);
186 assertTrue(cmActivity.waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED,
190 State
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
H A DSipPhone.java116 != SipSession.State.INCOMING_CALL) {
135 if ((ringingCall.getState() == Call.State.INCOMING) ||
136 (ringingCall.getState() == Call.State.WAITING)) {
171 if (foregroundCall.getState() == SipCall.State.ACTIVE) {
174 if (foregroundCall.getState() != SipCall.State.IDLE) {
204 if ((foregroundCall.getState() != SipCall.State.ACTIVE)
205 || (foregroundCall.getState() != SipCall.State.ACTIVE)) {
355 setState(Call.State.IDLE);
402 setState(Call.State.DIALING);
415 setState(State
[all...]
H A DSipCallBase.java32 protected abstract void setState(State newState);
50 if (c.getState() == State.DISCONNECTED) it.remove();
53 if (connections.isEmpty()) setState(State.IDLE);
/frameworks/ex/common/java/com/android/common/
H A DNetworkConnectivityListener.java45 private State mState;
77 mState = State.NOT_CONNECTED;
79 mState = State.CONNECTED;
107 public enum State { enum in class:NetworkConnectivityListener
128 mState = State.UNKNOWN;
181 public State getState() {
/frameworks/rs/
H A DrsFBOCache.h46 struct State { struct in struct:android::renderscript::FBOCache::Hal
51 State state;
H A DrsPath.h32 struct State { struct in struct:android::renderscript::Path::__anon1552
36 State state;
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DEmergencyButton.java28 import com.android.internal.telephony.IccCardConstants.State;
45 public void onSimStateChanged(State simState) {
51 State simState = KeyguardUpdateMonitor.getInstance(mContext).getSimState();
89 State simState = KeyguardUpdateMonitor.getInstance(mContext).getSimState();
111 private void updateEmergencyCallButton(State simState, int phoneState) {

Completed in 3419 milliseconds

1234567