/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | SoftKeyToggle.java | 95 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/ |
D | DownloadThread.java | 144 State state = new State(mInfo); in run() local 164 HttpGet request = new HttpGet(state.mRequestUri); in run() 166 executeDownload(state, client, request); in run() 179 finalizeDestinationFile(state); in run() 200 cleanupDestination(state, finalStatus); in run() 201 notifyDownloadCompleted(finalStatus, state.mCountRetry, state.mRetryAfter, in run() 202 state.mGotData, state.mFilename, in run() 203 state.mNewUri, state.mMimeType); in run() 212 private void executeDownload(State state, AndroidHttpClient client, HttpGet request) in executeDownload() argument 217 setupDestinationFile(state, innerState); in executeDownload() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | EntityModifierTests.java | 204 final EntityDelta state = getEntity(TEST_ID); in testValidTypes() local 205 EntityModifier.insertChild(state, kindPhone, typeHome); in testValidTypes() 206 EntityModifier.insertChild(state, kindPhone, typeWork); in testValidTypes() 209 validTypes = EntityModifier.getValidTypes(state, kindPhone, null); in testValidTypes() 215 EntityModifier.insertChild(state, kindPhone, typeHome); in testValidTypes() 218 validTypes = EntityModifier.getValidTypes(state, kindPhone, null); in testValidTypes() 224 EntityModifier.insertChild(state, kindPhone, typeHome); in testValidTypes() 225 EntityModifier.insertChild(state, kindPhone, typeHome); in testValidTypes() 228 validTypes = EntityModifier.getValidTypes(state, kindPhone, null); in testValidTypes() 247 final EntityDelta state = getEntity(TEST_ID); in testCanInsert() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | EntityModifier.java | 63 public static boolean canInsert(EntityDelta state, DataKind kind) { in canInsert() argument 65 final int visibleCount = state.getMimeEntriesCount(kind.mimeType, true); in canInsert() 66 final boolean validTypes = hasValidTypes(state, kind); in canInsert() 72 public static boolean hasValidTypes(EntityDelta state, DataKind kind) { in hasValidTypes() argument 74 return (getValidTypes(state, kind).size() > 0); in hasValidTypes() 84 public static void ensureKindExists(EntityDelta state, ContactsSource source, String mimeType) { in ensureKindExists() argument 86 final boolean hasChild = state.getMimeEntriesCount(mimeType, true) > 0; in ensureKindExists() 90 final ValuesDelta child = insertChild(state, kind); in ensureKindExists() 102 public static ArrayList<EditType> getValidTypes(EntityDelta state, DataKind kind) { in getValidTypes() argument 103 return getValidTypes(state, kind, null, true, null); in getValidTypes() [all …]
|
D | EntitySet.java | 53 final EntitySet state = new EntitySet(); in fromSingle() local 54 state.add(delta); in fromSingle() 55 return state; in fromSingle() 69 final EntitySet state = new EntitySet(); in fromQuery() local 75 state.add(entity); in fromQuery() 77 return state; in fromQuery() 328 final EntitySet state = new EntitySet(); 329 state.readFromParcel(in); 330 return state;
|
D | GoogleSource.java | 126 public static final void attemptMyContactsMembership(EntityDelta state, Context context) { in attemptMyContactsMembership() argument 127 final ValuesDelta stateValues = state.getValues(); in attemptMyContactsMembership() 131 attemptMyContactsMembership(state, accountName, accountType, context, true); in attemptMyContactsMembership() 144 private static final void attemptMyContactsMembership(EntityDelta state, in attemptMyContactsMembership() argument 169 if (myContactsExists && state == null) { in attemptMyContactsMembership() 208 state, accountName, accountType, context, false); in attemptMyContactsMembership() 220 if (state != null) { in attemptMyContactsMembership() 221 state.addEntry(ValuesDelta.fromAfter(values)); in attemptMyContactsMembership()
|
/packages/apps/Email/src/org/apache/james/mime4j/decoder/ |
D | QuotedPrintableInputStream.java | 43 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/Email/src/org/apache/james/mime4j/ |
D | BodyDescriptor.java | 179 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/apps/Mms/src/com/android/mms/transaction/ |
D | TransactionState.java | 65 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/experimental/procstatlog/ |
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/Launcher2/res/raw/ |
D | allapps.rs | 111 float dx = -(state->newPositionX - g_LastPositionX); 119 g_LastTouchDown = state->newTouchDown; 120 g_LastPositionX = state->newPositionX; 134 g_Zoom = state->zoomTarget; 141 g_PosVelocity = -state->flingVelocity * 4; 198 …g_PosPage = g_MoveToOldPos + (state->targetPos - g_MoveToOldPos) * getInterpolation((g_MoveToTotal… 202 g_PosPage = state->targetPos; 262 bindTexture(NAMED_PFTexNearest, 0, state->homeButtonId); 312 if (iconNum >= state->iconCount) { 320 if (state->selectedIconIndex == iconNum && !p) { [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnnJAJP.java | 490 EngineState state = new EngineState(); in onStartInputView() local 491 state.temporaryMode = EngineState.TEMPORARY_DICTIONARY_MODE_NONE; in onStartInputView() 492 updateEngineState(state); in onStartInputView() 618 EngineState state; in onEvent() local 749 state = new EngineState(); in onEvent() 750 state.temporaryMode = EngineState.TEMPORARY_DICTIONARY_MODE_NONE; in onEvent() 751 updateEngineState(state); in onEvent() 1349 EngineState state = new EngineState(); in processRightKeyEvent() local 1350 state.convertType = EngineState.CONVERT_TYPE_NONE; in processRightKeyEvent() 1351 updateEngineState(state); in processRightKeyEvent() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SearchWidgetProvider.java | 204 for (SearchWidgetState state : states) { in considerShowingVoiceSearchHints() 205 changed |= state.considerShowingHint(context); in considerShowingVoiceSearchHints() 216 for (SearchWidgetState state : states) { in showVoiceSearchHintNow() 217 if (state.mVoiceSearchIntent != null) { in showVoiceSearchHintNow() 218 state.showHintNow(context); in showVoiceSearchHintNow() 229 for (SearchWidgetState state : states) { in hideVoiceSearchHint() 230 if (state.isShowingHint()) { in hideVoiceSearchHint() 231 state.hideVoiceSearchHint(context); in hideVoiceSearchHint() 232 state.updateWidget(context, AppWidgetManager.getInstance(context)); in hideVoiceSearchHint() 234 needHint |= state.isShowingHint(); in hideVoiceSearchHint() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | Summary.java | 26 static String get(Context context, String ssid, DetailedState state) { in get() argument 29 int index = state.ordinal(); in get() 37 static String get(Context context, DetailedState state) { in get() argument 38 return get(context, null, state); in get()
|
D | WifiEnabler.java | 113 private void handleWifiStateChanged(int state) { in handleWifiStateChanged() argument 114 switch (state) { in handleWifiStateChanged() 140 private void handleStateChanged(NetworkInfo.DetailedState state) { in handleStateChanged() argument 143 if (state != null && mCheckBox.isChecked()) { in handleStateChanged() 146 mCheckBox.setSummary(Summary.get(mContext, info.getSSID(), state)); in handleStateChanged()
|
/packages/apps/Contacts/src/com/android/contacts/ui/widget/ |
D | ContactEditorView.java | 166 public void setState(EntityDelta state, ContactsSource source, ViewIdGenerator vig) { in setState() argument 172 if (state == null || source == null) return; in setState() 174 setId(vig.getId(state, null, null, ViewIdGenerator.NO_VIEW_INDEX)); in setState() 179 EntityModifier.ensureKindExists(state, source, StructuredName.CONTENT_ITEM_TYPE); in setState() 182 ValuesDelta values = state.getValues(); in setState() 198 EntityModifier.ensureKindExists(state, source, Photo.CONTENT_ITEM_TYPE); in setState() 227 final ValuesDelta primary = state.getPrimaryEntry(mimeType); in setState() 229 mName.setValues(kind, primary, state, mIsSourceReadOnly, vig); in setState() 236 final ValuesDelta primary = state.getPrimaryEntry(mimeType); in setState() 237 mPhoto.setValues(kind, primary, state, mIsSourceReadOnly, vig); in setState() [all …]
|
D | ReadOnlyContactEditorView.java | 105 public void setState(EntityDelta state, ContactsSource source, ViewIdGenerator vig) { in setState() argument 110 if (state == null || source == null) return; in setState() 113 EntityModifier.ensureKindExists(state, source, StructuredName.CONTENT_ITEM_TYPE); in setState() 116 ValuesDelta values = state.getValues(); in setState() 136 EntityModifier.ensureKindExists(state, source, Photo.CONTENT_ITEM_TYPE); in setState() 138 primary = state.getPrimaryEntry(Photo.CONTENT_ITEM_TYPE); in setState() 139 mPhoto.setValues(kind, primary, state, source.readOnly, vig); in setState() 150 primary = state.getPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE); in setState() 157 ArrayList<ValuesDelta> phones = state.getMimeEntries(Phone.CONTENT_ITEM_TYPE); in setState() 172 ArrayList<ValuesDelta> emails = state.getMimeEntries(Email.CONTENT_ITEM_TYPE); in setState()
|
/packages/apps/Email/src/com/android/exchange/ |
D | Eas.java | 82 public static void setUserDebug(int state) { in setUserDebug() argument 85 USER_LOG = (state & DEBUG_BIT) != 0; in setUserDebug() 86 PARSER_LOG = (state & DEBUG_EXCHANGE_BIT) != 0; in setUserDebug() 87 FILE_LOG = (state & DEBUG_FILE_BIT) != 0; in setUserDebug()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapReceiver.java | 58 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); in onReceive() local 59 in.putExtra(BluetoothAdapter.EXTRA_STATE, state); in onReceive() 60 if ((state == BluetoothAdapter.STATE_TURNING_ON) in onReceive() 61 || (state == BluetoothAdapter.STATE_TURNING_OFF)) { in onReceive()
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | Calculator.java | 55 public void onCreate(Bundle state) { in onCreate() argument 56 super.onCreate(state); in onCreate() 70 mPanelSwitcher.setCurrentIndex(state==null ? 0 : state.getInt(STATE_CURRENT_VIEW, 0)); in onCreate() 142 protected void onSaveInstanceState(Bundle state) { in onSaveInstanceState() argument 143 super.onSaveInstanceState(state); in onSaveInstanceState() 144 state.putInt(STATE_CURRENT_VIEW, mPanelSwitcher.getCurrentIndex()); in onSaveInstanceState()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | DockService.java | 235 final int state = msg.arg1; in processMessage() local 243 if(DEBUG) Log.d(TAG, "processMessage: " + msgType + " state: " + state + " device = " in processMessage() 254 createDialog(mContext, mDevice, state, startId); in processMessage() 284 handleDocked(device, state, startId); in processMessage() 291 handleDocked(d, state, startId); in processMessage() 326 Message newMsg = mServiceHandler.obtainMessage(MSG_TYPE_UNDOCKED_PERMANENT, state, in processMessage() 375 int state = intent.getIntExtra(Intent.EXTRA_DOCK_STATE, -1234); in parseIntent() local 378 Log.d(TAG, "Action: " + intent.getAction() + " State:" + state in parseIntent() 388 switch (state) { in parseIntent() 404 return mServiceHandler.obtainMessage(msgType, state, 0, device); in parseIntent() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | SearchActivityView.java | 70 KeyEvent.DispatcherState state = getKeyDispatcherState(); in dispatchKeyEventPreIme() local 71 if (state != null) { in dispatchKeyEventPreIme() 74 state.startTracking(event, this); in dispatchKeyEventPreIme() 77 && !event.isCanceled() && state.isTracking(event)) { in dispatchKeyEventPreIme()
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
D | Recorder.java | 33 public void onStateChanged(int state); in onStateChanged() argument 85 public int state() { in state() method in Recorder 243 private void setState(int state) { in setState() argument 244 if (state == mState) in setState() 247 mState = state; in setState() 251 private void signalStateChanged(int state) { in signalStateChanged() argument 253 mOnStateChangedListener.onStateChanged(state); in signalStateChanged()
|
/packages/apps/Phone/src/com/android/phone/ |
D | BluetoothHeadsetService.java | 123 int state = mRemoteHeadsets.get(device).mState; in getCurrentDevice() local 124 if (state == BluetoothHeadset.STATE_CONNECTING || in getCurrentDevice() 125 state == BluetoothHeadset.STATE_CONNECTED) { in getCurrentDevice() 183 int state = BluetoothHeadset.STATE_DISCONNECTED; 185 state = mRemoteHeadsets.get(device).mState; 188 switch (state) { 252 int state = BluetoothHeadset.STATE_DISCONNECTED; 254 state = mRemoteHeadsets.get(currDevice).mState; 257 if ((state == BluetoothHeadset.STATE_CONNECTED || 258 state == BluetoothHeadset.STATE_CONNECTING) && [all …]
|
D | BluetoothHandsfree.java | 263 Call.State state = mCM.getActiveFgCallState(); in isIncallAudio() local 265 return (state == Call.State.ACTIVE || state == Call.State.ALERTING); in isIncallAudio() 360 ServiceState state = (ServiceState) ((AsyncResult) msg.obj).result; 361 updateServiceState(sendUpdate(), state); 539 int state = intent.getIntExtra(BluetoothA2dp.EXTRA_SINK_STATE, 551 mA2dpState = state; 552 if (state == BluetoothA2dp.STATE_DISCONNECTED) { 617 private synchronized void updateServiceState(boolean sendUpdate, ServiceState state) { in updateServiceState() argument 618 int service = state.getState() == ServiceState.STATE_IN_SERVICE ? 1 : 0; in updateServiceState() 619 int roam = state.getRoaming() ? 1 : 0; in updateServiceState() [all …]
|