Searched refs:state (Results 1 - 25 of 192) sorted by relevance

12345678

/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DSoftKeyToggle.java29 * 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/src/
H A Dcorrection_state.h55 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 DTransactionState.java50 * 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 DDownloadThread.java136 State state = new State(mInfo);
169 Proxy.getPreferredHttpHost(mContext, state.mRequestUri));
170 HttpGet request = new HttpGet(state.mRequestUri);
172 executeDownload(state, client, request);
185 finalizeDestinationFile(state);
211 cleanupDestination(state, finalStatus);
212 notifyDownloadCompleted(finalStatus, state.mCountRetry, state.mRetryAfter,
213 state.mGotData, state
231 executeDownload(State state, AndroidHttpClient client, HttpGet request) argument
290 transferData( State state, InnerState innerState, byte[] data, InputStream entityStream) argument
317 finalizeDestinationFile(State state) argument
329 cleanupDestination(State state, int finalStatus) argument
344 syncDestination(State state) argument
373 closeDestination(State state) argument
392 checkPausedOrCanceled(State state) argument
412 reportProgress(State state, InnerState innerState) argument
429 writeDataToDestination(State state, byte[] data, int bytesRead) argument
469 handleEndOfStream(State state, InnerState innerState) argument
490 cannotResume(State state) argument
500 readFromResponse(State state, InnerState innerState, byte[] data, InputStream entityStream) argument
525 openResponseEntity(State state, HttpResponse response) argument
547 processResponseHeaders(State state, InnerState innerState, HttpResponse response) argument
593 updateDatabaseFromHeaders(State state, InnerState innerState) argument
609 readResponseHeaders(State state, InnerState innerState, HttpResponse response) argument
670 handleExceptionalStatus(State state, InnerState innerState, HttpResponse response) argument
693 handleOtherStatus(State state, InnerState innerState, int statusCode) argument
717 handleRedirect(State state, HttpResponse response, int statusCode) argument
757 handleServiceUnavailable(State state, HttpResponse response) argument
792 sendRequest(State state, AndroidHttpClient client, HttpGet request) argument
806 getFinalStatusForHttpError(State state) argument
831 setupDestinationFile(State state, InnerState innerState) argument
900 addRequestHeaders(State state, HttpGet request) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DStateManager.java36 private static final String KEY_MAIN = "activity-state";
54 ActivityState state = null;
56 state = klass.newInstance();
64 state.initialize(mContext, data);
66 mStack.push(new StateEntry(data, state));
67 state.onCreate(data, null);
68 if (mIsResumed) state.resume();
78 ActivityState state = null;
80 state = klass.newInstance();
84 state
161 finishState(ActivityState state) argument
298 StateEntry(Bundle data, ActivityState state) argument
[all...]
H A DMovieControllerOverlay.java75 private State state; field in class:MovieControllerOverlay
84 state = State.LOADING;
152 state = State.PLAYING;
157 state = State.PAUSED;
162 state = State.ENDED;
167 state = State.LOADING;
172 state = State.ERROR;
225 if (state == State.PLAYING) {
263 if (state == State.ENDED) {
267 } else if (state
[all...]
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/decoder/
H A DQuotedPrintableInputStream.java43 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 DSummary.java25 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/Browser/src/com/android/browser/
H A DBookmarkDragHandler.java41 ViewGroup getActionModeView(ActionMode mode, BookmarkDragState state); argument
42 void actionItemClicked(View v, BookmarkDragState state); argument
79 BookmarkDragState state = new BookmarkDragState();
80 state.id = id;
81 state.parent = item.getLong(BookmarksLoader.COLUMN_INDEX_PARENT);
82 state.extraState = extraState;
83 mDragState = state;
84 view.startDrag(data, new View.DragShadowBuilder(view), state, 0);
98 BookmarkDragState state = (BookmarkDragState) event.getLocalState();
104 if (id == state
[all...]
H A DCrashRecoveryHandler.java89 Log.v(LOGTAG, "Saving crash recovery state");
93 Bundle state = (Bundle) msg.obj;
94 state.writeToParcel(p, 0);
109 Log.i(LOGTAG, "Failed to save persistent state", e);
116 Log.v(LOGTAG, "Clearing crash recovery state");
118 File state = new File(mContext.getCacheDir(), STATE_FILE);
119 if (state.exists()) {
120 state.delete();
145 final Bundle state = new Bundle();
146 mController.onSaveInstanceState(state);
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DShiftKeyState.java62 protected String toString(int state) { argument
63 switch (state) {
66 default: return super.toString(state);
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapReceiver.java58 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR);
59 in.putExtra(BluetoothAdapter.EXTRA_STATE, state);
60 if ((state == BluetoothAdapter.STATE_TURNING_ON)
61 || (state == BluetoothAdapter.STATE_TURNING_OFF)) {
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/
H A DBodyDescriptor.java179 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 DEntityModifierTests.java217 final EntityDelta state = getEntity(TEST_ID);
218 EntityModifier.insertChild(state, kindPhone, typeHome);
219 EntityModifier.insertChild(state, kindPhone, typeWork);
222 validTypes = EntityModifier.getValidTypes(state, kindPhone, null);
228 EntityModifier.insertChild(state, kindPhone, typeHome);
231 validTypes = EntityModifier.getValidTypes(state, kindPhone, null);
237 EntityModifier.insertChild(state, kindPhone, typeHome);
238 EntityModifier.insertChild(state, kindPhone, typeHome);
241 validTypes = EntityModifier.getValidTypes(state, kindPhone, null);
260 final EntityDelta state
[all...]
/packages/apps/Stk/src/com/android/stk/
H A DStkAppInstaller.java51 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/src/com/android/exchange/
H A DEas.java95 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/experimental/procstatlog/
H A Dprocstatreport.py177 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/Camera/src/com/android/camera/ui/
H A DZoomControl.java49 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 DPointerSpeedPreference.java60 protected void showDialog(Bundle state) { argument
61 super.showDialog(state);
150 // Save the dialog state
155 // Restore the old state when the activity or dialog is being paused
161 protected void onRestoreInstanceState(Parcelable state) { argument
162 if (state == null || !state.getClass().equals(SavedState.class)) {
163 // Didn't save state for us in onSaveInstanceState
164 super.onRestoreInstanceState(state);
168 SavedState myState = (SavedState) state;
[all...]
/packages/apps/Contacts/src/com/android/contacts/model/
H A DEntityModifier.java86 public static boolean canInsert(EntityDelta state, DataKind kind) { argument
88 final int visibleCount = state.getMimeEntriesCount(kind.mimeType, true);
89 final boolean validTypes = hasValidTypes(state, kind);
95 public static boolean hasValidTypes(EntityDelta state, DataKind kind) { argument
97 return (getValidTypes(state, kind).size() > 0);
105 * given {@link EntityDelta} state, and try creating one if none exist.
108 EntityDelta state, AccountType accountType, String mimeType) {
110 final boolean hasChild = state.getMimeEntriesCount(mimeType, true) > 0;
114 final ValuesDelta child = insertChild(state, kind);
126 public static ArrayList<EditType> getValidTypes(EntityDelta state, DataKin argument
107 ensureKindExists( EntityDelta state, AccountType accountType, String mimeType) argument
139 getValidTypes(EntityDelta state, DataKind kind, EditType forceInclude) argument
158 getValidTypes(EntityDelta state, DataKind kind, EditType forceInclude, boolean includeSecondary, SparseIntArray typeCount) argument
196 getTypeFrequencies(EntityDelta state, DataKind kind) argument
292 getBestValidType(EntityDelta state, DataKind kind, boolean includeSecondary, int exactValue) argument
336 insertChild(EntityDelta state, DataKind kind) argument
350 insertChild(EntityDelta state, DataKind kind, EditType type) argument
412 trimEmpty(EntityDelta state, AccountType accountType) argument
451 hasChanges(EntityDelta state, AccountType accountType) argument
514 parseExtras(Context context, AccountType accountType, EntityDelta state, Bundle extras) argument
588 parseStructuredNameExtra( Context context, AccountType accountType, EntityDelta state, Bundle extras) argument
643 parseStructuredPostalExtra( AccountType accountType, EntityDelta state, Bundle extras) argument
669 parseValues( EntityDelta state, AccountType accountType, ArrayList<ContentValues> dataValueList) argument
876 parseExtras(EntityDelta state, DataKind kind, Bundle extras, String typeExtra, String valueExtra, String valueColumn) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DMultiStateButton.java29 * or clicked, the state transitions automatically.
42 //The current state for this button, ranging from 0 to maxState-1
73 /* When clicked, toggle the state */
87 * set the current state to the maximum allowed if it's greater than the new max.
101 * Attempts to set the state. Returns true if successful, false otherwise.
103 public boolean setState(int state){ argument
104 if(state >= mMaxStates || state < 0) {
106 Log.w("Cal", "MultiStateButton state set to value greater than maxState or < 0");
109 mState = state;
[all...]
/packages/apps/Contacts/src/com/android/contacts/
H A DProximitySensorManager.java32 * Listener of the state of the proximity sensor.
39 /** Called when the proximity sensor transitions from the far to the near state. */
41 /** Called when the proximity sensor transitions from the near to the far state. */
52 * The current state of the manager, i.e., whether it is currently tracking the state of the
58 * The listener to the state of the sensor.
66 * listener the next time the sensor reaches the {@link State#FAR} state if currently in the
67 * {@link State#NEAR} state.
78 * The last state of the sensor.
80 * Before registering and after unregistering we are always in the {@link State#FAR} state
[all...]
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DRawContactEditorView.java60 * source {@link Entity} can be swapped out. Any state-based changes, such as
154 * Set the internal state for this view, given a current
155 * {@link EntityDelta} state and the {@link AccountType} that
156 * apply to that state.
159 public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig, argument
162 mState = state;
167 // Bail if invalid state or account type
168 if (state == null || type == null) return;
170 setId(vig.getId(state, null, null, ViewIdGenerator.NO_VIEW_INDEX));
173 EntityModifier.ensureKindExists(state, typ
[all...]
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothEnabler.java35 * preference reflects the current state.
47 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR);
48 handleStateChanged(state);
73 // Bluetooth state is not sticky, so set it manually
118 void handleStateChanged(int state) { argument
119 switch (state) {
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DEntitySet.java53 final EntitySet state = new EntitySet();
54 state.add(delta);
55 return state;
69 final EntitySet state = new EntitySet();
75 state.add(entity);
77 return state;
110 * the "before" {@link Entity} states into the modified state which all
328 final EntitySet state = new EntitySet();
329 state.readFromParcel(in);
330 return state;
[all...]

Completed in 2137 milliseconds

12345678