Home
last modified time | relevance | path

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

123

/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/tests/src/com/android/contacts/common/
DRawContactModifierTests.java840 RawContactDelta oldState = new RawContactDelta(); in testMigrateWithDisplayNameFromGoogleToExchange1() local
851 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateWithDisplayNameFromGoogleToExchange1()
854 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateWithDisplayNameFromGoogleToExchange1()
891 RawContactDelta oldState = new RawContactDelta(); in testMigrateWithDisplayNameFromGoogleToExchange2() local
895 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateWithDisplayNameFromGoogleToExchange2()
898 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateWithDisplayNameFromGoogleToExchange2()
933 RawContactDelta oldState = new RawContactDelta(); in testMigrateWithStructuredNameFromExchangeToGoogle() local
941 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateWithStructuredNameFromExchangeToGoogle()
944 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateWithStructuredNameFromExchangeToGoogle()
959 RawContactDelta oldState = new RawContactDelta(); in testMigratePostalFromGoogleToExchange() local
[all …]
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestTvInputService.java275 ChannelState oldState; in run() local
281 oldState = mCurrentState; in run()
286 if (oldState == null || newState.getVersion() > oldState.getVersion()) { in run()
297 update(oldState, newState, currentChannel); in run()
305 private void update(ChannelState oldState, ChannelState newState, in update() argument
309 if (oldState == null || oldState.getTuneStatus() != newState.getTuneStatus()) { in update()
/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/ContactsCommon/src/com/android/contacts/common/model/
DRawContactModifier.java963 RawContactDelta oldState, RawContactDelta newState, in migrateStateForNewContact() argument
972 migrateStructuredName(context, oldState, newState, kind); in migrateStateForNewContact()
974 List<ValuesDelta> entryList = oldState.getMimeEntries(mimeType); in migrateStateForNewContact()
996 migrateStructuredName(context, oldState, newState, kind); in migrateStateForNewContact()
998 migratePostal(oldState, newState, kind); in migrateStateForNewContact()
1000 migrateEvent(oldState, newState, kind, null /* default Year */); in migrateStateForNewContact()
1002 migrateGenericWithoutTypeColumn(oldState, newState, kind); in migrateStateForNewContact()
1004 migrateGenericWithTypeColumn(oldState, newState, kind); in migrateStateForNewContact()
1035 Context context, RawContactDelta oldState, RawContactDelta newState, in migrateStructuredName() argument
1038 oldState.getPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE).getAfter(); in migrateStructuredName()
[all …]
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DVideoPauseController.java140 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
141 log("onStateChange, OldState=" + oldState + " NewState=" + newState); in onStateChange()
220 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() argument
221 log("onIncomingCall, OldState=" + oldState + " NewState=" + newState + " Call=" + call); in onIncomingCall()
DInCallPresenter.java623 InCallState oldState = mInCallState; in onCallListChange() local
624 Log.d(this, "onCallListChange oldState= " + oldState + " newState=" + newState); in onCallListChange()
629 Log.i(this, "Phone switching state: " + oldState + " -> " + newState); in onCallListChange()
635 listener.onStateChange(oldState, mInCallState, callList); in onCallListChange()
653 InCallState oldState = mInCallState; in onIncomingCall() local
655 Log.i(this, "Phone switching state: " + oldState + " -> " + newState); in onIncomingCall()
659 listener.onIncomingCall(oldState, mInCallState, call); in onIncomingCall()
1856 public void onStateChange(InCallState oldState, InCallState newState, CallList callList); in onStateChange() argument
1860 public void onIncomingCall(InCallState oldState, InCallState newState, Call call); in onIncomingCall() argument
DCallCardPresenter.java208 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() argument
210 onStateChange(oldState, newState, CallList.getInstance()); in onIncomingCall()
214 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
241 (oldState == InCallState.INCOMING || newState == InCallState.INCOMING)) { in onStateChange()
338 maybeSendAccessibilityEvent(oldState, newState, primaryChanged); in onStateChange()
1081 private void maybeSendAccessibilityEvent(InCallState oldState, InCallState newState, in maybeSendAccessibilityEvent() argument
1093 if ((oldState != InCallState.OUTGOING && newState == InCallState.OUTGOING) in maybeSendAccessibilityEvent()
1094 || (oldState != InCallState.INCOMING && newState == InCallState.INCOMING) in maybeSendAccessibilityEvent()
DCallButtonPresenter.java98 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
111 if (oldState == InCallState.OUTGOING && mCall != null) { in onStateChange()
146 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() argument
147 onStateChange(oldState, newState, CallList.getInstance()); in onIncomingCall()
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/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/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java332 int oldState = BluetoothDevice.BOND_NONE; in sendIntent() local
334 oldState = devProp.getBondState(); in sendIntent()
336 if (oldState == newState) return; in sendIntent()
342 intent.putExtra(BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, oldState); in sendIntent()
347 infoLog("Bond State Change Intent:" + device + " OldState: " + oldState in sendIntent()
DAdapterState.java493 int oldState = adapterProperties.getState(); in notifyAdapterStateChange() local
495 infoLog("Bluetooth adapter state changed: " + oldState + "-> " + newState); in notifyAdapterStateChange()
496 adapterService.updateAdapterState(oldState, newState); in notifyAdapterStateChange()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpControllerService.java595 int oldState = msg.arg2; in handleMessage() local
598 (oldState == BluetoothProfile.STATE_DISCONNECTED)) { in handleMessage()
618 (oldState == BluetoothProfile.STATE_CONNECTED)) /* connection down */ in handleMessage()
627 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, oldState); in handleMessage()
817 int oldState = (mConnectedDevices.contains(device) ? BluetoothProfile.STATE_CONNECTED in onConnectionStateChanged() local
822 if (connected && oldState == BluetoothProfile.STATE_DISCONNECTED) { in onConnectionStateChanged()
831 oldState, device); in onConnectionStateChanged()
833 } else if (!connected && oldState == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
837 oldState, device); in onConnectionStateChanged()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRoutePeripheralAdapter.java47 public void onBluetoothStateChange(int oldState, int newState) { in onBluetoothStateChange() argument
48 switch (oldState) { in onBluetoothStateChange()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapPCEClient.java185 int oldState = getConnectionState(); in handleMessage() local
186 if (oldState != BluetoothProfile.STATE_DISCONNECTED) { in handleMessage()
204 int oldState = getConnectionState(); in handleMessage() local
208 onConnectionStateChanged(device, oldState, newState); in handleMessage()
/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/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()
DBluetoothPairingRequest.java114 int oldState = intent.getIntExtra(BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, in onReceive() local
116 if((oldState == BluetoothDevice.BOND_BONDING) && in onReceive()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherBackupHelper.java209 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
213 Journal in = readJournal(oldState); in performBackup()
288 private boolean isBackupCompatible(Journal oldState) { in isBackupCompatible() argument
290 DeviceProfieData oldProfile = oldState.profile; in isBackupCompatible()
1051 private Journal readJournal(ParcelFileDescriptor oldState) { in readJournal() argument
1053 if (oldState == null) { in readJournal()
1056 FileInputStream inStream = new FileInputStream(oldState.getFileDescriptor()); in readJournal()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorBaseFragment.java1208 RawContactDelta oldState, AccountType oldAccountType, boolean isUserProfile) { in setStateForNewContact() argument
1210 mState.add(createNewRawContactDelta(account, accountType, oldState, oldAccountType)); in setStateForNewContact()
1224 AccountType accountType, RawContactDelta oldState, AccountType oldAccountType) { in createNewRawContactDelta() argument
1234 if (oldState == null) { in createNewRawContactDelta()
1239 mContext, oldState, result, oldAccountType, accountType); in createNewRawContactDelta()
1359 RawContactDelta oldState, AccountWithDataSet oldAccount, in rebindEditorsForNewContact() argument
1374 setStateForNewContact(newAccount, newAccountType, oldState, oldAccountType, in rebindEditorsForNewContact()

123