Home
last modified time | relevance | path

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

123

/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConferenceBase.java56 public void onStateChanged(Conference conference, int oldState, int newState) {} in onStateChanged() argument
143 int oldState = getState(); in setConferenceOnHold() local
144 if (oldState == Connection.STATE_HOLDING) { in setConferenceOnHold()
148 notifyStateChanged(oldState, getState()); in setConferenceOnHold()
155 int oldState = getState(); in setConferenceOnDialing() local
156 if (oldState == Connection.STATE_DIALING) { in setConferenceOnDialing()
160 notifyStateChanged(oldState, getState()); in setConferenceOnDialing()
167 int oldState = getState(); in setConferenceOnRinging() local
168 if (oldState == Connection.STATE_RINGING) { in setConferenceOnRinging()
172 notifyStateChanged(oldState, getState()); in setConferenceOnRinging()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DBondStateMachineTest.java268 private void testSendIntentCase(int oldState, int newState, int expectedNewState, in testSendIntentCase() argument
273 mDeviceProperties.mBondState = oldState; in testSendIntentCase()
295 private void testSendIntentNoPendingDeviceWithUuid(int oldState, int newState, in testSendIntentNoPendingDeviceWithUuid() argument
300 testSendIntentNoPendingDevice(oldState, newState, expectedNewState, shouldBroadcast, in testSendIntentNoPendingDeviceWithUuid()
304 private void testSendIntentPendingDeviceWithUuid(int oldState, int newState, in testSendIntentPendingDeviceWithUuid() argument
309 testSendIntentPendingDevice(oldState, newState, expectedNewState, shouldBroadcast, in testSendIntentPendingDeviceWithUuid()
313 private void testSendIntentPendingDevice(int oldState, int newState, int expectedNewState, in testSendIntentPendingDevice() argument
319 testSendIntentCase(oldState, newState, expectedNewState, shouldBroadcast, in testSendIntentPendingDevice()
326 testSendIntentCase(oldState, newState, expectedNewState, shouldBroadcast, in testSendIntentPendingDevice()
330 private void testSendIntentNoPendingDevice(int oldState, int newState, int expectedNewState, in testSendIntentNoPendingDevice() argument
[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/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java832 RawContactDelta oldState = new RawContactDelta(); in testMigrateNameFromGoogleToExchange() local
843 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateNameFromGoogleToExchange()
846 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateNameFromGoogleToExchange()
866 RawContactDelta oldState = new RawContactDelta(); in testMigratePostalFromGoogleToExchange() local
870 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigratePostalFromGoogleToExchange()
873 RawContactModifier.migratePostal(oldState, newState, kind); in testMigratePostalFromGoogleToExchange()
889 RawContactDelta oldState = new RawContactDelta(); in testMigratePostalFromExchangeToGoogle() local
897 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigratePostalFromExchangeToGoogle()
900 RawContactModifier.migratePostal(oldState, newState, kind); in testMigratePostalFromExchangeToGoogle()
931 RawContactDelta oldState = new RawContactDelta(); in testMigrateEventCommon() local
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DMultiStateCallback.java54 int oldState = mState; in setState() local
70 notifyStateChangeHandlers(oldState); in setState()
83 int oldState = mState; in clearState() local
85 notifyStateChangeHandlers(oldState); in clearState()
88 private void notifyStateChangeHandlers(int oldState) { in notifyStateChangeHandlers() argument
92 boolean wasOn = (state & oldState) == state; in notifyStateChangeHandlers()
/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/Contacts/src/com/android/contacts/model/
DRawContactModifier.java961 RawContactDelta oldState, RawContactDelta newState, in migrateStateForNewContact() argument
970 migrateStructuredName(context, oldState, newState, kind); in migrateStateForNewContact()
972 List<ValuesDelta> entryList = oldState.getMimeEntries(mimeType); in migrateStateForNewContact()
994 migrateStructuredName(context, oldState, newState, kind); in migrateStateForNewContact()
996 migratePostal(oldState, newState, kind); in migrateStateForNewContact()
998 migrateEvent(oldState, newState, kind, null /* default Year */); in migrateStateForNewContact()
1000 migrateGenericWithoutTypeColumn(oldState, newState, kind); in migrateStateForNewContact()
1002 migrateGenericWithTypeColumn(oldState, newState, kind); in migrateStateForNewContact()
1033 Context context, RawContactDelta oldState, RawContactDelta newState, in migrateStructuredName() argument
1036 oldState.getPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE).getAfter(); in migrateStructuredName()
[all …]
/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/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java362 int oldState = BluetoothDevice.BOND_NONE; in sendIntent() local
370 oldState = devProp.getBondState(); in sendIntent()
374 if (oldState == BluetoothDevice.BOND_BONDED) { in sendIntent()
378 oldState = BluetoothDevice.BOND_BONDING; in sendIntent()
381 throw new IllegalArgumentException("Invalid old state " + oldState); in sendIntent()
384 if (oldState == newState) { in sendIntent()
405 if (oldState == BluetoothDevice.BOND_NONE) { in sendIntent()
416 intent.putExtra(BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, oldState); in sendIntent()
421 infoLog("Bond State Change Intent:" + device + " " + state2str(oldState) + " => " in sendIntent()
DSilenceDeviceManager.java250 boolean oldState = getSilenceMode(device); in handleSilenceDeviceStateChanged()
251 if (oldState == state) { in handleSilenceDeviceStateChanged()
255 if (oldState) { in handleSilenceDeviceStateChanged()
273 Log.i(TAG, "Silence mode change " + device.getAddress() + ": " + oldState + " -> " in handleSilenceDeviceStateChanged()
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestTvInputService.java312 ChannelState oldState; in run() local
318 oldState = mCurrentState; in run()
323 if (oldState == null || newState.getVersion() > oldState.getVersion()) { in run()
354 update(oldState, newState, currentChannel); in run()
363 ChannelState oldState, ChannelState newState, ChannelInfo currentChannel) { in update() argument
366 if (oldState == null || oldState.getTuneStatus() != newState.getTuneStatus()) { in update()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioManager.java105 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument
111 CallState.toString(oldState), CallState.toString(newState)); in onCallStateChanged()
121 if (shouldPlayDisconnectTone(oldState, newState)) { in onCallStateChanged()
125 onCallLeavingState(call, oldState); in onCallStateChanged()
869 private boolean shouldPlayDisconnectTone(int oldState, int newState) { in shouldPlayDisconnectTone() argument
873 return oldState == CallState.ACTIVE || in shouldPlayDisconnectTone()
874 oldState == CallState.DIALING || in shouldPlayDisconnectTone()
875 oldState == CallState.ON_HOLD; in shouldPlayDisconnectTone()
DConnectionServiceFocusManager.java206 public void onCallStateChanged(Call call, int oldState, int newState) {
212 .obtainMessage(MSG_CALL_STATE_CHANGED, oldState, newState,
467 private void handleCallStateChanged(CallFocus call, int oldState, int newState) { in handleCallStateChanged() argument
471 oldState, in handleCallStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpBipClient.java100 void onConnectionStateChanged(int oldState, int newState); in onConnectionStateChanged() argument
234 int oldState = -1; in setConnectionState() local
236 oldState = mState; in setConnectionState()
239 if (oldState != state) { in setConnectionState()
240 mCallback.onConnectionStateChanged(oldState, mState); in setConnectionState()
/packages/apps/Dialer/java/com/android/incallui/
DMotorolaInCallUiNotifier.java60 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
61 if (oldState != null in onStateChange()
62 && oldState.isConnectingOrConnected() in onStateChange()
DVideoPauseController.java132 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
217 public void onIncomingCall(InCallState oldState, InCallState newState, DialerCall call) { in onIncomingCall() argument
221 oldState, in onIncomingCall()
DCallCardPresenter.java243 public void onIncomingCall(InCallState oldState, InCallState newState, DialerCall call) { in onIncomingCall() argument
245 onStateChange(oldState, newState, CallList.getInstance()); in onIncomingCall()
249 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
251 LogUtil.v("CallCardPresenter.onStateChange", "oldState: %s, newState: %s", oldState, newState); in onStateChange()
357 maybeSendAccessibilityEvent(oldState, newState, primaryChanged); in onStateChange()
1105 InCallState oldState, final InCallState newState, boolean primaryChanged) { in maybeSendAccessibilityEvent() argument
1117 if ((oldState != InCallState.OUTGOING && newState == InCallState.OUTGOING) in maybeSendAccessibilityEvent()
1118 || (oldState != InCallState.INCOMING && newState == InCallState.INCOMING) in maybeSendAccessibilityEvent()
DInCallPresenter.java838 InCallState oldState = inCallState; in onCallListChange() local
841 "onCallListChange oldState= " + oldState + " newState=" + newState); in onCallListChange()
865 "Phone switching state: " + oldState + " -> " + newState); in onCallListChange()
889 listener.onStateChange(oldState, inCallState, callList); in onCallListChange()
954 InCallState oldState = inCallState; in onIncomingCall() local
957 "InCallPresenter.onIncomingCall", "Phone switching state: " + oldState + " -> " + newState); in onIncomingCall()
962 listener.onIncomingCall(oldState, inCallState, call); in onIncomingCall()
1949 void onStateChange(InCallState oldState, InCallState newState, CallList callList); in onStateChange() argument
1954 void onIncomingCall(InCallState oldState, InCallState newState, DialerCall call); in onIncomingCall() argument
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DAudioProcessingNotification.java50 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument
51 if (newState == CallState.AUDIO_PROCESSING && oldState != CallState.AUDIO_PROCESSING) { in onCallStateChanged()
53 } else if (oldState == CallState.AUDIO_PROCESSING in onCallStateChanged()
/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/providers/MediaProvider/src/com/android/providers/media/
DMtpService.java64 public void onStorageStateChanged(String path, String oldState, String newState) {
66 Log.d(TAG, "onStorageStateChanged " + path + " " + oldState + " -> " + newState);
78 } else if (Environment.MEDIA_MOUNTED.equals(oldState)) {
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
DBackupAgent.java76 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument
79 super.onBackup(oldState, data, newState); in onBackup()
/packages/apps/Settings/src/com/android/settings/backup/
DSettingsBackupHelper.java57 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
61 if (getVersionCode(oldState) != VERSION_CODE) { in performBackup()

123