/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/apps/Settings/src/com/android/settings/wifi/ |
D | WifiLayer.java | 288 public AccessPointState getWifiLayerApInstance(AccessPointState state) { in getWifiLayerApInstance() argument 291 if (hasApInstanceLocked(state)) { in getWifiLayerApInstance() 292 return state; in getWifiLayerApInstance() 295 return findApLocked(state.networkId, state.bssid, state.ssid, state.security); in getWifiLayerApInstance() 309 public boolean connectToNetwork(AccessPointState state) { in connectToNetwork() argument 311 Log.v(TAG, "Connecting to " + state); in connectToNetwork() 315 WifiConfiguration config = findConfiguredNetwork(state); in connectToNetwork() 326 config = addConfiguration(state, 0); in connectToNetwork() 338 ensureTrackingState(state); in connectToNetwork() 341 state.updateWifiConfiguration(config); in connectToNetwork() [all …]
|
D | WifiSettings.java | 250 protected void onRestoreInstanceState(Bundle state) { in onRestoreInstanceState() argument 251 super.onRestoreInstanceState(state); in onRestoreInstanceState() 253 Bundle dialogBundle = state.getBundle(INSTANCE_KEY_DIALOG_BUNDLE); in onRestoreInstanceState() 275 AccessPointState state = getStateFromMenuInfo(menuInfo); in onCreateContextMenu() local 276 if (state == null) { in onCreateContextMenu() 280 menu.setHeaderTitle(state.getHumanReadableSsid()); in onCreateContextMenu() 282 if (state.isConnectable()) { in onCreateContextMenu() 286 if (state.isForgetable()) { in onCreateContextMenu() 289 if (state.hasPassword()) { in onCreateContextMenu() 299 AccessPointState state = getStateFromMenuInfo(item.getMenuInfo()); in onContextItemSelected() local [all …]
|
D | AccessPointState.java | 432 public void updateFromWifiInfo(WifiInfo wifiInfo, NetworkInfo.DetailedState state) { in updateFromWifiInfo() argument 440 if (state != null) { in updateFromWifiInfo() 441 setStatus(state); in updateFromWifiInfo() 868 AccessPointState state = new AccessPointState(); 869 state.bssid = in.readString(); 870 state.configured = in.readInt() == 1; 871 state.ipAddress = in.readInt(); 872 state.linkSpeed = in.readInt(); 873 state.networkId = in.readInt(); 874 state.primary = in.readInt() == 1; [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | EntityModifierTests.java | 182 final EntityDelta state = getEntity(TEST_ID); in testValidTypes() local 183 EntityModifier.insertChild(state, kindPhone, typeHome); in testValidTypes() 184 EntityModifier.insertChild(state, kindPhone, typeWork); in testValidTypes() 187 validTypes = EntityModifier.getValidTypes(state, kindPhone, null); in testValidTypes() 193 EntityModifier.insertChild(state, kindPhone, typeHome); in testValidTypes() 196 validTypes = EntityModifier.getValidTypes(state, kindPhone, null); in testValidTypes() 202 EntityModifier.insertChild(state, kindPhone, typeHome); in testValidTypes() 203 EntityModifier.insertChild(state, kindPhone, typeHome); in testValidTypes() 206 validTypes = EntityModifier.getValidTypes(state, kindPhone, null); in testValidTypes() 225 final EntityDelta state = getEntity(TEST_ID); in testCanInsert() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | EntityModifier.java | 62 public static boolean canInsert(EntityDelta state, DataKind kind) { in canInsert() argument 64 final int visibleCount = state.getMimeEntriesCount(kind.mimeType, true); in canInsert() 65 final boolean validTypes = hasValidTypes(state, kind); in canInsert() 71 public static boolean hasValidTypes(EntityDelta state, DataKind kind) { in hasValidTypes() argument 73 return (getValidTypes(state, kind).size() > 0); in hasValidTypes() 83 public static void ensureKindExists(EntityDelta state, ContactsSource source, String mimeType) { in ensureKindExists() argument 85 final boolean hasChild = state.getMimeEntriesCount(mimeType, true) > 0; in ensureKindExists() 89 final ValuesDelta child = insertChild(state, kind); in ensureKindExists() 101 public static ArrayList<EditType> getValidTypes(EntityDelta state, DataKind kind) { in getValidTypes() argument 102 return getValidTypes(state, kind, null, true, null); in getValidTypes() [all …]
|
D | EntitySet.java | 56 final EntitySet state = new EntitySet(); in fromSingle() local 57 state.add(delta); in fromSingle() 58 return state; in fromSingle() 69 final EntitySet state = new EntitySet(); in fromQuery() local 78 state.add(entity); in fromQuery() 87 return state; in fromQuery() 334 final EntitySet state = new EntitySet(); 335 state.readFromParcel(in); 336 return state;
|
D | GoogleSource.java | 161 public static final void attemptMyContactsMembership(EntityDelta state, Context context) { in attemptMyContactsMembership() argument 162 final ValuesDelta stateValues = state.getValues(); in attemptMyContactsMembership() 166 attemptMyContactsMembership(state, accountName, accountType, context, true); in attemptMyContactsMembership() 179 private static final void attemptMyContactsMembership(EntityDelta state, in attemptMyContactsMembership() argument 204 if (myContactsExists && state == null) { in attemptMyContactsMembership() 244 state, accountName, accountType, context, false); in attemptMyContactsMembership() 256 if (state != null) { in attemptMyContactsMembership() 257 state.addEntry(ValuesDelta.fromAfter(values)); in attemptMyContactsMembership()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothEnabler.java | 50 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); 51 handleStateChanged(state); 74 int state = mLocalManager.getBluetoothState(); in resume() local 76 mCheckBoxPreference.setEnabled(state == BluetoothAdapter.STATE_ON || in resume() 77 state == BluetoothAdapter.STATE_OFF); in resume() 79 handleStateChanged(state); in resume() 110 private void handleStateChanged(int state) { in handleStateChanged() argument 112 if (state == BluetoothAdapter.STATE_OFF || in handleStateChanged() 113 state == BluetoothAdapter.STATE_ON) { in handleStateChanged() 114 mCheckBoxPreference.setChecked(state == BluetoothAdapter.STATE_ON); in handleStateChanged() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/decoder/ |
D | QuotedPrintableInputStream.java | 41 private byte state = 0; field in QuotedPrintableInputStream 126 switch (state) { in fillBuffer() 132 state = 1; in fillBuffer() 137 state = 2; in fillBuffer() 140 state = 3; in fillBuffer() 158 state = 0; in fillBuffer() 165 state = 0; in fillBuffer() 172 state = 0; in fillBuffer() 182 state = 0; in fillBuffer() 190 state = 0; in fillBuffer() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/ |
D | BodyDescriptor.java | 182 byte state = READY_FOR_NAME; in getHeaderParams() 187 switch (state) { in getHeaderParams() 190 state = READY_FOR_NAME; in getHeaderParams() 196 state = ERROR; in getHeaderParams() 203 state = IN_NAME; in getHeaderParams() 209 state = ERROR; in getHeaderParams() 211 state = READY_FOR_VALUE; in getHeaderParams() 227 state = IN_QUOTED_VALUE; in getHeaderParams() 231 state = IN_VALUE; in getHeaderParams() 249 state = VALUE_DONE; in getHeaderParams() [all …]
|
/packages/apps/Launcher2/res/raw/ |
D | rollo3.c | 107 float dx = -(state->newPositionX - g_LastPositionX); in move() 115 g_LastTouchDown = state->newTouchDown; in move() 116 g_LastPositionX = state->newPositionX; in move() 130 g_Zoom = state->zoomTarget; in setZoom() 137 g_PosVelocity = -state->flingVelocity * 4; in fling() 194 …g_PosPage = g_MoveToOldPos + (state->targetPos - g_MoveToOldPos) * getInterpolation((g_MoveToTotal… in updatePos() 198 g_PosPage = state->targetPos; in updatePos() 292 bindTexture(NAMED_PFTexNearest, 0, state->homeButtonId); in draw_home_button() 322 if (iconNum >= state->iconCount) { in drawFrontGrid() 331 if (state->selectedIconIndex == iconNum && !p) { in drawFrontGrid() [all …]
|
D | rollo.c | 90 float dx = -(state->newPositionX - g_LastPositionX); in move() 98 g_LastTouchDown = state->newTouchDown; in move() 99 g_LastPositionX = state->newPositionX; in move() 105 g_PosVelocity = -state->flingVelocityX; in fling() 269 if (state->selectedIconIndex == icon) { in draw_page() 270 bindTexture(NAMED_PFTexLinear, 0, state->selectedIconTexture); in draw_page() 304 bindTexture(NAMED_PFTexLinear, 0, state->homeButtonId); in draw_home_button() 336 if (g_Zoom != state->zoomTarget) { in main() 337 float dz = (state->zoomTarget - g_Zoom) * g_DT * 5; in main() 345 if (fabsf(g_Zoom - state->zoomTarget) < fabsf(dz)) { in main() [all …]
|
D | rollo2.c | 89 float dx = -(state->newPositionX - g_LastPositionX); in move() 97 g_LastTouchDown = state->newTouchDown; in move() 98 g_LastPositionX = state->newPositionX; in move() 104 g_PosVelocity = -state->flingVelocityX; in fling() 249 bindTexture(NAMED_PFTexLinear, 0, state->homeButtonId); in draw_home_button() 281 if (g_Zoom != state->zoomTarget) { in main() 282 float dz = (state->zoomTarget - g_Zoom) * g_DT * 5; in main() 290 if (fabsf(g_Zoom - state->zoomTarget) < fabsf(dz)) { in main() 291 g_Zoom = state->zoomTarget; in main() 299 if ((g_Zoom < 0.001f) && (state->zoomTarget < 0.001f)) { in main() [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/apps/IM/src/com/android/im/engine/ |
D | ImConnection.java | 149 protected void setState(int state, ImErrorInfo error) { in setState() argument 150 if(state < DISCONNECTED || state > SUSPENDED){ in setState() 151 throw new IllegalArgumentException("Invalid state: " + state); in setState() 153 if(mState != state){ in setState() 154 mState = state; in setState() 156 listener.onStateChanged(state, error); in setState()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnnJAJP.java | 484 EngineState state = new EngineState(); in onStartInputView() local 485 state.temporaryMode = EngineState.TEMPORARY_DICTIONARY_MODE_NONE; in onStartInputView() 486 updateEngineState(state); in onStartInputView() 607 EngineState state; in onEvent() local 725 state = new EngineState(); in onEvent() 726 state.temporaryMode = EngineState.TEMPORARY_DICTIONARY_MODE_NONE; in onEvent() 727 updateEngineState(state); in onEvent() 1321 EngineState state = new EngineState(); in processRightKeyEvent() local 1322 state.convertType = EngineState.CONVERT_TYPE_NONE; in processRightKeyEvent() 1323 updateEngineState(state); in processRightKeyEvent() [all …]
|
/packages/apps/Email/src/com/android/exchange/ |
D | Eas.java | 76 public static void setUserDebug(int state) { in setUserDebug() argument 79 USER_LOG = (state & DEBUG_BIT) != 0; in setUserDebug() 80 PARSER_LOG = (state & DEBUG_EXCHANGE_BIT) != 0; in setUserDebug() 81 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/Contacts/src/com/android/contacts/ui/widget/ |
D | ReadOnlyContactEditorView.java | 104 public void setState(EntityDelta state, ContactsSource source) { in setState() argument 109 if (state == null || source == null) return; in setState() 112 EntityModifier.ensureKindExists(state, source, StructuredName.CONTENT_ITEM_TYPE); in setState() 115 ValuesDelta values = state.getValues(); in setState() 135 EntityModifier.ensureKindExists(state, source, Photo.CONTENT_ITEM_TYPE); in setState() 137 primary = state.getPrimaryEntry(Photo.CONTENT_ITEM_TYPE); in setState() 138 mPhoto.setValues(kind, primary, state, source.readOnly); in setState() 149 primary = state.getPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE); in setState() 156 ArrayList<ValuesDelta> phones = state.getMimeEntries(Phone.CONTENT_ITEM_TYPE); in setState() 171 ArrayList<ValuesDelta> emails = state.getMimeEntries(Email.CONTENT_ITEM_TYPE); in setState()
|
D | ContactEditorView.java | 152 public void setState(EntityDelta state, ContactsSource source) { in setState() argument 158 if (state == null || source == null) return; in setState() 161 EntityModifier.ensureKindExists(state, source, StructuredName.CONTENT_ITEM_TYPE); in setState() 164 ValuesDelta values = state.getValues(); in setState() 180 EntityModifier.ensureKindExists(state, source, Photo.CONTENT_ITEM_TYPE); in setState() 209 final ValuesDelta primary = state.getPrimaryEntry(mimeType); in setState() 211 mName.setValues(kind, primary, state, source.readOnly); in setState() 218 final ValuesDelta primary = state.getPrimaryEntry(mimeType); in setState() 219 mPhoto.setValues(kind, primary, state, source.readOnly); in setState() 231 section.setState(kind, state, source.readOnly); in setState()
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
D | Recorder.java | 30 public void onStateChanged(int state); in onStateChanged() argument 82 public int state() { in state() method in Recorder 226 private void setState(int state) { in setState() argument 227 if (state == mState) in setState() 230 mState = state; in setState() 234 private void signalStateChanged(int state) { in signalStateChanged() argument 236 mOnStateChangedListener.onStateChanged(state); in signalStateChanged()
|
/packages/apps/IM/src/com/android/im/app/adapter/ |
D | ConnectionListenerAdapter.java | 37 public void onConnectionStateChange(IImConnection connection, int state, ImErrorInfo error) { in onConnectionStateChange() argument 39 Log.d(TAG, "onConnectionStateChange(" + state + ", " + error + ")"); in onConnectionStateChange() 56 final int state, final ImErrorInfo error) { in onStateChanged() argument 59 onConnectionStateChange(conn, state, error); in onStateChanged()
|
/packages/apps/IM/src/com/android/im/service/ |
D | ImConnectionAdapter.java | 323 private static int convertConnStateForDb(int state) { in convertConnStateForDb() argument 324 switch (state) { in convertConnStateForDb() 345 public void onStateChanged(final int state, final ImErrorInfo error) { in onStateChanged() argument 347 if (state == ImConnection.LOGGED_IN in onStateChanged() 357 if (state != ImConnection.DISCONNECTED) { in onStateChanged() 358 mConnectionState = state; in onStateChanged() 363 if(state == ImConnection.LOGGED_IN) { in onStateChanged() 376 } else if (state == ImConnection.LOGGING_OUT) { in onStateChanged() 380 } else if(state == ImConnection.DISCONNECTED) { in onStateChanged() 393 mConnectionState = state; in onStateChanged() [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | BluetoothHandsfree.java | 267 Call.State state = mForegroundCall.getState(); in isIncallAudio() local 269 return (state == Call.State.ACTIVE || state == Call.State.ALERTING); in isIncallAudio() 360 ServiceState state = (ServiceState) ((AsyncResult) msg.obj).result; 361 updateServiceState(sendUpdate(), state); 533 int state = intent.getIntExtra(BluetoothA2dp.EXTRA_SINK_STATE, 540 mA2dpState = state; 597 private synchronized void updateServiceState(boolean sendUpdate, ServiceState state) { in updateServiceState() argument 598 int service = state.getState() == ServiceState.STATE_IN_SERVICE ? 1 : 0; in updateServiceState() 599 int roam = state.getRoaming() ? 1 : 0; in updateServiceState() 602 mServiceState = state; in updateServiceState() [all …]
|