/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() 88 void StateTracker::handleReset(const int64_t eventTimeNs, const FieldValue& newState) { in handleReset() argument 91 updateStateForPrimaryKey(eventTimeNs, primaryKey, newState, in handleReset() 115 const FieldValue& newState, const bool nested, in updateStateForPrimaryKey() argument [all …]
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/bluetooth/ |
D | AdapterDelegate.java | 46 void onAdapterStateChange(State prevState, State newState); in onAdapterStateChange() argument 48 void onBleStateChange(State prevState, State newState); in onBleStateChange() argument 73 State newState = TRANSITION[mCurrentState.ordinal()][event.ordinal()]; in processEvent() local 74 if (newState == null) { in processEvent() 78 mCurrentState = newState; in processEvent() 79 handleStateChange(prevState, newState); in processEvent() 82 private void handleStateChange(State prevState, State newState) { in handleStateChange() argument 84 if (prevState.equals(newState)) { in handleStateChange() 88 mCallback.onAdapterStateChange(prevState, newState); in handleStateChange() 90 mCallback.onBleStateChange(prevState, newState); in handleStateChange() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | BondStateMachine.java | 154 int newState = msg.arg1; in processMessage() local 156 if (newState == BluetoothDevice.BOND_BONDING) { in processMessage() 159 } else if (newState == BluetoothDevice.BOND_NONE) { in processMessage() 161 sendIntent(dev, newState, 0, false); in processMessage() 164 + 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, false); in processMessage() 230 if (newState != BluetoothDevice.BOND_BONDING) { in processMessage() 238 if (newState == BluetoothDevice.BOND_NONE) { in processMessage() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallEndpointController.java | 304 private boolean isAvailableEndpointChanged(CallAudioState oldState, CallAudioState newState) { in isAvailableEndpointChanged() argument 308 if ((oldState.getSupportedRouteMask() ^ newState.getSupportedRouteMask()) != 0) { in isAvailableEndpointChanged() 312 newState.getSupportedBluetoothDevices().size()) { in isAvailableEndpointChanged() 315 for (BluetoothDevice device : newState.getSupportedBluetoothDevices()) { in isAvailableEndpointChanged() 323 private boolean isEndpointChanged(CallAudioState oldState, CallAudioState newState) { in isEndpointChanged() argument 327 if (oldState.getRoute() != newState.getRoute()) { in isEndpointChanged() 330 if (newState.getRoute() == CallAudioState.ROUTE_BLUETOOTH) { in isEndpointChanged() 332 if (newState.getActiveBluetoothDevice() == null) { in isEndpointChanged() 337 return !oldState.getActiveBluetoothDevice().equals(newState.getActiveBluetoothDevice()); in isEndpointChanged() 342 private boolean isMuteStateChanged(CallAudioState oldState, CallAudioState newState) { in isMuteStateChanged() argument [all …]
|
D | CallAnomalyWatchdog.java | 58 public WatchdogCallState(int newState, boolean newIsCreateConnectionComplete, in WatchdogCallState() argument 60 state = newState; in WatchdogCallState() 204 public void onCallStateChanged(Call call, int oldState, int newState) { in onCallStateChanged() argument 275 final WatchdogCallState newState = new WatchdogCallState(call.getState(), in maybeTrackCall() local 277 if (Objects.equals(currentState, newState)) { in maybeTrackCall() 281 mWatchdogCallStateMap.put(call, newState); in maybeTrackCall() 294 long timeoutMillis = getTimeoutMillis(call, newState); in maybeTrackCall() 298 Runnable cleanupRunnable = getCleanupRunnable(call, newState, timeoutMillis, in maybeTrackCall() 340 private Runnable getCleanupRunnable(Call call, WatchdogCallState newState, long timeoutMillis, in getCleanupRunnable() argument 353 if (expiredState.equals(newState) in getCleanupRunnable() [all …]
|
/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(params, newState); in markUserProvisioningStateInitiallyDone() 183 …private void maybeSetHeadlessSystemUserProvisioningState(ProvisioningParams params, int newState) { in maybeSetHeadlessSystemUserProvisioningState() argument 190 setUserProvisioningState(newState, UserHandle.USER_SYSTEM); in maybeSetHeadlessSystemUserProvisioningState()
|
/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/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/services/Car/service/src/com/android/car/power/ |
D | CarPowerManagementService.java | 513 CpmsState newState = new CpmsState(apState, carPowerStateListenerState, in onApPowerStateChange() local 520 if (newState.mState == CpmsState.WAIT_FOR_FINISH) { in onApPowerStateChange() 531 if (newState.mState == CpmsState.SHUTDOWN_PREPARE) { in onApPowerStateChange() 544 if (eventFilter.apply(newState, pendingState)) { in onApPowerStateChange() 549 mPendingPowerStates.addFirst(newState); in onApPowerStateChange() 556 CpmsState newState; in doHandlePowerStateChange() local 560 newState = mPendingPowerStates.pollFirst(); in doHandlePowerStateChange() 561 if (newState == null) { in doHandlePowerStateChange() 565 Slogf.i(TAG, "doHandlePowerStateChange: newState=%s", newState.name()); in doHandlePowerStateChange() 566 if (!needPowerStateChangeLocked(newState)) { in doHandlePowerStateChange() [all …]
|
/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/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | StorageEventListenerCompat.java | 28 public void onStorageStateChanged(String path, String oldState, String newState) { in StorageEventListenerCompat() 29 StorageEventListenerCompat.this.onStorageStateChanged(path, oldState, newState); in StorageEventListenerCompat() 33 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in StorageEventListenerCompat() 35 new VolumeInfoCompat(vol), oldState, newState); in StorageEventListenerCompat() 64 public void onVolumeStateChanged(VolumeInfoCompat vol, int oldState, int newState) { in onVolumeStateChanged() argument 73 public void onStorageStateChanged(String path, String oldState, String newState) { in onStorageStateChanged() argument
|
/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/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/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/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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | BondStateMachineTest.java | 438 private void testSendIntentCase(int oldState, int newState, boolean isTriggerFromDelayMessage, in testSendIntentCase() argument 447 mBondStateMachine.sendIntent(mDevice, newState, TEST_BOND_REASON, in testSendIntentCase() 474 private void testSendIntentNoPendingDeviceWithUuid(int oldState, int newState, in testSendIntentNoPendingDeviceWithUuid() argument 479 testSendIntentNoPendingDevice(oldState, newState, isTriggerFromDelayMessage, in testSendIntentNoPendingDeviceWithUuid() 484 private void testSendIntentPendingDeviceWithUuid(int oldState, int newState, in testSendIntentPendingDeviceWithUuid() argument 489 testSendIntentPendingDevice(oldState, newState, isTriggerFromDelayMessage, expectedNewState, in testSendIntentPendingDeviceWithUuid() 493 private void testSendIntentPendingDevice(int oldState, int newState, in testSendIntentPendingDevice() argument 500 testSendIntentCase(oldState, newState, isTriggerFromDelayMessage, expectedNewState, in testSendIntentPendingDevice() 507 testSendIntentCase(oldState, newState, isTriggerFromDelayMessage, expectedNewState, in testSendIntentPendingDevice() 514 testSendIntentCase(oldState, newState, isTriggerFromDelayMessage, expectedNewState, in testSendIntentPendingDevice() [all …]
|
/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/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/connserv/ |
D | HfpClientConnectionService.java | 87 public static void onConnectionStateChanged(BluetoothDevice device, int newState, in onConnectionStateChanged() argument 94 service.onConnectionStateChangedInternal(device, newState, oldState); in onConnectionStateChanged() 112 public static void onAudioStateChanged(BluetoothDevice device, int newState, int oldState) { in onAudioStateChanged() argument 118 service.onAudioStateChangedInternal(device, newState, oldState); in onAudioStateChanged() 125 private void onConnectionStateChangedInternal(BluetoothDevice device, int newState, in onConnectionStateChangedInternal() argument 127 if (newState == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChangedInternal() 136 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in onConnectionStateChangedInternal() 165 private void onAudioStateChangedInternal(BluetoothDevice device, int newState, int oldState) { in onAudioStateChangedInternal() argument 171 block.onAudioStateChange(newState, oldState); in onAudioStateChangedInternal()
|
/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/Car/SystemUI/src/com/android/systemui/car/bluetooth/ |
D | CarBatteryController.java | 136 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() local 141 + oldState + " -> " + newState); in onReceive() 146 updateBatteryIcon(device, newState); in onReceive() 176 private void updateBatteryIcon(BluetoothDevice device, int newState) { in updateBatteryIcon() argument 177 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateBatteryIcon() 192 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateBatteryIcon()
|
D | ConnectedDeviceSignalController.java | 178 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() local 183 + oldState + " -> " + newState); in onReceive() 187 updateViewVisibility(device, newState); in onReceive() 215 private void updateViewVisibility(BluetoothDevice device, int newState) { in updateViewVisibility() argument 216 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateViewVisibility() 236 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateViewVisibility()
|
/packages/services/Car/tests/CarEvsMultiCameraPreviewApp/src/com/google/android/car/evs/multi/ |
D | CarEvsCameraClient.java | 337 void handleVideoStream(int newState) { in handleVideoStream() argument 340 handleVideoStreamLocked(newState); in handleVideoStream() 347 private void handleVideoStreamLocked(int newState) { in handleVideoStreamLocked() argument 349 streamStateToString(newState)); in handleVideoStreamLocked() 350 if (newState == mStreamState) { in handleVideoStreamLocked() 355 switch (newState) { in handleVideoStreamLocked() 375 mStreamState = newState; in handleVideoStreamLocked()
|
/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/Car/Radio/src/com/android/car/radio/audio/ |
D | AudioStreamController.java | 96 void onPlaybackStateChanged(int newState); in onPlaybackStateChanged() argument 172 private void notifyPlaybackStateLocked(int newState) { in notifyPlaybackStateLocked() argument 173 if (mCurrentPlaybackState == newState) return; in notifyPlaybackStateLocked() 174 mCurrentPlaybackState = newState; in notifyPlaybackStateLocked() 175 Log.v(TAG, "Playback state changed to " + newState); in notifyPlaybackStateLocked() 176 mCallback.onPlaybackStateChanged(newState); in notifyPlaybackStateLocked()
|