/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | MultiLayersActivity.java | 25 import android.widget.LinearLayout; 33 LinearLayout grid = new LinearLayout(this); in onCreate() 34 grid.setOrientation(LinearLayout.VERTICAL); in onCreate() 36 LinearLayout row1 = new LinearLayout(this); in onCreate() 37 row1.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 38 grid.addView(row1, new LinearLayout.LayoutParams( in onCreate() 39 LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.0f)); in onCreate() 41 LinearLayout row2 = new LinearLayout(this); in onCreate() 42 row2.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 43 grid.addView(row2, new LinearLayout.LayoutParams( in onCreate() [all …]
|
H A D | TextGammaActivity.java | 29 import android.widget.LinearLayout; 37 final LinearLayout layout = new LinearLayout(this); in onCreate() 38 layout.setOrientation(LinearLayout.VERTICAL); in onCreate() 41 layout.addView(gamma, new LinearLayout.LayoutParams( in onCreate() 42 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT in onCreate() 60 LinearLayout.LayoutParams.WRAP_CONTENT in onCreate() 70 static class GammaTextView extends LinearLayout { 88 final LinearLayout layout = new LinearLayout(this); in onCreate() 89 layout.setOrientation(LinearLayout.VERTICAL); in onCreate() 92 final LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( in onCreate() [all …]
|
H A D | StretchShaderActivity.java | 38 import android.widget.LinearLayout; 68 LinearLayout linearLayout = new LinearLayout(this); in onCreate() 238 new LinearLayout.LayoutParams( in onCreate() 244 new LinearLayout.LayoutParams( in onCreate() 249 new LinearLayout.LayoutParams( in onCreate() 256 new LinearLayout.LayoutParams( in onCreate() 261 new LinearLayout.LayoutParams( in onCreate() 268 new LinearLayout.LayoutParams( in onCreate() 274 new LinearLayout.LayoutParams( in onCreate() 280 new LinearLayout.LayoutParams( in onCreate() [all …]
|
H A D | ColorBitmapActivity.java | 42 import android.widget.LinearLayout; 144 LinearLayout linearLayout = new LinearLayout(this); in onCreate() 161 LinearLayout spinnerLayout = new LinearLayout(this); in onCreate() 165 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() 166 LinearLayout.LayoutParams.WRAP_CONTENT)); in onCreate() 169 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() 170 LinearLayout.LayoutParams.WRAP_CONTENT)); in onCreate() 173 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() 177 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() 181 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() [all …]
|
H A D | SurfaceViewAlphaActivity.java | 28 import android.widget.LinearLayout; 100 LinearLayout content = new LinearLayout(this); in onCreate() 101 content.setOrientation(LinearLayout.VERTICAL); in onCreate() 129 content.addView(alphaText, new LinearLayout.LayoutParams( in onCreate() 130 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() 131 LinearLayout.LayoutParams.WRAP_CONTENT)); in onCreate() 134 LinearLayout.LayoutParams.MATCH_PARENT, in onCreate() 135 LinearLayout.LayoutParams.WRAP_CONTENT)); in onCreate() 145 content.addView(button, new LinearLayout.LayoutParams( in onCreate() 146 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() [all …]
|
H A D | MarqueeActivity.java | 25 import android.widget.LinearLayout; 34 final LinearLayout linearLayout = new LinearLayout(this); in onCreate() 35 linearLayout.setOrientation(LinearLayout.VERTICAL); in onCreate() 42 linearLayout.addView(text1, new LinearLayout.LayoutParams( in onCreate() 43 100, LinearLayout.LayoutParams.WRAP_CONTENT)); in onCreate() 50 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams( in onCreate() 51 100, LinearLayout.LayoutParams.WRAP_CONTENT); in onCreate()
|
H A D | ViewLayerInvalidationActivity.java | 24 import android.widget.LinearLayout; 33 ArrayList<LinearLayout> linearLayouts = new ArrayList<LinearLayout>(); 34 ArrayList<LinearLayout> topLayouts = new ArrayList<LinearLayout>(); 36 LinearLayout container = null; 53 final LinearLayout container1 = findViewById(R.id.container1); in onCreate() 54 final LinearLayout container2 = findViewById(R.id.container2); in onCreate() 55 final LinearLayout container3 = findViewById(R.id.container3); in onCreate() 108 for (LinearLayout layout : linearLayouts) { 113 for (LinearLayout layout : topLayouts) { 139 if (!(view instanceof LinearLayout)) { in collectLinearLayouts() [all …]
|
H A D | Rotate3dTextActivity.java | 26 import android.widget.LinearLayout; 35 final LinearLayout layout = new LinearLayout(this); in onCreate() 36 layout.setOrientation(LinearLayout.VERTICAL); in onCreate() 52 private static LinearLayout.LayoutParams makeLayoutParams() { in makeLayoutParams() 53 LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( in makeLayoutParams() 54 LinearLayout.LayoutParams.MATCH_PARENT, 0); in makeLayoutParams()
|
H A D | DisplayListLayersActivity.java | 29 import android.widget.LinearLayout; 43 LinearLayout root = createContainer(); in onCreate() 53 private Button createButton(final LinearLayout root) { in createButton() 71 private void addChild(LinearLayout root, View child, int width, int height) { in addChild() 72 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(width, height); in addChild() 82 private LinearLayout createContainer() { in createContainer() 83 LinearLayout layout = new LinearLayout(this); in createContainer() 84 layout.setOrientation(LinearLayout.VERTICAL); in createContainer()
|
H A D | VideoViewCaptureActivity.java | 28 import android.widget.LinearLayout; 77 LinearLayout layout = new LinearLayout(this); in onCreate() 78 layout.setOrientation(LinearLayout.VERTICAL); in onCreate() 79 layout.addView(button, LinearLayout.LayoutParams.MATCH_PARENT, in onCreate() 80 LinearLayout.LayoutParams.WRAP_CONTENT); in onCreate() 81 layout.addView(mVideoView, LinearLayout.LayoutParams.MATCH_PARENT, in onCreate() 82 LinearLayout.LayoutParams.MATCH_PARENT); in onCreate()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | CreateViewTest.java | 25 import android.widget.LinearLayout; 47 LinearLayout vert = new LinearLayout(mContext); in testLayout2() 49 new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout2() 54 LinearLayout vert = new LinearLayout(mContext); in testLayout3() 57 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 60 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 66 vert.addView(four, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 72 vert.addView(six, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 86 LinearLayout vert = new LinearLayout(mContext); in testLayout5() 92 LinearLayout vert = new LinearLayout(mContext); in testLayout6() [all …]
|
/aosp14/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
H A D | DpiTestActivity.java | 36 import android.widget.LinearLayout; 82 LinearLayout root = new LinearLayout(this); in onCreate() 85 LinearLayout layout = new LinearLayout(this); in onCreate() 92 layout = new LinearLayout(this); in onCreate() 99 layout = new LinearLayout(this); in onCreate() 114 layout = new LinearLayout(this); in onCreate() 121 layout = new LinearLayout(this); in onCreate() 155 root.addView(label, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, in addLabelToRoot() 159 private void addChildToRoot(LinearLayout root, LinearLayout layout) { in addChildToRoot() 160 root.addView(layout, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, in addChildToRoot() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/ |
H A D | CustomTestActivity.java | 26 import android.widget.LinearLayout; 86 private void createCustomViews(LinearLayout root, int number) { in createCustomViews() 87 LinearLayout horizontalLayout = null; in createCustomViews() 104 private LinearLayout createHorizontalLayout() { in createHorizontalLayout() 105 final LinearLayout layout = new LinearLayout(getApplicationContext()); in createHorizontalLayout() 106 layout.setOrientation(LinearLayout.HORIZONTAL); in createHorizontalLayout() 110 private LinearLayout createItem(Drawable drawable, int index) { in createItem() 111 final LinearLayout group = new LinearLayout(getApplicationContext()); in createItem() 112 group.setOrientation(LinearLayout.VERTICAL); in createItem() 113 group.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, in createItem() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
H A D | HorizontalFocusSearch.java | 24 import android.widget.LinearLayout; 29 private LinearLayout mLayout; 37 public LinearLayout getLayout() { in getLayout() 61 mLayout = new LinearLayout(this); in onCreate() 62 mLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 96 button.setLayoutParams(new LinearLayout.LayoutParams( in makeTall() 105 button.setLayoutParams(new LinearLayout.LayoutParams( in addShort() 112 filler.setLayoutParams(new LinearLayout.LayoutParams( in addShort() 117 LinearLayout ll = new LinearLayout(this); in addShort() 118 ll.setOrientation(LinearLayout.VERTICAL); in addShort() [all …]
|
H A D | VerticalFocusSearch.java | 25 import android.widget.LinearLayout; 34 private LinearLayout mLayout; 43 public LinearLayout getLayout() { in getLayout() 67 mLayout = new LinearLayout(this); in onCreate() 68 mLayout.setOrientation(LinearLayout.VERTICAL); in onCreate() 104 button.setLayoutParams(new LinearLayout.LayoutParams( in makeWide() 121 button.setLayoutParams(new LinearLayout.LayoutParams( in addSkinny() 128 filler.setLayoutParams(new LinearLayout.LayoutParams( in addSkinny() 133 LinearLayout ll = new LinearLayout(this); in addSkinny() 134 ll.setOrientation(LinearLayout.HORIZONTAL); in addSkinny() [all …]
|
H A D | GoneParentFocusedChild.java | 25 import android.widget.LinearLayout; 33 private LinearLayout mGoneGroup; 37 private LinearLayout mLayout; 43 public LinearLayout getLayout() { in getLayout() 47 public LinearLayout getGoneGroup() { in getGoneGroup() 58 mLayout = new LinearLayout(this); in onCreate() 59 mLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 65 mGoneGroup = new LinearLayout(this); in onCreate() 66 mGoneGroup.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 72 mButton.setLayoutParams(new LinearLayout.LayoutParams( in onCreate()
|
H A D | AdjacentVerticalRectLists.java | 23 import android.widget.LinearLayout; 39 private LinearLayout mLayout; 45 public LinearLayout getLayout() { in getLayout() 65 mLayout = new LinearLayout(this); in onCreate() 66 mLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 71 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0, in onCreate()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ListItemFactory.java | 25 import android.widget.LinearLayout; 48 final LinearLayout ll = new LinearLayout(context); in twoButtonsSeparatedByFiller() 49 ll.setOrientation(LinearLayout.VERTICAL); in twoButtonsSeparatedByFiller() 51 final LinearLayout.LayoutParams buttonLp = in twoButtonsSeparatedByFiller() 52 new LinearLayout.LayoutParams( in twoButtonsSeparatedByFiller() 63 middleFiller.setLayoutParams(new LinearLayout.LayoutParams( in twoButtonsSeparatedByFiller() 93 final LinearLayout ll = new LinearLayout(context); in horizontalButtonSlots() 94 ll.setOrientation(LinearLayout.HORIZONTAL); in horizontalButtonSlots() 96 final LinearLayout.LayoutParams lp in horizontalButtonSlots() 237 final LinearLayout ll = new LinearLayout(context); in doubleText() [all …]
|
H A D | ScrollViewScenario.java | 26 import android.widget.LinearLayout; 44 private LinearLayout mLinearLayout; 175 final LinearLayout ll = new LinearLayout(context); in addVerticalLLOfButtons() 176 ll.setOrientation(LinearLayout.VERTICAL); in addVerticalLLOfButtons() 179 final LinearLayout.LayoutParams lp = in addVerticalLLOfButtons() 180 new LinearLayout.LayoutParams( in addVerticalLLOfButtons() 208 public LinearLayout getLinearLayout() { in getLinearLayout() 244 mLinearLayout = new LinearLayout(this); in onCreate() 245 mLinearLayout.setOrientation(LinearLayout.VERTICAL); in onCreate() 257 final LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( in onCreate()
|
/aosp14/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | InvalidateTreeActivity.java | 24 import android.widget.LinearLayout; 33 private final ArrayList<LinearLayout> mLayouts = new ArrayList<>(); 37 private void createQuadTree(LinearLayout parent, int remainingDepth) { in createQuadTree() 46 parent.setOrientation(vertical ? LinearLayout.VERTICAL : LinearLayout.HORIZONTAL); in createQuadTree() 49 LinearLayout child = new LinearLayout(this); in createQuadTree() 51 parent.addView(child, new LinearLayout.LayoutParams( in createQuadTree() 70 LinearLayout root = new LinearLayout(this); in onCreate()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListItemISVAndButton.java | 25 import android.widget.LinearLayout; 45 final LinearLayout ll = new LinearLayout(context); in createView() 46 ll.setOrientation(LinearLayout.VERTICAL); in createView() 49 isv.setLayoutParams(new LinearLayout.LayoutParams( in createView() 54 final LinearLayout.LayoutParams buttonLp = in createView() 55 new LinearLayout.LayoutParams( in createView() 65 filler.setLayoutParams(new LinearLayout.LayoutParams( in createView()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
H A D | ScreenRecordingAdapter.java | 25 import android.widget.LinearLayout; 36 private LinearLayout mSelectedMic; 37 private LinearLayout mSelectedInternal; 38 private LinearLayout mSelectedMicAndInternal; 52 private LinearLayout getOption(int label, int description) { in getOption() 54 LinearLayout layout = (LinearLayout) inflater in getOption() 68 private LinearLayout getSelected(int label) { in getSelected() 70 LinearLayout layout = (LinearLayout) inflater in getSelected()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
H A D | ListItemFocusablesCloseTest.java | 21 import android.widget.LinearLayout; 50 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testPreconditions() 68 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testChangeFocusWithinItem() 88 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testMoveDownToButtonInDifferentSelection() 95 final LinearLayout selectedItem = (LinearLayout) mListView.getSelectedView(); in testMoveDownToButtonInDifferentSelection()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
H A D | ScrollViewButtonsAndLabels.java | 22 import android.widget.LinearLayout; 34 private LinearLayout mLinearLayout; 43 public LinearLayout getLinearLayout() { in getLinearLayout() 71 LinearLayout.LayoutParams p = new LinearLayout.LayoutParams( in onCreate() 72 LinearLayout.LayoutParams.MATCH_PARENT, in onCreate() 73 LinearLayout.LayoutParams.WRAP_CONTENT in onCreate()
|
/aosp14/frameworks/base/tests/UpdatableSystemFontTest/EmojiRenderingTestApp/src/com/android/emojirenderingtestapp/ |
H A D | EmojiRenderingTestActivity.java | 25 import android.widget.LinearLayout; 36 LinearLayout container = new LinearLayout(this); in onCreate() 37 container.setOrientation(LinearLayout.VERTICAL); in onCreate() 40 container.addView(emojiTextView, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT)); in onCreate() 44 container.addView(serifTextView, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT)); in onCreate()
|