Searched refs:oldState (Results 1 - 25 of 85) sorted by relevance

1234

/frameworks/base/core/java/android/os/storage/
H A DStorageEventListener.java35 * @param oldState the old state as returned by {@link android.os.Environment#getExternalStorageState()}.
38 public void onStorageStateChanged(String path, String oldState, String newState) { argument
41 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { argument
H A DIStorageEventListener.aidl44 * @param oldState The old state of the volume.
48 void onStorageStateChanged(in String path, in String oldState, in String newState) = 1;
50 void onVolumeStateChanged(in VolumeInfo vol, int oldState, int newState) = 2;
/frameworks/base/core/java/android/content/pm/
H A DPackageUserState.java190 final PackageUserState oldState = (PackageUserState) obj;
191 if (ceDataInode != oldState.ceDataInode) {
194 if (installed != oldState.installed) {
197 if (stopped != oldState.stopped) {
200 if (notLaunched != oldState.notLaunched) {
203 if (hidden != oldState.hidden) {
206 if (suspended != oldState.suspended) {
211 || !suspendingPackage.equals(oldState.suspendingPackage)) {
214 if (!Objects.equals(dialogMessage, oldState.dialogMessage)) {
218 oldState
[all...]
/frameworks/base/core/java/android/app/backup/
H A DBackupHelper.java40 * Based on <code>oldState</code>, determine what application content
47 * {@code oldState} descriptor points to the beginning of the state data
52 * <strong>Note:</strong> The helper should not close or seek either the {@code oldState} or
54 * saved state from the {@code oldState} file, no extra content is consumed beyond
59 * @param oldState An open, read-only {@link android.os.ParcelFileDescriptor} pointing to the
72 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
H A DBackupAgentHelper.java64 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
66 mDispatcher.performBackup(oldState, data, newState);
H A DFullBackupAgent.java31 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
H A DAbsoluteFileBackupHelper.java53 * Based on oldState, determine which of the files from the application's data directory
57 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
60 performBackup_checked(oldState, data, newState, mFiles, mFiles);
H A DFileBackupHelperBase.java53 static void performBackup_checked(ParcelFileDescriptor oldState, BackupDataOutput data, argument
70 FileDescriptor oldStateFd = oldState != null ? oldState.getFileDescriptor() : null;
121 native private static int performBackup_native(FileDescriptor oldState, argument
H A DBackupHelperDispatcher.java45 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
54 if (oldState != null) {
55 oldStateFD = oldState.getFileDescriptor();
61 doOneBackup(oldState, data, newState, header, helper);
75 doOneBackup(oldState, data, newState, header, helper);
79 private void doOneBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
94 helper.performBackup(oldState, data, newState);
H A DFileBackupHelper.java62 * Based on <code>oldState</code>, determine which of the files from the
65 * now. When <code>oldState</code> is <code>null</code>, all the files will
73 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
85 performBackup_checked(oldState, data, newState, fullPaths, files);
H A DSharedPreferencesBackupHelper.java94 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
111 performBackup_checked(oldState, data, newState, files, prefGroups);
/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageListener.java34 public void onStorageStateChanged(String path, String oldState, String newState) { argument
35 if (localLOGV) Log.i(TAG, "Storage state changed from " + oldState + " to " + newState);
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeFalsingManagerAdapter.java33 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { argument
H A DDozeMachine.java229 State oldState = mState;
235 updatePulseReason(newState, oldState, pulseReason);
236 performTransitionOnComponents(oldState, newState);
242 private void updatePulseReason(State newState, State oldState, int pulseReason) { argument
245 } else if (oldState == State.DOZE_PULSE_DONE) {
250 private void performTransitionOnComponents(State oldState, State newState) { argument
252 p.transitionTo(oldState, newState);
348 * Transition from {@code oldState} to {@code newState}.
352 void transitionTo(State oldState, State newState); argument
H A DDozeScreenState.java64 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { argument
83 boolean pulseEnding = oldState == DozeMachine.State.DOZE_PULSE_DONE
85 if (messagePending || oldState == DozeMachine.State.INITIALIZED || pulseEnding) {
H A DDozePauser.java41 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { argument
H A DDozeWallpaperState.java57 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { argument
77 boolean wakingUpFromPulse = oldState == DozeMachine.State.DOZE_PULSING
/frameworks/base/libs/storage/include/storage/
H A DIMountServiceListener.h31 const String16& oldState, const String16& newState) = 0;
/frameworks/base/libs/storage/
H A DIMountServiceListener.cpp34 const String16& /* oldState */, const String16& /* newState */) { }
55 String16 oldState = data.readString16(); local
57 onStorageStateChanged(path, oldState, newState);
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
H A DHugeAgent.java87 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
108 boolean doBackup = (oldState == null);
110 doBackup = compareStateFile(oldState);
157 boolean compareStateFile(ParcelFileDescriptor oldState) { argument
158 FileInputStream instream = new FileInputStream(oldState.getFileDescriptor());
/frameworks/base/core/jni/
H A Dandroid_backup_FileBackupHelperBase.cpp41 performBackup_native(JNIEnv* env, jobject clazz, jobject oldState, jlong data, argument
47 int oldStateFD = oldState != NULL ? jniGetFDFromFileDescriptor(env, oldState) : -1;
/frameworks/base/services/core/java/com/android/server/am/
H A DUserState.java73 public boolean setState(int oldState, int newState) { argument
74 if (state == oldState) {
79 + stateToString(oldState) + " but was in state " + stateToString(state));
/frameworks/base/core/java/android/app/
H A DIBackupAgent.aidl33 * @param oldState Read-only file containing the description blob of the
55 void doBackup(in ParcelFileDescriptor oldState,
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccSlot.java82 CardState oldState = mCardState;
94 if (absentStateUpdateNeeded(oldState)) {
100 } else if ((oldState == null || oldState == CardState.CARDSTATE_ABSENT
134 CardState oldState = mCardState;
152 if (absentStateUpdateNeeded(oldState)) {
162 private boolean absentStateUpdateNeeded(CardState oldState) { argument
163 return (oldState != CardState.CARDSTATE_ABSENT || mUiccCard != null)
/frameworks/base/packages/SystemUI/src/com/android/systemui/fingerprint/
H A DFingerprintDialogView.java342 private boolean shouldAnimateForTransition(int oldState, int newState) { argument
343 if (oldState == STATE_NONE && newState == STATE_FINGERPRINT) {
345 } else if (oldState == STATE_FINGERPRINT && newState == STATE_FINGERPRINT_ERROR) {
347 } else if (oldState == STATE_FINGERPRINT_ERROR && newState == STATE_FINGERPRINT) {
349 } else if (oldState == STATE_FINGERPRINT && newState == STATE_FINGERPRINT_AUTHENTICATED) {
356 private Drawable getAnimationForTransition(int oldState, int newState) { argument
358 if (oldState == STATE_NONE && newState == STATE_FINGERPRINT) {
360 } else if (oldState == STATE_FINGERPRINT && newState == STATE_FINGERPRINT_ERROR) {
362 } else if (oldState == STATE_FINGERPRINT_ERROR && newState == STATE_FINGERPRINT) {
364 } else if (oldState
[all...]

Completed in 148 milliseconds

1234