/cts/hostsidetests/services/activityandwindowmanager/windowmanager/alertwindowappsdk25/src/android/server/alertwindowappsdk25/ |
AlertWindowTestBaseActivity.java | 28 import static android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; 29 import static android.view.WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 30 import static android.view.WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH; 58 WindowManager.LayoutParams params = new WindowManager.LayoutParams(
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
ReferenceViewGroup.java | 48 widthMeasureSpec = getMeasureSpec(LayoutParams.MATCH_PARENT, mWidthDp); 49 heightMeasureSpec = getMeasureSpec(LayoutParams.MATCH_PARENT, mHeightDp); 56 LayoutParams params = child.getLayoutParams(); 64 if (value == LayoutParams.MATCH_PARENT) { 66 } else if (value == LayoutParams.WRAP_CONTENT) {
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
OpenGLES20ActivityTwo.java | 55 window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD 56 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 57 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 58 | WindowManager.LayoutParams.FLAG_FULLSCREEN 59 | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
OpenGLES20NativeActivityTwo.java | 56 window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD 57 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 58 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 59 | WindowManager.LayoutParams.FLAG_FULLSCREEN 60 | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
/developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/swiperefreshlistfragment/ |
SwipeRefreshListFragment.java | 51 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); 55 new ViewGroup.LayoutParams( 56 ViewGroup.LayoutParams.MATCH_PARENT, 57 ViewGroup.LayoutParams.MATCH_PARENT));
|
/developers/samples/android/ui/views/SwipeRefreshLayout/SwipeRefreshListFragment/Application/src/main/java/com/example/android/swiperefreshlistfragment/ |
SwipeRefreshListFragment.java | 51 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); 55 new ViewGroup.LayoutParams( 56 ViewGroup.LayoutParams.MATCH_PARENT, 57 ViewGroup.LayoutParams.MATCH_PARENT));
|
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/ |
SwipeRefreshListFragment.java | 51 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); 55 new ViewGroup.LayoutParams( 56 ViewGroup.LayoutParams.MATCH_PARENT, 57 ViewGroup.LayoutParams.MATCH_PARENT));
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
LooperAcceleration.java | 27 import android.view.ViewGroup.LayoutParams; 57 layout.addView(new IsAcceleratedView(this), LayoutParams.MATCH_PARENT, 60); 64 layout.addView(wv, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); 81 dlg.addContentView(makeView(), new LayoutParams(300, 400));
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
ScaleDrawableTests.java | 18 import android.view.ViewGroup.LayoutParams; 52 LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
|
/development/samples/ApiDemos/src/com/example/android/apis/media/ |
AudioFxDemo.java | 114 freqTextView.setLayoutParams(new ViewGroup.LayoutParams( 115 ViewGroup.LayoutParams.FILL_PARENT, 116 ViewGroup.LayoutParams.WRAP_CONTENT)); 125 minDbTextView.setLayoutParams(new ViewGroup.LayoutParams( 126 ViewGroup.LayoutParams.WRAP_CONTENT, 127 ViewGroup.LayoutParams.WRAP_CONTENT)); 131 maxDbTextView.setLayoutParams(new ViewGroup.LayoutParams( 132 ViewGroup.LayoutParams.WRAP_CONTENT, 133 ViewGroup.LayoutParams.WRAP_CONTENT)); 136 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams [all...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
InterpolatingLayout.java | 56 public final static class LayoutParams extends LinearLayout.LayoutParams { 81 public LayoutParams(Context c, AttributeSet attrs) { 147 public LayoutParams(int width, int height) { 151 public LayoutParams(MarginLayoutParams source) { 194 public LayoutParams generateLayoutParams(AttributeSet attrs) { 195 return new LayoutParams(getContext(), attrs); 199 protected LayoutParams generateDefaultLayoutParams() { 200 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
RadioGroupTest.java | 41 import android.widget.RadioGroup.LayoutParams; 113 mRadioGroup.addView(newButton, new RadioGroup.LayoutParams( 114 RadioGroup.LayoutParams.WRAP_CONTENT, RadioGroup.LayoutParams.WRAP_CONTENT)); 126 mRadioGroup.addView(newButton, new RadioGroup.LayoutParams( 127 RadioGroup.LayoutParams.WRAP_CONTENT, RadioGroup.LayoutParams.WRAP_CONTENT)); 301 RadioGroup.LayoutParams layoutParams = 303 assertNotNull(layoutParams); [all...] |
TableRow_LayoutParamsTest.java | 45 * Test {@link TableRow.LayoutParams}. 64 new TableRow.LayoutParams(mActivity, null); 66 TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(200, 300); 67 assertEquals(200, layoutParams.width); 68 assertEquals(300, layoutParams.height); 69 assertEquals(-1, layoutParams.column); 70 assertEquals(1, layoutParams.span); 71 ViewGroup.LayoutParams oldParams = layoutParams [all...] |
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
BiDiTestGridLayoutCodeLtr.java | 89 layout.addView(c, new GridLayout.LayoutParams(row1, col1a)); 95 layout.addView(c, new GridLayout.LayoutParams(row2, col1b)); 100 layout.addView(c, new GridLayout.LayoutParams(row3, col1c)); 106 layout.addView(c, new GridLayout.LayoutParams(row3, col2)); 111 layout.addView(c, new GridLayout.LayoutParams(row4, col1c)); 117 layout.addView(c, new GridLayout.LayoutParams(row4, col2)); 121 layout.addView(c, new GridLayout.LayoutParams(row5, col3)); 126 layout.addView(c, new GridLayout.LayoutParams(row6, col4a)); 131 layout.addView(c, new GridLayout.LayoutParams(row7, col4b));
|
BiDiTestGridLayoutCodeRtl.java | 89 layout.addView(c, new GridLayout.LayoutParams(row1, col1a)); 95 layout.addView(c, new GridLayout.LayoutParams(row2, col1b)); 100 layout.addView(c, new GridLayout.LayoutParams(row3, col1c)); 106 layout.addView(c, new GridLayout.LayoutParams(row3, col2)); 111 layout.addView(c, new GridLayout.LayoutParams(row4, col1c)); 117 layout.addView(c, new GridLayout.LayoutParams(row4, col2)); 121 layout.addView(c, new GridLayout.LayoutParams(row5, col3)); 126 layout.addView(c, new GridLayout.LayoutParams(row6, col4a)); 131 layout.addView(c, new GridLayout.LayoutParams(row7, col4b));
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/view/ |
GridLayout3.java | 35 import android.support.v7.widget.GridLayout.LayoutParams; 79 p.addView(c, new LayoutParams(titleRow, centerInAllColumns)); 85 p.addView(c, new LayoutParams(introRow, leftAlignInAllColumns)); 90 p.addView(c, new LayoutParams(emailRow, labelColumn)); 96 p.addView(c, new LayoutParams(emailRow, fieldColumn)); 101 p.addView(c, new LayoutParams(passwordRow, labelColumn)); 107 p.addView(c, new LayoutParams(passwordRow, fieldColumn)); 112 p.addView(c, new LayoutParams(button1Row, defineLastColumn)); 117 p.addView(c, new LayoutParams(button2Row, fillLastColumn));
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
SmsBottomSheetFragment.java | 32 import android.view.ViewGroup.LayoutParams; 68 layout.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); 82 dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); 102 LayoutParams params = 103 new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
StatusBarIconController.java | 26 import android.widget.LinearLayout.LayoutParams; 83 protected LayoutParams onCreateLayoutParams() { 84 LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( 85 ViewGroup.LayoutParams.WRAP_CONTENT, mIconSize); 144 protected LinearLayout.LayoutParams onCreateLayoutParams() { 145 return new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, mIconSize); 162 LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List6.java | 377 addView(mTitle, new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); 381 addView(mDialogue, new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
|
/frameworks/base/core/java/android/view/ |
WindowManagerImpl.java | 90 public void addView(@NonNull View view, @NonNull ViewGroup.LayoutParams params) { 96 public void updateViewLayout(@NonNull View view, @NonNull ViewGroup.LayoutParams params) { 101 private void applyDefaultToken(@NonNull ViewGroup.LayoutParams params) { 104 if (!(params instanceof WindowManager.LayoutParams)) { 105 throw new IllegalArgumentException("Params must be WindowManager.LayoutParams"); 109 final WindowManager.LayoutParams wparams = (WindowManager.LayoutParams) params;
|
/frameworks/base/core/java/android/widget/ |
TableLayout.java | 57 * is {@link android.widget.TableLayout.LayoutParams#WRAP_CONTENT}. If the child 59 * {@link android.widget.TableLayout.LayoutParams#WRAP_CONTENT}.</p> 417 public void addView(View child, ViewGroup.LayoutParams params) { 426 public void addView(View child, int index, ViewGroup.LayoutParams params) { 503 final ViewGroup.LayoutParams layoutParams = row.getLayoutParams(); 504 layoutParams.height = LayoutParams.WRAP_CONTENT; 637 public LayoutParams generateLayoutParams(AttributeSet attrs) { 638 return new TableLayout.LayoutParams(getContext(), attrs) [all...] |
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
HierarchicalMove.java | 28 import static android.widget.LinearLayout.LayoutParams; 100 int widthSpec = wide ? LayoutParams.WRAP_CONTENT : LayoutParams.MATCH_PARENT; 101 LayoutParams params = new LayoutParams(widthSpec, LayoutParams.WRAP_CONTENT);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
LinearLayoutCompat.java | 48 * {@link LinearLayoutCompat.LayoutParams LinearLayoutCompat.LayoutParams}. 55 * Also see {@link LinearLayoutCompat.LayoutParams} for layout attributes </p> 301 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 314 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 329 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 351 final LayoutParams lp = (LayoutParams) child.getLayoutParams() [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedViewCellLayout.java | 102 PagedViewCellLayout.LayoutParams params) { 103 final PagedViewCellLayout.LayoutParams lp = params; 309 PagedViewCellLayout.LayoutParams lp = (PagedViewCellLayout.LayoutParams) child.getLayoutParams(); 374 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) { 375 return new PagedViewCellLayout.LayoutParams(getContext(), attrs); 379 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { 380 return p instanceof PagedViewCellLayout.LayoutParams; 384 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
WindowTest.java | 139 * 1. addFlags: add the given flag to WindowManager.LayoutParams.flags, if add more than one 148 final WindowManager.LayoutParams attrs = mWindow.getAttributes(); 151 mWindow.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); 152 assertEquals(WindowManager.LayoutParams.FLAG_FULLSCREEN, attrs.flags); 154 mWindow.addFlags(WindowManager.LayoutParams.FLAG_DITHER); 155 assertEquals(WindowManager.LayoutParams.FLAG_FULLSCREEN 156 | WindowManager.LayoutParams.FLAG_DITHER, attrs.flags); 158 mWindow.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); 159 assertEquals(WindowManager.LayoutParams.FLAG_DITHER, attrs.flags); 160 mWindow.clearFlags(WindowManager.LayoutParams.FLAG_DITHER) [all...] |