/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
H A D | SoftKeyToggle.java | 29 * The current state number is stored in the lowest 8 bits of mKeyMask, this 30 * mask is used to get the state number. If the current state is 0, the 31 * normal state is enabled; if the current state is more than 0, a toggle 32 * state in the toggle state chain will be enabled. 42 // The state id should be valid, and less than 255. 43 // If resetIfNotFound is true and there is no such toggle state with the 44 // given id, the key state wil [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
H A D | TransactionState.java | 50 * To represent the current state(or the result of processing) to the 51 * ones who wants to know the state. 53 * @return Current state of the Transaction. 60 * To set the state of transaction. This method is only invoked by 63 * @param state The current state of transaction. 65 synchronized void setState(int state) { argument 66 if ((state < INITIALIZED) && (state > FAILED)) { 67 throw new IllegalArgumentException("Bad state [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | DictionaryListInterfaceState.java | 27 * Helper class to maintain the interface state of word list preferences. 31 * when scrolling, the view is reused so it doesn't keep its state, which means we need to keep 46 final State state = mWordlistToState.get(wordlistId); 47 if (null == state) return false; 48 return state.mOpen; 52 final State state = mWordlistToState.get(wordlistId); 53 if (null == state) return MetadataDbHelper.STATUS_UNKNOWN; 54 return state.mStatus; 59 final State state = mWordlistToState.get(wordlistId); 60 newState = null == state [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadThread.java | 79 // TODO: bind each download to a specific network interface to avoid state 155 // Reset any state from previous execution 182 State state = new State(mInfo); 205 state.mNetworkType = info.getType(); 215 state.mUrl = new URL(state.mRequestUri); 220 executeDownload(state); 222 finalizeDestinationFile(state); 242 if (state.mGotData) { 250 if (info != null && info.getType() == state 296 executeDownload(State state) argument 383 transferData(State state, HttpURLConnection conn) argument 464 transferData(State state, InputStream in, OutputStream out) argument 491 finalizeDestinationFile(State state) argument 502 cleanupDestination(State state, int finalStatus) argument 516 checkPausedOrCanceled(State state) argument 536 reportProgress(State state) argument 574 writeDataToDestination(State state, byte[] data, int bytesRead, OutputStream out) argument 602 handleEndOfStream(State state) argument 623 cannotResume(State state) argument 634 readFromResponse(State state, byte[] data, InputStream entityStream) argument 661 processResponseHeaders(State state, HttpURLConnection conn) argument 687 updateDatabaseFromHeaders(State state) argument 703 readResponseHeaders(State state, HttpURLConnection conn) argument 733 parseRetryAfterHeaders(State state, HttpURLConnection conn) argument 752 setupDestinationFile(State state) argument 818 addRequestHeaders(State state, HttpURLConnection conn) argument 843 notifyDownloadCompleted( State state, int finalStatus, String errorMsg, int numFailed) argument 851 notifyThroughDatabase( State state, int finalStatus, String errorMsg, int numFailed) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | StateManager.java | 38 private static final String KEY_MAIN = "activity-state"; 54 ActivityState state = null; 56 state = klass.newInstance(); 70 state.initialize(mActivity, data); 72 mStack.push(new StateEntry(data, state)); 73 state.onCreate(data, null); 74 if (mIsResumed) state.resume(); 80 ActivityState state = null; 82 state = klass.newInstance(); 86 state 165 finishState(ActivityState state) argument 176 finishState(ActivityState state, boolean fireOnPause) argument 333 StateEntry(Bundle data, ActivityState state) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
H A D | State.java | 17 package com.android.gallery3d.filtershow.state; 27 public State(State state) { argument 28 this(state.getText(), state.getType()); 40 public boolean equals(State state) { argument 42 != state.mFilterRepresentation.getFilterClass()) { 46 return mFilterRepresentation.equals(state.getFilterRepresentation());
|
H A D | StateAdapter.java | 17 package com.android.gallery3d.filtershow.state; 52 State state = getItem(position); 53 view.setState(state); 56 FilterRepresentation stateRep = state.getFilterRepresentation(); 67 public boolean contains(State state) { argument 69 if (state == getItem(i)) { 85 // we have the original state in addition 90 State state = getItem(i); 91 if (!state.equals(states.elementAt(i-1))) { 109 public void remove(State state) { argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
H A D | QuotedPrintableInputStream.java | 43 private byte state = 0;
field in class:QuotedPrintableInputStream 128 switch (state) {
129 case 0: // start state, no bytes pending
132 break; // state remains 0
134 state = 1;
139 state = 2;
142 state = 3;
148 * Emit one = and stay in this state.
160 state = 0;
167 state [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/ |
H A D | Summary.java | 25 static String get(Context context, String ssid, DetailedState state) { argument 28 int index = state.ordinal(); 36 static String get(Context context, DetailedState state) { argument 37 return get(context, null, state);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
H A D | BluetoothPbapReceiver.java | 60 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); 61 in.putExtra(BluetoothAdapter.EXTRA_STATE, state); 62 if (V) Log.v(TAG,"***********state = " + state); 63 if ((state == BluetoothAdapter.STATE_TURNING_ON) 64 || (state == BluetoothAdapter.STATE_OFF)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | ShiftKeyState.java | 62 protected String toString(int state) { argument 63 switch (state) { 66 default: return super.toString(state);
|
H A D | KeyboardState.java | 26 * Keyboard state machine. 28 * This class contains all keyboard state transition logic. 69 // {@link #mPrevSymbolsKeyboardWasShifted} into single state variable. 124 // Reset alphabet shift state. 139 final SavedKeyboardState state = mSavedKeyboardState; 140 state.mIsAlphabetMode = mIsAlphabetMode; 141 state.mIsEmojiMode = mIsEmojiMode; 143 state.mIsAlphabetShiftLocked = mAlphabetShiftState.isShiftLocked(); 144 state.mShiftMode = mAlphabetShiftState.isAutomaticShifted() ? AUTOMATIC_SHIFT 147 state [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
H A D | FeedbackLayout.java | 47 KeyEvent.DispatcherState state = getKeyDispatcherState(); 48 if (state != null) { 51 state.startTracking(event, this); 54 && !event.isCanceled() && state.isTracking(event)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | CapsModeUtils.java | 164 // in English, state that a sentence terminator immediately following a quotation mark 201 // To find out, we will have a simple state machine with the following states : 228 int state = START; 231 switch (state) { 234 state = WORD; 243 state = WORD; 245 state = PERIOD; 252 state = LETTER; 259 state = LETTER; 261 state [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | AdapterProperties.java | 197 debugLog("Setting state to " + mState); 231 // state changes. 232 void onBondStateChanged(BluetoothDevice device, int state) argument 241 prop.setBondState(state); 243 if (state == BluetoothDevice.BOND_BONDED) { 249 } else if (state == BluetoothDevice.BOND_NONE) { 290 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { argument 291 if (!validateProfileConnectionState(state) || 293 // Previously, an invalid state was broadcast anyway, 294 // with the invalid state converte 323 validateProfileConnectionState(int state) argument 331 convertToAdapterState(int state) argument 346 updateCountersAndCheckForConnectionStateChange(int state, int prevState) argument 533 discoveryStateChangeCallback(int state) argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
H A D | BodyDescriptor.java | 179 byte state = READY_FOR_NAME;
184 switch (state) {
187 state = READY_FOR_NAME;
193 state = ERROR;
200 state = IN_NAME;
206 state = ERROR;
208 state = READY_FOR_VALUE;
224 state = IN_QUOTED_VALUE;
228 state = IN_VALUE;
246 state [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
H A D | RawContactModifierTests.java | 216 final RawContactDelta state = getRawContact(TEST_ID); 217 RawContactModifier.insertChild(state, kindPhone, typeHome); 218 RawContactModifier.insertChild(state, kindPhone, typeWork); 221 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); 227 RawContactModifier.insertChild(state, kindPhone, typeHome); 230 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); 236 RawContactModifier.insertChild(state, kindPhone, typeHome); 237 RawContactModifier.insertChild(state, kindPhone, typeHome); 240 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); 259 final RawContactDelta state [all...] |
/packages/apps/Stk/src/com/android/stk/ |
H A D | StkAppInstaller.java | 51 int state = install ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED 55 pm.setComponentEnabledSetting(cName, state, 58 CatLog.d("StkAppInstaller", "Could not change STK app state");
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | CrashRecoveryHandler.java | 91 Log.v(LOGTAG, "Clearing crash recovery state"); 93 File state = new File(mContext.getCacheDir(), STATE_FILE); 94 if (state.exists()) { 95 state.delete(); 120 final Bundle state = mController.createSaveState(); 121 Message.obtain(mBackgroundHandler, MSG_WRITE_STATE, state) 126 Log.w(LOGTAG, "Failed to save state", t); 157 Bundle state = null; 172 state = parcel.readBundle(); 173 if (state ! 223 writeState(Bundle state) argument [all...] |
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/ |
H A D | ViewModeTests.java | 34 Bundle state = new Bundle(); 36 // Set the state to something known. 38 first.handleSaveInstanceState(state); 40 second.handleRestore(state); 70 * The view mode can transition to a state only if it isn't already in that state. 75 // Set the state to something known.
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
H A D | PanService.java | 180 log("MESSAGE_CONNECT_STATE_CHANGED: " + device + " state: " + cs.state); 183 convertHalState(cs.state), cs.local_role, cs.remote_role); 262 // TODO(BT) have a variable marking the on/off state 322 // TODO(BT) have a variable marking the on/off state 330 //drop any existing panu or pan-nap connection when changing the tethering state 351 for (int state : states) { 352 if (state == panDeviceState) { 362 public ConnectState(byte[] address, int state, int error, int local_role, int remote_role) { argument 364 this.state 370 int state; field in class:PanService.ConnectState 375 onConnectStateChanged(byte[] address, int state, int error, int local_role, int remote_role) argument 385 onControlStateChanged(int local_role, int state, int error, String ifname) argument 408 handlePanDeviceStateChange(BluetoothDevice device, String iface, int state, int local_role, int remote_role) argument 588 BluetoothPanDevice(int state, String ifaceAddr, String iface, int localRole) argument [all...] |
/packages/experimental/procstatlog/ |
H A D | procstatreport.py | 177 for when, state in sorted_history: 179 next = state.get("/proc/stat:cpu", "").split() 192 last_state = state 222 for when, state in sorted_history: 224 for key in state: 228 next = int(state.get(key, -1)) 235 last_state = state 262 for when, state in sorted_history: 264 next = int(state.get("/proc/stat:ctxt", -1)) 266 last_state = state [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
H A D | CallButtonPresenter.java | 53 // register for call state changes last 68 public void onStateChange(InCallState state, CallList callList) { argument 70 if (state == InCallState.OUTGOING) { 72 } else if (state == InCallState.INCALL) { 83 } else if (state == InCallState.INCOMING) { 89 updateUi(state, mCall); 91 mPreviousState = state; 95 public void onIncomingCall(InCallState state, Call call) { argument 96 onStateChange(state, CallList.getInstance()); 130 // TODO: Set a intermediate state i 213 updateUi(InCallState state, Call call) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/ |
H A D | HtmlTreeBuilder.java | 193 private int state; field in class:HtmlTreeBuilder.TableFixer 204 state = NULL; 213 state = IN_CELL; 216 state = IN_CAPTION; 240 state = NULL; 243 state = NULL; 248 state = (tables > 0) ? IN_CELL : NULL; 257 state == NULL && 265 X.assertTrue(state == NULL); 283 if (state ! [all...] |
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
H A D | HtmlTreeBuilder.java | 193 private int state; field in class:HtmlTreeBuilder.TableFixer 204 state = NULL; 213 state = IN_CELL; 216 state = IN_CAPTION; 240 state = NULL; 243 state = NULL; 248 state = (tables > 0) ? IN_CELL : NULL; 257 state == NULL && 265 X.assertTrue(state == NULL); 283 if (state ! [all...] |