/cts/tests/tests/widget/src/android/widget/cts/ |
GalleryTest.java | 44 import android.view.ViewGroup.LayoutParams; 163 LayoutParams lp = new LayoutParams(width, height); 165 LayoutParams layoutParams = gallery.generateLayoutParams(lp); 166 assertEquals(width, layoutParams.width); 167 assertEquals(height, layoutParams.height); 174 layoutParams = mGallery.generateLayoutParams(attrs); 175 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width) [all...] |
/frameworks/base/core/java/android/widget/ |
ZoomButtonsController.java | 38 import android.view.WindowManager.LayoutParams; 102 private LayoutParams mContainerLayoutParams; 242 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); 245 lp.flags = LayoutParams.FLAG_NOT_TOUCHABLE | 246 LayoutParams.FLAG_NOT_FOCUSABLE | 247 LayoutParams.FLAG_LAYOUT_NO_LIMITS | 248 LayoutParams.FLAG_ALT_FOCUSABLE_IM [all...] |
RelativeLayout.java | 52 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT WRAP_CONTENT} and a child set to 75 * Also see {@link android.widget.RelativeLayout.LayoutParams RelativeLayout.LayoutParams} for 459 LayoutParams params = (LayoutParams) child.getLayoutParams(); 478 LayoutParams params = (LayoutParams) child.getLayoutParams(); 526 LayoutParams params = (LayoutParams) child.getLayoutParams(); 558 LayoutParams params = (LayoutParams) child.getLayoutParams() [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
IconMenuView.java | 271 LayoutParams lp = (LayoutParams) child.getLayoutParams(); 338 IconMenuView.LayoutParams childLayoutParams = null; 365 childLayoutParams = (IconMenuView.LayoutParams) child.getLayoutParams(); 431 IconMenuView.LayoutParams childLayoutParams; 435 childLayoutParams = (IconMenuView.LayoutParams)child 472 public LayoutParams generateLayoutParams(AttributeSet attrs) { 473 return new IconMenuView.LayoutParams(getContext(), attrs); 477 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { 478 // Override to allow type-checking of LayoutParams. [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
DrawerLayout.java | 510 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; 609 final LayoutParams lp = (LayoutParams) activeDrawer.getLayoutParams(); 627 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams(); 657 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams(); 686 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams(); 696 return ((LayoutParams) drawerView.getLayoutParams()).onScreen [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
PolicyControl.java | 27 import android.view.WindowManager.LayoutParams; 65 public static int getSystemUiVisibility(WindowState win, LayoutParams attrs) { 85 public static int getWindowFlags(WindowState win, LayoutParams attrs) { 89 flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN; 90 flags &= ~(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS 91 | WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); 94 flags &= ~WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION; 100 final LayoutParams attrs = win != null ? win.getAttrs() : null; 195 boolean matches(LayoutParams attrs) { 197 boolean isApp = attrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDO [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
OverlayDisplayWindow.java | 79 private WindowManager.LayoutParams mWindowParams; 200 mWindowParams = new WindowManager.LayoutParams( 201 WindowManager.LayoutParams.TYPE_DISPLAY_OVERLAY); 202 mWindowParams.flags |= WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN 203 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS 204 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 205 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL 206 | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED; 208 mWindowParams.flags |= WindowManager.LayoutParams.FLAG_SECURE; 211 mWindowParams.flags |= WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE [all...] |
/packages/apps/Browser/src/com/android/browser/ |
BreadCrumbView.java | 178 mBackButton.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 179 LayoutParams.MATCH_PARENT)); 210 private LayoutParams makeDividerLayoutParams() { 211 LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, 212 LayoutParams.MATCH_PARENT); 371 tv.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT [all...] |
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
BrowseErrorActivity.java | 65 FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(100, 100, Gravity.CENTER); 66 progressBar.setLayoutParams(layoutParams);
|
/frameworks/base/core/java/android/view/ |
WindowManagerImpl.java | 68 public void addView(View view, ViewGroup.LayoutParams params) { 73 public void updateViewLayout(View view, ViewGroup.LayoutParams params) {
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
AddColumn.java | 47 newRow.addView(view, new TableRow.LayoutParams()); 49 table.addView(newRow, new TableLayout.LayoutParams());
|
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
GridLayoutTest.java | 41 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(rowSpec, colSpec); 42 //GridLayout.LayoutParams lp = new GridLayout.LayoutParams();
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
MaxBitmapSizeActivity.java | 36 layout.addView(view, new LinearLayout.LayoutParams(200, 200)); 40 layout.addView(view, new LinearLayout.LayoutParams(200, 200));
|
SmallCircleActivity.java | 38 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE)); 41 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE));
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
WindowManagerImpl.java | 47 public void addView(View arg0, android.view.ViewGroup.LayoutParams arg1) { 57 public void updateViewLayout(View arg0, android.view.ViewGroup.LayoutParams arg1) {
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
ProgressOverlay.java | 59 FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) getLayoutParams();
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
PhotoPageProgressBar.java | 22 import android.view.ViewGroup.LayoutParams; 42 LayoutParams layoutParams = mProgress.getLayoutParams(); 43 layoutParams.width = mContainer.getWidth() * progressPercent / 100; 44 mProgress.setLayoutParams(layoutParams);
|
/packages/apps/Music/src/com/android/music/ |
DeleteItems.java | 41 getWindow().setLayout(WindowManager.LayoutParams.MATCH_PARENT, 42 WindowManager.LayoutParams.WRAP_CONTENT);
|
/packages/services/Telephony/src/com/android/phone/ |
CdmaDisplayInfo.java | 61 WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG); 63 WindowManager.LayoutParams.FLAG_DIM_BEHIND);
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
DeviceInfoActivity.java | 111 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD | 112 WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON | 113 WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); 117 w.setFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED, 118 WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/ |
ColorSuggestionListAdapter.java | 102 layout.setLayoutParams(new AbsListView.LayoutParams( 103 AbsListView.LayoutParams.MATCH_PARENT, 104 AbsListView.LayoutParams.WRAP_CONTENT)); 111 LinearLayout.LayoutParams layoutParams = 112 new LinearLayout.LayoutParams(0, buttonHeight, 1f); 113 ApiCompatibilityUtils.setMarginStart(layoutParams, -1); 115 ApiCompatibilityUtils.setMarginEnd(layoutParams, -1); 117 button.setLayoutParams(layoutParams);
|
DropdownPopupWindow.java | 114 setWidth(ViewGroup.LayoutParams.WRAP_CONTENT); 140 LinearLayout.LayoutParams params = 141 new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, 142 LinearLayout.LayoutParams.WRAP_CONTENT);
|
/frameworks/base/core/java/com/android/internal/widget/ |
TextProgressBar.java | 40 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}, then the 82 public void addView(View child, int index, ViewGroup.LayoutParams params) { 91 mChronometerFollow = (params.width == ViewGroup.LayoutParams.WRAP_CONTENT); 150 RelativeLayout.LayoutParams params; 153 params = (RelativeLayout.LayoutParams) mProgressBar.getLayoutParams(); 176 params = (RelativeLayout.LayoutParams) mChronometer.getLayoutParams();
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
CrossfadeMultiple.java | 32 import static android.widget.LinearLayout.LayoutParams; 97 LayoutParams params = null; 100 params = new LayoutParams(200, 200); 106 params = new LayoutParams(400, 200); 112 params = new LayoutParams(200, 400);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ShadowOverlayContainer.java | 159 LayoutParams lp = mWrappedView.getLayoutParams(); 160 if (lp.width == LayoutParams.MATCH_PARENT) { 166 if (lp.height == LayoutParams.MATCH_PARENT) { 183 if (lp.width == LayoutParams.MATCH_PARENT) { 190 if (lp.height == LayoutParams.MATCH_PARENT) {
|