Home
last modified time | relevance | path

Searched refs:oldState (Results 1 – 25 of 52) sorted by relevance

123

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactModifierTests.java782 RawContactDelta oldState = new RawContactDelta(); in testMigrateWithDisplayNameFromGoogleToExchange1() local
793 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateWithDisplayNameFromGoogleToExchange1()
796 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateWithDisplayNameFromGoogleToExchange1()
833 RawContactDelta oldState = new RawContactDelta(); in testMigrateWithDisplayNameFromGoogleToExchange2() local
837 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateWithDisplayNameFromGoogleToExchange2()
840 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateWithDisplayNameFromGoogleToExchange2()
875 RawContactDelta oldState = new RawContactDelta(); in testMigrateWithStructuredNameFromExchangeToGoogle() local
883 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateWithStructuredNameFromExchangeToGoogle()
886 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateWithStructuredNameFromExchangeToGoogle()
901 RawContactDelta oldState = new RawContactDelta(); in testMigratePostalFromGoogleToExchange() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DAlphabetShiftState.java35 final int oldState = mState; in setShifted() local
37 switch (oldState) { in setShifted()
49 switch (oldState) { in setShifted()
61 Log.d(TAG, "setShifted(" + newShiftState + "): " + toString(oldState) + " > " + this); in setShifted()
65 final int oldState = mState; in setShiftLocked() local
67 switch (oldState) { in setShiftLocked()
79 Log.d(TAG, "setShiftLocked(" + newShiftLockState + "): " + toString(oldState) in setShiftLocked()
84 final int oldState = mState; in setAutomaticShifted() local
87 Log.d(TAG, "setAutomaticShifted: " + toString(oldState) + " > " + this); in setAutomaticShifted()
DModifierKeyState.java37 final int oldState = mState; in onPress() local
40 Log.d(TAG, mName + ".onPress: " + toString(oldState) + " > " + this); in onPress()
44 final int oldState = mState; in onRelease() local
47 Log.d(TAG, mName + ".onRelease: " + toString(oldState) + " > " + this); in onRelease()
51 final int oldState = mState; in onOtherKeyPressed() local
52 if (oldState == PRESSING) in onOtherKeyPressed()
55 Log.d(TAG, mName + ".onOtherKeyPressed: " + toString(oldState) + " > " + this); in onOtherKeyPressed()
DShiftKeyState.java31 int oldState = mState; in onOtherKeyPressed() local
32 if (oldState == PRESSING) { in onOtherKeyPressed()
34 } else if (oldState == PRESSING_ON_SHIFTED) { in onOtherKeyPressed()
38 Log.d(TAG, mName + ".onOtherKeyPressed: " + toString(oldState) + " > " + this); in onOtherKeyPressed()
42 int oldState = mState; in onPressOnShifted() local
45 Log.d(TAG, mName + ".onPressOnShifted: " + toString(oldState) + " > " + this); in onPressOnShifted()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactModifier.java973 RawContactDelta oldState, RawContactDelta newState, in migrateStateForNewContact() argument
982 migrateStructuredName(context, oldState, newState, kind); in migrateStateForNewContact()
984 List<ValuesDelta> entryList = oldState.getMimeEntries(mimeType); in migrateStateForNewContact()
1006 migrateStructuredName(context, oldState, newState, kind); in migrateStateForNewContact()
1008 migratePostal(oldState, newState, kind); in migrateStateForNewContact()
1010 migrateEvent(oldState, newState, kind, null /* default Year */); in migrateStateForNewContact()
1012 migrateGenericWithoutTypeColumn(oldState, newState, kind); in migrateStateForNewContact()
1014 migrateGenericWithTypeColumn(oldState, newState, kind); in migrateStateForNewContact()
1045 Context context, RawContactDelta oldState, RawContactDelta newState, in migrateStructuredName() argument
1048 oldState.getPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE).getAfter(); in migrateStructuredName()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DStateManager.java225 public void switchState(ActivityState oldState, in switchState() argument
227 Log.v(TAG, "switchState " + oldState + ", " + klass); in switchState()
228 if (oldState != mStack.peek().activityState) { in switchState()
230 + " is not at the top of the stack: " + oldState + ", " in switchState()
237 oldState.transitionOnNextPause(oldState.getClass(), klass, in switchState()
240 if (mIsResumed) oldState.onPause(); in switchState()
241 oldState.onDestroy(); in switchState()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationActivityUiState.java33 void onConversationContactPickerUiStateChanged(int oldState, int newState, boolean animate); in onConversationContactPickerUiStateChanged() argument
213 final int oldState = mConversationContactUiState; in performUiStateUpdate() local
215 notifyOnOverallUiStateChanged(oldState, mConversationContactUiState, animate); in performUiStateUpdate()
221 final int oldState, final int newState, final boolean animate) { in notifyOnOverallUiStateChanged() argument
231 mHost.onConversationContactPickerUiStateChanged(oldState, newState, animate); in notifyOnOverallUiStateChanged()
/packages/apps/InCallUI/src/com/android/incallui/
DInCallPresenter.java435 InCallState oldState = mInCallState; in onCallListChange() local
436 Log.d(this, "onCallListChange oldState= " + oldState + " newState=" + newState); in onCallListChange()
441 Log.i(this, "Phone switching state: " + oldState + " -> " + newState); in onCallListChange()
447 listener.onStateChange(oldState, mInCallState, callList); in onCallListChange()
465 InCallState oldState = mInCallState; in onIncomingCall() local
467 Log.i(this, "Phone switching state: " + oldState + " -> " + newState); in onIncomingCall()
471 listener.onIncomingCall(oldState, mInCallState, call); in onIncomingCall()
1601 public void onStateChange(InCallState oldState, InCallState newState, CallList callList); in onStateChange() argument
1605 public void onIncomingCall(InCallState oldState, InCallState newState, Call call); in onIncomingCall() argument
DCallCardPresenter.java178 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() argument
180 onStateChange(oldState, newState, CallList.getInstance()); in onIncomingCall()
184 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
298 maybeSendAccessibilityEvent(oldState, newState); in onStateChange()
912 private void maybeSendAccessibilityEvent(InCallState oldState, InCallState newState) { in maybeSendAccessibilityEvent() argument
921 if ((oldState != InCallState.OUTGOING && newState == InCallState.OUTGOING) in maybeSendAccessibilityEvent()
922 || (oldState != InCallState.INCOMING && newState == InCallState.INCOMING)) { in maybeSendAccessibilityEvent()
DVideoPauseController.java154 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
155 log("onStateChange, OldState=" + oldState + " NewState=" + newState); in onStateChange()
233 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() argument
234 log("onIncomingCall, OldState=" + oldState + " NewState=" + newState + " Call=" + call); in onIncomingCall()
DCallButtonPresenter.java86 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
99 if (oldState == InCallState.OUTGOING && mCall != null) { in onStateChange()
134 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() argument
135 onStateChange(oldState, newState, CallList.getInstance()); in onIncomingCall()
DVideoCallPresenter.java377 public void onIncomingCall(InCallPresenter.InCallState oldState, in onIncomingCall() argument
380 onStateChange(oldState, newState, CallList.getInstance()); in onIncomingCall()
390 public void onStateChange(InCallPresenter.InCallState oldState, in onStateChange() argument
392 Log.d(this, "onStateChange oldState" + oldState + " newState=" + newState + in onStateChange()
DConferenceManagerPresenter.java58 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
97 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java320 int oldState = BluetoothDevice.BOND_NONE; in sendIntent() local
322 oldState = devProp.getBondState(); in sendIntent()
324 if (oldState == newState) return; in sendIntent()
330 intent.putExtra(BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, oldState); in sendIntent()
335 infoLog("Bond State Change Intent:" + device + " OldState: " + oldState in sendIntent()
DAdapterState.java492 int oldState = adapterProperties.getState(); in notifyAdapterStateChange() local
494 infoLog("Bluetooth adapter state changed: " + oldState + "-> " + newState); in notifyAdapterStateChange()
495 adapterService.updateAdapterState(oldState, newState); in notifyAdapterStateChange()
DAdapterProperties.java444 private void updateProfileConnectionState(int profile, int newState, int oldState) { in updateProfileConnectionState() argument
475 } else if (numDev == 1 && oldState == currHashState) { in updateProfileConnectionState()
477 } else if (numDev > 1 && oldState == currHashState) { in updateProfileConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpControllerService.java242 int oldState = (mConnectedDevices.contains(device) ? BluetoothProfile.STATE_CONNECTED in onConnectionStateChanged() local
246 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, oldState); in onConnectionStateChanged()
251 if (connected && oldState == BluetoothProfile.STATE_DISCONNECTED) { in onConnectionStateChanged()
253 } else if (!connected && oldState == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java79 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument
84 long[] stateChecksums = readOldChecksums(oldState); in onBackup()
108 private long[] readOldChecksums(ParcelFileDescriptor oldState) throws IOException { in readOldChecksums() argument
112 new FileInputStream(oldState.getFileDescriptor())); in readOldChecksums()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherBackupHelper.java208 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
212 Journal in = readJournal(oldState); in performBackup()
287 private boolean isBackupCompatible(Journal oldState) { in isBackupCompatible() argument
289 DeviceProfieData oldProfile = oldState.profile; in isBackupCompatible()
1052 private Journal readJournal(ParcelFileDescriptor oldState) { in readJournal() argument
1054 if (oldState == null) { in readJournal()
1057 FileInputStream inStream = new FileInputStream(oldState.getFileDescriptor()); in readJournal()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMtpService.java67 public void onStorageStateChanged(String path, String oldState, String newState) {
69 Log.d(TAG, "onStorageStateChanged " + path + " " + oldState + " -> " + newState);
72 } else if (Environment.MEDIA_MOUNTED.equals(oldState)) {
/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java367 private Bitmap combine(int oldState, int newState) { in combine() argument
371 if (oldState >= mImageIds.length || newState >= mImageIds.length) { in combine()
389 Drawable oldDrawable = getResources().getDrawable(mImageIds[oldState]).mutate(); in combine()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallsManager.java70 void onCallStateChanged(Call call, int oldState, int newState); in onCallStateChanged() argument
1320 int oldState = call.getState(); in setCallState() local
1321 Log.i(this, "setCallState %s -> %s, call: %s", CallState.toString(oldState), in setCallState()
1323 if (newState != oldState) { in setCallState()
1340 listener.onCallStateChanged(call, oldState, newState); in setCallState()
DBluetoothPhoneServiceImpl.java287 public void onCallStateChanged(Call call, int oldState, int newState) {
293 if (oldState == CallState.ACTIVE && newState == CallState.ON_HOLD) {
305 && oldState == CallState.CONNECTING && newState == CallState.DIALING) {
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorBaseFragment.java1207 RawContactDelta oldState, AccountType oldAccountType) { in setStateForNewContact() argument
1209 mState.add(createNewRawContactDelta(account, accountType, oldState, oldAccountType)); in setStateForNewContact()
1222 AccountType accountType, RawContactDelta oldState, AccountType oldAccountType) { in createNewRawContactDelta() argument
1232 if (oldState == null) { in createNewRawContactDelta()
1237 mContext, oldState, result, oldAccountType, accountType); in createNewRawContactDelta()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDockEventReceiver.java88 int oldState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, 0); in onReceive() local
103 oldState != BluetoothProfile.STATE_DISCONNECTING) { in onReceive()

123