Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/hardware/camera2/legacy/
DCameraDeviceState.java209 private void doStateTransition(int newState) { in doStateTransition() argument
210 doStateTransition(newState, /*timestamp*/0, NO_CAPTURE_ERROR); in doStateTransition()
213 private void doStateTransition(int newState, final long timestamp, final int error) { in doStateTransition() argument
214 if (newState != mCurrentState) { in doStateTransition()
216 if (newState >= 0 && newState < sStateNames.length) { in doStateTransition()
217 stateName = sStateNames[newState]; in doStateTransition()
223 if(newState != STATE_ERROR && newState != STATE_IDLE) { in doStateTransition()
224 if (mCurrentState != newState && mCurrentHandler != null && in doStateTransition()
235 switch(newState) { in doStateTransition()
317 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()
DRecentsBackupHelper.java81 ParcelFileDescriptor newState) { in performBackup() argument
82 FileBackupHelperBase.performBackup_checked(oldState, data, newState, in performBackup()
110 public void writeNewStateDescription(ParcelFileDescriptor newState) { in writeNewStateDescription() argument
111 mTaskFileHelper.writeNewStateDescription(newState); in writeNewStateDescription()
DBackupHelper.java69 ParcelFileDescriptor newState); in performBackup() argument
102 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
DFileBackupHelperBase.java54 ParcelFileDescriptor newState, String[] files, String[] keys) { in performBackup_checked() argument
71 FileDescriptor newStateFd = newState.getFileDescriptor(); in performBackup_checked()
122 long data, FileDescriptor newState, String[] files, String[] keys); in performBackup_native() argument
/frameworks/base/telecomm/java/android/telecom/
DRemoteConference.java39 public void onStateChanged(RemoteConference conference, int oldState, int newState) {} in onStateChanged() argument
89 void setState(int newState) { in setState() argument
90 if (newState != Connection.STATE_ACTIVE && in setState()
91 newState != Connection.STATE_HOLDING && in setState()
92 newState != Connection.STATE_DISCONNECTED) { in setState()
94 Connection.stateToString(newState)); in setState()
98 if (mState != newState) { in setState()
100 mState = newState; in setState()
102 c.onStateChanged(this, oldState, newState); in setState()
DConference.java43 public void onStateChanged(Conference conference, int oldState, int newState) {} in onStateChanged() argument
463 private void setState(int newState) { in setState() argument
464 if (newState != Connection.STATE_ACTIVE && in setState()
465 newState != Connection.STATE_HOLDING && in setState()
466 newState != Connection.STATE_DISCONNECTED) { in setState()
468 Connection.stateToString(newState)); in setState()
472 if (mState != newState) { in setState()
474 mState = newState; in setState()
476 l.onStateChanged(this, oldState, newState); in setState()
/frameworks/base/core/java/android/os/storage/
DIMountServiceListener.java82 String newState; in onTransact() local
83 newState = data.readString(); in onTransact()
84 this.onStorageStateChanged(path, oldState, newState); in onTransact()
136 public void onStorageStateChanged(String path, String oldState, String newState) in onStorageStateChanged() argument
144 _data.writeString(newState); in onStorageStateChanged()
174 public void onStorageStateChanged(String path, String oldState, String newState) in onStorageStateChanged() argument
/frameworks/av/services/camera/libcameraservice/common/
DCamera2ClientBase.cpp251 void Camera2ClientBase<TClientBase>::notifyAutoFocus(uint8_t newState, in notifyAutoFocus() argument
253 (void)newState; in notifyAutoFocus()
257 __FUNCTION__, newState, triggerId); in notifyAutoFocus()
262 void Camera2ClientBase<TClientBase>::notifyAutoExposure(uint8_t newState, in notifyAutoExposure() argument
264 (void)newState; in notifyAutoExposure()
268 __FUNCTION__, newState, triggerId); in notifyAutoExposure()
272 void Camera2ClientBase<TClientBase>::notifyAutoWhitebalance(uint8_t newState, in notifyAutoWhitebalance() argument
274 (void)newState; in notifyAutoWhitebalance()
278 __FUNCTION__, newState, triggerId); in notifyAutoWhitebalance()
DCamera2ClientBase.h70 virtual void notifyAutoFocus(uint8_t newState, int triggerId);
71 virtual void notifyAutoExposure(uint8_t newState, int triggerId);
72 virtual void notifyAutoWhitebalance(uint8_t newState,
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java76 final String oldState, final String newState) { in onStorageStateChanged() argument
80 onStorageStateChangedAsync(path, oldState, newState); in onStorageStateChanged()
123 private void onStorageStateChangedAsync(String path, String oldState, String newState) { in onStorageStateChangedAsync() argument
125 "Media {%s} state changed from {%s} -> {%s}", path, oldState, newState)); in onStorageStateChangedAsync()
126 if (newState.equals(Environment.MEDIA_SHARED)) { in onStorageStateChangedAsync()
138 } else if (newState.equals(Environment.MEDIA_CHECKING)) { in onStorageStateChangedAsync()
148 } else if (newState.equals(Environment.MEDIA_MOUNTED)) { in onStorageStateChangedAsync()
155 } else if (newState.equals(Environment.MEDIA_UNMOUNTED)) { in onStorageStateChangedAsync()
194 } else if (newState.equals(Environment.MEDIA_NOFS)) { in onStorageStateChangedAsync()
208 } else if (newState.equals(Environment.MEDIA_UNMOUNTABLE)) { in onStorageStateChangedAsync()
[all …]
/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/dataconnection/
DDcController.java222 for (DataCallResponse newState : dcsList) { in onDataStateChanged()
224 DataConnection dc = mDcListActiveByCid.get(newState.cid); in onDataStateChanged()
236 if (DBG) log("onDataStateChanged: Found ConnId=" + newState.cid in onDataStateChanged()
237 + " newState=" + newState.toString()); in onDataStateChanged()
238 if (newState.active == DATA_CONNECTION_ACTIVE_PH_LINK_INACTIVE) { in onDataStateChanged()
243 DcFailCause failCause = DcFailCause.fromInt(newState.status); in onDataStateChanged()
258 UpdateLinkPropertyResult result = dc.updateLinkProperty(newState); in onDataStateChanged()
319 if (newState.active == DATA_CONNECTION_ACTIVE_PH_LINK_UP) { in onDataStateChanged()
322 if (newState.active == DATA_CONNECTION_ACTIVE_PH_LINK_DORMANT) { in onDataStateChanged()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaCall.java135 State newState; in update() local
138 newState = stateFromDCState(dc.state); in update()
140 if (newState != mState) { in update()
141 mState = newState; in update()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmCall.java136 State newState; in update() local
139 newState = stateFromDCState(dc.state); in update()
141 if (newState != mState) { in update()
142 mState = newState; in update()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java95 public boolean onPlaystateChange(MediaSessionRecord record, int oldState, int newState) { in onPlaystateChange() argument
96 if (shouldUpdatePriority(oldState, newState)) { in onPlaystateChange()
104 } else if (!MediaSession.isActiveState(newState)) { in onPlaystateChange()
337 private boolean shouldUpdatePriority(int oldState, int newState) { in shouldUpdatePriority() argument
338 if (containsState(newState, ALWAYS_PRIORITY_STATES)) { in shouldUpdatePriority()
342 && containsState(newState, TRANSITION_PRIORITY_STATES)) { in shouldUpdatePriority()
/frameworks/base/services/core/java/com/android/server/
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/core/java/android/bluetooth/
DBluetoothHealthCallback.java62 BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, in onHealthChannelStateChange() argument
65 "prevState:" + prevState + "newState:" + newState + "ParcelFd:" + fd + in onHealthChannelStateChange()
/frameworks/native/services/sensorservice/
DSensorFusion.cpp109 const bool newState = mClients.size() != 0; in activate() local
110 if (newState != mEnabled) { in activate()
111 mEnabled = newState; in activate()
112 if (newState) { in activate()
/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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DEventLogTags.logtags49 50113 gsm_data_state_change (oldState|3), (newState|3)
52 50114 gsm_service_state_change (oldState|1|5), (oldGprsState|1|5), (newState|1|5), (newGprsState|1|…
55 50115 cdma_data_state_change (oldState|3), (newState|3)
58 50116 cdma_service_state_change (oldState|1|5), (oldDataState|1|5), (newState|1|5), (newDataState|1…

12345