/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/inputmethods/LatinIME/native/jni/src/ |
H A D | correction_state.h | 55 inline static void initCorrectionState(CorrectionState *state, const int rootPos, argument 57 state->mParentIndex = -1; 58 state->mChildCount = childCount; 59 state->mInputIndex = 0; 60 state->mSiblingPos = rootPos; 61 state->mNeedsToTraverseAllNodes = traverseAll; 63 state->mTransposedPos = -1; 64 state->mExcessivePos = -1; 65 state->mSkipPos = -1; 67 state [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/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadThread.java | 157 State state = new State(mInfo); 190 Proxy.getPreferredHttpHost(mContext, state.mRequestUri)); 191 HttpGet request = new HttpGet(state.mRequestUri); 193 executeDownload(state, client, request); 206 finalizeDestinationFile(state); 232 cleanupDestination(state, finalStatus); 233 notifyDownloadCompleted(finalStatus, state.mCountRetry, state.mRetryAfter, 234 state.mGotData, state 251 executeDownload(State state, AndroidHttpClient client, HttpGet request) argument 308 transferData( State state, InnerState innerState, byte[] data, InputStream entityStream) argument 335 finalizeDestinationFile(State state) argument 347 cleanupDestination(State state, int finalStatus) argument 365 syncDestination(State state) argument 394 closeDestination(State state) argument 413 checkPausedOrCanceled(State state) argument 433 reportProgress(State state, InnerState innerState) argument 468 writeDataToDestination(State state, byte[] data, int bytesRead) argument 508 handleEndOfStream(State state, InnerState innerState) argument 529 cannotResume(State state) argument 539 readFromResponse(State state, InnerState innerState, byte[] data, InputStream entityStream) argument 564 openResponseEntity(State state, HttpResponse response) argument 586 processResponseHeaders(State state, InnerState innerState, HttpResponse response) argument 632 updateDatabaseFromHeaders(State state, InnerState innerState) argument 648 readResponseHeaders(State state, InnerState innerState, HttpResponse response) argument 709 handleExceptionalStatus(State state, InnerState innerState, HttpResponse response) argument 732 handleOtherStatus(State state, InnerState innerState, int statusCode) argument 756 handleRedirect(State state, HttpResponse response, int statusCode) argument 796 handleServiceUnavailable(State state, HttpResponse response) argument 831 sendRequest(State state, AndroidHttpClient client, HttpGet request) argument 845 getFinalStatusForHttpError(State state) argument 868 setupDestinationFile(State state, InnerState innerState) argument 945 addRequestHeaders(State state, HttpGet request) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | StateManager.java | 37 private static final String KEY_MAIN = "activity-state"; 53 ActivityState state = null; 55 state = klass.newInstance(); 65 state.initialize(mActivity, data); 67 mStack.push(new StateEntry(data, state)); 68 state.onCreate(data, null); 69 if (mIsResumed) state.resume(); 75 ActivityState state = null; 77 state = klass.newInstance(); 81 state 159 finishState(ActivityState state) argument 170 finishState(ActivityState state, boolean fireOnPause) argument 315 StateEntry(Bundle data, ActivityState state) argument [all...] |
/packages/apps/Email/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. 71 // {@link #mPrevSymbolsKeyboardWasShifted} into single state variable. 122 // Reset alphabet shift state. 132 final SavedKeyboardState state = mSavedKeyboardState; 133 state.mIsAlphabetMode = mIsAlphabetMode; 135 state.mIsAlphabetShiftLocked = mAlphabetShiftState.isShiftLocked(); 136 state.mIsShifted = !state.mIsAlphabetShiftLocked 139 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/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | AdapterProperties.java | 196 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/Email/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/Contacts/tests/src/com/android/contacts/ |
H A D | RawContactModifierTests.java | 219 final RawContactDelta state = getRawContact(TEST_ID); 220 RawContactModifier.insertChild(state, kindPhone, typeHome); 221 RawContactModifier.insertChild(state, kindPhone, typeWork); 224 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); 230 RawContactModifier.insertChild(state, kindPhone, typeHome); 233 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); 239 RawContactModifier.insertChild(state, kindPhone, typeHome); 240 RawContactModifier.insertChild(state, kindPhone, typeHome); 243 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); 262 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/Exchange/exchange2/src/com/android/exchange/ |
H A D | Eas.java | 95 public static void setUserDebug(int state) { argument 98 USER_LOG = (state & EmailServiceProxy.DEBUG_BIT) != 0; 99 PARSER_LOG = (state & EmailServiceProxy.DEBUG_VERBOSE_BIT) != 0; 100 FILE_LOG = (state & EmailServiceProxy.DEBUG_FILE_BIT) != 0;
|
/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/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/Bluetooth/src/com/android/bluetooth/pan/ |
H A D | PanService.java | 160 if (DBG) log("MESSAGE_CONNECT_STATE_CHANGED: " + device + " state: " + cs.state); 161 handlePanDeviceStateChange(device, mPanIfName /* iface */, convertHalState(cs.state), 218 // TODO(BT) have a variable marking the on/off state 278 // TODO(BT) have a variable marking the on/off state 286 //drop any existing panu or pan-nap connection when changing the tethering state 307 for (int state : states) { 308 if (state == panDeviceState) { 318 public ConnectState(byte[] address, int state, int error, int local_role, int remote_role) { argument 320 this.state 326 int state; field in class:PanService.ConnectState 331 onConnectStateChanged(byte[] address, int state, int error, int local_role, int remote_role) argument 337 onControlStateChanged(int local_role, int state, int error, String ifname) argument 360 handlePanDeviceStateChange(BluetoothDevice device, String iface, int state, int local_role, int remote_role) argument 550 BluetoothPanDevice(int state, String ifaceAddr, String iface, int localRole) argument [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | ZoomControl.java | 49 void onZoomStateChanged(int state); // only for smooth zoom argument 159 protected void performZoom(int state) { argument 160 performZoom(state, true); 163 private void performZoom(int state, boolean fromUser) { argument 164 if ((mState == state) && fromUser) return; 166 mState = state; 167 switch (state) {
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | PointerSpeedPreference.java | 56 protected void showDialog(Bundle state) { argument 57 super.showDialog(state); 125 // Save the dialog state 130 // Restore the old state when the activity or dialog is being paused 136 protected void onRestoreInstanceState(Parcelable state) { argument 137 if (state == null || !state.getClass().equals(SavedState.class)) { 138 // Didn't save state for us in onSaveInstanceState 139 super.onRestoreInstanceState(state); 143 SavedState myState = (SavedState) state; [all...] |
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | DockEventReceiver.java | 51 int state = intent.getIntExtra(Intent.EXTRA_DOCK_STATE, intent.getIntExtra( 56 Log.d(TAG, "Action: " + intent.getAction() + " State:" + state + " Device: " 63 ((state != Intent.EXTRA_DOCK_STATE_UNDOCKED) && 64 (state != Intent.EXTRA_DOCK_STATE_LE_DESK)))) { 66 "Wrong state: "+state+" or intent: "+intent.toString()+" with null device"); 70 switch (state) { 81 Log.e(TAG, "Unknown state: " + state); 104 // Too bad, the dock state ca [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | RawContactEditorView.java | 58 * source {@link RawContact} can be swapped out. Any state-based changes, such as 152 * Set the internal state for this view, given a current 153 * {@link RawContactDelta} state and the {@link AccountType} that 154 * apply to that state. 157 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig, argument 160 mState = state; 165 // Bail if invalid state or account type 166 if (state == null || type == null) return; 168 setId(vig.getId(state, null, null, ViewIdGenerator.NO_VIEW_INDEX)); 171 RawContactModifier.ensureKindExists(state, typ [all...] |
H A D | RawContactReadOnlyEditorView.java | 110 * Set the internal state for this view, given a current 111 * {@link RawContactDelta} state and the {@link AccountType} that 112 * apply to that state. 115 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig, argument 120 // Bail if invalid state or source 121 if (state == null || type == null) return; 124 RawContactModifier.ensureKindExists(state, type, StructuredName.CONTENT_ITEM_TYPE); 127 mAccountName = state.getAccountName(); 128 mAccountType = state.getAccountType(); 129 mDataSet = state [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | StringUtils.java | 286 // in English, state that a sentence terminator immediately following a quotation mark 323 // To find out, we will have a simple state machine with the following states : 350 int state = START; 353 switch (state) { 356 state = WORD; 365 state = WORD; 367 state = PERIOD; 374 state = LETTER; 381 state = LETTER; 383 state [all...] |