/frameworks/base/cmds/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 …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthBiometricFaceView.java | 96 public void updateState(int lastState, int newState) { in updateState() argument 100 if (newState == STATE_AUTHENTICATING_ANIMATING_IN) { in updateState() 104 } else if (newState == STATE_AUTHENTICATING) { in updateState() 108 } else if (lastState == STATE_PENDING_CONFIRMATION && newState == STATE_AUTHENTICATED) { in updateState() 112 } else if (lastStateIsErrorIcon && newState == STATE_IDLE) { in updateState() 116 } else if (lastStateIsErrorIcon && newState == STATE_AUTHENTICATED) { in updateState() 120 } else if (newState == STATE_ERROR && lastState != STATE_ERROR) { in updateState() 122 } else if (lastState == STATE_AUTHENTICATING && newState == STATE_AUTHENTICATED) { in updateState() 126 } else if (newState == STATE_PENDING_CONFIRMATION) { in updateState() 130 } else if (newState == STATE_IDLE) { in updateState() [all …]
|
D | AuthBiometricFingerprintView.java | 66 public void updateState(@BiometricState int newState) { in updateState() argument 67 updateIcon(mState, newState); in updateState() 70 super.updateState(newState); in updateState() 84 private void updateIcon(int lastState, int newState) { in updateIcon() argument 85 final Drawable icon = getAnimationForTransition(lastState, newState); in updateIcon() 87 Log.e(TAG, "Animation not found, " + lastState + " -> " + newState); in updateIcon() 97 if (animation != null && shouldAnimateForTransition(lastState, newState)) { in updateIcon() 103 private boolean shouldAnimateForTransition(int oldState, int newState) { in shouldAnimateForTransition() argument 104 switch (newState) { in shouldAnimateForTransition() 122 private Drawable getAnimationForTransition(int oldState, int newState) { in getAnimationForTransition() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeMachine.java | 269 State newState = transitionPolicy(requestedState); in transitionTo() local 272 Log.i(TAG, "transition: old=" + mState + " req=" + requestedState + " new=" + newState); in transitionTo() 275 if (newState == mState) { in transitionTo() 279 validateTransition(newState); in transitionTo() 282 mState = newState; in transitionTo() 284 mDozeLog.traceState(newState); in transitionTo() 285 Trace.traceCounter(Trace.TRACE_TAG_APP, "doze_machine_state", newState.ordinal()); in transitionTo() 287 updatePulseReason(newState, oldState, pulseReason); in transitionTo() 288 performTransitionOnComponents(oldState, newState); in transitionTo() 289 updateWakeLockState(newState); in transitionTo() [all …]
|
D | DozeScreenState.java | 72 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() argument 73 int screenState = newState.screenState(mParameters); in transitionTo() 76 if (newState == DozeMachine.State.FINISH) { in transitionTo() 92 final boolean pulseEnding = oldState == DOZE_PULSE_DONE && newState.isAlwaysOn(); in transitionTo() 94 && newState.isAlwaysOn(); in transitionTo() 95 final boolean turningOff = (oldState.isAlwaysOn() && newState == DOZE) in transitionTo() 96 || (oldState == DOZE_AOD_PAUSING && newState == DOZE_AOD_PAUSED); in transitionTo() 106 boolean shouldDelayTransition = newState == DOZE_AOD in transitionTo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockIcon.java | 67 int newState = mState; 68 Drawable icon = getIcon(newState); 71 if (newState == STATE_SCANNING_FACE) { 85 && newState == mState 86 && newState == STATE_SCANNING_FACE) { 89 Trace.endAsyncSection("LockIcon#Animation", newState); 93 Trace.beginAsyncSection("LockIcon#Animation", newState); 136 void update(int newState, boolean pulsing, boolean dozing, boolean keyguardJustShown) { in update() argument 138 mState = newState; in update() 165 private Drawable getIcon(int newState) { in getIcon() argument [all …]
|
D | StatusBarSignalPolicy.java | 147 WifiIconState newState = mWifiIconState.copy(); in setWifiIndicators() local 149 newState.visible = visible; in setWifiIndicators() 150 newState.resId = statusIcon.icon; in setWifiIndicators() 151 newState.activityIn = in; in setWifiIndicators() 152 newState.activityOut = out; in setWifiIndicators() 153 newState.slot = mSlotWifi; in setWifiIndicators() 154 newState.airplaneSpacerVisible = mIsAirplaneMode; in setWifiIndicators() 155 newState.contentDescription = statusIcon.contentDescription; in setWifiIndicators() 158 newState.signalSpacerVisible = first != null && first.typeId != 0; in setWifiIndicators() 160 updateWifiIconWithState(newState); in setWifiIndicators() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
D | MockableLocationProviderTest.java | 134 AbstractLocationProvider.State newState; in testSetState() local 137 newState = mListener.getNextNewState(); in testSetState() 138 assertThat(newState).isNotNull(); in testSetState() 139 assertThat(newState.allowed).isTrue(); in testSetState() 142 newState = mListener.getNextNewState(); in testSetState() 143 assertThat(newState).isNotNull(); in testSetState() 144 assertThat(newState.allowed).isFalse(); in testSetState() 147 newState = mListener.getNextNewState(); in testSetState() 148 assertThat(newState).isNotNull(); in testSetState() 149 assertThat(newState.allowed).isTrue(); in testSetState() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | CameraDeviceState.java | 249 private void doStateTransition(int newState) { in doStateTransition() argument 250 doStateTransition(newState, /*timestamp*/0, NO_CAPTURE_ERROR); in doStateTransition() 253 private void doStateTransition(int newState, final long timestamp, final int error) { in doStateTransition() argument 254 if (newState != mCurrentState) { in doStateTransition() 256 if (newState >= 0 && newState < sStateNames.length) { in doStateTransition() 257 stateName = sStateNames[newState]; in doStateTransition() 263 if(newState != STATE_ERROR && newState != STATE_IDLE) { in doStateTransition() 264 if (mCurrentState != newState && mCurrentHandler != null && in doStateTransition() 275 switch(newState) { in doStateTransition() 357 throw new IllegalStateException("Transition to unknown state: " + newState); in doStateTransition()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserState.java | 80 public boolean setState(int oldState, int newState) { in setState() argument 82 setState(newState); in setState() 91 public void setState(int newState) { in setState() argument 92 if (newState == state) { in setState() 100 if (newState != STATE_SHUTDOWN) { in setState() 102 stateToString(newState) + " " + userId, userId); in setState() 105 + stateToString(state) + " to " + stateToString(newState)); in setState() 106 EventLogTags.writeAmUserStateChanged(userId, newState); in setState() 108 state = newState; in setState()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | StatusTracker.cpp | 97 StateChange newState = { in markComponent() local 103 mPendingChangeQueue.add(newState); in markComponent() 176 const StateChange &newState = mPendingChangeQueue[i]; in threadLoop() local 177 ssize_t idx = mStates.indexOfKey(newState.id); in threadLoop() 181 mStates.replaceValueAt(idx, newState.state); in threadLoop() 183 mIdleFence, newState.fence); in threadLoop() 185 ComponentState newState = getDeviceStateLocked(); in threadLoop() local 186 if (newState != prevState) { in threadLoop() 187 mStateTransitions.add(newState); in threadLoop() 189 prevState = newState; in threadLoop()
|
/frameworks/base/services/robotests/backup/src/android/app/backup/ |
D | ForwardingBackupAgent.java | 57 ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState) in onBackup() argument 59 mBackupAgent.onBackup(oldState, data, newState); in onBackup() 63 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore() argument 65 mBackupAgent.onRestore(data, appVersionCode, newState); in onRestore() 69 public void onRestore(BackupDataInput data, long appVersionCode, ParcelFileDescriptor newState) in onRestore() argument 71 mBackupAgent.onRestore(data, appVersionCode, newState); in onRestore()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupHelperDispatcher.java | 49 ParcelFileDescriptor newState) throws IOException { in performBackup() argument 64 doOneBackup(oldState, data, newState, header, helper); in performBackup() 78 doOneBackup(oldState, data, newState, header, helper); in performBackup() 83 ParcelFileDescriptor newState, Header header, BackupHelper helper) in doOneBackup() argument 86 FileDescriptor newStateFD = newState.getFileDescriptor(); in doOneBackup() 97 helper.performBackup(oldState, data, newState); in doOneBackup() 108 ParcelFileDescriptor newState) in performRestore() argument 141 helper.writeNewStateDescription(newState); in performRestore()
|
D | BackupAgentHelper.java | 65 ParcelFileDescriptor newState) throws IOException { in onBackup() argument 66 mDispatcher.performBackup(oldState, data, newState); in onBackup() 73 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore() argument 75 mDispatcher.performRestore(data, appVersionCode, newState); in onRestore()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccCardApplicationStatus.java | 184 AppState newState; in AppStateFromRILInt() local 187 case 0: newState = AppState.APPSTATE_UNKNOWN; break; in AppStateFromRILInt() 188 case 1: newState = AppState.APPSTATE_DETECTED; break; in AppStateFromRILInt() 189 case 2: newState = AppState.APPSTATE_PIN; break; in AppStateFromRILInt() 190 case 3: newState = AppState.APPSTATE_PUK; break; in AppStateFromRILInt() 191 case 4: newState = AppState.APPSTATE_SUBSCRIPTION_PERSO; break; in AppStateFromRILInt() 192 case 5: newState = AppState.APPSTATE_READY; break; in AppStateFromRILInt() 194 newState = AppState.APPSTATE_UNKNOWN; in AppStateFromRILInt() 197 return newState; in AppStateFromRILInt()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | InsetsControllerTest.java | 709 InsetsState newState = new InsetsState(mController.getState(), true /* copySource */); in testRequestedState() local 710 mController.onStateChanged(newState); in testRequestedState() 726 newState = new InsetsState(mController.getState(), true /* copySource */); in testRequestedState() 727 newState.getSource(ITYPE_STATUS_BAR).setVisible(false); in testRequestedState() 728 mController.onStateChanged(newState); in testRequestedState() 735 newState = new InsetsState(mController.getState(), true /* copySource */); in testRequestedState() 736 newState.getSource(ITYPE_IME).setVisible(true); in testRequestedState() 737 newState.getSource(ITYPE_IME).setFrame(1, 2, 3, 4); in testRequestedState() 738 mController.onStateChanged(newState); in testRequestedState() 740 assertEquals(newState.getSource(ITYPE_IME), in testRequestedState() [all …]
|
/frameworks/base/core/java/android/service/controls/actions/ |
D | BooleanAction.java | 43 public BooleanAction(@NonNull String templateId, boolean newState) { in BooleanAction() argument 44 this(templateId, newState, null); in BooleanAction() 54 public BooleanAction(@NonNull String templateId, boolean newState, in BooleanAction() argument 57 mNewState = newState; in BooleanAction()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | PowerNotificationControlsFragment.java | 61 boolean newState = !isEnabled(); in onViewCreated() 63 MetricsEvent.ACTION_TUNER_POWER_NOTIFICATION_CONTROLS, newState); in onViewCreated() 65 KEY_SHOW_PNC, newState ? 1 : 0); in onViewCreated() 66 switchWidget.setChecked(newState); in onViewCreated() 67 switchText.setText(newState in onViewCreated()
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | CameraOfflineSessionClient.cpp | 274 void CameraOfflineSessionClient::notifyAutoFocus(uint8_t newState, int triggerId) { in notifyAutoFocus() argument 275 (void)newState; in notifyAutoFocus() 279 __FUNCTION__, newState, triggerId); in notifyAutoFocus() 282 void CameraOfflineSessionClient::notifyAutoExposure(uint8_t newState, int triggerId) { in notifyAutoExposure() argument 283 (void)newState; in notifyAutoExposure() 287 __FUNCTION__, newState, triggerId); in notifyAutoExposure() 290 void CameraOfflineSessionClient::notifyAutoWhitebalance(uint8_t newState, int triggerId) { in notifyAutoWhitebalance() argument 291 (void)newState; in notifyAutoWhitebalance() 294 ALOGV("%s: Auto-whitebalance state now %d, last trigger %d", __FUNCTION__, newState, in notifyAutoWhitebalance()
|
/frameworks/base/startop/apps/test/src/ |
D | TextViewInflationActivity.java | 23 Bundle newState = savedInstanceState == null in onCreate() local 25 newState.putInt(LAYOUT_ID, R.layout.textview_list); in onCreate() 27 super.onCreate(newState); in onCreate()
|
D | FrameLayoutInflationActivity.java | 23 Bundle newState = savedInstanceState == null in onCreate() local 25 newState.putInt(LAYOUT_ID, R.layout.framelayout_list); in onCreate() 27 super.onCreate(newState); in onCreate()
|
D | ComplexLayoutInflationActivity.java | 28 Bundle newState = savedInstanceState == null in onCreate() local 30 newState.putInt(LAYOUT_ID, R.layout.activity_main); in onCreate() 32 super.onCreate(newState); in onCreate()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | VoLteServiceStateTest.java | 41 VoLteServiceState newState = VoLteServiceState.CREATOR.createFromParcel(p); in testParcel() local 42 assertEquals(state, newState); in testParcel() 64 VoLteServiceState newState = new VoLteServiceState(state); in testCopy() local 65 assertEquals(state, newState); in testCopy()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | AbstractLocationProvider.java | 57 void onStateChanged(State oldState, State newState); in onStateChanged() argument 219 protected void setState(State newState) { in setState() argument 221 internalState -> internalState.withState(newState)); in setState() 222 if (newState.equals(oldInternalState.state)) { in setState() 231 oldInternalState.listener.onStateChanged(oldInternalState.state, newState); in setState() 244 State newState = operator.apply(oldInternalState.state); in setState() local 246 if (newState.equals(oldInternalState.state)) { in setState() 255 oldInternalState.listener.onStateChanged(oldInternalState.state, newState); in setState()
|
D | MockableLocationProvider.java | 148 State newState; in setProviderLocked() local 150 newState = mProvider.setListener(new ListenerWrapper(mProvider)); in setProviderLocked() 152 newState = State.EMPTY_STATE; in setProviderLocked() 156 setState(newState); in setProviderLocked() 262 public final void onStateChanged(State oldState, State newState) { in onStateChanged() argument 268 setState(newState); in onStateChanged()
|