Home
last modified time | relevance | path

Searched refs:oldState (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/core/java/android/app/backup/
DBackupHelperDispatcher.java45 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
54 if (oldState != null) { in performBackup()
55 oldStateFD = oldState.getFileDescriptor(); in performBackup()
61 doOneBackup(oldState, data, newState, header, helper); in performBackup()
75 doOneBackup(oldState, data, newState, header, helper); in performBackup()
79 private void doOneBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in doOneBackup() argument
94 helper.performBackup(oldState, data, newState); in doOneBackup()
DFileBackupHelperBase.java53 static void performBackup_checked(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup_checked() argument
70 FileDescriptor oldStateFd = oldState != null ? oldState.getFileDescriptor() : null; in performBackup_checked()
121 native private static int performBackup_native(FileDescriptor oldState, in performBackup_native() argument
DBackupAgentHelper.java64 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument
66 mDispatcher.performBackup(oldState, data, newState); in onBackup()
DAbsoluteFileBackupHelper.java57 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
60 performBackup_checked(oldState, data, newState, mFiles, mFiles); in performBackup()
DFileBackupHelper.java73 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
85 performBackup_checked(oldState, data, newState, fullPaths, files); in performBackup()
DSharedPreferencesBackupHelper.java94 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
111 performBackup_checked(oldState, data, newState, files, prefGroups); in performBackup()
DWallpaperBackupHelper.java124 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
126 performBackup_checked(oldState, data, newState, mFiles, mKeys); in performBackup()
DBackupHelper.java72 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
DFullBackupAgent.java31 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument
/frameworks/base/core/java/android/os/storage/
DIMountServiceListener.java79 final String oldState = data.readString(); in onTransact() local
81 this.onStorageStateChanged(path, oldState, newState); in onTransact()
88 final int oldState = 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
178 _data.writeString(oldState); in onStorageStateChanged()
190 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) in onVolumeStateChanged() argument
197 _data.writeInt(oldState); 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
DStorageEventListener.java38 public void onStorageStateChanged(String path, String oldState, String newState) { in onStorageStateChanged() argument
41 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in onVolumeStateChanged() argument
DMountServiceListener.java42 void onStorageStateChange(String path, String oldState, String newState) { in onStorageStateChange() argument
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeAgent.java87 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument
108 boolean doBackup = (oldState == null); in onBackup()
110 doBackup = compareStateFile(oldState); in onBackup()
157 boolean compareStateFile(ParcelFileDescriptor oldState) { in compareStateFile() argument
158 FileInputStream instream = new FileInputStream(oldState.getFileDescriptor()); in compareStateFile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockIcon.java237 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()
/frameworks/base/services/core/java/com/android/server/am/
DUserState.java69 public boolean setState(int oldState, int newState) { in setState() argument
70 if (state == oldState) { in setState()
75 + stateToString(oldState) + " but was in state " + stateToString(state)); in setState()
/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…
DBaseCommands.java771 RadioState oldState; in setRadioState() local
774 oldState = mState; in setRadioState()
777 if (oldState == mState) { in setRadioState()
784 if (mState.isAvailable() && !oldState.isAvailable()) { in setRadioState()
789 if (!mState.isAvailable() && oldState.isAvailable()) { in setRadioState()
793 if (mState.isOn() && !oldState.isOn()) { in setRadioState()
798 && !((!oldState.isOn() || !oldState.isAvailable())) in setRadioState()
/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()
DAsecTests.java528 String oldState; field in AsecTests.StorageListener
545 public void onStorageStateChanged(String path, String oldState, String newState) { in onStorageStateChanged() argument
546 if (localLOGV) Log.i(TAG, "Storage state changed from " + oldState + " to " + newState); in onStorageStateChanged()
547 this.oldState = oldState; in onStorageStateChanged()
610 public void onStorageStateChanged(String path, String oldState, String newState) { in onStorageStateChanged() argument
/frameworks/base/core/jni/
Dandroid_backup_FileBackupHelperBase.cpp41 performBackup_native(JNIEnv* env, jobject clazz, jobject oldState, jlong data, in performBackup_native() argument
47 int oldStateFD = oldState != NULL ? jniGetFDFromFileDescriptor(env, oldState) : -1; in performBackup_native()
/frameworks/base/libs/storage/
DIMountServiceListener.cpp41 String16 oldState = data.readString16(); in onTransact() local
43 onStorageStateChanged(path, oldState, newState); in onTransact()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java239 Setting oldState = mSettings.get(name); in insertSettingLocked() local
240 String oldValue = (oldState != null) ? oldState.value : null; in insertSettingLocked()
242 if (oldState != null) { in insertSettingLocked()
243 if (!oldState.update(value, packageName)) { in insertSettingLocked()
270 Setting oldState = mSettings.remove(name); in deleteSettingLocked() local
272 updateMemoryUsagePerPackageLocked(oldState.packageName, oldState.value, null); in deleteSettingLocked()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DFullWidthDetailsOverviewRowPresenter.java657 protected void onLayoutLogo(ViewHolder viewHolder, int oldState, boolean logoChanged) { in onLayoutLogo() argument
701 protected void onLayoutOverviewFrame(ViewHolder viewHolder, int oldState, boolean logoChanged) { in onLayoutOverviewFrame() argument
702 boolean wasBanner = oldState == STATE_SMALL; in onLayoutOverviewFrame()
768 int oldState = viewHolder.getState(); in setState() local
770 onStateChanged(viewHolder, oldState); in setState()
781 protected void onStateChanged(ViewHolder viewHolder, int oldState) { in onStateChanged() argument
782 onLayoutOverviewFrame(viewHolder, oldState, false); in onStateChanged()
783 onLayoutLogo(viewHolder, oldState, false); in onStateChanged()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java131 public boolean onPlaystateChange(MediaSessionRecord record, int oldState, int newState) { in onPlaystateChange() argument
132 if (shouldUpdatePriority(oldState, newState)) { in onPlaystateChange()
373 private boolean shouldUpdatePriority(int oldState, int newState) { in shouldUpdatePriority() argument
377 if (!containsState(oldState, TRANSITION_PRIORITY_STATES) in shouldUpdatePriority()
/frameworks/base/core/java/com/android/server/backup/
DAccountSyncSettingsBackupHelper.java94 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput output, in performBackup() argument
105 byte[] oldMd5Checksum = readOldMd5Checksum(oldState); in performBackup()
191 private byte[] readOldMd5Checksum(ParcelFileDescriptor oldState) throws IOException { in readOldMd5Checksum() argument
193 new FileInputStream(oldState.getFileDescriptor())); in readOldMd5Checksum()

123