Home
last modified time | relevance | path

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

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiSnapHelper.java115 View firstChild = layoutManager.getChildAt(0); in findSnapView() local
116 return isValidSnapView(firstChild, orientationHelper) ? firstChild : null; in findSnapView()
127 View firstChild = mRecyclerView.getChildAt(0); in findSnapView() local
128 if (firstChild.getHeight() > mRecyclerView.getHeight() in findSnapView()
130 && orientationHelper.getDecoratedStart(firstChild) < 0 in findSnapView()
132 && orientationHelper.getDecoratedEnd(firstChild) > ( in findSnapView()
390 @NonNull View firstChild = Objects.requireNonNull(layoutManager.getChildAt(0)); in isAtStart() local
396 return orientationHelper.getDecoratedStart(firstChild) in isAtStart()
397 >= orientationHelper.getStartAfterPadding() && layoutManager.getPosition(firstChild) in isAtStart()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreview.java220 final View firstChild = mAttachmentView.getChildAt(0); in onAttachmentsChanged() local
221 if (firstChild instanceof MultiAttachmentLayout) { in onAttachmentsChanged()
223 multiAttachmentLayout = (MultiAttachmentLayout) firstChild; in onAttachmentsChanged()
227 transitionRect = new Rect(firstChild.getLeft(), firstChild.getTop(), in onAttachmentsChanged()
228 firstChild.getRight(), firstChild.getBottom()); in onAttachmentsChanged()
246 final View firstChild = mAttachmentView.getChildAt(0); in onAttachmentsChanged() local
247 if (firstChild instanceof MultiAttachmentLayout && in onAttachmentsChanged()
249 final View leftoverView = ((MultiAttachmentLayout) firstChild) in onAttachmentsChanged()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DDelegatingContentLimitingAdapterTest.java83 View firstChild = Objects.requireNonNull(layoutManager.getChildAt(0)); in setMaxItem_noScrolling_noContentLimiting() local
84 boolean isAtStart = orientationHelper.getDecoratedStart(firstChild) in setMaxItem_noScrolling_noContentLimiting()
86 && layoutManager.getPosition(firstChild) == 0; in setMaxItem_noScrolling_noContentLimiting()
110 View firstChild = Objects.requireNonNull(layoutManager.getChildAt(0)); in setMaxItem_noScrolling() local
111 boolean isAtStart = orientationHelper.getDecoratedStart(firstChild) in setMaxItem_noScrolling()
113 && layoutManager.getPosition(firstChild) == 0; in setMaxItem_noScrolling()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DPagedSnapHelper.java241 View firstChild = layoutManager.getChildAt(0); in isAtStart() local
247 return orientationHelper.getDecoratedStart(firstChild) in isAtStart()
249 && layoutManager.getPosition(firstChild) == 0; in isAtStart()
/packages/services/Car/tools/emulator/
Ddriving_info_generator.py75 self.datetime = datetime.datetime.strptime(timeElements[0].firstChild.nodeValue,
79 self.speedInMps = float(speedElements[0].firstChild.nodeValue)
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java1210 final View firstChild = mContent.getFirstItem(); in updateTextViewFocus() local
1212 if (firstChild != null && lastChild != null) { in updateTextViewFocus()
1219 mFolderName.setNextFocusForwardId(firstChild.getId()); in updateTextViewFocus()
1222 this.setNextFocusDownId(firstChild.getId()); in updateTextViewFocus()
1223 this.setNextFocusRightId(firstChild.getId()); in updateTextViewFocus()
1224 this.setNextFocusLeftId(firstChild.getId()); in updateTextViewFocus()
1225 this.setNextFocusUpId(firstChild.getId()); in updateTextViewFocus()
DFolderPagedView.java423 View firstChild = getCurrentCellLayout().getChildAt(0, 0); in setFocusOnFirstChild() local
424 if (firstChild != null) { in setFocusOnFirstChild()
425 firstChild.requestFocus(); in setFocusOnFirstChild()
/packages/apps/Contacts/src/com/android/contacts/list/
DPinnedHeaderListView.java526 View firstChild = getChildAt(0); in dispatchDraw() local
530 int firstHeaderTop = firstChild != null ? firstChild.getTop() : 0; in dispatchDraw()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java301 View firstChild = mList.getChildAt(0); in onActivityCreated()
303 firstChild != null ? firstChild.getTop() - mList.getPaddingTop() : 0; in onActivityCreated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigControllerTest.java563 final LinearLayout firstChild = (LinearLayout) advancedFieldsLayout.getChildAt(0); in getHiddenSettingsPosition_whenAdvancedToggled_shouldBeFirst() local
565 assertThat(firstChild).isEqualTo(hiddenSettingLayout); in getHiddenSettingsPosition_whenAdvancedToggled_shouldBeFirst()
DWifiConfigController2Test.java603 final LinearLayout firstChild = (LinearLayout) advancedFieldsLayout.getChildAt(0); in getHiddenSettingsPosition_whenAdvancedToggled_shouldBeFirst() local
605 assertThat(firstChild).isEqualTo(hiddenSettingLayout); in getHiddenSettingsPosition_whenAdvancedToggled_shouldBeFirst()