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

12

/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.java98 public void onStorageStateChanged(String path, String oldState, String newState) { argument
101 mListeners.get(i).sendStorageStateChanged(path, oldState, newState);
244 public String oldState; field in class:StorageManager.StorageStateChangedStorageEvent
250 oldState = oldS;
274 mStorageEventListener.onStorageStateChanged(ev.path, ev.oldState, ev.newState);
291 void sendStorageStateChanged(String path, String oldState, String newState) { argument
292 StorageStateChangedStorageEvent e = new StorageStateChangedStorageEvent(path, oldState, newState);
/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 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
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 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 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);
/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/include/storage/
H A DIMountServiceListener.h31 const String16& oldState, const String16& newState) = 0;
/frameworks/base/core/java/android/app/
H A DIBackupAgent.aidl33 * @param oldState Read-only file containing the description blob of the
51 void doBackup(in ParcelFileDescriptor oldState,
/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);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DBaseCommands.java675 RadioState oldState;
678 oldState = mState;
681 if (oldState == mState) {
688 if (mState.isAvailable() && !oldState.isAvailable()) {
693 if (!mState.isAvailable() && oldState.isAvailable()) {
697 if (mState.isOn() && !oldState.isOn()) {
702 && !((!oldState.isOn() || !oldState.isAvailable()))
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DStorageNotification.java76 final String oldState, final String newState) {
80 onStorageStateChangedAsync(path, oldState, newState);
123 private void onStorageStateChangedAsync(String path, String oldState, String newState) { argument
125 "Media {%s} state changed from {%s} -> {%s}", path, oldState, newState));
162 if (oldState.equals(Environment.MEDIA_SHARED)) {
75 onStorageStateChanged(final String path, final String oldState, final String newState) argument
/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/core/java/com/android/internal/os/storage/
H A DExternalStorageFormatter.java56 public void onStorageStateChanged(String path, String oldState, String newState) {
58 path + " changed state from " + oldState +

Completed in 592 milliseconds

12