/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | CameraDeviceState.java | 232 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/ |
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/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccCardApplicationStatus.java | 133 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/ |
D | BackupHelperDispatcher.java | 46 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()
|
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()
|
D | BlobBackupHelper.java | 246 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()
|
D | BackupHelper.java | 73 ParcelFileDescriptor newState); in performBackup() argument 106 public void writeNewStateDescription(ParcelFileDescriptor newState); in writeNewStateDescription() argument
|
D | FullBackupAgent.java | 32 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/ |
D | IMountServiceListener.java | 80 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/ |
D | UserState.java | 69 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/ |
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/av/services/camera/libcameraservice/common/ |
D | Camera2ClientBase.cpp | 270 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/ |
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/services/core/java/com/android/server/ |
D | BluetoothManagerService.java | 169 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 …]
|
D | DockObserver.java | 122 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/ |
D | RemoteConference.java | 56 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()
|
D | Conference.java | 47 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/ |
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/opt/telephony/src/java/com/android/internal/telephony/ |
D | GsmCdmaCall.java | 115 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/ |
D | DcController.java | 245 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/ |
D | CarBatteryController.java | 149 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/ |
D | LockIcon.java | 237 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/ |
D | MediaSessionStack.java | 131 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/ |
D | SipPhone.java | 545 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/ |
D | HugeAgent.java | 88 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()
|