/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | BondStateMachine.java | 143 int newState = msg.arg1; in processMessage() local 145 if (newState == BluetoothDevice.BOND_BONDING) { in processMessage() 146 sendIntent(dev, newState, 0); in processMessage() 148 } else if (newState == BluetoothDevice.BOND_NONE) { in processMessage() 150 sendIntent(dev, newState, 0); in processMessage() 153 + state2str(newState)); in processMessage() 208 int newState = msg.arg1; in processMessage() local 211 if (newState == BluetoothDevice.BOND_NONE in processMessage() 215 sendIntent(dev, newState, reason); in processMessage() 216 if (newState != BluetoothDevice.BOND_BONDING) { in processMessage() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | BondStateMachineTest.java | 268 private void testSendIntentCase(int oldState, int newState, int expectedNewState, in testSendIntentCase() argument 276 mBondStateMachine.sendIntent(mDevice, newState, TEST_BOND_REASON); 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/apps/Dialer/java/com/android/incallui/ |
D | InCallPresenter.java | 837 InCallState newState = getPotentialStateFromCallList(callList); in onCallListChange() local 841 "onCallListChange oldState= " + oldState + " newState=" + newState); in onCallListChange() 849 if (newState == InCallState.INCOMING in onCallListChange() 858 newState = startOrFinishUi(newState); in onCallListChange() 860 "InCallPresenter.onCallListChange", "onCallListChange newState changed to " + newState); in onCallListChange() 865 "Phone switching state: " + oldState + " -> " + newState); in onCallListChange() 866 inCallState = newState; in onCallListChange() 870 if (newState == InCallState.INCOMING) { in onCallListChange() 872 } else if (newState == InCallState.PENDING_OUTGOING || newState == InCallState.OUTGOING) { in onCallListChange() 877 } else if (newState == InCallState.INCALL) { in onCallListChange() [all …]
|
D | VideoPauseController.java | 132 public void onStateChange(InCallState oldState, InCallState newState, CallList callList) { in onStateChange() argument 134 if (newState == InCallState.INCOMING) { in onStateChange() 136 } else if (newState == InCallState.WAITING_FOR_ACCOUNT) { in onStateChange() 138 } else if (newState == InCallState.PENDING_OUTGOING) { in onStateChange() 140 } else if (newState == InCallState.OUTGOING) { in onStateChange() 217 public void onIncomingCall(InCallState oldState, InCallState newState, DialerCall call) { in onIncomingCall() argument 222 newState, in onIncomingCall()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarPowerManagementService.java | 273 CpmsState newState = new CpmsState(apState, carPowerStateListenerState); in onApPowerStateChange() local 276 mPendingPowerStates.addFirst(newState); in onApPowerStateChange() 504 private void handleShutdownPrepare(CpmsState newState) { in handleShutdownPrepare() argument 511 || !newState.mCanSleep; in handleShutdownPrepare() 513 if (newState.mCanPostpone) { in handleShutdownPrepare() 624 private void sendPowerManagerEvent(int newState) { in sendPowerManagerEvent() argument 626 notifyListeners(mPowerManagerListeners, newState); in sendPowerManagerEvent() 630 boolean allowCompletion = (newState == CarPowerStateListener.SHUTDOWN_PREPARE); in sendPowerManagerEvent() 653 notifyListeners(completingListeners, newState); in sendPowerManagerEvent() 661 private void notifyListeners(PowerManagerCallbackList listenerList, int newState) { in notifyListeners() argument [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmTimeClickHandler.kt | 72 fun setAlarmEnabled(alarm: Alarm, newState: Boolean) { in setAlarmEnabled() 73 if (newState != alarm.enabled) { in setAlarmEnabled() 74 alarm.enabled = newState in setAlarmEnabled() 75 Events.sendAlarmEvent(if (newState) R.string.action_enable else R.string.action_disable, in setAlarmEnabled() 78 LOGGER.d("Updating alarm enabled state to $newState") in setAlarmEnabled() 82 fun setAlarmVibrationEnabled(alarm: Alarm, newState: Boolean) { in setAlarmVibrationEnabled() 83 if (newState != alarm.vibrate) { in setAlarmVibrationEnabled() 84 alarm.vibrate = newState in setAlarmVibrationEnabled() 87 LOGGER.d("Updating vibrate state to $newState") in setAlarmVibrationEnabled() 89 if (newState) { in setAlarmVibrationEnabled()
|
D | AlarmTimeClickHandler.java | 78 public void setAlarmEnabled(Alarm alarm, boolean newState) { in setAlarmEnabled() argument 79 if (newState != alarm.enabled) { in setAlarmEnabled() 80 alarm.enabled = newState; in setAlarmEnabled() 81 Events.sendAlarmEvent(newState ? R.string.action_enable : R.string.action_disable, in setAlarmEnabled() 84 LOGGER.d("Updating alarm enabled state to " + newState); in setAlarmEnabled() 88 public void setAlarmVibrationEnabled(Alarm alarm, boolean newState) { in setAlarmVibrationEnabled() argument 89 if (newState != alarm.vibrate) { in setAlarmVibrationEnabled() 90 alarm.vibrate = newState; in setAlarmVibrationEnabled() 93 LOGGER.d("Updating vibrate state to " + newState); in setAlarmVibrationEnabled() 95 if (newState) { in setAlarmVibrationEnabled()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/stateful/ |
D | StateMachineImpl.java | 51 public void jumpToState(@Nonnull State newState) { in jumpToState() argument 54 if (newState.equals(mState)) { in jumpToState() 59 Log.d(TAG, "Change state : " + mState + " => " + newState); in jumpToState() 61 mState = newState; in jumpToState() 108 Optional<State> newState = eventHandler.processEvent(event); in processEvent() local 109 if (newState.isPresent()) { in processEvent() 110 jumpToState(newState.get()); in processEvent()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CdmaPhoneCallState.java | 92 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/TV/tests/input/src/com/android/tv/testinput/ |
D | TestTvInputService.java | 313 ChannelState newState = null; in run() local 322 newState = mBackend.getChannelState(currentChannel.originalNetworkId); in run() 323 if (oldState == null || newState.getVersion() > oldState.getVersion()) { in run() 324 mCurrentState = newState; in run() 354 update(oldState, newState, currentChannel); in run() 363 ChannelState oldState, ChannelState newState, ChannelInfo currentChannel) { in update() argument 364 Log.i(TAG, "Updating channel " + currentChannel.number + " state to " + newState); in update() 365 notifyTracksChanged(newState.getTrackInfoList()); in update() 366 if (oldState == null || oldState.getTuneStatus() != newState.getTuneStatus()) { in update() 367 if (newState.getTuneStatus() == ChannelState.TUNE_STATUS_VIDEO_AVAILABLE) { in update() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationActivityUiState.java | 33 void onConversationContactPickerUiStateChanged(int oldState, int newState, boolean animate); in onConversationContactPickerUiStateChanged() argument 149 int newState = STATE_CONVERSATION_ONLY; in onGetOrCreateConversation() local 151 newState = STATE_HYBRID_WITH_CONVERSATION_AND_CHIPS_VIEW; in onGetOrCreateConversation() 154 newState = STATE_CONVERSATION_ONLY; in onGetOrCreateConversation() 161 performUiStateUpdate(newState, true); in onGetOrCreateConversation() 221 final int oldState, final int newState, final boolean animate) { in notifyOnOverallUiStateChanged() argument 231 mHost.onConversationContactPickerUiStateChanged(oldState, newState, animate); in notifyOnOverallUiStateChanged()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactModifierTests.java | 845 RawContactDelta newState = new RawContactDelta(); in testMigrateNameFromGoogleToExchange() local 846 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateNameFromGoogleToExchange() 847 List<ValuesDelta> list = newState.getMimeEntries(StructuredName.CONTENT_ITEM_TYPE); in testMigrateNameFromGoogleToExchange() 872 RawContactDelta newState = new RawContactDelta(); in testMigratePostalFromGoogleToExchange() local 873 RawContactModifier.migratePostal(oldState, newState, kind); in testMigratePostalFromGoogleToExchange() 875 List<ValuesDelta> list = newState.getMimeEntries(StructuredPostal.CONTENT_ITEM_TYPE); in testMigratePostalFromGoogleToExchange() 899 RawContactDelta newState = new RawContactDelta(); in testMigratePostalFromExchangeToGoogle() local 900 RawContactModifier.migratePostal(oldState, newState, kind); in testMigratePostalFromExchangeToGoogle() 902 List<ValuesDelta> list = newState.getMimeEntries(StructuredPostal.CONTENT_ITEM_TYPE); in testMigratePostalFromExchangeToGoogle() 938 RawContactDelta newState = new RawContactDelta(); in testMigrateEventCommon() local [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/utils/ |
D | SimpleStateMachine.java | 64 protected void transitionTo(SimpleState newState) { in transitionTo() argument 65 if (newState == null) { in transitionTo() 69 mState = newState; in transitionTo() 81 protected R transitionAndProcess(SimpleState newState, T msg) { in transitionAndProcess() argument 82 transitionTo(newState); in transitionAndProcess()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ActionMonitor.java | 242 final int newState) { in updateState() argument 247 throw new IllegalStateException("On updateState to " + newState + " was " + mState in updateState() 250 if (newState != mState) { in updateState() 251 mState = newState; in updateState() 256 listener.onActionStateChanged(action, newState); in updateState() 267 final int newState) { in setState() argument 269 int newMonitorState = newState; in setState() 274 monitor.updateState(action, expectedOldState, newState); in setState()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/ |
D | UserProvisioningStateHelper.java | 87 Integer newState = null; in markUserProvisioningStateInitiallyDone() local 101 newState = STATE_USER_PROFILE_COMPLETE; in markUserProvisioningStateInitiallyDone() 109 newState = STATE_USER_SETUP_COMPLETE; in markUserProvisioningStateInitiallyDone() 112 newState = STATE_USER_SETUP_INCOMPLETE; in markUserProvisioningStateInitiallyDone() 115 if (newState != null) { in markUserProvisioningStateInitiallyDone() 116 setUserProvisioningState(newState, mMyUserId); in markUserProvisioningStateInitiallyDone()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactModifier.java | 961 RawContactDelta oldState, RawContactDelta newState, in migrateStateForNewContact() argument 970 migrateStructuredName(context, oldState, newState, kind); in migrateStateForNewContact() 977 newState.addEntry(ValuesDelta.fromAfter(values)); 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() 1014 private static ArrayList<ValuesDelta> ensureEntryMaxSize(RawContactDelta newState, in ensureEntryMaxSize() argument 1033 Context context, RawContactDelta oldState, RawContactDelta newState, in migrateStructuredName() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DictionaryListInterfaceState.java | 56 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/Car/Radio/src/com/android/car/radio/audio/ |
D | AudioStreamController.java | 95 void onPlaybackStateChanged(int newState); in onPlaybackStateChanged() argument 171 private void notifyPlaybackStateLocked(int newState) { in notifyPlaybackStateLocked() argument 172 if (mCurrentPlaybackState == newState) return; in notifyPlaybackStateLocked() 173 mCurrentPlaybackState = newState; in notifyPlaybackStateLocked() 174 Log.v(TAG, "Playback state changed to " + newState); in notifyPlaybackStateLocked() 175 mCallback.onPlaybackStateChanged(newState); in notifyPlaybackStateLocked()
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/ |
D | BlePeripheralManager.java | 305 int newState) { 306 logd(TAG, "BLE Connection State Change: " + newState); 307 switch (newState) { 320 + newState); 400 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { 401 logd(TAG, "Gatt Connection State Change: " + newState); 402 switch (newState) { 416 + newState);
|
/packages/services/Car/service/src/com/android/car/trust/ |
D | BleManager.java | 300 int newState) { 302 Log.d(TAG, "BLE Connection State Change: " + newState); 304 switch (newState) { 314 + newState); 378 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { 380 Log.d(TAG, "Gatt Connection State Change: " + newState); 382 switch (newState) { 398 + newState);
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | BaseDvrDataManager.java | 253 public void changeState(ScheduledRecording scheduledRecording, @RecordingState int newState) { in changeState() argument 254 if (scheduledRecording.getState() != newState) { in changeState() 256 ScheduledRecording.buildFrom(scheduledRecording).setState(newState).build()); in changeState() 262 ScheduledRecording scheduledRecording, @RecordingState int newState, int reason) { in changeState() argument 263 if (scheduledRecording.getState() != newState) { in changeState() 265 ScheduledRecording.buildFrom(scheduledRecording).setState(newState); in changeState() 266 if (newState == ScheduledRecording.STATE_RECORDING_FAILED) { in changeState()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | PredictionUiStateManager.java | 219 PredictionState newState = changed ? parseLastState() : in dispatchOnChange() local 221 if (changed && mAppsView != null && !canApplyPredictions(newState)) { in dispatchOnChange() 222 scheduleApplyPredictedApps(newState); in dispatchOnChange() 224 applyState(newState); in dispatchOnChange() 293 private boolean canApplyPredictions(PredictionState newState) { in canApplyPredictions() argument 306 if (mCurrentState.isEnabled != newState.isEnabled in canApplyPredictions() 307 || mCurrentState.apps.isEmpty() != newState.apps.isEmpty()) { in canApplyPredictions()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | ChangeWifiStateDetails.java | 88 private void setCanChangeWifiState(boolean newState) { in setCanChangeWifiState() argument 89 logSpecialPermissionChange(newState, mPackageName); in setCanChangeWifiState() 91 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanChangeWifiState() 95 protected void logSpecialPermissionChange(boolean newState, String packageName) { in logSpecialPermissionChange() argument 96 int logCategory = newState ? SettingsEnums.APP_SPECIAL_PERMISSION_SETTINGS_CHANGE_ALLOW in logSpecialPermissionChange()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | ChangeWifiStateDetails.java | 88 private void setCanChangeWifiState(boolean newState) { in setCanChangeWifiState() argument 89 logSpecialPermissionChange(newState, mPackageName); in setCanChangeWifiState() 91 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanChangeWifiState() 95 protected void logSpecialPermissionChange(boolean newState, String packageName) { in logSpecialPermissionChange() argument 96 int logCategory = newState ? SettingsEnums.APP_SPECIAL_PERMISSION_SETTINGS_CHANGE_ALLOW in logSpecialPermissionChange()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/ |
D | BackupAgent.java | 77 ParcelFileDescriptor newState) throws IOException { in onBackup() argument 79 super.onBackup(oldState, data, newState); in onBackup() 84 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore() argument 89 super.onRestore(data, appVersionCode, newState); in onRestore()
|