/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | DictionaryListInterfaceState.java | 35 private static class State { class in class:DictionaryListInterfaceState 40 private HashMap<String, State> mWordlistToState = new HashMap<>(); 44 final State state = mWordlistToState.get(wordlistId); 50 final State state = mWordlistToState.get(wordlistId); 56 final State newState; 57 final State state = mWordlistToState.get(wordlistId); 58 newState = null == state ? new State() : state; 65 for (final State state : mWordlistToState.values()) {
|
/packages/apps/Dialer/src/com/android/dialer/ |
H A D | ProximitySensorManager.java | 45 public static enum State { enum in class:ProximitySensorManager 66 * listener the next time the sensor reaches the {@link State#FAR} state if currently in the 67 * {@link State#NEAR} state. 80 * Before registering and after unregistering we are always in the {@link State#FAR} state. 82 @GuardedBy("this") private State mLastState; 84 * If this flag is set to true, we are waiting to reach the {@link State#FAR} state and 96 mLastState = State.FAR; 107 State state = getStateFromValue(value); 114 if (mWaitingForFarState && mLastState == State.FAR) { 136 private State getStateFromValu [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
H A D | State.java | 22 public class State { class 27 public State(State state) { method in class:State 31 public State(String text) { method in class:State 35 public State(String text, int type) { method in class:State 40 public boolean equals(State state) {
|
H A D | StateAdapter.java | 32 public class StateAdapter extends ArrayAdapter<State> { 52 State state = getItem(position); 67 public boolean contains(State state) { 81 add(new State(mOriginalText)); 84 public boolean same(Vector<State> states) { 90 State state = getItem(i); 98 public void fill(Vector<State> states) { 109 public void remove(State state) {
|
H A D | DragListener.java | 68 State current = (State) array.getItem(origin);
|
/packages/apps/InCallUI/src/com/android/incallui/ |
H A D | CallList.java | 76 if (call.getState() == Call.State.INCOMING) { 86 call.setState(Call.State.DISCONNECTED); 218 return getFirstCallWithState(Call.State.PRE_DIAL_WAIT); 222 return getFirstCallWithState(Call.State.CONNECTING); 226 Call call = getFirstCallWithState(Call.State.DIALING); 228 call = getFirstCallWithState(Call.State.REDIALING); 234 return getFirstCallWithState(Call.State.ACTIVE); 238 return getFirstCallWithState(Call.State.ONHOLD); 242 return getFirstCallWithState(Call.State.DISCONNECTED); 246 return getFirstCallWithState(Call.State [all...] |
H A D | Call.java | 40 public static class State { class in class:Call 50 public static final int DISCONNECTED = 9; /* State after a call disconnects */ 180 private int mState = State.INVALID; 201 if (oldState != getState() && getState() == Call.State.DISCONNECTED) { 231 return Call.State.CONNECTING; 233 return Call.State.PRE_DIAL_WAIT; 236 return Call.State.DIALING; 238 return Call.State.INCOMING; 240 return Call.State.ACTIVE; 242 return Call.State [all...] |
H A D | StatusBarNotifier.java | 50 enum State { enum in interface:StatusBarNotifier.NotificationTimer 55 State getState(); 67 private State mState = State.CLEAR; 68 public State getState() { return mState; } 70 if (mState == State.CLEAR) { 73 mState = State.SCHEDULED; 79 mState = State.CLEAR; 83 mState = State.FIRED; 94 private int mCallState = Call.State [all...] |
H A D | CallCardPresenter.java | 119 startContactInfoSearch(call, true, call.getState() == Call.State.INCOMING); 202 mPrimary.getState() == Call.State.INCOMING); 215 mSecondary.getState() == Call.State.INCOMING); 222 if (mPrimary != null && mPrimary.getState() == Call.State.ACTIVE) { 232 int callState = Call.State.IDLE; 252 callState != Call.State.ONHOLD)); 257 final boolean enableEndCallButton = Call.State.isConnectingOrConnected(callState) && 258 callState != Call.State.INCOMING && mPrimary != null; 261 enableEndCallButton, callState != Call.State.INCOMING /* animate */); 343 if (ui == null || mPrimary == null || mPrimary.getState() != Call.State [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | BitmapManager.java | 40 private static enum State {CANCEL, ALLOW} enum in class:BitmapManager 42 public State mState = State.ALLOW; 48 if (mState == State.CANCEL) { 50 } else if (mState == State.ALLOW) { 105 boolean result = (status.mState != State.CANCEL); 110 getOrCreateThreadStatus(t).mState = State.ALLOW; 115 status.mState = State.CANCEL;
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | CommonControllerOverlay.java | 45 protected enum State { enum in class:CommonControllerOverlay 65 protected State mState; 76 mState = State.LOADING; 152 mState = State.PLAYING; 158 mState = State.PAUSED; 164 mState = State.ENDED; 170 mState = State.LOADING; 176 mState = State.ERROR; 220 if (mState == State.ENDED) { 224 } else if (mState == State [all...] |
H A D | TrimControllerOverlay.java | 43 if (mState == State.PLAYING) { 94 // The special thing here is that the State.ENDED include both cases of 98 if (mState == State.PLAYING || mState == State.PAUSED) { 100 } else if (mState == State.ENDED) {
|
H A D | MovieControllerOverlay.java | 87 if (mState == State.PLAYING) { 147 if (mState == State.PLAYING || mState == State.PAUSED) {
|
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/ |
H A D | Splitter.java | 408 State state = State.NOT_READY; 410 enum State { enum in class:Splitter.AbstractIterator 419 state = State.DONE; 424 checkState(state != State.FAILED); 436 state = State.FAILED; // temporary pessimism 438 if (state != State.DONE) { 439 state = State.READY; 449 state = State.NOT_READY;
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
H A D | Splitter.java | 408 State state = State.NOT_READY; 410 enum State { enum in class:Splitter.AbstractIterator 419 state = State.DONE; 424 checkState(state != State.FAILED); 436 state = State.FAILED; // temporary pessimism 438 if (state != State.DONE) { 439 state = State.READY; 449 state = State.NOT_READY;
|
/packages/apps/Email/src/com/android/email/ |
H A D | EmailConnectivityManager.java | 26 import android.net.NetworkInfo.State; 127 State state = networkInfo.getState(); 128 if (state == State.CONNECTED) { 133 } else if (state == State.DISCONNECTED) {
|
/packages/services/Telephony/src/com/android/phone/ |
H A D | CallNotifier.java | 106 private Call.State mPreviousCdmaCallState; 291 Call.State state = c.getState(); 292 // State will be either INCOMING or WAITING. 407 PhoneConstants.State state = mCM.getState(); 409 if (state == PhoneConstants.State.OFFHOOK) { 425 PhoneConstants.State state = mCM.getState(); 432 .enableNotificationAlerts(state == PhoneConstants.State.IDLE); 436 if ((fgPhone.getForegroundCall().getState() == Call.State.ACTIVE) 437 && ((mPreviousCdmaCallState == Call.State.DIALING) 438 || (mPreviousCdmaCallState == Call.State [all...] |
H A D | MMIDialogActivity.java | 66 if (mCM.getState() == PhoneConstants.State.OFFHOOK) { 96 if (mmiCode.getState() != MmiCode.State.PENDING) {
|
H A D | PhoneGlobals.java | 167 private PhoneConstants.State mLastPhoneState = PhoneConstants.State.IDLE; 199 // cdmaOtaScreenState object store OTA Screen State information. 216 PhoneConstants.State phoneState; 295 if (phoneState == PhoneConstants.State.OFFHOOK && 663 PhoneConstants.State state = mCM.getState(); 673 boolean isSpeakerInUse = (state == PhoneConstants.State.OFFHOOK) && PhoneUtils.isSpeakerOn(this); 690 boolean isRinging = (state == PhoneConstants.State.RINGING); 691 boolean isDialing = (phone.getForegroundCall().getState() == Call.State.DIALING); 714 /* package */ void updatePhoneState(PhoneConstants.State stat [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/ |
H A D | HtmlParser.java | 47 private enum State { enum in class:HtmlParser 52 private State state; 192 state = State.IN_TEXT; 206 X.assertTrue(pos > i || state != State.IN_TEXT); // Must make progress. 216 state = State.IN_TEXT; 222 X.assertTrue(pos > i || state != State.IN_CDATA); // Must make progress 332 state = State.IN_COMMENT; 334 state = State.IN_TAG; 368 // in html; otherwise, we would have entered State.IN_TAG or 369 // State [all...] |
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
H A D | HtmlParser.java | 47 private enum State { enum in class:HtmlParser 52 private State state; 192 state = State.IN_TEXT; 206 X.assertTrue(pos > i || state != State.IN_TEXT); // Must make progress. 216 state = State.IN_TEXT; 222 X.assertTrue(pos > i || state != State.IN_CDATA); // Must make progress 332 state = State.IN_COMMENT; 334 state = State.IN_TAG; 368 // in html; otherwise, we would have entered State.IN_TAG or 369 // State [all...] |
/packages/apps/KeyChain/src/com/android/keychain/ |
H A D | KeyChainActivity.java | 67 private static enum State { INITIAL, UNLOCK_REQUESTED, UNLOCK_CANCELED }; enum in class:KeyChainActivity 69 private State mState; 80 mState = State.INITIAL; 82 mState = (State) savedState.getSerializable(KEY_STATE); 84 mState = State.INITIAL; 112 mState = State.UNLOCK_REQUESTED; 129 mState = State.INITIAL; 365 mState = State.INITIAL; 369 mState = State.UNLOCK_CANCELED; 435 if (mState != State [all...] |
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/unit/ |
H A D | PhoneAccountRegistrarTest.java | 80 PhoneAccountRegistrar.State input = makeQuickState(); 81 PhoneAccountRegistrar.State result = roundTrip(this, input, PhoneAccountRegistrar.sStateXml, 270 PhoneAccountRegistrar.State a, PhoneAccountRegistrar.State b) { 279 private PhoneAccountRegistrar.State makeQuickState() { 280 PhoneAccountRegistrar.State s = new PhoneAccountRegistrar.State();
|
/packages/services/Telephony/src/com/android/services/telephony/ |
H A D | EmergencyCallHelper.java | 180 private boolean isOkToCall(int serviceState, PhoneConstants.State phoneState) { 183 return ((phoneState == PhoneConstants.State.OFFHOOK) 196 PhoneConstants.State phoneState = mPhone.getState();
|
H A D | GsmConferenceController.java | 160 Call.State state = radioConnection.getState(); 162 if ((state == Call.State.ACTIVE || state == Call.State.HOLDING) &&
|