/frameworks/base/core/tests/PlatformCompatFramework/src/com/android/internal/compat/ |
D | ChangeReporterTest.java | 30 int myState = ChangeReporter.STATE_ENABLED, otherState = ChangeReporter.STATE_DISABLED; in testStatsLogOnce() local 32 assertTrue(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogOnce() 33 reporter.reportChange(myUid, myChangeId, myState); in testStatsLogOnce() 36 assertFalse(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogOnce() 38 assertTrue(reporter.shouldWriteToStatsLog(otherUid, myChangeId, myState)); in testStatsLogOnce() 39 assertTrue(reporter.shouldWriteToStatsLog(myUid, otherChangeId, myState)); in testStatsLogOnce() 48 int myState = ChangeReporter.STATE_ENABLED; in testStatsLogAfterReset() local 50 assertTrue(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogAfterReset() 51 reporter.reportChange(myUid, myChangeId, myState); in testStatsLogAfterReset() 54 assertFalse(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogAfterReset() [all …]
|
/frameworks/base/core/java/com/android/internal/preference/ |
D | YesNoPreference.java | 109 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 110 myState.wasPositiveResult = getValue(); in onSaveInstanceState() 111 return myState; in onSaveInstanceState() 122 SavedState myState = (SavedState) state; in onRestoreInstanceState() local 123 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState() 124 setValue(myState.wasPositiveResult); in onRestoreInstanceState()
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarPreference.java | 198 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 199 myState.progress = mProgress; in onSaveInstanceState() 200 myState.max = mMax; in onSaveInstanceState() 201 return myState; in onSaveInstanceState() 213 SavedState myState = (SavedState) state; in onRestoreInstanceState() local 214 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState() 215 mProgress = myState.progress; in onRestoreInstanceState() 216 mMax = myState.max; in onRestoreInstanceState()
|
D | PreferenceScreen.java | 276 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 277 myState.isDialogShowing = true; in onSaveInstanceState() 278 myState.dialogBundle = dialog.onSaveInstanceState(); in onSaveInstanceState() 279 return myState; in onSaveInstanceState() 290 SavedState myState = (SavedState) state; in onRestoreInstanceState() local 291 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState() 292 if (myState.isDialogShowing) { in onRestoreInstanceState() 293 showDialog(myState.dialogBundle); in onRestoreInstanceState()
|
D | EditTextPreference.java | 201 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 202 myState.text = getText(); in onSaveInstanceState() 203 return myState; in onSaveInstanceState() 214 SavedState myState = (SavedState) state; in onRestoreInstanceState() local 215 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState() 216 setText(myState.text); in onRestoreInstanceState()
|
D | TwoStatePreference.java | 245 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 246 myState.checked = isChecked(); in onSaveInstanceState() 247 return myState; in onSaveInstanceState() 258 SavedState myState = (SavedState) state; in onRestoreInstanceState() local 259 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState() 260 setChecked(myState.checked); in onRestoreInstanceState()
|
D | VolumePreference.java | 186 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 188 mSeekBarVolumizer.onSaveInstanceState(myState.getVolumeStore()); in onSaveInstanceState() 190 return myState; in onSaveInstanceState() 201 SavedState myState = (SavedState) state; in onRestoreInstanceState() local 202 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState() 204 mSeekBarVolumizer.onRestoreInstanceState(myState.getVolumeStore()); in onRestoreInstanceState()
|
D | DialogPreference.java | 497 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 498 myState.isDialogShowing = true; in onSaveInstanceState() 499 myState.dialogBundle = mDialog.onSaveInstanceState(); in onSaveInstanceState() 500 return myState; in onSaveInstanceState() 511 SavedState myState = (SavedState) state; in onRestoreInstanceState() local 512 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState() 513 if (myState.isDialogShowing) { in onRestoreInstanceState() 514 showDialog(myState.dialogBundle); in onRestoreInstanceState()
|
D | ListPreference.java | 315 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 316 myState.value = getValue(); in onSaveInstanceState() 317 return myState; in onSaveInstanceState() 328 SavedState myState = (SavedState) state; in onRestoreInstanceState() local 329 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState() 330 setValue(myState.value); in onRestoreInstanceState()
|
D | MultiCheckPreference.java | 296 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 297 myState.values = getValues(); in onSaveInstanceState() 298 return myState; in onSaveInstanceState() 309 SavedState myState = (SavedState) state; in onRestoreInstanceState() local 310 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState() 311 setValues(myState.values); in onRestoreInstanceState()
|
D | MultiSelectListPreference.java | 253 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 254 myState.values = getValues(); in onSaveInstanceState() 255 return myState; in onSaveInstanceState()
|