Home
last modified time | relevance | path

Searched refs:mSelectedIndex (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiRadioButtonListItemAdapter.java41 private int mSelectedIndex = -1; field in CarUiRadioButtonListItemAdapter
47 if (item.isChecked() && mSelectedIndex >= 0) { in CarUiRadioButtonListItemAdapter()
53 mSelectedIndex = i; in CarUiRadioButtonListItemAdapter()
88 if (isChecked && mSelectedIndex >= 0) { in onBindViewHolder()
90 (CarUiRadioButtonListItem) getItems().get(mSelectedIndex); in onBindViewHolder()
92 notifyItemChanged(mSelectedIndex); in onBindViewHolder()
96 mSelectedIndex = position; in onBindViewHolder()
98 (CarUiRadioButtonListItem) getItems().get(mSelectedIndex); in onBindViewHolder()
100 notifyItemChanged(mSelectedIndex); in onBindViewHolder()
113 return mSelectedIndex; in getSelectedItemPosition()
/packages/apps/Settings/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceController.java57 mSelectedIndex = getDefaultDeviceIndex(); in onPreferenceChange()
67 mSelectedIndex = connectedDeviceIndex; in onPreferenceChange()
113 mSelectedIndex = getDefaultDeviceIndex(); in updateState()
138 mSelectedIndex = getDefaultDeviceIndex(); in setupPreferenceEntries()
141 mediaOutputs[mSelectedIndex] = defaultSummary; in setupPreferenceEntries()
143 mediaValues[mSelectedIndex] = defaultSummary; in setupPreferenceEntries()
150 mSelectedIndex = i; in setupPreferenceEntries()
160 listPreference.setValueIndex(mSelectedIndex); in setPreference()
161 listPreference.setSummary(mediaOutputs[mSelectedIndex]); in setPreference()
DAudioSwitchPreferenceController.java71 protected int mSelectedIndex; field in AudioSwitchPreferenceController
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSecondLevelIndicatorControlBar.java42 int mSelectedIndex = -1; field in SecondLevelIndicatorControlBar
111 if ((mSelectedIndex != -1) && (index != mSelectedIndex)) { in dispatchTouchEvent()
112 View p = getChildAt(mSelectedIndex); in dispatchTouchEvent()
130 if (mSelectedIndex != index && action == MotionEvent.ACTION_MOVE) { in dispatchTouchEvent()
134 mSelectedIndex = index; in dispatchTouchEvent()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/preference/
DListPreferenceFragment.java58 private int mSelectedIndex = -1; field in ListPreferenceFragment
121 mSelectedIndex = mPreference.findIndexOfValue(mPreference.getValue()); in onViewCreated()
131 if (i == mSelectedIndex) { in onViewCreated()
147 mSelectedIndex = listItems.indexOf(mSelectedItem); in onViewCreated()
181 if (mSelectedIndex >= 0 && mPreference != null) { in updatePreference()
182 String entryValue = mPreference.getEntryValues()[mSelectedIndex].toString(); in updatePreference()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperPickerActivity.java76 private int mSelectedIndex = -1; field in WallpaperPickerActivity
176 if (mSelectedIndex >= 0 && mSelectedIndex < mWallpapersView.getChildCount()) { in init()
177 onClick(mWallpapersView.getChildAt(mSelectedIndex)); in init()
279 mSelectedIndex = mWallpapersView.indexOfChild(v); in selectTile()
311 outState.putInt(SELECTED_INDEX, mSelectedIndex); in onSaveInstanceState()
319 mSelectedIndex = savedInstanceState.getInt(SELECTED_INDEX, -1); in onRestoreInstanceState()
533 if (i == mSelectedIndex) { in onActionItemClicked()
542 mSelectedIndex = -1; in onActionItemClicked()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryChartView.java81 @VisibleForTesting int mSelectedIndex; field in BatteryChartView
165 if (mSelectedIndex != index) { in setSelectedIndex()
166 mSelectedIndex = index; in setSelectedIndex()
170 mOnSelectListener.onSelect(mSelectedIndex); in setSelectedIndex()
276 if (trapezoidIndex == mSelectedIndex) { in onClick()
490 : mSelectedIndex == index || mSelectedIndex == SELECTED_INDEX_ALL in drawTrapezoids()
/packages/apps/Settings/src/com/android/settings/
DRestrictedListPreference.java179 private final int mSelectedIndex; field in RestrictedListPreference.RestrictedArrayAdapter
182 mSelectedIndex = selectedIndex; in RestrictedArrayAdapter()
196 if (mSelectedIndex != -1) { in getView()
197 text.setChecked(position == mSelectedIndex); in getView()
/packages/apps/Gallery/src/com/android/camera/
DImageGallery.java98 private int mSelectedIndex = GridViewSpecial.INDEX_NONE; field in ImageGallery
414 state.putInt(STATE_SELECTED_INDEX, mSelectedIndex);
422 mSelectedIndex = state.getInt(STATE_SELECTED_INDEX, 0);
633 mSelectedIndex = index;
743 mSelectedIndex = mAllImages.getImageIndex(image);
746 mGvs.setSelectedIndex(mSelectedIndex);
757 mGvs.scrollToVisible(mSelectedIndex);
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryChartViewTest.java103 mBatteryChartView.mSelectedIndex = 1; in testSetSelectedIndex_invokesCallback()
111 assertThat(mBatteryChartView.mSelectedIndex) in testSetSelectedIndex_invokesCallback()
120 mBatteryChartView.mSelectedIndex = expectedIndex; in testSetSelectedIndex_sameIndex_notInvokesCallback()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java304 private int mSelectedIndex; field in ScrollAdapterView
565 mSelectedIndex = -1;
739 return mSelectedIndex >= 0 ?
740 getChildAt(expandableIndexFromAdapterIndex(mSelectedIndex)) : null;
758 return mSelectedIndex;
1228 int focusIndex = mSelectedIndex < 0 ? -1 :
1229 expandableIndexFromAdapterIndex(mSelectedIndex);
1481 mSelectedIndex = getAdapterIndex(indexOfChild(child));
1485 int nextAdapterIndex = mSelectedIndex + mItemsOnOffAxis;
1497 mSelectedIndex = nextAdapterIndex;
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DLabeledEditorView.java582 private int mSelectedIndex; field in LabeledEditorView.EditTypeAdapter
632 dropDownView.setChecked(position == mSelectedIndex); in getDropDownView()
661 mSelectedIndex = selectedIndex; in setSelectedIndex()