Home
last modified time | relevance | path

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

1234567

/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeMachine.java214 State newState = transitionPolicy(requestedState); in transitionTo() local
217 Log.i(TAG, "transition: old=" + mState + " req=" + requestedState + " new=" + newState); in transitionTo()
220 if (newState == mState) { in transitionTo()
224 validateTransition(newState); in transitionTo()
227 mState = newState; in transitionTo()
229 DozeLog.traceState(newState); in transitionTo()
230 Trace.traceCounter(Trace.TRACE_TAG_APP, "doze_machine_state", newState.ordinal()); in transitionTo()
232 updatePulseReason(newState, oldState, pulseReason); in transitionTo()
233 performTransitionOnComponents(oldState, newState); in transitionTo()
234 updateWakeLockState(newState); in transitionTo()
[all …]
DDozeScreenState.java38 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() argument
39 int screenState = newState.screenState(); in transitionTo()
41 if (newState == DozeMachine.State.FINISH) { in transitionTo()
DDozeScreenBrightness.java74 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() argument
75 switch (newState) { in transitionTo()
91 if (newState != DozeMachine.State.FINISH) { in transitionTo()
92 setPaused(newState == DozeMachine.State.DOZE_AOD_PAUSED); in transitionTo()
/frameworks/base/services/core/java/com/android/server/am/
DUserState.java70 public boolean setState(int oldState, int newState) { in setState() argument
72 setState(newState); in setState()
81 public void setState(int newState) { in setState() argument
82 if (newState == state) { in setState()
90 if (newState != STATE_SHUTDOWN) { in setState()
92 stateToString(newState) + " " + userId, userId); in setState()
95 + stateToString(state) + " to " + stateToString(newState)); in setState()
96 EventLogTags.writeAmUserStateChanged(userId, newState); in setState()
98 state = newState; in setState()
/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/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/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccCardApplicationStatus.java133 AppState newState; in AppStateFromRILInt() local
136 case 0: newState = AppState.APPSTATE_UNKNOWN; break; in AppStateFromRILInt()
137 case 1: newState = AppState.APPSTATE_DETECTED; break; in AppStateFromRILInt()
138 case 2: newState = AppState.APPSTATE_PIN; break; in AppStateFromRILInt()
139 case 3: newState = AppState.APPSTATE_PUK; break; in AppStateFromRILInt()
140 case 4: newState = AppState.APPSTATE_SUBSCRIPTION_PERSO; break; in AppStateFromRILInt()
141 case 5: newState = AppState.APPSTATE_READY; break; in AppStateFromRILInt()
143 newState = AppState.APPSTATE_UNKNOWN; in AppStateFromRILInt()
146 return newState; in AppStateFromRILInt()
/frameworks/base/core/java/android/app/backup/
DBackupHelperDispatcher.java46 ParcelFileDescriptor newState) throws IOException { in performBackup() argument
61 doOneBackup(oldState, data, newState, header, helper); in performBackup()
75 doOneBackup(oldState, data, newState, header, helper); in performBackup()
80 ParcelFileDescriptor newState, Header header, BackupHelper helper) in doOneBackup() argument
83 FileDescriptor newStateFD = newState.getFileDescriptor(); in doOneBackup()
94 helper.performBackup(oldState, data, newState); in doOneBackup()
105 ParcelFileDescriptor newState) in performRestore() argument
138 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()
DBackupHelper.java73 ParcelFileDescriptor newState); in performBackup() argument
106 public void writeNewStateDescription(ParcelFileDescriptor newState); in writeNewStateDescription() argument
DFullBackupAgent.java32 ParcelFileDescriptor newState) throws IOException { in onBackup() argument
37 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore() argument
/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/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/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/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()
DConference.java50 public void onStateChanged(Conference conference, int oldState, int newState) {} in onStateChanged() argument
660 private void setState(int newState) { in setState() argument
661 if (newState != Connection.STATE_ACTIVE && in setState()
662 newState != Connection.STATE_HOLDING && in setState()
663 newState != Connection.STATE_DISCONNECTED) { in setState()
665 Connection.stateToString(newState)); in setState()
669 if (mState != newState) { in setState()
671 mState = newState; in setState()
673 l.onStateChanged(this, oldState, newState); in setState()
/frameworks/av/services/camera/libcameraservice/common/
DCamera2ClientBase.cpp277 void Camera2ClientBase<TClientBase>::notifyAutoFocus(uint8_t newState, in notifyAutoFocus() argument
279 (void)newState; in notifyAutoFocus()
283 __FUNCTION__, newState, triggerId); in notifyAutoFocus()
288 void Camera2ClientBase<TClientBase>::notifyAutoExposure(uint8_t newState, in notifyAutoExposure() argument
290 (void)newState; in notifyAutoExposure()
294 __FUNCTION__, newState, triggerId); in notifyAutoExposure()
298 void Camera2ClientBase<TClientBase>::notifyAutoWhitebalance(uint8_t newState, in notifyAutoWhitebalance() argument
300 (void)newState; in notifyAutoWhitebalance()
304 __FUNCTION__, newState, triggerId); in notifyAutoWhitebalance()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaCall.java115 State newState; in update() local
118 newState = stateFromDCState(dc.state); in update()
120 if (newState != mState) { in update()
121 mState = newState; in update()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DCarBatteryController.java153 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() local
158 + oldState + " -> " + newState); in onReceive()
163 updateBatteryIcon(device, newState); in onReceive()
212 private void updateBatteryIcon(BluetoothDevice device, int newState) { in updateBatteryIcon() argument
213 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateBatteryIcon()
235 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateBatteryIcon()
DConnectedDeviceSignalController.java147 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() local
152 + oldState + " -> " + newState); in onReceive()
156 updateViewVisibility(device, newState); in onReceive()
205 private void updateViewVisibility(BluetoothDevice device, int newState) { in updateViewVisibility() argument
206 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateViewVisibility()
230 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateViewVisibility()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcController.java249 for (DataCallResponse newState : dcsList) { in onDataStateChanged()
251 DataConnection dc = mDcListActiveByCid.get(newState.cid); in onDataStateChanged()
263 if (DBG) log("onDataStateChanged: Found ConnId=" + newState.cid in onDataStateChanged()
264 + " newState=" + newState.toString()); in onDataStateChanged()
265 if (newState.active == DATA_CONNECTION_ACTIVE_PH_LINK_INACTIVE) { in onDataStateChanged()
270 DcFailCause failCause = DcFailCause.fromInt(newState.status); in onDataStateChanged()
294 UpdateLinkPropertyResult result = dc.updateLinkProperty(newState); in onDataStateChanged()
355 if (newState.active == DATA_CONNECTION_ACTIVE_PH_LINK_UP) { in onDataStateChanged()
358 if (newState.active == DATA_CONNECTION_ACTIVE_PH_LINK_DORMANT) { in onDataStateChanged()
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java221 public void onBluetoothStateChange(int prevState, int newState) throws RemoteException {
222 Message msg = mHandler.obtainMessage(MESSAGE_BLUETOOTH_STATE_CHANGE,prevState,newState);
1578 int newState = msg.arg2; in handleMessage() local
1581 BluetoothAdapter.nameForState(newState)); in handleMessage()
1583 mState = newState; in handleMessage()
1584 bluetoothStateChangeHandler(prevState, newState); in handleMessage()
1588 (newState == BluetoothAdapter.STATE_OFF) && in handleMessage()
1593 (newState == BluetoothAdapter.STATE_BLE_ON) && in handleMessage()
1601 (newState == BluetoothAdapter.STATE_OFF)) { in handleMessage()
1610 if (newState == BluetoothAdapter.STATE_ON || in handleMessage()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockIcon.java272 private int getAnimationResForTransition(int oldState, int newState, in getAnimationResForTransition() argument
275 if (oldState == STATE_FINGERPRINT && newState == STATE_FINGERPRINT_ERROR) { in getAnimationResForTransition()
277 } else if (oldState == STATE_LOCK_OPEN && newState == STATE_FINGERPRINT_ERROR) { in getAnimationResForTransition()
279 } else if (oldState == STATE_FINGERPRINT_ERROR && newState == STATE_LOCK_OPEN) { in getAnimationResForTransition()
281 } else if (oldState == STATE_FINGERPRINT_ERROR && newState == STATE_FINGERPRINT) { in getAnimationResForTransition()
283 } else if (oldState == STATE_FINGERPRINT && newState == STATE_LOCK_OPEN in getAnimationResForTransition()
286 } else if (newState == STATE_FINGERPRINT && (!oldScreenOn && screenOn && deviceInteractive in getAnimationResForTransition()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java245 DozeMachine.State newState = inv.getArgument(1); in testPulseReason_getFromTransition()
246 if (newState == DOZE_REQUEST_PULSE in testPulseReason_getFromTransition()
247 || newState == DOZE_PULSING in testPulseReason_getFromTransition()
248 || newState == DOZE_PULSE_DONE) { in testPulseReason_getFromTransition()
251 assertTrue("unexpected state " + newState, in testPulseReason_getFromTransition()
252 newState == DOZE || newState == DOZE_AOD); in testPulseReason_getFromTransition()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java146 public void onPlaystateChanged(MediaSessionRecord record, int oldState, int newState) { in onPlaystateChanged() argument
147 if (shouldUpdatePriority(oldState, newState)) { in onPlaystateChanged()
151 } else if (!MediaSession.isActiveState(newState)) { in onPlaystateChanged()
358 private boolean shouldUpdatePriority(int oldState, int newState) { in shouldUpdatePriority() argument
359 if (containsState(newState, ALWAYS_PRIORITY_STATES)) { in shouldUpdatePriority()
363 && containsState(newState, TRANSITION_PRIORITY_STATES)) { in shouldUpdatePriority()

1234567