Home
last modified time | relevance | path

Searched refs:newState (Results 1 – 25 of 84) sorted by relevance

1234

/packages/apps/InCallUI/src/com/android/incallui/
DInCallPresenter.java401 InCallState newState = getPotentialStateFromCallList(callList); in onCallListChange() local
403 newState = startOrFinishUi(newState); in onCallListChange()
406 Log.i(this, "Phone switching state: " + oldState + " -> " + newState); in onCallListChange()
407 mInCallState = newState; in onCallListChange()
429 InCallState newState = startOrFinishUi(InCallState.INCOMING); in onIncomingCall() local
432 Log.i(this, "Phone switching state: " + oldState + " -> " + newState); in onIncomingCall()
433 mInCallState = newState; in onIncomingCall()
462 InCallState newState = InCallState.NO_CALLS; in getPotentialStateFromCallList() local
465 return newState; in getPotentialStateFromCallList()
468 newState = InCallState.INCOMING; in getPotentialStateFromCallList()
[all …]
DVideoCallPresenter.java283 InCallPresenter.InCallState newState, Call call) { in onIncomingCall() argument
285 onStateChange(oldState, newState, CallList.getInstance()); in onIncomingCall()
296 InCallPresenter.InCallState newState, CallList callList) { in onStateChange() argument
302 if (newState == InCallPresenter.InCallState.NO_CALLS) { in onStateChange()
308 if (newState == InCallPresenter.InCallState.INCOMING) { in onStateChange()
310 } else if (newState == InCallPresenter.InCallState.OUTGOING) { in onStateChange()
312 } else if (newState == InCallPresenter.InCallState.INCALL) { in onStateChange()
DCallButtonPresenter.java75 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
78 if (newState == InCallState.OUTGOING) { in onStateChange()
80 } else if (newState == InCallState.INCALL) { in onStateChange()
94 } else if (newState == InCallState.INCOMING) { in onStateChange()
102 updateUi(newState, mCall); in onStateChange()
122 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() argument
123 onStateChange(oldState, newState, CallList.getInstance()); in onIncomingCall()
DCallCardPresenter.java154 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() argument
156 onStateChange(oldState, newState, CallList.getInstance()); in onIncomingCall()
160 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
161 Log.d(this, "onStateChange() " + newState); in onStateChange()
170 if (newState == InCallState.INCOMING) { in onStateChange()
172 } else if (newState == InCallState.PENDING_OUTGOING || newState == InCallState.OUTGOING) { in onStateChange()
181 } else if (newState == InCallState.INCALL) { in onStateChange()
DConferenceManagerPresenter.java58 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument
60 Log.v(this, "onStateChange" + newState); in onStateChange()
61 if (newState == InCallState.INCALL) { in onStateChange()
97 public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { in onIncomingCall() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java119 int newState = msg.arg1; in processMessage() local
121 if (newState == BluetoothDevice.BOND_BONDING) in processMessage()
123 sendIntent(dev, newState, 0); in processMessage()
128 Log.e(TAG, "In stable state, received invalid newState: " + newState); in processMessage()
178 int newState = msg.arg1; in processMessage() local
180 sendIntent(dev, newState, reason); in processMessage()
181 if(newState != BluetoothDevice.BOND_BONDING ) in processMessage()
193 if (newState == BluetoothDevice.BOND_NONE) in processMessage()
202 else if (newState == BluetoothDevice.BOND_BONDED) in processMessage()
305 private void sendIntent(BluetoothDevice device, int newState, int reason) { in sendIntent() argument
[all …]
DAdapterState.java359 private void notifyAdapterStateChange(int newState) { in notifyAdapterStateChange() argument
363 Log.e(TAG,"notifyAdapterStateChange after cleanup:" + newState); in notifyAdapterStateChange()
368 adapterProperties.setState(newState); in notifyAdapterStateChange()
369 infoLog("Bluetooth adapter state changed: " + oldState + "-> " + newState); in notifyAdapterStateChange()
370 adapterService.updateAdapterState(oldState, newState); in notifyAdapterStateChange()
DJniCallbacks.java65 void bondStateChangeCallback(int status, byte[] address, int newState) { in bondStateChangeCallback() argument
66 mBondStateMachine.bondStateChangeCallback(status, address, newState); in bondStateChangeCallback()
69 void aclStateChangeCallback(int status, byte[] address, int newState) { in aclStateChangeCallback() argument
70 mRemoteDevices.aclStateChangeCallback(status, address, newState); in aclStateChangeCallback()
DAdapterProperties.java432 private void updateProfileConnectionState(int profile, int newState, int oldState) { in updateProfileConnectionState() argument
439 int newHashState = newState; in updateProfileConnectionState()
457 if (newState == currHashState) { in updateProfileConnectionState()
459 } else if (newState == BluetoothProfile.STATE_CONNECTED || in updateProfileConnectionState()
460 (newState == BluetoothProfile.STATE_CONNECTING && in updateProfileConnectionState()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactModifierTests.java795 RawContactDelta newState = new RawContactDelta(); in testMigrateWithDisplayNameFromGoogleToExchange1() local
796 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateWithDisplayNameFromGoogleToExchange1()
797 List<ValuesDelta> list = newState.getMimeEntries(StructuredName.CONTENT_ITEM_TYPE); in testMigrateWithDisplayNameFromGoogleToExchange1()
839 RawContactDelta newState = new RawContactDelta(); in testMigrateWithDisplayNameFromGoogleToExchange2() local
840 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateWithDisplayNameFromGoogleToExchange2()
841 List<ValuesDelta> list = newState.getMimeEntries(StructuredName.CONTENT_ITEM_TYPE); in testMigrateWithDisplayNameFromGoogleToExchange2()
885 RawContactDelta newState = new RawContactDelta(); in testMigrateWithStructuredNameFromExchangeToGoogle() local
886 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateWithStructuredNameFromExchangeToGoogle()
888 List<ValuesDelta> list = newState.getMimeEntries(StructuredName.CONTENT_ITEM_TYPE); in testMigrateWithStructuredNameFromExchangeToGoogle()
907 RawContactDelta newState = new RawContactDelta(); in testMigratePostalFromGoogleToExchange() local
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactModifier.java970 RawContactDelta oldState, RawContactDelta newState, in migrateStateForNewContact() argument
979 migrateStructuredName(context, oldState, newState, kind); in migrateStateForNewContact()
986 newState.addEntry(ValuesDelta.fromAfter(values)); in migrateStateForNewContact()
1003 migrateStructuredName(context, oldState, newState, kind); in migrateStateForNewContact()
1005 migratePostal(oldState, newState, kind); in migrateStateForNewContact()
1007 migrateEvent(oldState, newState, kind, null /* default Year */); in migrateStateForNewContact()
1009 migrateGenericWithoutTypeColumn(oldState, newState, kind); in migrateStateForNewContact()
1011 migrateGenericWithTypeColumn(oldState, newState, kind); in migrateStateForNewContact()
1023 private static ArrayList<ValuesDelta> ensureEntryMaxSize(RawContactDelta newState, in ensureEntryMaxSize() argument
1042 Context context, RawContactDelta oldState, RawContactDelta newState, in migrateStructuredName() argument
[all …]
/packages/services/Telephony/src/com/android/phone/
DCdmaPhoneCallState.java92 public void setCurrentCallState(PhoneCallState newState) { in setCurrentCallState() argument
94 mCurrentCallState = newState; in setCurrentCallState()
121 public void setThreeWayCallOrigState(boolean newState) { in setThreeWayCallOrigState() argument
122 mThreeWayCallOrigStateDialing = newState; in setThreeWayCallOrigState()
135 public void setAddCallMenuStateAfterCallWaiting(boolean newState) { in setAddCallMenuStateAfterCallWaiting() argument
136 mAddCallMenuStateAfterCW = newState; in setAddCallMenuStateAfterCallWaiting()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java59 int newState = serviceState.getState(); in onReceiveWithPrivilege() local
60 if (newState != mServiceState) { in onReceiveWithPrivilege()
61 Log.d(TAG, "Service state changed! " + newState + " Full: " + serviceState + in onReceiveWithPrivilege()
63 mServiceState = newState; in onReceiveWithPrivilege()
64 if (((newState == ServiceState.STATE_IN_SERVICE) || in onReceiveWithPrivilege()
65 (newState == ServiceState.STATE_EMERGENCY_ONLY)) && in onReceiveWithPrivilege()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DDrawIdler.java29 void onStateChanged(DrawIdler idler, int newState); in onStateChanged() argument
57 private void setState(int newState) { in setState() argument
58 if (mState == newState) { in setState()
61 mState = newState; in setState()
63 mListener.onStateChanged(this, newState); in setState()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryListInterfaceState.java56 final State newState; in setOpen() local
58 newState = null == state ? new State() : state; in setOpen()
59 newState.mOpen = true; in setOpen()
60 newState.mStatus = status; in setOpen()
61 mWordlistToState.put(wordlistId, newState); in setOpen()
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectSyncedCalendarsMultiAccountAdapter.java198 boolean newState; in onClick()
202 newState = !mCalendarChanges.get(id); in onClick()
205 newState = !initialState; in onClick()
208 if (newState == initialState) { in onClick()
211 mCalendarChanges.put(id, newState); in onClick()
214 ((CheckBox) v.getTag(TAG_ID_SYNC_CHECKBOX)).setChecked(newState); in onClick()
215 setText(v, R.id.status, newState ? mSyncedText : mNotSyncedText); in onClick()
/packages/apps/Settings/src/com/android/settings/widget/
DSettingsAppWidgetProvider.java136 boolean newState = false; in toggleState()
139 newState = false; in toggleState()
142 newState = true; in toggleState()
146 newState = !mIntendedState; in toggleState()
150 mIntendedState = newState; in toggleState()
159 requestStateChange(context, newState); in toggleState()
262 protected final void setCurrentState(Context context, int newState) { in setCurrentState() argument
264 switch (newState) { in setCurrentState()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnection.java211 Call.State newState = mOriginalConnection.getState(); in updateState() local
212 if (VERBOSE) log("updateState, " + mOriginalConnectionState + " -> " + newState); in updateState()
213 if (force || mOriginalConnectionState != newState) { in updateState()
214 mOriginalConnectionState = newState; in updateState()
215 switch (newState) { in updateState()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidService.java597 private void broadcastConnectionState(BluetoothDevice device, int newState) { in broadcastConnectionState() argument
601 if (prevState == newState) { in broadcastConnectionState()
602 Log.w(TAG, "no state change: " + newState); in broadcastConnectionState()
605 mInputDevices.put(device, newState); in broadcastConnectionState()
610 log("Connection state " + device + ": " + prevState + "->" + newState); in broadcastConnectionState()
612 newState, prevState); in broadcastConnectionState()
615 intent.putExtra(BluetoothProfile.EXTRA_STATE, newState); in broadcastConnectionState()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java80 ParcelFileDescriptor newState) throws IOException { in onBackup() argument
90 writeNewChecksums(stateChecksums, newState); in onBackup()
95 ParcelFileDescriptor newState) throws IOException { in onRestore() argument
124 private void writeNewChecksums(long[] checksums, ParcelFileDescriptor newState) in writeNewChecksums() argument
127 new FileOutputStream(newState.getFileDescriptor())); in writeNewChecksums()
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java255 int newState; in handleMessage() local
256 newState = convertHalChannelState(channelStateEvent.mState); in handleMessage()
257 if (newState == BluetoothHealth.STATE_CHANNEL_DISCONNECTED && in handleMessage()
270 newState = convertHalChannelState(channelStateEvent.mState); in handleMessage()
271 if (newState == BluetoothHealth.STATE_CHANNEL_CONNECTED) { in handleMessage()
283 callHealthChannelCallback(chan.mConfig, chan.mDevice, newState, in handleMessage()
285 chan.mState = newState; in handleMessage()
/packages/services/Telephony/src/com/android/services/telephony/
DConferenceParticipantConnection.java63 public void updateState(int newState) { in updateState() argument
65 Connection.stateToString(newState)); in updateState()
66 if (newState == getState()) { in updateState()
70 switch (newState) { in updateState()
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneStateBroadcaster.java44 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument
45 if ((newState == CallState.DIALING || newState == CallState.ACTIVE in onCallStateChanged()
46 || newState == CallState.ON_HOLD) && !CallsManager.getInstance().hasRingingCall()) { in onCallStateChanged()
/packages/apps/Nfc/nci/jni/
DPowerSwitch.cpp222 bool PowerSwitch::setScreenOffPowerState (ScreenOffPowerState newState) in setScreenOffPowerState() argument
225 screenOffPowerStateToString(newState), newState); in setScreenOffPowerState()
228 mDesiredScreenOffPowerState = (int) newState; in setScreenOffPowerState()
/packages/apps/Browser/src/com/android/browser/
DBrowserBackupAgent.java61 ParcelFileDescriptor newState) throws IOException { in onBackup() argument
82 writeBackupState(savedFileSize, savedCrc, newState); in onBackup()
92 ParcelFileDescriptor newState) throws IOException { in onRestore() argument
157 writeBackupState(tmpfile.length(), crc, newState); in onRestore() local

1234