/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
StaggeredGridLayoutManagerSnappingTest.java | 65 RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams(1000, 950); 70 StaggeredGridLayoutManager.LayoutParams slp = getLayoutParamsForPosition(position); 198 private StaggeredGridLayoutManager.LayoutParams getLayoutParamsForPosition(int position) { 202 return new StaggeredGridLayoutManager.LayoutParams(width, 300); 205 return new StaggeredGridLayoutManager.LayoutParams(300, height);
|
/frameworks/support/wear/src/android/support/wear/widget/drawer/ |
WearableDrawerView.java | 209 // LayoutParams are not guaranteed to return a non-null value until a child is attached to 211 LayoutParams peekParams = (LayoutParams) mPeekContainer.getLayoutParams(); 214 (((LayoutParams) getLayoutParams()).gravity & Gravity.VERTICAL_GRAVITY_MASK) 228 public void addView(View child, int index, ViewGroup.LayoutParams params) { 281 ViewGroup.LayoutParams layoutParams = content.getLayoutParams(); 285 layoutParams != null ? layoutParams : generateDefaultLayoutParams()); 485 private void setPeekContent(View content, int index, ViewGroup.LayoutParams params) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
ScreensaverActivity.java | 46 private static final int WINDOW_FLAGS = WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD 47 | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED 48 | WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON 49 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; 200 final WindowManager.LayoutParams winParams = win.getAttributes(); 201 winParams.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
ViewPagerTabs.java | 129 new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT)); 181 mTabStrip.addView(textView, new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, 182 LayoutParams.MATCH_PARENT, 1));
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
MiniDrawerView.java | 202 final LayoutParams params = (LayoutParams) child.getLayoutParams(); 230 final LayoutParams childToHideParams = (LayoutParams) childToHide.getLayoutParams(); 247 final LayoutParams spacerParams = (LayoutParams) mSpacer.getLayoutParams();
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
GridLayoutAnimationControllerTest.java | 30 import android.view.ViewGroup.LayoutParams; 287 final AbsListView.LayoutParams layoutParams1 = setAnimationParameters(0); 289 final AbsListView.LayoutParams layoutParams2 = setAnimationParameters(1); 291 final AbsListView.LayoutParams layoutParams3 = setAnimationParameters(2); 293 final AbsListView.LayoutParams layoutParams4 = setAnimationParameters(3); 295 final AbsListView.LayoutParams layoutParams5 = setAnimationParameters(4); 297 final AbsListView.LayoutParams layoutParams6 = setAnimationParameters(5); 299 final AbsListView.LayoutParams layoutParams7 = setAnimationParameters(6); 301 final AbsListView.LayoutParams layoutParams8 = setAnimationParameters(7); 303 final AbsListView.LayoutParams layoutParams9 = setAnimationParameters(8) [all...] |
/frameworks/base/core/java/android/widget/ |
Toast.java | 249 * Gets the LayoutParams for the Toast window. 252 public WindowManager.LayoutParams getWindowParams() { 346 private final WindowManager.LayoutParams mParams = new WindowManager.LayoutParams(); 373 final WindowManager.LayoutParams params = mParams; 374 params.height = WindowManager.LayoutParams.WRAP_CONTENT; 375 params.width = WindowManager.LayoutParams.WRAP_CONTENT; 378 params.type = WindowManager.LayoutParams.TYPE_TOAST; 380 params.flags = WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 381 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABL [all...] |
MediaController.java | 78 private WindowManager.LayoutParams mDecorLayoutParams; 151 mDecorLayoutParams = new WindowManager.LayoutParams(); 152 WindowManager.LayoutParams p = mDecorLayoutParams; 154 p.height = LayoutParams.WRAP_CONTENT; 157 p.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL; 158 p.flags |= WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM 159 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL 160 | WindowManager.LayoutParams.FLAG_SPLIT_TOUCH; 176 WindowManager.LayoutParams p = mDecorLayoutParams; 229 FrameLayout.LayoutParams frameParams = new FrameLayout.LayoutParams [all...] |
Gallery.java | 50 * Views given to the Gallery should use {@link Gallery.LayoutParams} as their 336 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { 337 return p instanceof LayoutParams; 341 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) { 342 return new LayoutParams(p); 346 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) { 347 return new LayoutParams(getContext(), attrs); 351 protected ViewGroup.LayoutParams generateDefaultLayoutParams() { 353 * Gallery expects Gallery.LayoutParams [all...] |
/frameworks/support/percent/src/android/support/percent/ |
PercentLayoutHelper.java | 37 * <li> You need a {@link ViewGroup.LayoutParams} subclass in your ViewGroup that implements 39 * <li> In your {@code LayoutParams(Context c, AttributeSet attrs)} constructor create an instance 45 * {@link ViewGroup.LayoutParams#setBaseAttributes(TypedArray, int, int)} 49 * your LayoutParams. 139 * Helper method to be called from {@link ViewGroup.LayoutParams#setBaseAttributes} override 143 public static void fetchWidthAndHeight(ViewGroup.LayoutParams params, TypedArray array, 169 ViewGroup.LayoutParams params = view.getLayoutParams(); 193 * {@code LayoutParams(Context c, AttributeSet attrs)} constructor. 306 ViewGroup.LayoutParams params = view.getLayoutParams(); 345 ViewGroup.LayoutParams params = view.getLayoutParams() [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
WatchListDecorLayout.java | 88 int gravity = (((LayoutParams) child.getLayoutParams()).gravity 116 if (lp.width == LayoutParams.MATCH_PARENT) { 130 if (lp.height == LayoutParams.MATCH_PARENT) { 175 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 182 if (lp.width == LayoutParams.MATCH_PARENT || 183 lp.height == LayoutParams.MATCH_PARENT) {
|
ToolbarWidgetWrapper.java | 140 final ViewGroup.LayoutParams lp = mToolbar.getLayoutParams(); 449 Toolbar.LayoutParams lp = (Toolbar.LayoutParams) mTabView.getLayoutParams(); 450 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT; 451 lp.height = ViewGroup.LayoutParams.WRAP_CONTENT; 511 Toolbar.LayoutParams lp = (Toolbar.LayoutParams) mTabView.getLayoutParams(); 512 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT; 513 lp.height = ViewGroup.LayoutParams.WRAP_CONTENT; 526 Toolbar.LayoutParams lp = new Toolbar.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GradientsActivity.java | 69 layout.addView(gradientView, new FrameLayout.LayoutParams( 72 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER); 76 lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER); 80 lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER); 84 layout.addView(rotateView, new FrameLayout.LayoutParams( 85 300, FrameLayout.LayoutParams.WRAP_CONTENT,
|
MultiProducerActivity.java | 33 import android.widget.AbsoluteLayout.LayoutParams; 62 LayoutParams frameLP = new LayoutParams(WIDTH, HEIGHT, 0, 0); 69 LayoutParams backgroundLP = new LayoutParams( 81 LayoutParams contentLP = new LayoutParams(WIDTH - 2 * BORDER_WIDTH - CONTENT_GAP,
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/ |
SupportPreferencesUtil.java | 37 import android.widget.LinearLayout.LayoutParams; 144 new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 270 new ViewGroup.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
|
/frameworks/support/design/src/android/support/design/widget/ |
BottomNavigationView.java | 126 FrameLayout.LayoutParams params = new FrameLayout.LayoutParams( 127 ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); 379 FrameLayout.LayoutParams dividerParams = new FrameLayout.LayoutParams( 380 ViewGroup.LayoutParams.MATCH_PARENT,
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
RecyclerViewActivity.java | 47 rv.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 48 ViewGroup.LayoutParams.MATCH_PARENT)); 133 public RecyclerView.LayoutParams generateDefaultLayoutParams() { 134 return new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 135 ViewGroup.LayoutParams.WRAP_CONTENT);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ImageCardView.java | 211 // Set up LayoutParams for children 213 RelativeLayout.LayoutParams relativeLayoutParams = 214 (RelativeLayout.LayoutParams) mTitleView.getLayoutParams(); 224 // Set up LayoutParams for children 226 RelativeLayout.LayoutParams relativeLayoutParams = 227 (RelativeLayout.LayoutParams) mContentView.getLayoutParams(); 241 RelativeLayout.LayoutParams relativeLayoutParams = 242 (RelativeLayout.LayoutParams) mBadgeImage.getLayoutParams(); 345 ViewGroup.LayoutParams lp = mImageView.getLayoutParams();
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ActionBarContainer.java | 227 final ViewGroup.LayoutParams lp = tabView.getLayoutParams(); 228 lp.width = LayoutParams.MATCH_PARENT; 229 lp.height = LayoutParams.WRAP_CONTENT; 259 final LayoutParams lp = (LayoutParams) view.getLayoutParams(); 302 final LayoutParams lp = (LayoutParams) tabContainer.getLayoutParams();
|
ToolbarWidgetWrapper.java | 144 final ViewGroup.LayoutParams lp = mToolbar.getLayoutParams(); 427 Toolbar.LayoutParams lp = (Toolbar.LayoutParams) mTabView.getLayoutParams(); 428 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT; 429 lp.height = ViewGroup.LayoutParams.WRAP_CONTENT; 489 Toolbar.LayoutParams lp = (Toolbar.LayoutParams) mTabView.getLayoutParams(); 490 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT; 491 lp.height = ViewGroup.LayoutParams.WRAP_CONTENT; 504 Toolbar.LayoutParams lp = new Toolbar.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
PhoneWindowManager.java | 42 import static android.view.WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW; 43 import static android.view.WindowManager.LayoutParams.FIRST_SUB_WINDOW; 44 import static android.view.WindowManager.LayoutParams.FIRST_SYSTEM_WINDOW; 45 import static android.view.WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON; 46 import static android.view.WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; 47 import static android.view.WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN; 48 import static android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN; 49 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_ATTACHED_IN_DECOR; 50 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR; 51 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_IN_OVERSCAN [all...] |
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
CarLayoutManager.java | 172 public RecyclerView.LayoutParams generateDefaultLayoutParams() { 173 return new RecyclerView.LayoutParams( 174 ViewGroup.LayoutParams.MATCH_PARENT, 175 ViewGroup.LayoutParams.WRAP_CONTENT); 298 RecyclerView.LayoutParams firstChildParams = getParams(firstChild); 312 RecyclerView.LayoutParams firstFullyVisibleChildParams = getParams(firstFullyVisibleChild); 577 RecyclerView.LayoutParams params = getParams(firstChild); 625 RecyclerView.LayoutParams params = getParams(child); 651 RecyclerView.LayoutParams params = getParams(child); [all...] |
/packages/experimental/DreamTheater/src/com/android/dreamtheater/ |
BouncyDroid.java | 156 addView(mBug, new ViewGroup.LayoutParams( 157 ViewGroup.LayoutParams.WRAP_CONTENT, 158 ViewGroup.LayoutParams.WRAP_CONTENT)); 170 addView(b, new FrameLayout.LayoutParams( 171 ViewGroup.LayoutParams.WRAP_CONTENT, 172 ViewGroup.LayoutParams.WRAP_CONTENT, 182 new ViewGroup.LayoutParams( 183 ViewGroup.LayoutParams.MATCH_PARENT, 184 ViewGroup.LayoutParams.MATCH_PARENT
|
/cts/tests/tests/view/src/android/view/cts/ |
TextureViewCtsActivity.java | 33 import android.view.ViewGroup.LayoutParams; 86 LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); 88 LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
|
/frameworks/base/apct-tests/perftests/core/src/android/view/ |
ViewShowHidePerfTest.java | 87 parent.addView(child, new LinearLayout.LayoutParams( 88 (vertical ? ViewGroup.LayoutParams.MATCH_PARENT : 0), 89 (vertical ? 0 : ViewGroup.LayoutParams.MATCH_PARENT), 111 root.addView(imageView, new LinearLayout.LayoutParams( 112 0, ViewGroup.LayoutParams.MATCH_PARENT, 1.0f));
|