Home
last modified time | relevance | path

Searched refs:layoutParams (Results 1 – 11 of 11) 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/setupdesign/main/src/com/google/android/setupdesign/template/
DIconMixin.java61 LayoutParams layoutParams = iconView.getLayoutParams(); in IconMixin() local
62 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()
195 LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) icon.getLayoutParams(); in setGravity() local
196 layoutParams.gravity = gravity; in setGravity()
197 icon.setLayoutParams(layoutParams); in setGravity()
/external/setupdesign/main/src/com/google/android/setupdesign/items/
DItem.java189 LayoutParams layoutParams = iconContainer.getLayoutParams(); in onBindView() local
190 if (layoutParams instanceof LinearLayout.LayoutParams) { in onBindView()
191 ((LinearLayout.LayoutParams) layoutParams).gravity = iconGravity; in onBindView()
/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.java564 final WindowManager.LayoutParams layoutParams = getActivity().getWindow().getAttributes(); in increaseScreenBrightness() local
565 layoutParams.screenBrightness = 1f; in increaseScreenBrightness()
566 getActivity().getWindow().setAttributes(layoutParams); in increaseScreenBrightness()
/external/doclava/src/com/google/doclava/
DDoclava.java1831 ArrayList<ClassInfo> layoutParams = new ArrayList<ClassInfo>(); in writeSdkValues() local
1908 layoutParams.add(clazz); in writeSdkValues()
1936 for (int i = 0; i < layoutParams.size();) { in writeSdkValues()
1937 ClassInfo clazz = layoutParams.get(i); in writeSdkValues()
1945 layoutParams.remove(i); in writeSdkValues()
1951 writeClasses(output + "/widgets.txt", widgets, layouts, layoutParams); in writeSdkValues()
2003 ArrayList<ClassInfo> layouts, ArrayList<ClassInfo> layoutParams) { in writeClasses() argument
2014 for (ClassInfo clazz : layoutParams) { in writeClasses()
/external/tensorflow/tensorflow/examples/android/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()