Home
last modified time | relevance | path

Searched refs:sel (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/widget/
DListView.java874 View sel = makeAndAddView(position, childrenTop, true, in fillFromMiddle() local
878 int selHeight = sel.getMeasuredHeight(); in fillFromMiddle()
880 sel.offsetTopAndBottom((height - selHeight) / 2); in fillFromMiddle()
883 fillAboveAndBelow(sel, position); in fillFromMiddle()
891 return sel; in fillFromMiddle()
901 private void fillAboveAndBelow(View sel, int position) { in fillAboveAndBelow() argument
904 fillUp(position - 1, sel.getTop() - dividerHeight); in fillAboveAndBelow()
906 fillDown(position + 1, sel.getBottom() + dividerHeight); in fillAboveAndBelow()
908 fillDown(position + 1, sel.getBottom() + dividerHeight); in fillAboveAndBelow()
910 fillUp(position - 1, sel.getTop() - dividerHeight); in fillAboveAndBelow()
[all …]
DGridView.java494 final View sel = makeRow(mStackFromBottom ? rowEnd : rowStart, topSelectionPixel, true); in fillSelection() local
515 return sel; in fillSelection()
744 View sel; in fillFromSelection() local
751 sel = makeRow(mStackFromBottom ? rowEnd : rowStart, selectedTop, true); in fillFromSelection()
770 return sel; in fillFromSelection()
932 View sel; in moveSelection() local
943 sel = makeRow(mStackFromBottom ? rowEnd : rowStart, oldBottom + verticalSpacing, true); in moveSelection()
954 sel = makeRow(mStackFromBottom ? rowEnd : rowStart, oldTop - verticalSpacing, false); in moveSelection()
965 sel = makeRow(mStackFromBottom ? rowEnd : rowStart, oldTop, true); in moveSelection()
979 return sel; in moveSelection()
[all …]
DAbsListView.java2599 void positionSelectorLikeTouch(int position, View sel, float x, float y) { in positionSelectorLikeTouch() argument
2600 positionSelector(position, sel, true, x, y); in positionSelectorLikeTouch()
2606 void positionSelectorLikeFocus(int position, View sel) { in positionSelectorLikeFocus() argument
2611 positionSelector(position, sel, true, x, y); in positionSelectorLikeFocus()
2613 positionSelector(position, sel); in positionSelectorLikeFocus()
2617 void positionSelector(int position, View sel) { in positionSelector() argument
2618 positionSelector(position, sel, false, -1, -1); in positionSelector()
2622 private void positionSelector(int position, View sel, boolean manageHotspot, float x, float y) { in positionSelector() argument
2629 selectorRect.set(sel.getLeft(), sel.getTop(), sel.getRight(), sel.getBottom()); in positionSelector()
2630 if (sel instanceof SelectionBoundsAdjuster) { in positionSelector()
[all …]
DSpinner.java672 View sel = makeView(mSelectedPosition, true); in layout() local
673 int width = sel.getMeasuredWidth(); in layout()
685 sel.offsetLeftAndRight(selectedOffset); in layout()
DGallery.java689 View sel = makeAndAddView(mSelectedPosition, 0, 0, true); in layout() local
692 int selectedOffset = childrenLeft + (childrenWidth / 2) - (sel.getWidth() / 2) + in layout()
694 sel.offsetLeftAndRight(selectedOffset); in layout()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DConvert.java267 @NonNull ProgramSelector sel) { in programSelectorToHal()
271 programIdentifierToHal(hwSel.primaryId, sel.getPrimaryId()); in programSelectorToHal()
272 Arrays.stream(sel.getSecondaryIds()).map(Convert::programIdentifierToHal). in programSelectorToHal()
279 @NonNull android.hardware.broadcastradio.V2_0.ProgramSelector sel) { in isEmpty()
280 if (sel.primaryId.type != 0) return false; in isEmpty()
281 if (sel.primaryId.value != 0) return false; in isEmpty()
282 if (sel.secondaryIds.size() != 0) return false; in isEmpty()
287 @NonNull android.hardware.broadcastradio.V2_0.ProgramSelector sel) { in programSelectorFromHal()
288 if (isEmpty(sel)) return null; in programSelectorFromHal()
290 ProgramSelector.Identifier[] secondaryIds = sel.secondaryIds.stream(). in programSelectorFromHal()
[all …]
/frameworks/base/core/java/android/hardware/radio/
DProgramList.java199 ProgramSelector.Identifier sel = value.getSelector().getPrimaryId(); in putLocked() local
200 mListCallbacks.forEach(cb -> cb.onItemChanged(sel)); in putLocked()
206 ProgramSelector.Identifier sel = removed.getSelector().getPrimaryId(); in removeLocked()
207 mListCallbacks.forEach(cb -> cb.onItemRemoved(sel)); in removeLocked()
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/tests/functional/
DRadioTunerTest.java393 ProgramSelector sel = list.get(0).getSelector(); in testTuneFromProgramList() local
394 mRadioTuner.tune(sel); in testTuneFromProgramList()
398 assertEquals(sel, infoc.getValue().getSelector()); in testTuneFromProgramList()