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

12345678

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DMmiCode.java27 public enum State { enum in interface:MmiCode
38 public State getState();
54 * State becomes CANCELLED unless already COMPLETE or FAILED
H A DOperatorInfo.java26 public enum State { enum in class:OperatorInfo
37 private State mState = 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
119 public static State
122 case 0: return State.ACTIVE;
123 case 1: return State.HOLDING;
124 case 2: return State.DIALING;
125 case 3: return State.ALERTING;
126 case 4: return State.INCOMING;
127 case 5: return State.WAITING;
H A DCall.java32 public enum State { enum in class:Call
48 public static State
49 stateFromDCState (DriverCall.State dcState) {
51 case ACTIVE: return State.ACTIVE;
52 case HOLDING: return State.HOLDING;
53 case DIALING: return State.DIALING;
54 case ALERTING: return State.ALERTING;
55 case INCOMING: return State.INCOMING;
56 case WAITING: return State.WAITING;
67 public State mStat
[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.java31 private static HashMap<String, State> sStates = Maps.newHashMap();
34 * State of a known {@code init} service.
36 public enum State { enum in class:SystemService
42 State(String state) { method in class:SystemService.State
78 public static State getState(String service) {
80 final State state = sStates.get(rawState);
84 return State.STOPPED;
89 * Check if given service is {@link State#STOPPED}.
92 return State.STOPPED.equals(getState(service));
96 * Check if given service is {@link State#RUNNIN
[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
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A DGSMPhoneTest.java144 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState());
149 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState());
150 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
151 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState());
163 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
168 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
169 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState());
180 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState());
181 assertEquals(Call.State.DIALING,
183 assertEquals(Call.State
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkInfo.java51 public enum State { enum in class:NetworkInfo
58 * {@link android.net.NetworkInfo.State State} instead.
94 private static final EnumMap<DetailedState, State> stateMap =
95 new EnumMap<DetailedState, State>(DetailedState.class);
98 stateMap.put(DetailedState.IDLE, State.DISCONNECTED);
99 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED);
100 stateMap.put(DetailedState.CONNECTING, State.CONNECTING);
101 stateMap.put(DetailedState.AUTHENTICATING, State.CONNECTING);
102 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) {mValue = value;} method in class:CallInfo.State
46 State mState;
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 mState == State.ACTIVE || mState == State.HOLDING;
115 return mState == State.DIALING || mState == State
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaCall.java89 attachFake(Connection conn, State state) {
100 if (mState != State.DISCONNECTED) {
107 != State.DISCONNECTED
115 mState = State.DISCONNECTED;
129 mState = State.IDLE;
135 State newState;
172 mState = State.DISCONNECTING;
182 if (cn.getState() == State.DISCONNECTED) {
188 mState = State.IDLE;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmCall.java91 attachFake(Connection conn, State state) {
102 if (mState != State.DISCONNECTED) {
109 != State.DISCONNECTED
117 mState = State.DISCONNECTED;
130 mState = State.IDLE;
136 State newState;
175 mState = State.DISCONNECTING;
186 if (cn.getState() == State.DISCONNECTED) {
192 mState = State.IDLE;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
H A DSipCallBase.java26 protected abstract void setState(State newState);
47 if (c.getState() == State.DISCONNECTED) it.remove();
50 if (mConnections.isEmpty()) setState(State.IDLE);
H A DSipPhone.java126 if (sipAudioCall.getState() != SipSession.State.INCOMING_CALL) {
149 if ((mRingingCall.getState() == Call.State.INCOMING) ||
150 (mRingingCall.getState() == Call.State.WAITING)) {
196 if (mForegroundCall.getState() == SipCall.State.ACTIVE) {
199 if (mForegroundCall.getState() != SipCall.State.IDLE) {
233 if ((mForegroundCall.getState() != SipCall.State.ACTIVE)
234 || (mForegroundCall.getState() != SipCall.State.ACTIVE)) {
397 private static Call.State getCallStateFrom(SipAudioCall sipAudioCall) {
398 if (sipAudioCall.isOnHold()) return Call.State.HOLDING;
401 case SipSession.State
[all...]
/frameworks/compile/mclinker/include/mcld/LD/
H A DDiagnosticEngine.h97 struct State struct in class:mcld::DiagnosticEngine
100 State() : numArgs(0), ID(-1), severity(None), file(NULL) { } function in struct:mcld::DiagnosticEngine::State
101 ~State() { }
121 State& state()
124 const State& state() const
144 State m_State;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DApnContext.java47 private DctConstants.State mState;
95 mState = DctConstants.State.IDLE;
187 public synchronized void setState(DctConstants.State s) {
194 if (mState == DctConstants.State.FAILED) {
201 public synchronized DctConstants.State getState() {
206 DctConstants.State currentState = getState();
207 return ((currentState == DctConstants.State.IDLE) ||
208 currentState == DctConstants.State.FAILED);
227 return isReady() && ((mState == DctConstants.State.IDLE)
228 || (mState == DctConstants.State
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DDataConnectionStats.java43 private IccCardConstants.State mSimState = IccCardConstants.State.READY;
85 boolean simReadyOrUnknown = mSimState == IccCardConstants.State.READY
86 || mSimState == IccCardConstants.State.UNKNOWN;
103 mSimState = IccCardConstants.State.ABSENT;
105 mSimState = IccCardConstants.State.READY;
110 mSimState = IccCardConstants.State.PIN_REQUIRED;
112 mSimState = IccCardConstants.State.PUK_REQUIRED;
114 mSimState = IccCardConstants.State.NETWORK_LOCKED;
117 mSimState = IccCardConstants.State
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
H A DConnectivityManagerMobileTest.java21 import android.net.NetworkInfo.State;
58 State.CONNECTED, LONG_TIMEOUT)) {
89 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT));
124 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT));
129 // ConnectivityManager.TYPE_MOBILE, State.DISCONNECTED, LONG_TIMEOUT));
148 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT));
157 // State.DISCONNECTED, LONG_TIMEOUT));
160 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT));
172 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT));
176 // ConnectivityManager.TYPE_MOBILE, State
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFilter.java34 private static class State { class in class:Filter
56 private State mState = new State();
274 return mState.check(State.STATE_OPEN);
395 return (mIsActive && !mState.check(State.STATE_CLOSED));
443 if (mState.current == State.STATE_OPEN) {
592 if (mState.current == State.STATE_UNPREPARED) {
594 mState.current = State.STATE_PREPARED;
596 if (mState.current == State.STATE_PREPARED) {
599 mState.current = State
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDirectoryLoader.java20 import static com.android.documentsui.DocumentsActivity.State.MODE_UNKNOWN;
21 import static com.android.documentsui.DocumentsActivity.State.SORT_ORDER_DISPLAY_NAME;
22 import static com.android.documentsui.DocumentsActivity.State.SORT_ORDER_LAST_MODIFIED;
23 import static com.android.documentsui.DocumentsActivity.State.SORT_ORDER_SIZE;
24 import static com.android.documentsui.DocumentsActivity.State.SORT_ORDER_UNKNOWN;
39 import com.android.documentsui.DocumentsActivity.State;
104 int userMode = State.MODE_UNKNOWN;
132 if (userMode != State.MODE_UNKNOWN) {
136 result.mode = State.MODE_GRID;
138 result.mode = State
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsPhoneCall.java118 attach(Connection conn, State state) {
124 attachFake(Connection conn, State state) {
133 if (mState != State.DISCONNECTED) {
139 if (mConnections.get(i).getState() != State.DISCONNECTED) {
146 mState = State.DISCONNECTED;
179 mState = State.DISCONNECTING;
190 if (cn.getState() == State.DISCONNECTED) {
196 mState = State.IDLE;
221 merge(ImsPhoneCall that, State state) {
268 update (ImsPhoneConnection conn, ImsCall imsCall, State stat
[all...]
/frameworks/ex/common/java/com/android/common/
H A DNetworkConnectivityListener.java46 private State mState;
78 mState = State.NOT_CONNECTED;
80 mState = State.CONNECTED;
108 public enum State { enum in class:NetworkConnectivityListener
129 mState = State.UNKNOWN;
182 public State getState() {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DSupplicantStateTracker.java24 import com.android.internal.util.State;
73 private final State mUninitializedState = new UninitializedState();
74 private final State mDefaultState = new DefaultState();
75 private final State mInactiveState = new InactiveState();
76 private final State mDisconnectState = new DisconnectedState();
77 private final State mScanState = new ScanState();
78 private final State mHandshakeState = new HandshakeState();
79 private final State mCompletedState = new CompletedState();
80 private final State mDormantState = new DormantState();
218 class DefaultState extends State {
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DIccCardConstants.java68 public enum State { enum in class:IccCardConstants
89 public static State intToState(int state) throws IllegalArgumentException {
/frameworks/rs/
H A DrsFBOCache.h46 struct State { struct in struct:android::renderscript::FBOCache::Hal
51 State state;

Completed in 598 milliseconds

12345678