/frameworks/base/core/tests/PlatformCompatFramework/src/com/android/internal/compat/ |
D | ChangeReporterTest.java | 38 int myState = ChangeReporter.STATE_ENABLED, otherState = ChangeReporter.STATE_DISABLED; in testStatsLogOnce() local 40 assertTrue(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogOnce() 41 reporter.reportChange(myUid, myChangeId, myState); in testStatsLogOnce() 44 assertFalse(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogOnce() 46 assertTrue(reporter.shouldWriteToStatsLog(otherUid, myChangeId, myState)); in testStatsLogOnce() 47 assertTrue(reporter.shouldWriteToStatsLog(myUid, otherChangeId, myState)); in testStatsLogOnce() 56 int myState = ChangeReporter.STATE_ENABLED; in testStatsLogAfterReset() local 58 assertTrue(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogAfterReset() 59 reporter.reportChange(myUid, myChangeId, myState); in testStatsLogAfterReset() 62 assertFalse(reporter.shouldWriteToStatsLog(myUid, myChangeId, myState)); in testStatsLogAfterReset() [all …]
|
/frameworks/base/tests/MultiDeviceInput/src/test/multideviceinput/ |
D | DrawingView.kt | 75 private var myState: SharedScaledPointerSize? = null variable in test.multideviceinput.DrawingView 80 myState: SharedScaledPointerSize, 83 this.myState = myState 166 myState?.state = PointerState.DOWN in processTouchEvent() 168 myState?.state = PointerState.NONE in processTouchEvent() 173 val size = myState?.lineSize ?: 5f in processTouchEvent() 184 myState?.state = PointerState.HOVER in processHoverEvent() 186 myState?.state = PointerState.NONE in processHoverEvent() 209 val size = myState?.circleSize ?: 20f in onDraw()
|
/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 | 199 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()
|
D | PreferenceScreen.java | 277 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()
|
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 | EditTextPreference.java | 203 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()
|
D | VolumePreference.java | 191 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()
|
D | DialogPreference.java | 474 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()
|
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 | 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 | MultiSelectListPreference.java | 253 final SavedState myState = new SavedState(superState); in onSaveInstanceState() local 254 myState.values = getValues(); in onSaveInstanceState() 255 return myState; in onSaveInstanceState()
|