Home
last modified time | relevance | path

Searched refs:selectedId (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/preference/
DRadioPreferencesTest.kt47 override val selectedId = mutableIntStateOf(0) in <lambda>() constant
57 val selectedId = mutableIntStateOf(1) in <lambda>() constant
66 override val selectedId = selectedId in <lambda>() constant
67 override val onIdSelected = { id: Int -> selectedId.intValue = id } in <lambda>()
77 val selectedId = mutableIntStateOf(1) in <lambda>() constant
88 override val selectedId = selectedId in <lambda>() constant
89 override val onIdSelected = { id: Int -> selectedId.intValue = id } in <lambda>()
99 val selectedId = mutableIntStateOf(1) in <lambda>() constant
110 override val selectedId = selectedId in <lambda>() constant
111 override val onIdSelected = { id: Int -> selectedId.intValue = id } in <lambda>()
[all …]
DListPreferenceTest.kt45 override val selectedId = mutableIntStateOf(0) in <lambda>() constant
61 override val selectedId = mutableIntStateOf(1) in <lambda>() constant
77 override val selectedId = mutableIntStateOf(0) in <lambda>() constant
96 override val selectedId = mutableIntStateOf(1) in <lambda>() constant
114 override val selectedId = mutableIntStateOf(1) in <lambda>() constant
133 override val selectedId = mutableIntStateOf(1) in <lambda>() constant
147 val selectedId = mutableIntStateOf(1) in <lambda>() constant
156 override val selectedId = selectedId in <lambda>() constant
157 override val onIdSelected = { id: Int -> selectedId.intValue = id } in <lambda>()
170 val selectedId = mutableIntStateOf(1) in <lambda>() constant
[all …]
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/ui/
DSpinnerTest.kt39 var selectedId by mutableStateOf(1) in spinner_initialState() variable
43 selectedId = selectedId, in spinner_initialState()
44 setId = { selectedId = it }, in spinner_initialState()
50 assertThat(selectedId).isEqualTo(1) in spinner_initialState()
55 var selectedId by mutableStateOf(1) in spinner_canChangeState() variable
59 selectedId = selectedId, in spinner_canChangeState()
60 setId = { selectedId = it }, in spinner_canChangeState()
69 assertThat(selectedId).isEqualTo(2) in spinner_canChangeState()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/preference/
DListPreferencePageProvider.kt72 val selectedId = rememberSaveable { mutableIntStateOf(1) } in getTitle() constant
81 override val selectedId = selectedId in getTitle() constant
82 override val onIdSelected: (id: Int) -> Unit = { selectedId.intValue = it } in getTitle()
89 val selectedId = rememberSaveable { mutableIntStateOf(1) } in SampleNotChangeableListPreference() constant
108 override val selectedId = selectedId in SampleNotChangeableListPreference() constant
109 override val onIdSelected: (id: Int) -> Unit = { selectedId.intValue = it } in SampleNotChangeableListPreference()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/ui/
DSpinnerPageProvider.kt59 var selectedId by rememberSaveable { mutableIntStateOf(1) } in Page() variable
62 selectedId = selectedId, in Page()
63 setId = { selectedId = it }, in Page()
67 override val summary = { selectedId.toString() } in Page()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/
DSpinner.kt56 fun Spinner(options: List<SpinnerOption>, selectedId: Int?, setId: (id: Int) -> Unit) { in Spinner()
83 SpinnerText(options.find { it.id == selectedId }) in Spinner()
142 var selectedId by rememberSaveable { mutableIntStateOf(1) } in SpinnerPreview() variable
145 selectedId = selectedId, in SpinnerPreview()
146 setId = { selectedId = it }, in SpinnerPreview()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/preference/
DListPreference.kt78 val selectedId: IntState constant
93 Radio(option, model.selectedId.intValue, model.enabled()) { in ListPreference()
105 model.options.find { it.id == model.selectedId.intValue }?.text ?: "" in ListPreference()
117 selectedId: Int, in Radio()
121 val selected = option.id == selectedId in Radio()
DRadioPreferences.kt42 Radio2(option, model.selectedId.intValue, model.enabled()) { in RadioPreferences()
52 selectedId: Int, in Radio2()
56 val selected = option.id == selectedId in Radio2()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/scaffold/
DSuwScaffoldPageProvider.kt76 var selectedId by rememberSaveable { mutableIntStateOf(1) } in Page() variable
79 selectedId = selectedId, in Page()
80 setId = { selectedId = it }, in Page()
/frameworks/base/core/java/android/widget/
DAbsSpinner.java385 long selectedId; field in AbsSpinner.SavedState
400 selectedId = in.readLong(); in SavedState()
407 out.writeLong(selectedId); in writeToParcel()
415 + " selectedId=" + selectedId in toString()
435 ss.selectedId = getSelectedItemId(); in onSaveInstanceState()
436 if (ss.selectedId >= 0) { in onSaveInstanceState()
450 if (ss.selectedId >= 0) { in onRestoreInstanceState()
453 mSyncRowId = ss.selectedId; in onRestoreInstanceState()
DAbsListView.java1797 long selectedId; field in AbsListView.SavedState
1822 selectedId = in.readLong(); in SavedState()
1845 out.writeLong(selectedId); in writeToParcel()
1866 + " selectedId=" + selectedId in toString()
1905 ss.selectedId = mPendingSync.selectedId; in onSaveInstanceState()
1919 long selectedId = getSelectedItemId(); in onSaveInstanceState() local
1920 ss.selectedId = selectedId; in onSaveInstanceState()
1923 if (selectedId >= 0) { in onSaveInstanceState()
1996 if (ss.selectedId >= 0) { in onRestoreInstanceState()
1999 mSyncRowId = ss.selectedId; in onRestoreInstanceState()
/frameworks/base/packages/SettingsLib/Spa/screenshot/src/com/android/settingslib/spa/screenshot/widget/ui/
DSpinnerScreenshotTest.kt50 selectedId = 1, in getTestSpecs()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt65086 Landroid/widget/AbsListView$SavedState;->selectedId:J
65304 Landroid/widget/AbsSpinner$SavedState;->selectedId:J