Home
last modified time | relevance | path

Searched refs:myState (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/tests/PlatformCompatFramework/src/com/android/internal/compat/
DChangeReporterTest.java30 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/
DYesNoPreference.java109 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/
DSeekBarPreference.java199 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local
200 myState.progress = mProgress; in onSaveInstanceState()
201 myState.max = mMax; in onSaveInstanceState()
202 return myState; in onSaveInstanceState()
214 SavedState myState = (SavedState) state; in onRestoreInstanceState() local
215 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState()
216 mProgress = myState.progress; in onRestoreInstanceState()
217 mMax = myState.max; in onRestoreInstanceState()
DPreferenceScreen.java277 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local
278 myState.isDialogShowing = true; in onSaveInstanceState()
279 myState.dialogBundle = dialog.onSaveInstanceState(); in onSaveInstanceState()
280 return myState; in onSaveInstanceState()
291 SavedState myState = (SavedState) state; in onRestoreInstanceState() local
292 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState()
293 if (myState.isDialogShowing) { in onRestoreInstanceState()
294 showDialog(myState.dialogBundle); in onRestoreInstanceState()
DEditTextPreference.java203 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local
204 myState.text = getText(); in onSaveInstanceState()
205 return myState; in onSaveInstanceState()
216 SavedState myState = (SavedState) state; in onRestoreInstanceState() local
217 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState()
218 setText(myState.text); in onRestoreInstanceState()
DTwoStatePreference.java245 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()
DVolumePreference.java191 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local
193 mSeekBarVolumizer.onSaveInstanceState(myState.getVolumeStore()); in onSaveInstanceState()
195 return myState; in onSaveInstanceState()
206 SavedState myState = (SavedState) state; in onRestoreInstanceState() local
207 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState()
209 mSeekBarVolumizer.onRestoreInstanceState(myState.getVolumeStore()); in onRestoreInstanceState()
DDialogPreference.java474 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local
475 myState.isDialogShowing = true; in onSaveInstanceState()
476 myState.dialogBundle = mDialog.onSaveInstanceState(); in onSaveInstanceState()
477 return myState; in onSaveInstanceState()
488 SavedState myState = (SavedState) state; in onRestoreInstanceState() local
489 super.onRestoreInstanceState(myState.getSuperState()); in onRestoreInstanceState()
490 if (myState.isDialogShowing) { in onRestoreInstanceState()
491 showDialog(myState.dialogBundle); in onRestoreInstanceState()
DListPreference.java315 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()
DMultiCheckPreference.java296 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()
DMultiSelectListPreference.java253 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local
254 myState.values = getValues(); in onSaveInstanceState()
255 return myState; in onSaveInstanceState()