/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | FingerprintDialogView.java | 63 protected void updateIcon(int lastState, int newState) { in updateIcon() argument 64 final Drawable icon = getAnimationForTransition(lastState, newState); in updateIcon() 66 Log.e(TAG, "Animation not found, " + lastState + " -> " + newState); in updateIcon() 76 if (animation != null && shouldAnimateForTransition(lastState, newState)) { in updateIcon() 82 protected boolean shouldAnimateForTransition(int oldState, int newState) { in shouldAnimateForTransition() argument 83 if (newState == STATE_ERROR) { in shouldAnimateForTransition() 85 } else if (oldState == STATE_ERROR && newState == STATE_AUTHENTICATING) { in shouldAnimateForTransition() 87 } else if (oldState == STATE_AUTHENTICATING && newState == STATE_AUTHENTICATED) { in shouldAnimateForTransition() 90 } else if (oldState == STATE_ERROR && newState == STATE_AUTHENTICATED) { in shouldAnimateForTransition() 93 } else if (newState == STATE_AUTHENTICATING) { in shouldAnimateForTransition() [all …]
|
D | FaceDialogView.java | 399 protected void updateIcon(int oldState, int newState) { in updateIcon() argument 400 mIconController.mState = newState; in updateIcon() 402 if (newState == STATE_AUTHENTICATING) { in updateIcon() 412 } else if (oldState == STATE_PENDING_CONFIRMATION && newState == STATE_AUTHENTICATED) { in updateIcon() 416 } else if (oldState == STATE_ERROR && newState == STATE_IDLE) { in updateIcon() 420 } else if (oldState == STATE_ERROR && newState == STATE_AUTHENTICATED) { in updateIcon() 425 } else if (newState == STATE_ERROR) { in updateIcon() 436 } else if (oldState == STATE_AUTHENTICATING && newState == STATE_AUTHENTICATED) { in updateIcon() 440 } else if (newState == STATE_PENDING_CONFIRMATION) { in updateIcon() 445 } else if (newState == STATE_IDLE) { in updateIcon() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeMachine.java | 227 State newState = transitionPolicy(requestedState); in transitionTo() local 230 Log.i(TAG, "transition: old=" + mState + " req=" + requestedState + " new=" + newState); in transitionTo() 233 if (newState == mState) { in transitionTo() 237 validateTransition(newState); in transitionTo() 240 mState = newState; in transitionTo() 242 DozeLog.traceState(newState); in transitionTo() 243 Trace.traceCounter(Trace.TRACE_TAG_APP, "doze_machine_state", newState.ordinal()); in transitionTo() 245 updatePulseReason(newState, oldState, pulseReason); in transitionTo() 246 performTransitionOnComponents(oldState, newState); in transitionTo() 247 updateWakeLockState(newState); in transitionTo() [all …]
|
D | DozeScreenState.java | 64 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() argument 65 int screenState = newState.screenState(mParameters); in transitionTo() 67 if (newState == DozeMachine.State.FINISH) { in transitionTo() 84 && newState == DozeMachine.State.DOZE_AOD; in transitionTo() 93 boolean shouldDelayTransition = newState == DozeMachine.State.DOZE_AOD in transitionTo()
|
/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/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccCardApplicationStatus.java | 154 AppState newState; in AppStateFromRILInt() local 157 case 0: newState = AppState.APPSTATE_UNKNOWN; break; in AppStateFromRILInt() 158 case 1: newState = AppState.APPSTATE_DETECTED; break; in AppStateFromRILInt() 159 case 2: newState = AppState.APPSTATE_PIN; break; in AppStateFromRILInt() 160 case 3: newState = AppState.APPSTATE_PUK; break; in AppStateFromRILInt() 161 case 4: newState = AppState.APPSTATE_SUBSCRIPTION_PERSO; break; in AppStateFromRILInt() 162 case 5: newState = AppState.APPSTATE_READY; break; in AppStateFromRILInt() 164 newState = AppState.APPSTATE_UNKNOWN; in AppStateFromRILInt() 167 return newState; in AppStateFromRILInt()
|
/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/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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
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/core/tests/coretests/src/android/os/storage/ |
D | StorageListener.java | 34 public void onStorageStateChanged(String path, String oldState, String newState) { in onStorageStateChanged() argument 35 if (localLOGV) Log.i(TAG, "Storage state changed from " + oldState + " to " + newState); in onStorageStateChanged() 38 if (mTargetState.equals(newState)) { in onStorageStateChanged()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/idle/ |
D | CarIdlenessTracker.java | 131 final boolean newState = (mForced || mGarageModeOn); in updateIdlenessState() 132 if (mIdle != newState) { in updateIdlenessState() 134 logIfDebug("Device idleness changed. New idle=" + newState); in updateIdlenessState() 135 mIdle = newState; in updateIdlenessState() 139 logIfDebug("Device idleness is the same. Current idle=" + newState); in updateIdlenessState()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ClientModeManager.java | 133 private void updateWifiState(int newState, int currentState) { in updateWifiState() argument 135 mListener.onStateChanged(newState); in updateWifiState() 137 Log.d(TAG, "expected stop, not triggering callbacks: newState = " + newState); in updateWifiState() 143 if (newState == WifiManager.WIFI_STATE_UNKNOWN in updateWifiState() 144 || newState == WifiManager.WIFI_STATE_DISABLED) { in updateWifiState() 148 if (newState == WifiManager.WIFI_STATE_UNKNOWN) { in updateWifiState() 153 mClientModeImpl.setWifiStateForApiCalls(newState); in updateWifiState() 157 intent.putExtra(WifiManager.EXTRA_WIFI_STATE, newState); in updateWifiState()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | RemoteConference.java | 56 public void onStateChanged(RemoteConference conference, int oldState, int newState) {} in onStateChanged() argument 180 void setState(final int newState) { in setState() argument 181 if (newState != Connection.STATE_ACTIVE && in setState() 182 newState != Connection.STATE_HOLDING && in setState() 183 newState != Connection.STATE_DISCONNECTED) { in setState() 185 Connection.stateToString(newState)); in setState() 189 if (mState != newState) { in setState() 191 mState = newState; in setState() 198 callback.onStateChanged(conference, oldState, newState); in setState()
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | Camera2ClientBase.cpp | 280 void Camera2ClientBase<TClientBase>::notifyAutoFocus(uint8_t newState, in notifyAutoFocus() argument 282 (void)newState; in notifyAutoFocus() 286 __FUNCTION__, newState, triggerId); in notifyAutoFocus() 291 void Camera2ClientBase<TClientBase>::notifyAutoExposure(uint8_t newState, in notifyAutoExposure() argument 293 (void)newState; in notifyAutoExposure() 297 __FUNCTION__, newState, triggerId); in notifyAutoExposure() 301 void Camera2ClientBase<TClientBase>::notifyAutoWhitebalance(uint8_t newState, in notifyAutoWhitebalance() argument 303 (void)newState; in notifyAutoWhitebalance() 307 __FUNCTION__, newState, triggerId); in notifyAutoWhitebalance()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | GsmCdmaCall.java | 117 State newState; in update() local 120 newState = stateFromDCState(dc.state); in update() 122 if (newState != mState) { in update() 123 mState = newState; in update()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySavingStats.java | 266 final int newState = statesToIndex( in transitionState() local 268 transitionStateLocked(newState); in transitionState() 282 private void transitionStateLocked(int newState) { in transitionStateLocked() argument 283 if (mCurrentState == newState) { in transitionStateLocked() 293 BatterySaverState.fromIndex(newState) != BatterySaverState.OFF; in transitionStateLocked() 305 startNewStateLocked(newState, now, batteryLevel, batteryPercent); in transitionStateLocked() 350 private void startNewStateLocked(int newState, long now, int batteryLevel, int batteryPercent) { in startNewStateLocked() argument 352 Slog.d(TAG, "New state: " + stateToString(newState)); in startNewStateLocked() 354 mCurrentState = newState; in startNewStateLocked()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/ |
D | CarBatteryController.java | 156 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() local 161 + oldState + " -> " + newState); in onReceive() 166 updateBatteryIcon(device, newState); in onReceive() 215 private void updateBatteryIcon(BluetoothDevice device, int newState) { in updateBatteryIcon() argument 216 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateBatteryIcon() 238 } 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() 236 private void updateViewVisibility(BluetoothDevice device, int newState) { in updateViewVisibility() argument 237 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateViewVisibility() 261 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateViewVisibility()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeMachineTest.java | 244 DozeMachine.State newState = inv.getArgument(1); in testPulseReason_getFromTransition() 245 if (newState == DOZE_REQUEST_PULSE in testPulseReason_getFromTransition() 246 || newState == DOZE_PULSING in testPulseReason_getFromTransition() 247 || newState == DOZE_PULSE_DONE) { in testPulseReason_getFromTransition() 250 assertTrue("unexpected state " + newState, in testPulseReason_getFromTransition() 251 newState == DOZE || newState == DOZE_AOD); in testPulseReason_getFromTransition()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcController.java | 299 for (DataCallResponse newState : dcsList) { in onDataStateChanged() 301 DataConnection dc = dcListActiveByCid.get(newState.getId()); in onDataStateChanged() 315 log("onDataStateChanged: Found ConnId=" + newState.getId() in onDataStateChanged() 316 + " newState=" + newState.toString()); in onDataStateChanged() 318 if (newState.getLinkStatus() == DataConnActiveStatus.INACTIVE) { in onDataStateChanged() 323 int failCause = DataFailCause.getFailCause(newState.getCause()); in onDataStateChanged() 347 UpdateLinkPropertyResult result = dc.updateLinkProperty(newState); in onDataStateChanged() 406 if (newState.getLinkStatus() == DataConnActiveStatus.ACTIVE) { in onDataStateChanged() 409 if (newState.getLinkStatus() == DataConnActiveStatus.DORMANT) { in onDataStateChanged()
|