/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | InflateTest.java | 44 // do an initial instantiation of the layout and then clear 45 // out the layout cache. 64 // Make sure this layout is in the cache. 72 inflateTest(R.layout.layout_one); 77 inflateTest(R.layout.layout_two); 82 inflateTest(R.layout.layout_three); 87 inflateTest(R.layout.layout_four); 92 inflateTest(R.layout.layout_five); 97 inflateTest(R.layout.layout_six); 102 inflateCachedTest(R.layout [all...] |
H A D | MutateDrawable.java | 30 LinearLayout layout = new LinearLayout(this); 42 layout.addView(ok); 43 layout.addView(cancel); 47 setContentView(layout);
|
H A D | MergeTest.java | 38 final ViewGroup layout = activity.getLayout(); 40 assertEquals("The layout wasn't merged", 7, layout.getChildCount());
|
H A D | Include.java | 31 setContentView(R.layout.include_tag);
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
H A D | BaselineAlignmentZeroWidthAndWeight.java | 17 package android.widget.layout.linear; 29 setContentView(R.layout.baseline_0width_and_weight); 33 findViewById(R.id.layout).setVisibility(View.VISIBLE);
|
H A D | FillInWrap.java | 17 package android.widget.layout.linear; 29 setContentView(R.layout.fill_in_wrap);
|
H A D | LLEditTextThenButton.java | 17 package android.widget.layout.linear; 37 setContentView(R.layout.linear_layout_edittext_then_button); 39 mLayout = (LinearLayout) findViewById(R.id.layout);
|
H A D | LLOfButtons1.java | 17 package android.widget.layout.linear; 39 setContentView(R.layout.linear_layout_buttons); 51 return (LinearLayout) findViewById(R.id.layout);
|
H A D | LinearLayoutEditTextsTest.java | 17 package android.widget.layout.linear; 19 import android.widget.layout.linear.LinearLayoutEditTexts; 41 mContainer = activity.findViewById(R.id.layout);
|
H A D | WeightTest.java | 17 package android.widget.layout.linear; 26 import android.widget.layout.linear.Weight; 42 mContainer = activity.findViewById(R.id.layout);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | SimplePathsActivity.java | 31 FrameLayout layout = new FrameLayout(this); 33 layout.addView(text, new FrameLayout.LayoutParams(600, 350, Gravity.CENTER)); 38 setContentView(layout);
|
H A D | ViewFlipperActivity.java | 36 final View widget = inflater.inflate(R.layout.widget, null); 41 View view = inflater.inflate(R.layout.flipper_item, flipper, false); 47 view = inflater.inflate(R.layout.flipper_item, flipper, false); 53 FrameLayout layout = new FrameLayout(this); 54 layout.addView(widget); 56 setContentView(layout);
|
H A D | GlyphCacheActivity.java | 42 LinearLayout layout = new LinearLayout(this); 43 layout.setOrientation(LinearLayout.VERTICAL); 44 layout.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 46 scrollView.addView(layout); 49 layout.addView(createTextView());
|
H A D | SmallCircleActivity.java | 34 final LinearLayout layout = new LinearLayout(this); 35 layout.setOrientation(LinearLayout.VERTICAL); 38 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE)); 41 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE)); 43 setContentView(layout);
|
H A D | TimeDialogActivity.java | 33 FrameLayout layout = new FrameLayout(this); 44 layout.addView(b); 46 setContentView(layout);
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
H A D | BiDiTestGridLayoutCodeLtr.java | 38 currentView = (FrameLayout) inflater.inflate(R.layout.grid_layout_code, container, false); 49 GridLayout layout = new GridLayout(context); 50 layout.setUseDefaultMargins(true); 51 layout.setAlignmentMode(ALIGN_BOUNDS); 52 layout.setRowOrderPreserved(false); 53 layout.setLayoutDirection(View.LAYOUT_DIRECTION_LTR); 75 layout.addView(c, new GridLayout.LayoutParams(row1, col1a)); 81 layout.addView(c, new GridLayout.LayoutParams(row2, col1b)); 86 layout.addView(c, new GridLayout.LayoutParams(row3, col1c)); 92 layout [all...] |
H A D | BiDiTestGridLayoutCodeRtl.java | 38 currentView = (FrameLayout) inflater.inflate(R.layout.grid_layout_code, container, false); 49 GridLayout layout = new GridLayout(context); 50 layout.setUseDefaultMargins(true); 51 layout.setAlignmentMode(ALIGN_BOUNDS); 52 layout.setRowOrderPreserved(false); 53 layout.setLayoutDirection(View.LAYOUT_DIRECTION_RTL); 75 layout.addView(c, new GridLayout.LayoutParams(row1, col1a)); 81 layout.addView(c, new GridLayout.LayoutParams(row2, col1b)); 86 layout.addView(c, new GridLayout.LayoutParams(row3, col1c)); 92 layout [all...] |
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
H A D | ManyEditTextActivityScrollResize.java | 42 LinearLayout layout = new LinearLayout(this); 43 layout.setOrientation(LinearLayout.VERTICAL); 50 layout.addView(editText); 53 ((ScrollView) mRootView).addView(layout);
|
H A D | ButtonActivity.java | 68 LinearLayout layout = new LinearLayout(this); 69 layout.setOrientation(LinearLayout.VERTICAL); 70 layout.addView(myButton); 71 setContentView(layout); 72 mRootView = layout;
|
H A D | OneEditTextActivityNotSelected.java | 48 LinearLayout layout = new LinearLayout(this); 49 layout.setOrientation(LinearLayout.VERTICAL); 58 layout.addView(button); 59 layout.addView(editText); 61 ((ScrollView) mRootView).addView(layout);
|
H A D | EditTextActivityDialog.java | 89 View layout; 93 layout = new ScrollView(EditTextActivityDialog.this); 94 ((ScrollView) layout).setMinimumHeight(mLayout.getHeight()); 96 ((ScrollView) layout).addView(( 98 R.layout.dialog_edit_text_no_scroll, null)); 100 layout = View.inflate(EditTextActivityDialog.this, 101 R.layout.dialog_edit_text_no_scroll, null); 107 d.setContentView(layout);
|
/frameworks/base/core/java/android/text/method/ |
H A D | ArrowKeyMovementMethod.java | 38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { argument 39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); 70 final Layout layout = widget.getLayout(); 72 return Selection.extendLeft(buffer, layout); 74 return Selection.moveLeft(buffer, layout); 80 final Layout layout = widget.getLayout(); 82 return Selection.extendRight(buffer, layout); 84 return Selection.moveRight(buffer, layout); 90 final Layout layout [all...] |
H A D | BaseMovementMethod.java | 423 final Layout layout = widget.getLayout(); 431 final int lineLeft = (int) Math.floor(layout.getLineLeft(line)); 440 final Layout layout = widget.getLayout(); 448 final int lineRight = (int) Math.ceil(layout.getLineRight(line)); 509 final Layout layout = widget.getLayout(); 511 int topLine = layout.getLineForVertical(top); 512 if (layout.getLineTop(topLine) == top) { 519 Touch.scrollTo(widget, layout, widget.getScrollX(), layout.getLineTop(topLine)); 536 final Layout layout [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | DialogTitle.java | 49 final Layout layout = getLayout(); 50 if (layout != null) { 51 final int lineCount = layout.getLineCount(); 53 final int ellipsisCount = layout.getEllipsisCount(lineCount - 1);
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
H A D | BasicAnimatorActivity.java | 27 setContentView(R.layout.animator_basic);
|