Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 271) sorted by relevance

1234567891011

/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSoftKeyToggle.java95 ToggleState state = getToggleState(); in getKeyIcon() local
96 if (null != state) return state.mKeyIcon; in getKeyIcon()
102 ToggleState state = getToggleState(); in getKeyIconPopup() local
103 if (null != state) { in getKeyIconPopup()
104 if (null != state.mKeyIconPopup) { in getKeyIconPopup()
105 return state.mKeyIconPopup; in getKeyIconPopup()
107 return state.mKeyIcon; in getKeyIconPopup()
115 ToggleState state = getToggleState(); in getKeyCode() local
116 if (null != state) return state.mKeyCode; in getKeyCode()
122 ToggleState state = getToggleState(); in getKeyLabel() local
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java157 State state = new State(mInfo); in runInternal() local
190 Proxy.getPreferredHttpHost(mContext, state.mRequestUri)); in runInternal()
191 HttpGet request = new HttpGet(state.mRequestUri); in runInternal()
193 executeDownload(state, client, request); in runInternal()
206 finalizeDestinationFile(state); in runInternal()
232 cleanupDestination(state, finalStatus); in runInternal()
233 notifyDownloadCompleted(finalStatus, state.mCountRetry, state.mRetryAfter, in runInternal()
234 state.mGotData, state.mFilename, in runInternal()
235 state.mNewUri, state.mMimeType, errorMsg); in runInternal()
251 private void executeDownload(State state, AndroidHttpClient client, HttpGet request) in executeDownload() argument
[all …]
/packages/inputmethods/LatinIME/native/jni/src/
Dcorrection_state.h55 inline static void initCorrectionState(CorrectionState *state, const int rootPos, in initCorrectionState() argument
57 state->mParentIndex = -1; in initCorrectionState()
58 state->mChildCount = childCount; in initCorrectionState()
59 state->mInputIndex = 0; in initCorrectionState()
60 state->mSiblingPos = rootPos; in initCorrectionState()
61 state->mNeedsToTraverseAllNodes = traverseAll; in initCorrectionState()
63 state->mTransposedPos = -1; in initCorrectionState()
64 state->mExcessivePos = -1; in initCorrectionState()
65 state->mSkipPos = -1; in initCorrectionState()
67 state->mEquivalentCharCount = 0; in initCorrectionState()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DStateManager.java53 ActivityState state = null; in startState() local
55 state = klass.newInstance(); in startState()
65 state.initialize(mActivity, data); in startState()
67 mStack.push(new StateEntry(data, state)); in startState()
68 state.onCreate(data, null); in startState()
69 if (mIsResumed) state.resume(); in startState()
75 ActivityState state = null; in startStateForResult() local
77 state = klass.newInstance(); in startStateForResult()
81 state.initialize(mActivity, data); in startStateForResult()
82 state.mResult = new ActivityState.ResultEntry(); in startStateForResult()
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
DQuotedPrintableInputStream.java43 private byte state = 0; field in QuotedPrintableInputStream
128 switch (state) { in fillBuffer()
134 state = 1; in fillBuffer()
139 state = 2; in fillBuffer()
142 state = 3; in fillBuffer()
160 state = 0; in fillBuffer()
167 state = 0; in fillBuffer()
174 state = 0; in fillBuffer()
184 state = 0; in fillBuffer()
192 state = 0; in fillBuffer()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java232 void onBondStateChanged(BluetoothDevice device, int state) in onBondStateChanged() argument
241 prop.setBondState(state); in onBondStateChanged()
243 if (state == BluetoothDevice.BOND_BONDED) { in onBondStateChanged()
249 } else if (state == BluetoothDevice.BOND_NONE) { in onBondStateChanged()
290 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument
291 if (!validateProfileConnectionState(state) || in sendConnectionStateChange()
298 + "prevState " + prevState + " state " + state); in sendConnectionStateChange()
303 updateProfileConnectionState(profile, state, prevState); in sendConnectionStateChange()
305 if (updateCountersAndCheckForConnectionStateChange(state, prevState)) { in sendConnectionStateChange()
306 setConnectionState(state); in sendConnectionStateChange()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/
DRawContactModifierTests.java219 final RawContactDelta state = getRawContact(TEST_ID); in testValidTypes() local
220 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
221 RawContactModifier.insertChild(state, kindPhone, typeWork); in testValidTypes()
224 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); in testValidTypes()
230 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
233 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); in testValidTypes()
239 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
240 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
243 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null); in testValidTypes()
262 final RawContactDelta state = getRawContact(TEST_ID); in testCanInsert() local
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/
DBodyDescriptor.java179 byte state = READY_FOR_NAME; in getHeaderParams()
184 switch (state) { in getHeaderParams()
187 state = READY_FOR_NAME; in getHeaderParams()
193 state = ERROR; in getHeaderParams()
200 state = IN_NAME; in getHeaderParams()
206 state = ERROR; in getHeaderParams()
208 state = READY_FOR_VALUE; in getHeaderParams()
224 state = IN_QUOTED_VALUE; in getHeaderParams()
228 state = IN_VALUE; in getHeaderParams()
246 state = VALUE_DONE; in getHeaderParams()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardState.java132 final SavedKeyboardState state = mSavedKeyboardState; in onSaveKeyboardState() local
133 state.mIsAlphabetMode = mIsAlphabetMode; in onSaveKeyboardState()
135 state.mIsAlphabetShiftLocked = mAlphabetShiftState.isShiftLocked(); in onSaveKeyboardState()
136 state.mIsShifted = !state.mIsAlphabetShiftLocked in onSaveKeyboardState()
139 state.mIsAlphabetShiftLocked = mPrevMainKeyboardWasShiftLocked; in onSaveKeyboardState()
140 state.mIsShifted = mIsSymbolShifted; in onSaveKeyboardState()
142 state.mIsValid = true; in onSaveKeyboardState()
144 Log.d(TAG, "onSaveKeyboardState: saved=" + state + " " + this); in onSaveKeyboardState()
149 final SavedKeyboardState state = mSavedKeyboardState; in onRestoreKeyboardState() local
151 Log.d(TAG, "onRestoreKeyboardState: saved=" + state + " " + this); in onRestoreKeyboardState()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java89 public static boolean canInsert(RawContactDelta state, DataKind kind) { in canInsert() argument
91 final int visibleCount = state.getMimeEntriesCount(kind.mimeType, true); in canInsert()
92 final boolean validTypes = hasValidTypes(state, kind); in canInsert()
98 public static boolean hasValidTypes(RawContactDelta state, DataKind kind) { in hasValidTypes() argument
100 return (getValidTypes(state, kind).size() > 0); in hasValidTypes()
113 RawContactDelta state, AccountType accountType, String mimeType) { in ensureKindExists() argument
115 final boolean hasChild = state.getMimeEntriesCount(mimeType, true) > 0; in ensureKindExists()
120 return state.getMimeEntries(mimeType).get(0); in ensureKindExists()
123 final ValuesDelta child = insertChild(state, kind); in ensureKindExists()
138 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind) { in getValidTypes() argument
[all …]
/packages/experimental/procstatlog/
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/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java160 … if (DBG) log("MESSAGE_CONNECT_STATE_CHANGED: " + device + " state: " + cs.state);
161 … handlePanDeviceStateChange(device, mPanIfName /* iface */, convertHalState(cs.state),
307 for (int state : states) { in getDevicesMatchingConnectionStates()
308 if (state == panDeviceState) { in getDevicesMatchingConnectionStates()
318 public ConnectState(byte[] address, int state, int error, int local_role, int remote_role) { in ConnectState() argument
320 this.state = state; in ConnectState()
326 int state; field in PanService.ConnectState
331 …private void onConnectStateChanged(byte[] address, int state, int error, int local_role, int remot… in onConnectStateChanged() argument
332 …if (DBG) log("onConnectStateChanged: " + state + ", local role:" + local_role + ", remote_role: " … in onConnectStateChanged()
334 msg.obj = new ConnectState(address, state, error, local_role, remote_role); in onConnectStateChanged()
[all …]
/packages/apps/Browser/src/com/android/browser/
DCrashRecoveryHandler.java93 File state = new File(mContext.getCacheDir(), STATE_FILE); in CrashRecoveryHandler()
94 if (state.exists()) { in CrashRecoveryHandler()
95 state.delete(); in CrashRecoveryHandler()
120 final Bundle state = mController.createSaveState();
121 Message.obtain(mBackgroundHandler, MSG_WRITE_STATE, state)
157 Bundle state = null; in loadCrashState() local
172 state = parcel.readBundle(); in loadCrashState()
173 if (state != null && !state.isEmpty()) { in loadCrashState()
174 return state; in loadCrashState()
223 synchronized void writeState(Bundle state) { in writeState() argument
[all …]
/packages/apps/Mms/src/com/android/mms/transaction/
DTransactionState.java65 synchronized void setState(int state) { in setState() argument
66 if ((state < INITIALIZED) && (state > FAILED)) { in setState()
67 throw new IllegalArgumentException("Bad state: " + state); in setState()
69 mState = state; in setState()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnJAJP.java541 EngineState state = new EngineState(); in onStartInputView() local
542 state.temporaryMode = EngineState.TEMPORARY_DICTIONARY_MODE_NONE; in onStartInputView()
543 updateEngineState(state); in onStartInputView()
695 EngineState state; in onEvent() local
926 state = new EngineState(); in onEvent()
927 state.temporaryMode = EngineState.TEMPORARY_DICTIONARY_MODE_NONE; in onEvent()
928 updateEngineState(state); in onEvent()
955 state = new EngineState(); in onEvent()
956 state.temporaryMode = EngineState.TEMPORARY_DICTIONARY_MODE_NONE; in onEvent()
957 updateEngineState(state); in onEvent()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDockService.java259 final int state = msg.arg1; in processMessage() local
266 if(DEBUG) Log.d(TAG, "processMessage: " + msgType + " state: " + state + " device = " in processMessage()
274 createDialog(device, state, startId); in processMessage()
279 deferFinishCall = msgTypeDocked(device, state, startId); in processMessage()
287 msgTypeUndockedTemporary(device, state, startId); in processMessage()
322 private void msgTypeUndockedTemporary(BluetoothDevice device, int state, in msgTypeUndockedTemporary() argument
325 Message newMsg = mServiceHandler.obtainMessage(MSG_TYPE_UNDOCKED_PERMANENT, state, in msgTypeUndockedTemporary()
362 private boolean msgTypeDocked(BluetoothDevice device, final int state, in msgTypeDocked() argument
391 handleDocked(device, state, startId); in msgTypeDocked()
398 handleDocked(d, state, startId); // FIXME: WTF runnable here? in msgTypeDocked()
[all …]
DDockEventReceiver.java51 int state = intent.getIntExtra(Intent.EXTRA_DOCK_STATE, intent.getIntExtra( in onReceive() local
56 Log.d(TAG, "Action: " + intent.getAction() + " State:" + state + " Device: " in onReceive()
63 ((state != Intent.EXTRA_DOCK_STATE_UNDOCKED) && in onReceive()
64 (state != Intent.EXTRA_DOCK_STATE_LE_DESK)))) { in onReceive()
66 "Wrong state: "+state+" or intent: "+intent.toString()+" with null device"); in onReceive()
70 switch (state) { in onReceive()
81 Log.e(TAG, "Unknown state: " + state); in onReceive()
/packages/apps/Contacts/src/com/android/contacts/editor/
DRawContactEditorView.java157 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig, in setState() argument
160 mState = state; in setState()
166 if (state == null || type == null) return; in setState()
168 setId(vig.getId(state, null, null, ViewIdGenerator.NO_VIEW_INDEX)); in setState()
171 RawContactModifier.ensureKindExists(state, type, StructuredName.CONTENT_ITEM_TYPE); in setState()
172 RawContactModifier.ensureKindExists(state, type, Organization.CONTENT_ITEM_TYPE); in setState()
174 mRawContactId = state.getRawContactId(); in setState()
178 String accountName = state.getAccountName(); in setState()
189 String accountName = state.getAccountName(); in setState()
208 RawContactModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE); in setState()
[all …]
DRawContactReadOnlyEditorView.java115 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig, in setState() argument
121 if (state == null || type == null) return; in setState()
124 RawContactModifier.ensureKindExists(state, type, StructuredName.CONTENT_ITEM_TYPE); in setState()
127 mAccountName = state.getAccountName(); in setState()
128 mAccountType = state.getAccountType(); in setState()
129 mDataSet = state.getDataSet(); in setState()
164 mRawContactId = state.getRawContactId(); in setState()
171 RawContactModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE); in setState()
174 primary = state.getPrimaryEntry(Photo.CONTENT_ITEM_TYPE); in setState()
175 getPhotoEditor().setValues(kind, primary, state, !type.areContactsWritable(), vig); in setState()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java221 private void processConnectionEvent(int state, BluetoothDevice device) { in processConnectionEvent() argument
222 switch (state) { in processConnectionEvent()
273 Log.e(TAG, "Incorrect state: " + state); in processConnectionEvent()
331 private void processConnectionEvent(int state, BluetoothDevice device) { in processConnectionEvent() argument
332 switch (state) { in processConnectionEvent()
453 Log.e(TAG, "Incorrect state: " + state); in processConnectionEvent()
537 private void processConnectionEvent(int state, BluetoothDevice device) { in processConnectionEvent() argument
538 switch (state) { in processConnectionEvent()
552 Log.e(TAG, "Connection State Device: " + device + " bad state: " + state); in processConnectionEvent()
556 private void processAudioStateEvent(int state, BluetoothDevice device) { in processAudioStateEvent() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapReceiver.java60 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); in onReceive() local
61 in.putExtra(BluetoothAdapter.EXTRA_STATE, state); in onReceive()
62 if (V) Log.v(TAG,"***********state = " + state); in onReceive()
63 if ((state == BluetoothAdapter.STATE_TURNING_ON) in onReceive()
64 || (state == BluetoothAdapter.STATE_OFF)) { in onReceive()
/packages/apps/Settings/src/com/android/settings/wifi/
DSummary.java25 static String get(Context context, String ssid, DetailedState state) { in get() argument
28 int index = state.ordinal(); in get()
36 static String get(Context context, DetailedState state) { in get() argument
37 return get(context, null, state); in get()
/packages/apps/Contacts/src/com/android/contacts/widget/
DPinnedHeaderListView.java85 int state; field in PinnedHeaderListView.PinnedHeader
213 if (header.state == TOP) { in onItemSelected()
215 } else if (header.state == BOTTOM) { in onItemSelected()
260 header.state = TOP; in setHeaderPinnedAtTop()
276 header.state = BOTTOM; in setHeaderPinnedAtBottom()
312 header.state = FADING; in setFadingHeader()
337 if (header.visible && (animate || header.animating) && header.state == BOTTOM) { in setHeaderInvisible()
375 if (header.visible && header.state == TOP) { in getTotalTopPinnedHeaderHeight()
457 if (header.state == BOTTOM && header.y < bottom) { in dispatchDraw()
459 } else if (header.state == TOP || header.state == FADING) { in dispatchDraw()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DStringUtils.java350 int state = START; in getCapsMode() local
353 switch (state) { in getCapsMode()
356 state = WORD; in getCapsMode()
365 state = WORD; in getCapsMode()
367 state = PERIOD; in getCapsMode()
374 state = LETTER; in getCapsMode()
381 state = LETTER; in getCapsMode()
383 state = PERIOD; in getCapsMode()
390 return (START == state || LETTER == state) ? noCaps : caps; in getCapsMode()
/packages/apps/Phone/src/com/android/phone/
DBluetoothPhoneService.java181 ServiceState state = (ServiceState) ((AsyncResult) msg.obj).result;
182 updateServiceState(state);
225 private void updateServiceState(ServiceState state) { in updateServiceState() argument
226 boolean roam = state.getRoaming(); in updateServiceState()
542 int state = convertCallState(connection.getState()); in sendClccResponseGsm() local
557 mBluetoothHeadset.clccResponse(index + 1, direction, state, 0, mpty, number, type); in sendClccResponseGsm()
619 int state; in sendClccResponseCdma() local
630 state = CALL_STATE_ACTIVE; in sendClccResponseCdma()
640 state = mCdmaIsSecondCallActive ? CALL_STATE_HELD : CALL_STATE_ACTIVE; in sendClccResponseCdma()
642 state = mCdmaIsSecondCallActive ? CALL_STATE_ACTIVE : CALL_STATE_HELD; in sendClccResponseCdma()
[all …]

1234567891011