/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
DensityActivity.java | 117 scroller.addView(view, new ScrollView.LayoutParams(ScrollView.LayoutParams.MATCH_PARENT, 118 ScrollView.LayoutParams.MATCH_PARENT)); 125 root.addView(label, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 126 LinearLayout.LayoutParams.WRAP_CONTENT)); 130 root.addView(layout, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 131 LinearLayout.LayoutParams.WRAP_CONTENT)); 144 view.setLayoutParams(new LinearLayout.LayoutParams(d.getIntrinsicWidth() [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
ScreenPinningRequest.java | 95 WindowManager.LayoutParams lp = getWindowLayoutParams(); 105 private WindowManager.LayoutParams getWindowLayoutParams() { 106 final WindowManager.LayoutParams lp = new WindowManager.LayoutParams( 107 ViewGroup.LayoutParams.MATCH_PARENT, 108 ViewGroup.LayoutParams.MATCH_PARENT, 109 WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL, 111 | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN 112 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 113 | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATE [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
WindowTestsBase.java | 40 import static android.view.WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW; 41 import static android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; 42 import static android.view.WindowManager.LayoutParams.LAST_APPLICATION_WINDOW; 43 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG; 44 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY; 45 import static android.view.WindowManager.LayoutParams.TYPE_BASE_APPLICATION; 46 import static android.view.WindowManager.LayoutParams.TYPE_DOCK_DIVIDER; 47 import static android.view.WindowManager.LayoutParams.TYPE_INPUT_METHOD; 48 import static android.view.WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG; 49 import static android.view.WindowManager.LayoutParams.TYPE_NAVIGATION_BAR [all...] |
WindowStateTests.java | 30 import static android.view.WindowManager.LayoutParams.FIRST_SUB_WINDOW; 31 import static android.view.WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM; 32 import static android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; 33 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION; 34 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_ABOVE_SUB_PANEL; 35 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG; 36 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA; 37 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY; 38 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL; 39 import static android.view.WindowManager.LayoutParams.TYPE_INPUT_METHOD [all...] |
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
DpiTestActivity.java | 147 scroller.addView(view, new ScrollView.LayoutParams(ScrollView.LayoutParams.MATCH_PARENT, 148 ScrollView.LayoutParams.MATCH_PARENT)); 155 root.addView(label, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 156 LinearLayout.LayoutParams.WRAP_CONTENT)); 160 root.addView(layout, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 161 LinearLayout.LayoutParams.WRAP_CONTENT)); 174 view.setLayoutParams(new LinearLayout.LayoutParams(d.getIntrinsicWidth() [all...] |
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/ |
CarDrawerLayout.java | 419 LayoutParams lp = (LayoutParams) findDrawerView().getLayoutParams(); 540 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams(); 550 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams(); 582 LayoutParams lp = (LayoutParams) drawerView.getLayoutParams(); 588 return ((LayoutParams) findDrawerView().getLayoutParams()).onScreen; 596 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
ScrollingTabContainerView.java | 79 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 80 ViewGroup.LayoutParams.MATCH_PARENT)); 148 addView(mTabSpinner, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 149 ViewGroup.LayoutParams.MATCH_PARENT)); 166 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 167 ViewGroup.LayoutParams.MATCH_PARENT)); 198 tabLayout.setLayoutParams(new LinearLayout.LayoutParams( [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ScrollingTabContainerView.java | 89 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 90 ViewGroup.LayoutParams.MATCH_PARENT)); 158 addView(mTabSpinner, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 159 ViewGroup.LayoutParams.MATCH_PARENT)); 174 addView(mTabLayout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 175 ViewGroup.LayoutParams.MATCH_PARENT)); 206 tabLayout.setLayoutParams(new LinearLayoutCompat.LayoutParams( [all...] |
Toolbar.java | 95 * {@link LayoutParams} indicates a {@link Gravity} value of [all...] |
/cts/tests/tests/opengl/src/android/opengl/cts/ |
OpenGLES20ActivityOne.java | 44 window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD 45 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 46 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 47 | WindowManager.LayoutParams.FLAG_FULLSCREEN 48 | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
OpenGLES20NativeActivityOne.java | 54 window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD 55 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 56 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 57 | WindowManager.LayoutParams.FLAG_FULLSCREEN 58 | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
/frameworks/base/core/java/android/widget/ |
Toolbar.java | 87 * {@link LayoutParams} indicates a {@link Gravity} value of [all...] |
PopupWindow.java | 19 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT; 20 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT; 21 import static android.view.WindowManager.LayoutParams 23 import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_WILL_NOT_REPLACE_ON_RELAUNCH; 56 import android.view.WindowManager.LayoutParams; 57 import android.view.WindowManager.LayoutParams.SoftInputModeFlags; 169 private int mSoftInputMode = WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED; 185 private int mWidth = LayoutParams.WRAP_CONTENT; 188 private int mHeight = LayoutParams.WRAP_CONTENT; 202 private int mWindowLayoutType = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
MatchParentShrinkingLinearLayout.java | 337 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 350 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 365 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 387 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 514 LayoutParams lp = (LayoutParams) child.getLayoutParams() [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
TextSwitcherTest.java | 84 mTextSwitcher.addView(tv1, 0, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 85 mTextSwitcher.addView(tv2, 1, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 124 mTextSwitcher.addView(tv1, 0, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 125 mTextSwitcher.addView(tv2, 1, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 158 mTextSwitcher.addView(tv1, 0, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 164 mTextSwitcher.addView(tv1, 0, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 172 new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 179 new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 187 mTextSwitcher.addView(tv3, 2, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); 197 mTextSwitcher.addView(lv, 0, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)) [all...] |
GalleryTest.java | 42 import android.view.ViewGroup.LayoutParams; 164 LayoutParams lp = new LayoutParams(width, height); 166 LayoutParams layoutParams = gallery.generateLayoutParams(lp); 167 assertEquals(width, layoutParams.width); 168 assertEquals(height, layoutParams.height); 175 layoutParams = mGallery.generateLayoutParams(attrs); 176 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width) [all...] |
RelativeLayoutTest.java | 38 import android.view.ViewGroup.LayoutParams; 259 LayoutParams layoutParams = relativeLayout.generateLayoutParams(parser); 260 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); 261 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); 266 RelativeLayout.LayoutParams p = new RelativeLayout.LayoutParams(200, 300); 271 RelativeLayout.LayoutParams layoutParams [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
TransformationMethodTest.java | 40 import android.widget.LinearLayout.LayoutParams; 82 layout.addView(mEditText, new LayoutParams(LayoutParams.MATCH_PARENT, 83 LayoutParams.WRAP_CONTENT)); 84 layout.addView(mButton, new LayoutParams(LayoutParams.MATCH_PARENT, 85 LayoutParams.WRAP_CONTENT));
|
/development/apps/Development/src/com/android/development/ |
Details.java | 76 mScrollView.addView(mLinearLayout, new ViewGroup.LayoutParams( 77 ViewGroup.LayoutParams.MATCH_PARENT, 78 ViewGroup.LayoutParams.MATCH_PARENT)); 109 LinearLayout.LayoutParams lazy() 111 return new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 112 ViewGroup.LayoutParams.WRAP_CONTENT, 0);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
MenuInflateFromXml.java | 103 new LinearLayout.LayoutParams( 104 LinearLayout.LayoutParams.MATCH_PARENT, 105 LinearLayout.LayoutParams.WRAP_CONTENT)); 113 LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( 114 LinearLayout.LayoutParams.MATCH_PARENT, 115 LinearLayout.LayoutParams.WRAP_CONTENT);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
CirclePropActivity.java | 31 import android.widget.LinearLayout.LayoutParams; 45 layout.addView(spinner, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); 51 // layout.addView(wv, new LayoutParams(LayoutParams.MATCH_PARENT, 100)); 54 new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
|
HardwareCanvasSurfaceViewActivity.java | 78 layout.addView(button, LinearLayout.LayoutParams.MATCH_PARENT, 79 LinearLayout.LayoutParams.WRAP_CONTENT); 80 layout.addView(mSurfaceView, LinearLayout.LayoutParams.MATCH_PARENT, 81 LinearLayout.LayoutParams.MATCH_PARENT); 83 content.addView(layout, new FrameLayout.LayoutParams( 84 FrameLayout.LayoutParams.MATCH_PARENT, 85 FrameLayout.LayoutParams.MATCH_PARENT));
|
TextureViewActivity.java | 91 mContent.addView(mTextureView, new FrameLayout.LayoutParams( 92 FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT, 94 mContent.addView(button, new FrameLayout.LayoutParams( 95 FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT, 106 mTextureView.setLayoutParams(new FrameLayout.LayoutParams(
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
OnScreenHint.java | 52 private final WindowManager.LayoutParams mParams = 53 new WindowManager.LayoutParams(); 70 mParams.height = WindowManager.LayoutParams.WRAP_CONTENT; 71 mParams.width = WindowManager.LayoutParams.WRAP_CONTENT; 72 mParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 73 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 76 mParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;
|
/packages/experimental/TestBack/src/foo/bar/testback/ |
TestBackService.java | 65 WindowManager.LayoutParams params = new WindowManager.LayoutParams(); 66 params.flags = WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN 67 | WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR 68 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 69 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL; 70 params.type = WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY;
|