/packages/modules/StatsD/statsd/src/state/ |
D | StateTracker.cpp | 38 FieldValue newState; in onLogEvent() local 39 if (!getStateFieldValueFromLogEvent(event, &newState)) { in onLogEvent() 45 mField.setField(newState.mField.getField()); in onLogEvent() 47 if (newState.mValue.getType() != INT) { in onLogEvent() 49 newState.mValue.getType()); in onLogEvent() 61 const bool nested = newState.mAnnotations.isNested(); in onLogEvent() 63 updateStateForPrimaryKey(eventTimeNs, primaryKey, newState, nested, stateValueInfo); in onLogEvent() 87 void StateTracker::handleReset(const int64_t eventTimeNs, const FieldValue& newState) { in handleReset() argument 90 updateStateForPrimaryKey(eventTimeNs, primaryKey, newState, in handleReset() 114 const FieldValue& newState, const bool nested, in updateStateForPrimaryKey() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | BondStateMachine.java | 156 int newState = msg.arg1; in processMessage() local 158 if (newState == BluetoothDevice.BOND_BONDING) { in processMessage() 159 sendIntent(dev, newState, 0); in processMessage() 161 } else if (newState == BluetoothDevice.BOND_NONE) { in processMessage() 163 sendIntent(dev, newState, 0); in processMessage() 166 + state2str(newState)); in processMessage() 222 int newState = msg.arg1; in processMessage() local 225 if (newState == BluetoothDevice.BOND_NONE in processMessage() 229 sendIntent(dev, newState, reason); in processMessage() 230 if (newState != BluetoothDevice.BOND_BONDING) { in processMessage() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | BondStateMachineTest.java | 270 private void testSendIntentCase(int oldState, int newState, int expectedNewState, in testSendIntentCase() argument 278 mBondStateMachine.sendIntent(mDevice, newState, TEST_BOND_REASON); in testSendIntentCase() 297 private void testSendIntentNoPendingDeviceWithUuid(int oldState, int newState, in testSendIntentNoPendingDeviceWithUuid() argument 302 testSendIntentNoPendingDevice(oldState, newState, expectedNewState, shouldBroadcast, in testSendIntentNoPendingDeviceWithUuid() 306 private void testSendIntentPendingDeviceWithUuid(int oldState, int newState, in testSendIntentPendingDeviceWithUuid() argument 311 testSendIntentPendingDevice(oldState, newState, expectedNewState, shouldBroadcast, in testSendIntentPendingDeviceWithUuid() 315 private void testSendIntentPendingDevice(int oldState, int newState, int expectedNewState, in testSendIntentPendingDevice() argument 321 testSendIntentCase(oldState, newState, expectedNewState, shouldBroadcast, in testSendIntentPendingDevice() 328 testSendIntentCase(oldState, newState, expectedNewState, shouldBroadcast, in testSendIntentPendingDevice() 332 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/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/ |
D | UserProvisioningStateHelper.java | 88 Integer newState = null; in markUserProvisioningStateInitiallyDone() local 99 newState = STATE_USER_PROFILE_FINALIZED; in markUserProvisioningStateInitiallyDone() 105 newState = STATE_USER_PROFILE_COMPLETE; in markUserProvisioningStateInitiallyDone() 112 newState = STATE_USER_SETUP_COMPLETE; in markUserProvisioningStateInitiallyDone() 118 newState = STATE_USER_SETUP_COMPLETE; in markUserProvisioningStateInitiallyDone() 121 if (newState != null) { in markUserProvisioningStateInitiallyDone() 122 setUserProvisioningState(newState, mMyUserId); in markUserProvisioningStateInitiallyDone() 123 maybeSetHeadlessSystemUserProvisioningState(newState); in markUserProvisioningStateInitiallyDone() 183 private void maybeSetHeadlessSystemUserProvisioningState(int newState) { in maybeSetHeadlessSystemUserProvisioningState() argument 187 setUserProvisioningState(newState, UserHandle.USER_SYSTEM); in maybeSetHeadlessSystemUserProvisioningState()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmTimeClickHandler.kt | 71 fun setAlarmEnabled(alarm: Alarm, newState: Boolean) { in setAlarmEnabled() 72 if (newState != alarm.enabled) { in setAlarmEnabled() 73 alarm.enabled = newState in setAlarmEnabled() 74 Events.sendAlarmEvent(if (newState) R.string.action_enable else R.string.action_disable, in setAlarmEnabled() 77 LOGGER.d("Updating alarm enabled state to $newState") in setAlarmEnabled() 81 fun setAlarmVibrationEnabled(alarm: Alarm, newState: Boolean) { in setAlarmVibrationEnabled() 82 if (newState != alarm.vibrate) { in setAlarmVibrationEnabled() 83 alarm.vibrate = newState in setAlarmVibrationEnabled() 86 LOGGER.d("Updating vibrate state to $newState") in setAlarmVibrationEnabled() 88 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/services/Car/service/src/com/android/car/power/ |
D | CarPowerManagementService.java | 415 CpmsState newState = new CpmsState(apState, carPowerStateListenerState); in onApPowerStateChange() local 417 if (newState.mState == CpmsState.WAIT_FOR_FINISH) { in onApPowerStateChange() 427 mPendingPowerStates.addFirst(newState); in onApPowerStateChange() 617 private void handleShutdownPrepare(CpmsState newState) { in handleShutdownPrepare() argument 623 || !newState.mCanSleep; in handleShutdownPrepare() 624 mGarageModeShouldExitImmediately = !newState.mCanPostpone; in handleShutdownPrepare() 627 (newState.mCanPostpone in handleShutdownPrepare() 821 private void sendPowerManagerEvent(int newState) { in sendPowerManagerEvent() argument 823 notifyListeners(mPowerManagerListeners, newState); in sendPowerManagerEvent() 827 boolean allowCompletion = (newState == CarPowerStateListener.SHUTDOWN_PREPARE); in sendPowerManagerEvent() [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/Car/libs/encryption-runner/src/android/car/encryptionrunner/ |
D | OobFakeEncryptionRunner.java | 31 @HandshakeMessage.HandshakeState int newState = in continueHandshake() local 38 setState(newState); in continueHandshake() 41 .setHandshakeState(newState) in continueHandshake() 47 setState(newState); in continueHandshake() 49 .setHandshakeState(newState) in continueHandshake()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | SupplicantStaIfaceCallbackImpl.java | 166 public void onStateChanged(int newState, byte[/* 6 */] bssid, int id, ArrayList<Byte> ssid, in onStateChanged() argument 171 supplicantHidlStateToFrameworkState(newState); in onStateChanged() 175 if (newState != State.DISCONNECTED) { in onStateChanged() 178 mStateBeforeDisconnect = newState; in onStateChanged() 181 if (newState == State.ASSOCIATING || newState == State.ASSOCIATED in onStateChanged() 182 || newState == State.COMPLETED) { in onStateChanged() 186 if (newState == State.COMPLETED) { in onStateChanged() 190 } else if (newState == State.ASSOCIATING) { in onStateChanged() 200 public void onStateChanged(int newState, byte[/* 6 */] bssid, int id, ArrayList<Byte> ssid) { in onStateChanged() argument 201 onStateChanged(newState, bssid, id, ssid, false); in onStateChanged()
|
/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/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/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/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/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/SystemUI/src/com/android/systemui/car/bluetooth/ |
D | CarBatteryController.java | 159 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() local 164 + oldState + " -> " + newState); in onReceive() 169 updateBatteryIcon(device, newState); in onReceive() 218 private void updateBatteryIcon(BluetoothDevice device, int newState) { in updateBatteryIcon() argument 219 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateBatteryIcon() 241 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateBatteryIcon()
|
D | ConnectedDeviceSignalController.java | 180 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() local 185 + oldState + " -> " + newState); in onReceive() 189 updateViewVisibility(device, newState); in onReceive() 238 private void updateViewVisibility(BluetoothDevice device, int newState) { in updateViewVisibility() argument 239 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateViewVisibility() 263 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateViewVisibility()
|
/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/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()
|
/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()
|