Searched defs:oldState (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/app/backup/
H A DBackupHelper.java40 * Based on <code>oldState</code>, determine which of the files from the
48 * {@code oldState} descriptor points to the beginning of the state data
53 * <strong>Note:</strong> The helper should not close or seek either the {@code oldState} or
56 * @param oldState An open, read-only {@link android.os.ParcelFileDescriptor} pointing to the
69 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
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 DBackupAgentHelper.java64 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
66 mDispatcher.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.java95 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
112 performBackup_checked(oldState, data, newState, files, prefGroups);
H A DBackupHelperDispatcher.java45 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
55 if (oldState != null) {
56 oldStateFD = oldState.getFileDescriptor();
62 doOneBackup(oldState, data, newState, header, helper);
76 doOneBackup(oldState, data, newState, header, helper);
80 private void doOneBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
95 helper.performBackup(oldState, data, newState);
H A DWallpaperBackupHelper.java103 * Based on oldState, determine which of the files from the application's data directory
107 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
109 performBackup_checked(oldState, data, newState, mFiles, mKeys);
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 DBackupAgent.java150 * last backup pass is provided in the <code>oldState</code> file
151 * descriptor. If <code>oldState</code> is <code>null</code>, no old state
164 * @param oldState An open, read-only ParcelFileDescriptor pointing to the
177 public abstract void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
479 public void doBackup(ParcelFileDescriptor oldState, argument
490 BackupAgent.this.onBackup(oldState, output, newState);
/frameworks/base/core/java/android/os/storage/
H A DMountServiceListener.java37 * @param oldState The old state of the volume.
42 void onStorageStateChange(String path, String oldState, String newState) { argument
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
H A DIMountServiceListener.java80 String oldState;
81 oldState = data.readString();
84 this.onStorageStateChanged(path, oldState, newState);
131 * @param oldState The old state of the volume.
136 public void onStorageStateChanged(String path, String oldState, String newState) argument
143 _data.writeString(oldState);
170 * @param oldState The old state of the volume.
174 public void onStorageStateChanged(String path, String oldState, String newState) argument
H A DStorageManager.java95 public void onStorageStateChanged(String path, String oldState, String newState) { argument
98 mListeners.get(i).sendStorageStateChanged(path, oldState, newState);
241 public String oldState; field in class:StorageManager.StorageStateChangedStorageEvent
247 oldState = oldS;
271 mStorageEventListener.onStorageStateChanged(ev.path, ev.oldState, ev.newState);
288 void sendStorageStateChanged(String path, String oldState, String newState) { argument
289 StorageStateChangedStorageEvent e = new StorageStateChangedStorageEvent(path, oldState, newState);
/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);
H A DAsecTests.java528 String oldState; field in class:AsecTests.StorageListener
545 public void onStorageStateChanged(String path, String oldState, String newState) { argument
546 if (localLOGV) Log.i(TAG, "Storage state changed from " + oldState + " to " + newState);
547 this.oldState = oldState;
610 public void onStorageStateChanged(String path, String oldState, String newState) { argument
/frameworks/base/libs/storage/
H A DIMountServiceListener.cpp41 String16 oldState = data.readString16(); local
43 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, int data, argument
47 int oldStateFD = oldState != NULL ? jniGetFDFromFileDescriptor(env, oldState) : -1;
/frameworks/base/services/java/com/android/server/
H A DSystemBackupAgent.java63 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
78 super.onBackup(oldState, data, newState);
H A DPackageManagerBackupAgent.java121 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
127 parseStateFile(oldState);
H A DMountService.java633 final String oldState;
635 oldState = mVolumeStates.put(path, state);
638 if (state.equals(oldState)) {
644 Slog.d(TAG, "volume state changed for " + path + " (" + oldState + " -> " + state + ")");
668 bl.mListener.onStorageStateChanged(path, oldState, state);
858 private void notifyVolumeStateChange(String label, String path, int oldState, int newState) { argument
870 if (oldState == VolumeState.Shared && newState != oldState) {
/frameworks/wilhelm/src/itf/
H A DIPlay.c39 SLuint32 oldState = thiz->mState; local
40 if (state != oldState) {
47 switch ((oldState << 2) | state) {
52 // no-op, and unreachable due to earlier "if (state != oldState)"
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DStorageNotification.java120 public void onStorageStateChanged(final String path, final String oldState, final String newState) { argument
124 onStorageStateChangedAsync(path, oldState, newState);
129 private void onStorageStateChangedAsync(String path, String oldState, String newState) { argument
131 "Media {%s} state changed from {%s} -> {%s}", path, oldState, newState));
168 if (oldState.equals(Environment.MEDIA_SHARED)) {
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java271 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, argument
281 long[] stateChecksums = readOldChecksums(oldState);
529 private long[] readOldChecksums(ParcelFileDescriptor oldState) throws IOException { argument
533 new FileInputStream(oldState.getFileDescriptor()));

Completed in 99 milliseconds

12