Home
last modified time | relevance | path

Searched refs:widthSpec (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/
DCalculatedWorkspaceSpecTest.kt58 val widthSpec = in normalPhone_returnsThirdBreakpointSpec() constant
63 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in normalPhone_returnsThirdBreakpointSpec()
64 assertThat(widthSpec.cells).isEqualTo(4) in normalPhone_returnsThirdBreakpointSpec()
65 assertThat(widthSpec.startPaddingPx).isEqualTo(58) in normalPhone_returnsThirdBreakpointSpec()
66 assertThat(widthSpec.endPaddingPx).isEqualTo(58) in normalPhone_returnsThirdBreakpointSpec()
67 assertThat(widthSpec.gutterPx).isEqualTo(42) in normalPhone_returnsThirdBreakpointSpec()
68 assertThat(widthSpec.cellSizePx).isEqualTo(210) in normalPhone_returnsThirdBreakpointSpec()
101 val widthSpec = in smallPhone_returnsFirstBreakpointSpec() constant
106 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in smallPhone_returnsFirstBreakpointSpec()
107 assertThat(widthSpec.cells).isEqualTo(4) in smallPhone_returnsFirstBreakpointSpec()
[all …]
DCalculatedAllAppsSpecTest.kt57 val widthSpec = in normalPhone_copiesFromWorkspace() constant
74 widthSpec in normalPhone_copiesFromWorkspace()
79 assertThat(startPaddingPx).isEqualTo(widthSpec.startPaddingPx) in normalPhone_copiesFromWorkspace()
80 assertThat(endPaddingPx).isEqualTo(widthSpec.endPaddingPx) in normalPhone_copiesFromWorkspace()
81 assertThat(gutterPx).isEqualTo(widthSpec.gutterPx) in normalPhone_copiesFromWorkspace()
82 assertThat(cellSizePx).isEqualTo(widthSpec.cellSizePx) in normalPhone_copiesFromWorkspace()
DCalculatedHotseatSpecTest.kt103 val widthSpec = in normalPhoneLandscape_returnsSecondBreakpointSpec() constant
106 assertThat(widthSpec.availableSpace).isEqualTo(availableWidth) in normalPhoneLandscape_returnsSecondBreakpointSpec()
107 assertThat(widthSpec.hotseatQsbSpace).isEqualTo(0) in normalPhoneLandscape_returnsSecondBreakpointSpec()
108 assertThat(widthSpec.edgePadding).isEqualTo(168) in normalPhoneLandscape_returnsSecondBreakpointSpec()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DControlPanelLayout.java40 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
41 int widthSpecSize = MeasureSpec.getSize(widthSpec); in onMeasure()
50 mode = MeasureSpec.getMode(widthSpec); in onMeasure()
81 widthSpec = MeasureSpec.makeMeasureSpec(measuredSize, MeasureSpec.EXACTLY); in onMeasure()
86 super.onMeasure(widthSpec, heightSpec); in onMeasure()
DRotateLayout.java65 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
70 measureChild(mChild, widthSpec, heightSpec); in onMeasure()
76 measureChild(mChild, heightSpec, widthSpec); in onMeasure()
DIndicatorControlWheelContainer.java117 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
128 int widthMode = MeasureSpec.getMode(widthSpec); in onMeasure()
134 measuredWidth = Math.min(desiredWidth, MeasureSpec.getSize(widthSpec)); in onMeasure()
136 measuredWidth = MeasureSpec.getSize(widthSpec); in onMeasure()
/packages/apps/Camera2/src/com/android/camera/ui/
DRotateLayout.java70 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
75 measureChild(mChild, widthSpec, heightSpec); in onMeasure()
81 measureChild(mChild, heightSpec, widthSpec); in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTargetBar.java147 int widthSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST); in onMeasure() local
154 firstButton.measure(widthSpec, heightSpec); in onMeasure()
189 int widthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST); in onMeasure() local
190 firstButton.measure(widthSpec, heightSpec); in onMeasure()
204 widthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST); in onMeasure()
206 secondButton.measure(widthSpec, heightSpec); in onMeasure()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java365 public void measure(int widthSpec, int heightSpec) { in measure() argument
366 if (widthSpec == mLastWidthSpec && heightSpec == mLastHeightSpec in measure()
371 mLastWidthSpec = widthSpec; in measure()
375 onMeasure(widthSpec, heightSpec); in measure()
382 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
DMeasureHelper.java45 public void measure(int widthSpec, int heightSpec) { in measure() argument
48 getLength(widthSpec, mPreferredWidth + p.left + p.right), in measure()
DUndoBarView.java91 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
/packages/apps/LegacyCamera/src/com/android/camera/
DPreviewFrameLayout.java63 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
64 int previewWidth = MeasureSpec.getSize(widthSpec); in onMeasure()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/widget/
DScrollableImagePreviewView.kt130 override fun onMeasure(widthSpec: Int, heightSpec: Int) { in <lambda>()
131 super.onMeasure(widthSpec, heightSpec) in <lambda>()
134 updateMaxWidthHint(widthSpec) in <lambda>()
140 private fun updateMaxWidthHint(widthSpec: Int) { in <lambda>()
142 if (View.MeasureSpec.getMode(widthSpec) != View.MeasureSpec.UNSPECIFIED) { in <lambda>()
143 maxWidthHint = View.MeasureSpec.getSize(widthSpec) in <lambda>()
DResolverDrawerLayout.java1022 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);
1038 measureChildWithMargins(child, widthSpec, 0,
1042 measureChildWithMargins(child, widthSpec, 0, heightSpec, heightUsed);
1058 measureChildWithMargins(child, widthSpec, 0,
1062 measureChildWithMargins(child, widthSpec, 0, heightSpec, heightUsed);
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityQuickSettingsTooltipWindow.java171 final int widthSpec = in getWindowWidthWith() local
175 textView.measure(widthSpec, heightSpec); in getWindowWidthWith()
/packages/apps/Contacts/src/com/android/contacts/list/
DPinnedHeaderListView.java363 int widthSpec; in ensurePinnedHeaderLayout() local
367 widthSpec = View.MeasureSpec in ensurePinnedHeaderLayout()
370 widthSpec = View.MeasureSpec in ensurePinnedHeaderLayout()
380 view.measure(widthSpec, heightSpec); in ensurePinnedHeaderLayout()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
DSubtitleView.java207 final int widthSpec = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
209 if (computeMeasurements(widthSpec)) { in onMeasure()
/packages/apps/Messaging/src/com/android/messaging/ui/
DSnackBarManager.java290 final int widthSpec = ViewGroup.getChildMeasureSpec( in measureSnackBar() local
296 rootView.measure(widthSpec, heightSpec); in measureSnackBar()
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java270 int widthSpec = MeasureSpec.makeMeasureSpec(columnWidth, MeasureSpec.EXACTLY); in makeAndAddColumn() local
271 child.measure(widthSpec, heightSpec); in makeAndAddColumn()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java466 public void measure(int widthSpec, int heightSpec) { in measure() argument
467 mView.measure(widthSpec, heightSpec); in measure()