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

12345678910

/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/jni/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/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DDictionaryListInterfaceState.java24 * Helper class to maintain the interface state of word list preferences.
28 * when scrolling, the view is reused so it doesn't keep its state, which means we need to keep
42 final State state = mWordlistToState.get(wordlistId);
43 if (null == state) return false;
44 return state.mOpen;
48 final State state = mWordlistToState.get(wordlistId);
49 if (null == state) return MetadataDbHelper.STATUS_UNKNOWN;
50 return state.mStatus;
55 final State state = mWordlistToState.get(wordlistId);
56 newState = null == state
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadThread.java77 // TODO: bind each download to a specific network interface to avoid state
153 // Reset any state from previous execution
180 State state = new State(mInfo);
202 state.mNetworkType = info.getType();
212 state.mUrl = new URL(state.mRequestUri);
217 executeDownload(state);
219 finalizeDestinationFile(state);
239 if (state.mGotData) {
247 if (info != null && info.getType() == state
289 executeDownload(State state) argument
376 transferData(State state, HttpURLConnection conn) argument
457 transferData(State state, InputStream in, OutputStream out) argument
484 finalizeDestinationFile(State state) argument
495 cleanupDestination(State state, int finalStatus) argument
509 checkPausedOrCanceled(State state) argument
529 reportProgress(State state) argument
567 writeDataToDestination(State state, byte[] data, int bytesRead, OutputStream out) argument
595 handleEndOfStream(State state) argument
616 cannotResume(State state) argument
627 readFromResponse(State state, byte[] data, InputStream entityStream) argument
654 processResponseHeaders(State state, HttpURLConnection conn) argument
680 updateDatabaseFromHeaders(State state) argument
696 readResponseHeaders(State state, HttpURLConnection conn) argument
726 parseRetryAfterHeaders(State state, HttpURLConnection conn) argument
745 setupDestinationFile(State state) argument
811 addRequestHeaders(State state, HttpURLConnection conn) argument
836 notifyDownloadCompleted( State state, int finalStatus, String errorMsg, int numFailed) argument
844 notifyThroughDatabase( State state, int finalStatus, String errorMsg, int numFailed) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
H A DState.java17 package com.android.gallery3d.filtershow.state;
26 public State(State state) { argument
27 this(state.getText(), state.getType());
39 public boolean equals(State state) { argument
41 != state.mFilterRepresentation.getFilterClass()) {
H A DStateAdapter.java17 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/Gallery2/src/com/android/gallery3d/app/
H A DStateManager.java39 private static final String KEY_MAIN = "activity-state";
55 ActivityState state = null;
57 state = klass.newInstance();
75 state.initialize(mActivity, data);
77 mStack.push(new StateEntry(data, state));
78 state.onCreate(data, null);
79 if (mIsResumed) state.resume();
85 ActivityState state = null;
87 state = klass.newInstance();
91 state
170 finishState(ActivityState state) argument
181 finishState(ActivityState state, boolean fireOnPause) argument
338 StateEntry(Bundle data, ActivityState state) argument
[all...]
/packages/apps/Email/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/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapReceiver.java60 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 DShiftKeyState.java62 protected String toString(int state) { argument
63 switch (state) {
66 default: return super.toString(state);
H A DKeyboardState.java26 * Keyboard state machine.
28 * This class contains all keyboard state transition logic.
71 // {@link #mPrevSymbolsKeyboardWasShifted} into single state variable.
123 // Reset alphabet shift state.
138 final SavedKeyboardState state = mSavedKeyboardState;
139 state.mIsAlphabetMode = mIsAlphabetMode;
141 state.mIsAlphabetShiftLocked = mAlphabetShiftState.isShiftLocked();
142 state.mShiftMode = mAlphabetShiftState.isAutomaticShifted() ? AUTOMATIC_SHIFT
145 state.mIsAlphabetShiftLocked = mPrevMainKeyboardWasShiftLocked;
146 state
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
H A DFeedbackLayout.java47 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/
H A DCapsModeUtils.java160 // in English, state that a sentence terminator immediately following a quotation mark
197 // To find out, we will have a simple state machine with the following states :
224 int state = START;
227 switch (state) {
230 state = WORD;
239 state = WORD;
241 state = PERIOD;
248 state = LETTER;
255 state = LETTER;
257 state
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DAdapterProperties.java197 debugLog("Setting state to " + mState);
232 // state changes.
233 void onBondStateChanged(BluetoothDevice device, int state) argument
242 prop.setBondState(state);
244 if (state == BluetoothDevice.BOND_BONDED) {
250 } else if (state == BluetoothDevice.BOND_NONE) {
291 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { argument
292 if (!validateProfileConnectionState(state) ||
294 // Previously, an invalid state was broadcast anyway,
295 // with the invalid state converte
324 validateProfileConnectionState(int state) argument
332 convertToAdapterState(int state) argument
347 updateCountersAndCheckForConnectionStateChange(int state, int prevState) argument
534 discoveryStateChangeCallback(int state) argument
[all...]
/packages/apps/Email/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 DRawContactModifierTests.java216 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 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/exchange2/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/apps/Browser/src/com/android/browser/
H A DCrashRecoveryHandler.java91 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/Bluetooth/src/com/android/bluetooth/pan/
H A DPanService.java180 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 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/LegacyCamera/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.java56 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...]

Completed in 483 milliseconds

12345678910