/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
D | LocationTimeZoneProvider.java | 208 ProviderState newState(@ProviderStateEnum int newStateEnum, in newState() method in LocationTimeZoneProvider.ProviderState 408 currentState = currentState.newState(PROVIDER_STATE_STOPPED, null, null, "initialize"); in initialize() 416 currentState = currentState.newState(PROVIDER_STATE_PERM_FAILED, null, null, in initialize() 440 currentState.newState(PROVIDER_STATE_DESTROYED, null, null, "destroy"); in destroy() 479 private void setCurrentState(@NonNull ProviderState newState, boolean notifyChanges) { in setCurrentState() argument 483 mCurrentState.set(newState); in setCurrentState() 484 onSetCurrentState(newState); in setCurrentState() 485 if (!Objects.equals(newState, oldState)) { in setCurrentState() 486 mProviderMetricsLogger.onProviderStateChanged(newState.stateEnum); in setCurrentState() 488 mRecordedStates.add(newState); in setCurrentState() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthBiometricFingerprintIconController.kt | 84 private fun updateIconSideFps(@BiometricState lastState: Int, @BiometricState newState: Int) { in <lambda>() 90 getSideFpsOverlayAnimationForTransition(lastState, newState, rotation) ?: return in <lambda>() 92 if (!(lastState == STATE_AUTHENTICATING_ANIMATING_IN && newState == STATE_AUTHENTICATING)) { in <lambda>() 97 val iconContentDescription = getIconContentDescription(newState) in <lambda>() 104 if (shouldAnimateSfpsIconViewForTransition(lastState, newState)) { in <lambda>() 108 if (shouldAnimateIconViewOverlayForTransition(lastState, newState)) { in <lambda>() 116 private fun updateIconNormal(@BiometricState lastState: Int, @BiometricState newState: Int) { in <lambda>() 117 val icon = getAnimationForTransition(lastState, newState) ?: return in <lambda>() 119 if (!(lastState == STATE_AUTHENTICATING_ANIMATING_IN && newState == STATE_AUTHENTICATING)) { in <lambda>() 123 val iconContentDescription = getIconContentDescription(newState) in <lambda>() [all …]
|
D | AuthBiometricFaceIconController.kt | 74 override fun updateIcon(@BiometricState oldState: Int, @BiometricState newState: Int) { in updateIcon() 76 if (newState == STATE_AUTHENTICATING_ANIMATING_IN) { in updateIcon() 81 } else if (newState == STATE_AUTHENTICATING) { in updateIcon() 86 } else if (oldState == STATE_PENDING_CONFIRMATION && newState == STATE_AUTHENTICATED) { in updateIcon() 91 } else if (lastStateIsErrorIcon && newState == STATE_IDLE) { in updateIcon() 96 } else if (lastStateIsErrorIcon && newState == STATE_AUTHENTICATED) { in updateIcon() 101 } else if (newState == STATE_ERROR && oldState != STATE_ERROR) { in updateIcon() 103 } else if (oldState == STATE_AUTHENTICATING && newState == STATE_AUTHENTICATED) { in updateIcon() 108 } else if (newState == STATE_PENDING_CONFIRMATION) { in updateIcon() 113 } else if (newState == STATE_IDLE) { in updateIcon() [all …]
|
D | AuthBiometricFingerprintAndFaceIconController.kt | 40 @BiometricState newState: Int in shouldAnimateIconViewForTransition() 41 ): Boolean = when (newState) { in shouldAnimateIconViewForTransition() 44 else -> super.shouldAnimateIconViewForTransition(oldState, newState) in shouldAnimateIconViewForTransition() 50 @BiometricState newState: Int in getAnimationForTransition() 51 ): Int? = when (newState) { in getAnimationForTransition() 60 else -> super.getAnimationForTransition(oldState, newState) in getAnimationForTransition()
|
D | AuthBiometricFaceView.kt | 45 override fun updateState(@BiometricState newState: Int) { in getDelayAfterAuthenticatedDurationMs() 46 if (newState == STATE_AUTHENTICATING_ANIMATING_IN || in getDelayAfterAuthenticatedDurationMs() 47 newState == STATE_AUTHENTICATING && size == AuthDialog.SIZE_MEDIUM) { in getDelayAfterAuthenticatedDurationMs() 52 super.updateState(newState) in getDelayAfterAuthenticatedDurationMs()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockIcon.java | 66 int newState = mState; 67 Drawable icon = getIcon(newState); 70 if (newState == STATE_SCANNING_FACE) { 84 && newState == mState 85 && newState == STATE_SCANNING_FACE) { 88 Trace.endAsyncSection("LockIcon#Animation", newState); 92 Trace.beginAsyncSection("LockIcon#Animation", newState); 135 void update(int newState, boolean dozing, boolean keyguardJustShown) { in update() argument 137 mState = newState; in update() 166 private Drawable getIcon(int newState) { in getIcon() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeMachine.java | 303 State newState = transitionPolicy(requestedState); in transitionTo() local 306 Log.i(TAG, "transition: old=" + mState + " req=" + requestedState + " new=" + newState); in transitionTo() 309 if (newState == mState) { in transitionTo() 313 validateTransition(newState); in transitionTo() 316 mState = newState; in transitionTo() 318 mDozeLog.traceState(newState); in transitionTo() 319 Trace.traceCounter(Trace.TRACE_TAG_APP, "doze_machine_state", newState.ordinal()); in transitionTo() 321 updatePulseReason(newState, oldState, pulseReason); in transitionTo() 322 performTransitionOnComponents(oldState, newState); in transitionTo() 323 updateWakeLockState(newState); in transitionTo() [all …]
|
D | DozeTransitionListener.kt | 29 var newState = DozeMachine.State.UNINITIALIZED variable 31 override fun transitionTo(oldState: DozeMachine.State, newState: DozeMachine.State) { in transitionTo() 33 this.newState = newState in transitionTo() 34 callbacks.forEach { it.onDozeTransition(oldState, newState) } in transitionTo() 47 fun onDozeTransition(oldState: DozeMachine.State, newState: DozeMachine.State)
|
D | DozeScreenState.java | 126 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() argument 127 int screenState = newState.screenState(mParameters); in transitionTo() 130 if (newState == DozeMachine.State.FINISH) { in transitionTo() 146 final boolean pulseEnding = oldState == DOZE_PULSE_DONE && newState.isAlwaysOn(); in transitionTo() 148 && newState.isAlwaysOn(); in transitionTo() 149 final boolean turningOff = (oldState.isAlwaysOn() && newState == DOZE) in transitionTo() 150 || (oldState == DOZE_AOD_PAUSING && newState == DOZE_AOD_PAUSED); in transitionTo() 160 boolean shouldDelayTransitionEnteringDoze = newState == DOZE_AOD in transitionTo() 164 boolean shouldDelayTransitionForUDFPS = newState == DOZE_AOD in transitionTo()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserState.java | 79 public boolean setState(int oldState, int newState) { in setState() argument 81 setState(newState); in setState() 90 public void setState(int newState) { in setState() argument 91 if (newState == state) { in setState() 99 if (newState != STATE_SHUTDOWN) { in setState() 101 stateToString(newState) + " " + userId, userId); in setState() 104 + stateToString(state) + " to " + stateToString(newState)); in setState() 105 EventLogTags.writeAmUserStateChanged(userId, newState); in setState() 107 state = newState; in setState()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/ |
D | MockableLocationProviderTest.java | 163 AbstractLocationProvider.State newState; in testSetState() local 166 newState = mListener.getNextNewState(); in testSetState() 167 assertThat(newState).isNotNull(); in testSetState() 168 assertThat(newState.allowed).isTrue(); in testSetState() 171 newState = mListener.getNextNewState(); in testSetState() 172 assertThat(newState).isNotNull(); in testSetState() 173 assertThat(newState.allowed).isFalse(); in testSetState() 176 newState = mListener.getNextNewState(); in testSetState() 177 assertThat(newState).isNotNull(); in testSetState() 178 assertThat(newState.allowed).isTrue(); in testSetState() [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | StatusTracker.cpp | 116 StateChange newState = { in markComponent() local 122 mPendingChangeQueue.add(newState); in markComponent() 195 const StateChange &newState = mPendingChangeQueue[i]; in threadLoop() local 196 ssize_t idx = mStates.indexOfKey(newState.id); in threadLoop() 200 mStates.replaceValueAt(idx, newState.state); in threadLoop() 202 mIdleFence, newState.fence); in threadLoop() 204 ComponentState newState = getDeviceStateLocked(); in threadLoop() local 205 if (newState != prevState) { in threadLoop() 206 mStateTransitions.add(newState); in threadLoop() 208 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 | 185 AppState newState; in AppStateFromRILInt() local 188 case 0: newState = AppState.APPSTATE_UNKNOWN; break; in AppStateFromRILInt() 189 case 1: newState = AppState.APPSTATE_DETECTED; break; in AppStateFromRILInt() 190 case 2: newState = AppState.APPSTATE_PIN; break; in AppStateFromRILInt() 191 case 3: newState = AppState.APPSTATE_PUK; break; in AppStateFromRILInt() 192 case 4: newState = AppState.APPSTATE_SUBSCRIPTION_PERSO; break; in AppStateFromRILInt() 193 case 5: newState = AppState.APPSTATE_READY; break; in AppStateFromRILInt() 195 newState = AppState.APPSTATE_UNKNOWN; in AppStateFromRILInt() 198 return newState; in AppStateFromRILInt()
|
/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/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | ServiceStateStats.java | 90 CellularServiceState newState = new CellularServiceState(); in onServiceStateChanged() local 91 newState.voiceRat = getVoiceRat(mPhone, serviceState); in onServiceStateChanged() 92 newState.dataRat = getRat(serviceState, NetworkRegistrationInfo.DOMAIN_PS); in onServiceStateChanged() 93 newState.voiceRoamingType = serviceState.getVoiceRoamingType(); in onServiceStateChanged() 94 newState.dataRoamingType = serviceState.getDataRoamingType(); in onServiceStateChanged() 95 newState.isEndc = isEndc(serviceState); in onServiceStateChanged() 96 newState.simSlotIndex = mPhone.getPhoneId(); in onServiceStateChanged() 97 newState.isMultiSim = SimSlotState.isMultiSim(); in onServiceStateChanged() 98 newState.carrierId = mPhone.getCarrierId(); in onServiceStateChanged() 99 newState.isEmergencyOnly = isEmergencyOnly(serviceState); in onServiceStateChanged() [all …]
|
/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/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/ |
D | OneHandedState.java | 97 public void setState(@State int newState) { in setState() argument 98 sCurrentState = newState; in setState() 100 mStateChangeListeners.forEach((listener) -> listener.onStateChanged(newState)); in setState() 118 default void onStateChanged(@State int newState) {} in onStateChanged() argument
|
/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/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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcController.java | 249 for (DataCallResponse newState : dcsList) { in onDataStateChanged() 251 DataConnection dc = dcListActiveByCid.get(newState.getId()); in onDataStateChanged() 265 log("onDataStateChanged: Found ConnId=" + newState.getId() in onDataStateChanged() 266 + " newState=" + newState.toString()); in onDataStateChanged() 270 && newState.getLinkStatus() == DataConnActiveStatus.ACTIVE) { in onDataStateChanged() 273 if (newState.getLinkStatus() == DataConnActiveStatus.INACTIVE) { in onDataStateChanged() 278 int failCause = DataFailCause.getFailCause(newState.getCause()); in onDataStateChanged() 302 dc.setPduSessionId(newState.getPduSessionId()); in onDataStateChanged() 304 dc.updatePcscfAddr(newState); in onDataStateChanged() 307 UpdateLinkPropertyResult result = dc.updateLinkProperty(newState); in onDataStateChanged() [all …]
|