Home
last modified time | relevance | path

Searched refs:layoutParams (Results 1 – 16 of 16) sorted by relevance

/external/glide/library/src/main/java/com/bumptech/glide/request/target/
DViewTarget.java135 ViewGroup.LayoutParams layoutParams = view.getLayoutParams(); in checkCurrentDimens() local
139 notifyCbs(layoutParams.width, layoutParams.height); in checkCurrentDimens()
160 ViewGroup.LayoutParams layoutParams = view.getLayoutParams(); in getSize() local
164 cb.onSizeReady(layoutParams.width, layoutParams.height); in getSize()
195 final ViewGroup.LayoutParams layoutParams = view.getLayoutParams(); in isUsingWrapContent() local
196 … return layoutParams != null && (layoutParams.width == ViewGroup.LayoutParams.WRAP_CONTENT in isUsingWrapContent()
197 || layoutParams.height == ViewGroup.LayoutParams.WRAP_CONTENT); in isUsingWrapContent()
201 final ViewGroup.LayoutParams layoutParams = view.getLayoutParams(); in isLayoutParamsSizeValid() local
202 return layoutParams != null && layoutParams.width > 0 && layoutParams.height > 0; in isLayoutParamsSizeValid()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowRelativeLayoutTest.java25 …RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) imageView.getLayoutParams… in getRules_shouldShowAddRuleData_sinceApiLevel17() local
26 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); in getRules_shouldShowAddRuleData_sinceApiLevel17()
27 layoutParams.addRule(RelativeLayout.ALIGN_TOP, 1234); in getRules_shouldShowAddRuleData_sinceApiLevel17()
28 int[] rules = layoutParams.getRules(); in getRules_shouldShowAddRuleData_sinceApiLevel17()
38 …RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) imageView.getLayoutParams… in getRules_shouldShowAddRuleData_uptoApiLevel16() local
39 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); in getRules_shouldShowAddRuleData_uptoApiLevel16()
40 layoutParams.addRule(RelativeLayout.ALIGN_TOP, 1234); in getRules_shouldShowAddRuleData_uptoApiLevel16()
41 int[] rules = layoutParams.getRules(); in getRules_shouldShowAddRuleData_uptoApiLevel16()
DShadowWindowManagerImplTest.java27 private LayoutParams layoutParams; field in ShadowWindowManagerImplTest
35 layoutParams = in setUp()
53 windowManager.addView(view, layoutParams); in getViews_returnsAnAddedView()
63 windowManager.addView(view, layoutParams); in getViews_doesNotReturnARemovedView()
DShadowLayoutParamsTest.java16 Gallery.LayoutParams layoutParams = new Gallery.LayoutParams(123, 456); in testConstructor() local
17 assertThat(layoutParams.width).isEqualTo(123); in testConstructor()
18 assertThat(layoutParams.height).isEqualTo(456); in testConstructor()
DShadowAbsoluteLayoutTest.java17 ViewGroup.LayoutParams layoutParams = in getLayoutParams_shouldReturnAbsoluteLayoutParams() local
25 assertThat(layoutParams).isInstanceOf(AbsoluteLayout.LayoutParams.class); in getLayoutParams_shouldReturnAbsoluteLayoutParams()
/external/exoplayer/tree/demos/surface/src/main/java/com/google/android/exoplayer2/surfacedemo/
DMainActivity.java125 GridLayout.LayoutParams layoutParams = new GridLayout.LayoutParams(); in onCreate() local
126 layoutParams.width = 0; in onCreate()
127 layoutParams.height = 0; in onCreate()
128 layoutParams.columnSpec = GridLayout.spec(i % 3, 1f); in onCreate()
129 layoutParams.rowSpec = GridLayout.spec(i / 3, 1f); in onCreate()
130 layoutParams.bottomMargin = 10; in onCreate()
131 layoutParams.leftMargin = 10; in onCreate()
132 layoutParams.topMargin = 10; in onCreate()
133 layoutParams.rightMargin = 10; in onCreate()
134 view.setLayoutParams(layoutParams); in onCreate()
/external/setupdesign/main/src/com/google/android/setupdesign/template/
DIconMixin.java62 LayoutParams layoutParams = iconView.getLayoutParams(); in IconMixin() local
63 originalHeight = layoutParams.height; in IconMixin()
154 LayoutParams layoutParams = iconView.getLayoutParams(); in setUpscaleIcon() local
160 layoutParams.height = shouldUpscaleIcon ? maxHeight : originalHeight; in setUpscaleIcon()
161 iconView.setLayoutParams(layoutParams); in setUpscaleIcon()
/external/setupdesign/main/src/com/google/android/setupdesign/items/
DItem.java195 LayoutParams layoutParams = iconContainer.getLayoutParams(); in onBindView() local
196 if (layoutParams instanceof LinearLayout.LayoutParams) { in onBindView()
197 ((LinearLayout.LayoutParams) layoutParams).gravity = iconGravity; in onBindView()
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DLottieFontViewGroup.kt30 cursorView.layoutParams = FrameLayout.LayoutParams( in <lambda>()
176 lottieAnimationView.layoutParams = FrameLayout.LayoutParams( in addComposition()
192 spaceView.layoutParams = FrameLayout.LayoutParams( in createSpaceView()
DTrimView.kt53 leftAnchor.layoutParams = leftLp
57 rightAnchor.layoutParams = rightLp
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DHeaderAreaStyler.java262 FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) icon.getLayoutParams(); in setGravity() local
263 layoutParams.gravity = gravity; in setGravity()
264 icon.setLayoutParams(layoutParams); in setGravity()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowWindowManagerImpl.java50 public void addView(View view, android.view.ViewGroup.LayoutParams layoutParams) { in addView() argument
58 ClassParameter.from(ViewGroup.LayoutParams.class, layoutParams)); in addView()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DScreenResponseFragment.java565 final WindowManager.LayoutParams layoutParams = getActivity().getWindow().getAttributes(); in increaseScreenBrightness() local
566 layoutParams.screenBrightness = 1f; in increaseScreenBrightness()
567 getActivity().getWindow().setAttributes(layoutParams); in increaseScreenBrightness()
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/
DStylizeActivity.java397 …RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(styleSelectorWidth, Vie… in onPreviewSizeChosen() local
405 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); in onPreviewSizeChosen()
406 grid.setLayoutParams(layoutParams); in onPreviewSizeChosen()
/external/doclava/src/com/google/doclava/
DDoclava.java1838 ArrayList<ClassInfo> layoutParams = new ArrayList<ClassInfo>(); in writeSdkValues() local
1915 layoutParams.add(clazz); in writeSdkValues()
1943 for (int i = 0; i < layoutParams.size();) { in writeSdkValues()
1944 ClassInfo clazz = layoutParams.get(i); in writeSdkValues()
1952 layoutParams.remove(i); in writeSdkValues()
1958 writeClasses(output + "/widgets.txt", widgets, layouts, layoutParams); in writeSdkValues()
2010 ArrayList<ClassInfo> layouts, ArrayList<ClassInfo> layoutParams) { in writeClasses() argument
2021 for (ClassInfo clazz : layoutParams) { in writeClasses()
/external/lottie/LottieSample/src/androidTest/java/com/airbnb/lottie/samples/
DLottieTest.kt225 …animationView.layoutParams = FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGro… in <lambda>()
997 …animationView.layoutParams = FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGro… in <lambda>()