Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/android/hardware/camera2/legacy/
DCameraDeviceState.java232 private void doStateTransition(int newState) { in doStateTransition() argument
233 doStateTransition(newState, /*timestamp*/0, NO_CAPTURE_ERROR); in doStateTransition()
236 private void doStateTransition(int newState, final long timestamp, final int error) { in doStateTransition() argument
237 if (newState != mCurrentState) { in doStateTransition()
239 if (newState >= 0 && newState < sStateNames.length) { in doStateTransition()
240 stateName = sStateNames[newState]; in doStateTransition()
246 if(newState != STATE_ERROR && newState != STATE_IDLE) { in doStateTransition()
247 if (mCurrentState != newState && mCurrentHandler != null && in doStateTransition()
258 switch(newState) { in doStateTransition()
340 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()
DBlobBackupHelper.java246 final ArrayMap<String, Long> newState = new ArrayMap<String, Long>(); in performBackup() local
255 newState.put(key, checksum); in performBackup()
278 newState.clear(); in performBackup()
281 writeBackupState(newState, newStateFd); in performBackup()
311 public void writeNewStateDescription(ParcelFileDescriptor newState) { in writeNewStateDescription() argument
316 writeBackupState(null, newState); in writeNewStateDescription()
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/core/java/android/os/storage/
DIMountServiceListener.java80 final String newState = data.readString(); in onTransact() local
81 this.onStorageStateChanged(path, oldState, newState); in onTransact()
89 final int newState = data.readInt(); in onTransact() local
90 onVolumeStateChanged(vol, oldState, newState); in onTransact()
171 public void onStorageStateChanged(String path, String oldState, String newState) in onStorageStateChanged() argument
179 _data.writeString(newState); in onStorageStateChanged()
190 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) in onVolumeStateChanged() argument
198 _data.writeInt(newState); in onVolumeStateChanged()
298 public void onStorageStateChanged(String path, String oldState, String newState) in onStorageStateChanged() argument
301 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) in onVolumeStateChanged() argument
/frameworks/base/services/core/java/com/android/server/am/
DUserState.java69 public boolean setState(int oldState, int newState) { in setState() argument
71 setState(newState); in setState()
80 public void setState(int newState) { in setState() argument
83 + stateToString(state) + " to " + stateToString(newState)); in setState()
86 state = newState; in setState()
/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/av/services/camera/libcameraservice/common/
DCamera2ClientBase.cpp270 void Camera2ClientBase<TClientBase>::notifyAutoFocus(uint8_t newState, in notifyAutoFocus() argument
272 (void)newState; in notifyAutoFocus()
276 __FUNCTION__, newState, triggerId); in notifyAutoFocus()
281 void Camera2ClientBase<TClientBase>::notifyAutoExposure(uint8_t newState, in notifyAutoExposure() argument
283 (void)newState; in notifyAutoExposure()
287 __FUNCTION__, newState, triggerId); in notifyAutoExposure()
291 void Camera2ClientBase<TClientBase>::notifyAutoWhitebalance(uint8_t newState, in notifyAutoWhitebalance() argument
293 (void)newState; in notifyAutoWhitebalance()
297 __FUNCTION__, newState, triggerId); in notifyAutoWhitebalance()
/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/services/core/java/com/android/server/
DBluetoothManagerService.java169 public void onBluetoothStateChange(int prevState, int newState) throws RemoteException {
170 Message msg = mHandler.obtainMessage(MESSAGE_BLUETOOTH_STATE_CHANGE,prevState,newState);
1349 int newState = msg.arg2; in handleMessage() local
1350 …Slog.d(TAG, "MESSAGE_BLUETOOTH_STATE_CHANGE: prevState = " + prevState + ", newState=" + newState); in handleMessage()
1351 mState = newState; in handleMessage()
1352 bluetoothStateChangeHandler(prevState, newState); in handleMessage()
1356 (newState == BluetoothAdapter.STATE_OFF) && in handleMessage()
1361 (newState == BluetoothAdapter.STATE_BLE_ON) && in handleMessage()
1369 (newState == BluetoothAdapter.STATE_OFF)) { in handleMessage()
1378 if (newState == BluetoothAdapter.STATE_ON || in handleMessage()
[all …]
DDockObserver.java122 private void setActualDockStateLocked(int newState) { in setActualDockStateLocked() argument
123 mActualDockState = newState; in setActualDockStateLocked()
125 setDockStateLocked(newState); in setActualDockStateLocked()
129 private void setDockStateLocked(int newState) { in setDockStateLocked() argument
130 if (newState != mReportedDockState) { in setDockStateLocked()
131 mReportedDockState = newState; in setDockStateLocked()
/frameworks/base/telecomm/java/android/telecom/
DRemoteConference.java56 public void onStateChanged(RemoteConference conference, int oldState, int newState) {} in onStateChanged() argument
181 void setState(final int newState) { in setState() argument
182 if (newState != Connection.STATE_ACTIVE && in setState()
183 newState != Connection.STATE_HOLDING && in setState()
184 newState != Connection.STATE_DISCONNECTED) { in setState()
186 Connection.stateToString(newState)); in setState()
190 if (mState != newState) { in setState()
192 mState = newState; in setState()
199 callback.onStateChanged(conference, oldState, newState); in setState()
DConference.java47 public void onStateChanged(Conference conference, int oldState, int newState) {} in onStateChanged() argument
623 private void setState(int newState) { in setState() argument
624 if (newState != Connection.STATE_ACTIVE && in setState()
625 newState != Connection.STATE_HOLDING && in setState()
626 newState != Connection.STATE_DISCONNECTED) { in setState()
628 Connection.stateToString(newState)); in setState()
632 if (mState != newState) { in setState()
634 mState = newState; in setState()
636 l.onStateChanged(this, oldState, newState); in setState()
/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/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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcController.java245 for (DataCallResponse newState : dcsList) { in onDataStateChanged()
247 DataConnection dc = mDcListActiveByCid.get(newState.cid); in onDataStateChanged()
259 if (DBG) log("onDataStateChanged: Found ConnId=" + newState.cid in onDataStateChanged()
260 + " newState=" + newState.toString()); in onDataStateChanged()
261 if (newState.active == DATA_CONNECTION_ACTIVE_PH_LINK_INACTIVE) { in onDataStateChanged()
266 DcFailCause failCause = DcFailCause.fromInt(newState.status); in onDataStateChanged()
289 UpdateLinkPropertyResult result = dc.updateLinkProperty(newState); in onDataStateChanged()
350 if (newState.active == DATA_CONNECTION_ACTIVE_PH_LINK_UP) { in onDataStateChanged()
353 if (newState.active == DATA_CONNECTION_ACTIVE_PH_LINK_DORMANT) { in onDataStateChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DCarBatteryController.java149 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() local
154 + oldState + " -> " + newState); in onReceive()
159 updateBatteryIcon(device, newState); in onReceive()
208 private void updateBatteryIcon(BluetoothDevice device, int newState) { in updateBatteryIcon() argument
209 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateBatteryIcon()
231 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateBatteryIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockIcon.java237 private int getAnimationResForTransition(int oldState, int newState, in getAnimationResForTransition() argument
240 if (oldState == STATE_FINGERPRINT && newState == STATE_FINGERPRINT_ERROR) { in getAnimationResForTransition()
242 } else if (oldState == STATE_LOCK_OPEN && newState == STATE_FINGERPRINT_ERROR) { in getAnimationResForTransition()
244 } else if (oldState == STATE_FINGERPRINT_ERROR && newState == STATE_LOCK_OPEN) { in getAnimationResForTransition()
246 } else if (oldState == STATE_FINGERPRINT_ERROR && newState == STATE_FINGERPRINT) { in getAnimationResForTransition()
248 } else if (oldState == STATE_FINGERPRINT && newState == STATE_LOCK_OPEN in getAnimationResForTransition()
251 } else if (newState == STATE_FINGERPRINT && (!oldScreenOn && screenOn && deviceInteractive in getAnimationResForTransition()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java131 public boolean onPlaystateChange(MediaSessionRecord record, int oldState, int newState) { in onPlaystateChange() argument
132 if (shouldUpdatePriority(oldState, newState)) { in onPlaystateChange()
140 } else if (!MediaSession.isActiveState(newState)) { in onPlaystateChange()
373 private boolean shouldUpdatePriority(int oldState, int newState) { in shouldUpdatePriority() argument
374 if (containsState(newState, ALWAYS_PRIORITY_STATES)) { in shouldUpdatePriority()
378 && containsState(newState, TRANSITION_PRIORITY_STATES)) { in shouldUpdatePriority()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhone.java545 Call.State newState = makeCallWait ? State.WAITING : State.INCOMING; in initIncomingCall() local
546 c.initIncomingCall(sipAudioCall, newState); in initIncomingCall()
548 setState(newState); in initIncomingCall()
686 protected void setState(State newState) { in setState() argument
687 if (mState != newState) { in setState()
689 + " --> " + newState + ": " + this + ": on phone " in setState()
692 if (newState == Call.State.ALERTING) { in setState()
693 mState = newState; // need in ALERTING to enable ringback in setState()
698 mState = newState; in setState()
796 Call.State newState = getCallStateFrom(call);
[all …]
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeAgent.java88 ParcelFileDescriptor newState) throws IOException { in onBackup() argument
147 writeStateFile(newState); in onBackup()
221 ParcelFileDescriptor newState) throws IOException { in onRestore() argument
259 writeStateFile(newState); in onRestore()

123456