Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/content/pm/
DPackageUserState.java405 final PackageUserState oldState = (PackageUserState) obj; in equals() local
406 if (ceDataInode != oldState.ceDataInode) { in equals()
409 if (installed != oldState.installed) { in equals()
412 if (stopped != oldState.stopped) { in equals()
415 if (notLaunched != oldState.notLaunched) { in equals()
418 if (hidden != oldState.hidden) { in equals()
421 if (distractionFlags != oldState.distractionFlags) { in equals()
424 if (suspended != oldState.suspended) { in equals()
428 if (!Objects.equals(suspendParams, oldState.suspendParams)) { in equals()
432 if (instantApp != oldState.instantApp) { in equals()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthBiometricFingerprintView.java130 private boolean shouldAnimateForTransition(int oldState, int newState) { in shouldAnimateForTransition() argument
137 if (oldState == STATE_ERROR || oldState == STATE_HELP) { in shouldAnimateForTransition()
149 private Drawable getAnimationForTransition(int oldState, int newState) { in getAnimationForTransition() argument
159 if (oldState == STATE_ERROR || oldState == STATE_HELP) { in getAnimationForTransition()
/frameworks/base/core/java/android/app/backup/
DBackupHelperDispatcher.java48 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
57 if (oldState != null) { in performBackup()
58 oldStateFD = oldState.getFileDescriptor(); in performBackup()
64 doOneBackup(oldState, data, newState, header, helper); in performBackup()
78 doOneBackup(oldState, data, newState, header, helper); in performBackup()
82 private void doOneBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in doOneBackup() argument
97 helper.performBackup(oldState, data, newState); in doOneBackup()
DFileBackupHelperBase.java54 static void performBackup_checked(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup_checked() argument
71 FileDescriptor oldStateFd = oldState != null ? oldState.getFileDescriptor() : null; in performBackup_checked()
123 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenState.java79 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() argument
99 final boolean pulseEnding = oldState == DOZE_PULSE_DONE && newState.isAlwaysOn(); in transitionTo()
100 final boolean turningOn = (oldState == DOZE_AOD_PAUSED || oldState == DOZE) in transitionTo()
102 final boolean turningOff = (oldState.isAlwaysOn() && newState == DOZE) in transitionTo()
103 || (oldState == DOZE_AOD_PAUSING && newState == DOZE_AOD_PAUSED); in transitionTo()
104 final boolean justInitialized = oldState == DozeMachine.State.INITIALIZED; in transitionTo()
DDozeMachine.java287 State oldState = mState; in transitionTo() local
293 updatePulseReason(newState, oldState, pulseReason); in transitionTo()
294 performTransitionOnComponents(oldState, newState); in transitionTo()
300 private void updatePulseReason(State newState, State oldState, int pulseReason) { in updatePulseReason() argument
303 } else if (oldState == State.DOZE_PULSE_DONE) { in updatePulseReason()
308 private void performTransitionOnComponents(State oldState, State newState) { in performTransitionOnComponents() argument
310 p.transitionTo(oldState, newState); in performTransitionOnComponents()
430 void transitionTo(State oldState, State newState); in transitionTo() argument
DDozeWallpaperState.java59 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() argument
80 boolean wakingUpFromPulse = oldState == DozeMachine.State.DOZE_PULSING in transitionTo()
/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/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccSlot.java88 CardState oldState = mCardState; in update() local
101 if (absentStateUpdateNeeded(oldState)) { in update()
107 } else if ((oldState == null || oldState == CardState.CARDSTATE_ABSENT in update()
147 CardState oldState = mCardState; in update() local
167 if (absentStateUpdateNeeded(oldState)) { in update()
177 private boolean absentStateUpdateNeeded(CardState oldState) { in absentStateUpdateNeeded() argument
178 return (oldState != CardState.CARDSTATE_ABSENT || mUiccCard != null) in absentStateUpdateNeeded()
/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()
/frameworks/base/core/java/android/os/storage/
DIStorageEventListener.aidl48 void onStorageStateChanged(in String path, in String oldState, in String newState) = 1; in onStorageStateChanged() argument
50 void onVolumeStateChanged(in VolumeInfo vol, int oldState, int newState) = 2; in onVolumeStateChanged() argument
DStorageEventListener.java48 public void onStorageStateChanged(String path, String oldState, String newState) { in onStorageStateChanged() argument
52 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in onVolumeStateChanged() argument
/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…
/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.cpp55 String16 oldState = data.readString16(); in onTransact() local
57 onStorageStateChanged(path, oldState, newState); in onTransact()
/frameworks/base/services/core/java/com/android/server/am/
DUserState.java80 public boolean setState(int oldState, int newState) { in setState() argument
81 if (state == oldState) { in setState()
86 + stateToString(oldState) + " but was in state " + stateToString(state)); in setState()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java468 assertThat(agentMock.oldState).isEqualTo("oldState".getBytes()); in testRunTask_whenPackageWithOldStateAndIncremental_passesOldStateToAgent()
481 assertThat(agentMock.oldState).isEqualTo(new byte[0]); in testRunTask_whenPackageWithOldStateAndNonIncremental_passesEmptyOldStateToAgent()
722 (oldState, dataOutput, newState) -> { in testRunTask_whenCallingAgent_setsWakeLockWorkSource()
766 (oldState, dataOutput, newState) -> { in testRunTask_whenSecondAgentUnavailable_commitsFirstAgentState()
898 (oldState, dataOutput, newState) -> { in testRunTask_whenLocalAgentOnBackupThrows_setsNullWorkSource()
914 (oldState, dataOutput, newState) -> { in testRunTask_whenLocalAgentOnBackupThrows_reportsCorrectly()
939 (oldState, dataOutput, newState) -> { in testRunTask_whenLocalAgentOnBackupThrows_doesNotUpdateBookkeping()
955 (oldState, dataOutput, newState) -> { in testRunTask_whenAgentOnBackupThrows_reportsCorrectly()
971 (oldState, dataOutput, newState) -> { in testRunTask_whenAgentOnBackupThrows_updatesBookkeeping()
987 (oldState, dataOutput, newState) -> { in testRunTask_whenAgentOnBackupThrows_doesNotCallTransport()
[all …]
/frameworks/base/services/robotests/backup/src/android/app/backup/
DForwardingBackupAgent.java57 ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState) in onBackup() argument
59 mBackupAgent.onBackup(oldState, data, newState); in onBackup()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java410 Setting oldState = mSettings.get(name); in insertSettingLocked() local
411 String oldValue = (oldState != null) ? oldState.value : null; in insertSettingLocked()
412 String oldDefaultValue = (oldState != null) ? oldState.defaultValue : null; in insertSettingLocked()
415 if (oldState != null) { in insertSettingLocked()
416 if (!oldState.update(value, makeDefault, packageName, tag, forceNonSystemPackage, in insertSettingLocked()
420 newState = oldState; in insertSettingLocked()
497 final Setting oldState = entry.getValue(); in setSettingsLocked() local
502 /* value= */ "", /* newValue= */ "", oldState.value, /* tag */ "", false, in setSettingsLocked()
504 addHistoricalOperationLocked(HISTORICAL_OPERATION_DELETE, oldState); in setSettingsLocked()
554 Setting oldState = mSettings.remove(name); in deleteSettingLocked() local
[all …]
/frameworks/base/services/core/java/com/android/server/location/provider/
DAbstractLocationProvider.java54 void onStateChanged(State oldState, State newState); in onStateChanged() argument
249 State oldState = oldStateRef.get(); in setState() local
251 if (oldState.equals(newInternalState.state)) { in setState()
258 newInternalState.listener.onStateChanged(oldState, newInternalState.state); in setState()
/frameworks/base/core/java/android/app/servertransaction/
DPendingTransactionActions.java82 public void setOldState(Bundle oldState) { in setOldState() argument
83 mOldState = oldState; in setOldState()

12345