Home
last modified time | relevance | path

Searched refs:newState (Results 1 – 25 of 199) sorted by relevance

12345678

/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DFingerprintDialogView.java63 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 …]
DFaceDialogView.java398 protected void updateIcon(int oldState, int newState) { in updateIcon() argument
399 mIconController.mState = newState; in updateIcon()
401 if (newState == STATE_AUTHENTICATING) { in updateIcon()
410 } else if (oldState == STATE_PENDING_CONFIRMATION && newState == STATE_AUTHENTICATED) { in updateIcon()
414 } else if (oldState == STATE_ERROR && newState == STATE_IDLE) { in updateIcon()
418 } else if (oldState == STATE_ERROR && newState == STATE_AUTHENTICATED) { in updateIcon()
423 } else if (newState == STATE_ERROR) { in updateIcon()
434 } else if (oldState == STATE_AUTHENTICATING && newState == STATE_AUTHENTICATED) { in updateIcon()
438 } else if (newState == STATE_PENDING_CONFIRMATION) { in updateIcon()
443 } else if (newState == STATE_IDLE) { in updateIcon()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeMachine.java235 State newState = transitionPolicy(requestedState); in transitionTo() local
238 Log.i(TAG, "transition: old=" + mState + " req=" + requestedState + " new=" + newState); in transitionTo()
241 if (newState == mState) { in transitionTo()
245 validateTransition(newState); in transitionTo()
248 mState = newState; in transitionTo()
250 DozeLog.traceState(newState); in transitionTo()
251 Trace.traceCounter(Trace.TRACE_TAG_APP, "doze_machine_state", newState.ordinal()); in transitionTo()
253 updatePulseReason(newState, oldState, pulseReason); in transitionTo()
254 performTransitionOnComponents(oldState, newState); in transitionTo()
255 updateWakeLockState(newState); in transitionTo()
[all …]
DDozeScreenState.java64 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()
86 || oldState == DozeMachine.State.DOZE) && newState == DozeMachine.State.DOZE_AOD; in transitionTo()
96 boolean shouldDelayTransition = newState == DozeMachine.State.DOZE_AOD in transitionTo()
DDozeAuthRemover.java35 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() argument
36 if (newState == DozeMachine.State.DOZE || newState == DozeMachine.State.DOZE_AOD) { in transitionTo()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCameraDeviceState.java249 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/
DUserState.java80 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/
DStatusTracker.cpp97 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/
DForwardingBackupAgent.java57 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/
DBackupHelperDispatcher.java49 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()
DBackupAgentHelper.java65 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/
DIccCardApplicationStatus.java185 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/packages/SystemUI/src/com/android/systemui/tuner/
DPowerNotificationControlsFragment.java61 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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarSignalPolicy.java147 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/startop/apps/test/src/
DFrameLayoutInflationActivity.java23 Bundle newState = savedInstanceState == null in onCreate() local
25 newState.putInt(LAYOUT_ID, R.layout.framelayout_list); in onCreate()
27 super.onCreate(newState); in onCreate()
DTextViewInflationActivity.java23 Bundle newState = savedInstanceState == null in onCreate() local
25 newState.putInt(LAYOUT_ID, R.layout.textview_list); in onCreate()
27 super.onCreate(newState); in onCreate()
DComplexLayoutInflationActivity.java28 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/
DVoLteServiceStateTest.java41 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/net/wifi/service/java/com/android/server/wifi/
DClientModeManager.java133 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/services/core/java/com/android/server/job/controllers/idle/
DCarIdlenessTracker.java131 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/telephony/src/java/com/android/internal/telephony/
DGsmCdmaCall.java120 State newState; in update() local
123 newState = stateFromDCState(dc.state); in update()
125 if (newState != mState) { in update()
126 mState = newState; in update()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageListener.java34 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/av/services/camera/libcameraservice/common/
DCamera2ClientBase.cpp280 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/base/telecomm/java/android/telecom/
DRemoteConference.java56 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/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java266 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()

12345678