/frameworks/minikin/tests/unittest/ |
D | LayoutCoreTest.cpp | 74 auto layout = buildLayout("I", {"LayoutTestFont.ttf"}); in TEST() local 75 EXPECT_EQ(1u, layout.glyphCount()); in TEST() 76 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST() 77 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), layout.bounds()); in TEST() 78 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST() 79 EXPECT_EQ(1u, layout.fonts().size()); in TEST() 80 EXPECT_TRUE(layout.fontAt(0).font); in TEST() 81 EXPECT_EQ(1u, layout.advances().size()); in TEST() 82 EXPECT_EQ(10.0f, layout.advances()[0]); in TEST() 83 EXPECT_EQ(10.0f, layout.advance()); in TEST() [all …]
|
D | MeasuredTextTest.cpp | 161 Layout layout = mt->buildLayout(text, Range(0, 0), fullContext, samePaint, in TEST() local 163 EXPECT_EQ(0u, layout.nGlyphs()); in TEST() 165 layout = mt->buildLayout(text, Range(0, 1), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST() 167 ASSERT_EQ(1u, layout.nGlyphs()); in TEST() 168 EXPECT_TRUE(layout.getFont(0)); in TEST() 169 EXPECT_EQ(0.0f, layout.getX(0)); in TEST() 170 EXPECT_EQ(0.0f, layout.getY(0)); in TEST() 171 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST() 172 EXPECT_EQ(10.0f, layout.getCharAdvance(0)); in TEST() 173 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST() [all …]
|
D | LayoutTest.cpp | 64 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local 66 EXPECT_EQ(70.0f, layout.getAdvance()); in TEST_F() 67 layout.getBounds(&rect); in TEST_F() 76 expectAdvances(expectedValues, layout.getAdvances()); in TEST_F() 82 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local 84 EXPECT_EQ(90.0f, layout.getAdvance()); in TEST_F() 85 layout.getBounds(&rect); in TEST_F() 94 expectAdvances(expectedValues, layout.getAdvances()); in TEST_F() 100 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local 102 EXPECT_EQ(160.0f, layout.getAdvance()); in TEST_F() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/ |
D | GlifLayoutTest.java | 62 GlifLayout layout = new GlifLayout(context); in testDefaultTemplate() local 63 assertDefaultTemplateInflated(layout); in testDefaultTemplate() 68 GlifLayout layout = new GlifLayout(context); in testSetHeaderText() local 69 TextView title = layout.findViewById(R.id.suw_layout_title); in testSetHeaderText() 70 layout.setHeaderText("Abracadabra"); in testSetHeaderText() 79 GlifLayout layout = new GlifLayout(context); in testAddView() local 82 layout.addView(tv); in testAddView() 83 assertDefaultTemplateInflated(layout); in testAddView() 84 View view = layout.findViewById(testViewId); in testAddView() 90 GlifLayout layout = new GlifLayout(context); in testGetScrollView() local [all …]
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | SetupWizardLayoutTest.java | 67 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testDefaultTemplate() local 68 assertDefaultTemplateInflated(layout); in testDefaultTemplate() 73 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testSetHeaderText() local 74 TextView title = (TextView) layout.findViewById(R.id.suw_layout_title); in testSetHeaderText() 75 layout.setHeaderText("Abracadabra"); in testSetHeaderText() 81 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testAddView() local 84 layout.addView(tv); in testAddView() 85 assertDefaultTemplateInflated(layout); in testAddView() 86 View view = layout.findViewById(R.id.test_view_id); in testAddView() 93 SetupWizardLayout layout = (SetupWizardLayout) inflater.inflate(R.layout.test_layout, null); in testInflateFromXml() local [all …]
|
D | GlifListLayoutTest.java | 58 GlifListLayout layout = new GlifListLayout(mContext); in testDefaultTemplate() local 59 assertListTemplateInflated(layout); in testDefaultTemplate() 64 GlifListLayout layout = new GlifListLayout(mContext); in testAddView() local 67 layout.addView(tv); in testAddView() 77 GlifListLayout layout = (GlifListLayout) inflater.inflate(R.layout.test_glif_list_layout, null); in testInflateFromXml() local 78 assertListTemplateInflated(layout); in testInflateFromXml() 83 GlifListLayout layout = new GlifListLayout(mContext); in testGetListView() local 84 assertListTemplateInflated(layout); in testGetListView() 85 assertNotNull("getListView should not be null", layout.getListView()); in testGetListView() 90 GlifListLayout layout = new GlifListLayout(mContext); in testAdapter() local [all …]
|
D | SetupWizardListLayoutTest.java | 59 SetupWizardListLayout layout = new SetupWizardListLayout(mContext); in testDefaultTemplate() local 60 assertListTemplateInflated(layout); in testDefaultTemplate() 65 SetupWizardListLayout layout = new SetupWizardListLayout(mContext); in testAddView() local 68 layout.addView(tv); in testAddView() 78 SetupWizardListLayout layout = in testInflateFromXml() local 79 (SetupWizardListLayout) inflater.inflate(R.layout.test_list_layout, null); in testInflateFromXml() 80 assertListTemplateInflated(layout); in testInflateFromXml() 85 final SetupWizardListLayout layout = new SetupWizardListLayout(mContext); in testShowProgressBar() local 86 layout.showProgressBar(); in testShowProgressBar() 87 assertTrue("Progress bar should be shown", layout.isProgressBarShown()); in testShowProgressBar() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | DynamicLayoutTest.java | 48 final DynamicLayout layout = new DynamicLayout(builder, new TextPaint(), WIDTH, in testGetBlocksAlwaysNeedToBeRedrawn_en() local 51 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_en() 55 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_en() 58 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_en() 74 final DynamicLayout layout = new DynamicLayout(builder, new TextPaint(), WIDTH, in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() local 77 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() 81 assertNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() 84 assertNotNull(layout.getBlocksAlwaysNeedToBeRedrawn()); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() 85 assertTrue(layout.getBlocksAlwaysNeedToBeRedrawn().contains(0)); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() 88 assertTrue(layout.getBlocksAlwaysNeedToBeRedrawn().contains(0)); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() [all …]
|
D | LayoutTest.java | 89 Layout layout = new MockLayout(text, mTextPaint, mWidth, in testGetText() local 91 assertEquals(text, layout.getText()); in testGetText() 93 layout = new MockLayout(null, mTextPaint, mWidth, mAlign, mSpacingMult, mSpacingAdd); in testGetText() 94 assertNull(layout.getText()); in testGetText() 99 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetPaint() local 102 assertSame(mTextPaint, layout.getPaint()); in testGetPaint() 104 layout = new MockLayout(LAYOUT_TEXT, null, mWidth, mAlign, mSpacingMult, mSpacingAdd); in testGetPaint() 105 assertNull(layout.getPaint()); in testGetPaint() 110 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, 10, in testGetWidth() local 112 assertEquals(10, layout.getWidth()); in testGetWidth() [all …]
|
D | StaticLayoutTextMeasuringTest.java | 55 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_zwnbsp() local 58 assertEquals(0.0f, layout.getPrimaryHorizontal(0), 0f); in testGetPrimaryHorizontal_zwnbsp() 59 assertEquals(layout.getPrimaryHorizontal(2), layout.getPrimaryHorizontal(1), 0f); in testGetPrimaryHorizontal_zwnbsp() 66 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_devanagari() local 69 assertEquals(0.0f, layout.getPrimaryHorizontal(0), 0f); in testGetPrimaryHorizontal_devanagari() 70 assertEquals(layout.getPrimaryHorizontal(2), layout.getPrimaryHorizontal(1), 0f); in testGetPrimaryHorizontal_devanagari() 79 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_flagEmoji() local 82 assertEquals(0.0f, layout.getPrimaryHorizontal(0), 0f); in testGetPrimaryHorizontal_flagEmoji() 83 assertEquals(layout.getPrimaryHorizontal(4), layout.getPrimaryHorizontal(1), 0f); in testGetPrimaryHorizontal_flagEmoji() 84 assertEquals(layout.getPrimaryHorizontal(4), layout.getPrimaryHorizontal(2), 0f); in testGetPrimaryHorizontal_flagEmoji() [all …]
|
D | StaticLayoutTest.java | 84 final StaticLayout layout = builder.build(); in testBuilder_textDirection() local 87 layout.getTextDirectionHeuristic()); in testBuilder_textDirection() 94 final StaticLayout layout = builder.build(); in testBuilder_textDirection() local 96 layout.getTextDirectionHeuristic()); in testBuilder_textDirection() 288 final Layout layout = builder().build(); in testGetLineExtra_withNegativeValue() local 289 layout.getLineExtra(-1); in testGetLineExtra_withNegativeValue() 294 final Layout layout = builder().build(); in testGetLineExtra_withParamGreaterThanLineCount() local 295 layout.getLineExtra(100); in testGetLineExtra_withParamGreaterThanLineCount() 432 final Layout layout = builder().setText(state.mText.toString()).setPaint(paint).build(); in moveCursorToRightCursorableOffset() local 433 final int newOffset = layout.getOffsetToRightOf(state.mSelectionStart); in moveCursorToRightCursorableOffset() [all …]
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | SetupWizardRecyclerLayoutTest.java | 60 SetupWizardRecyclerLayout layout = new SetupWizardRecyclerLayout(mContext); in testDefaultTemplate() local 61 assertRecyclerTemplateInflated(layout); in testDefaultTemplate() 67 SetupWizardRecyclerLayout layout = in testInflateFromXml() local 68 (SetupWizardRecyclerLayout) inflater.inflate(R.layout.test_recycler_layout, null); in testInflateFromXml() 69 assertRecyclerTemplateInflated(layout); in testInflateFromXml() 74 SetupWizardRecyclerLayout layout = new SetupWizardRecyclerLayout(mContext); in testGetRecyclerView() local 75 assertRecyclerTemplateInflated(layout); in testGetRecyclerView() 76 assertNotNull("getRecyclerView should not be null", layout.getRecyclerView()); in testGetRecyclerView() 81 SetupWizardRecyclerLayout layout = new SetupWizardRecyclerLayout(mContext); in testAdapter() local 82 assertRecyclerTemplateInflated(layout); in testAdapter() [all …]
|
D | GlifRecyclerLayoutTest.java | 58 GlifRecyclerLayout layout = new GlifRecyclerLayout(mContext); in testDefaultTemplate() local 59 assertRecyclerTemplateInflated(layout); in testDefaultTemplate() 65 GlifRecyclerLayout layout = in testInflateFromXml() local 66 (GlifRecyclerLayout) inflater.inflate(R.layout.test_glif_recycler_layout, null); in testInflateFromXml() 67 assertRecyclerTemplateInflated(layout); in testInflateFromXml() 72 GlifRecyclerLayout layout = new GlifRecyclerLayout(mContext); in testGetRecyclerView() local 73 assertRecyclerTemplateInflated(layout); in testGetRecyclerView() 74 assertNotNull("getRecyclerView should not be null", layout.getRecyclerView()); in testGetRecyclerView() 79 GlifRecyclerLayout layout = new GlifRecyclerLayout(mContext); in testAdapter() local 80 assertRecyclerTemplateInflated(layout); in testAdapter() [all …]
|
D | SetupWizardPreferenceLayoutTest.java | 55 SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(mContext); in testDefaultTemplate() local 56 assertPreferenceTemplateInflated(layout); in testDefaultTemplate() 61 SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(mContext); in testGetRecyclerView() local 62 assertPreferenceTemplateInflated(layout); in testGetRecyclerView() 63 assertNotNull("getRecyclerView should not be null", layout.getRecyclerView()); in testGetRecyclerView() 68 SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(mContext); in testOnCreateRecyclerView() local 69 assertPreferenceTemplateInflated(layout); in testOnCreateRecyclerView() 71 layout.onCreateRecyclerView( in testOnCreateRecyclerView() 72 LayoutInflater.from(mContext), layout, null /* savedInstanceState */); in testOnCreateRecyclerView() 78 SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(mContext); in testDividerInset() local [all …]
|
D | GlifPreferenceLayoutTest.java | 54 GlifPreferenceLayout layout = new GlifPreferenceLayout(mContext); in testDefaultTemplate() local 55 assertPreferenceTemplateInflated(layout); in testDefaultTemplate() 60 GlifPreferenceLayout layout = new GlifPreferenceLayout(mContext); in testGetRecyclerView() local 61 assertPreferenceTemplateInflated(layout); in testGetRecyclerView() 62 assertNotNull("getRecyclerView should not be null", layout.getRecyclerView()); in testGetRecyclerView() 67 GlifPreferenceLayout layout = new GlifPreferenceLayout(mContext); in testOnCreateRecyclerView() local 68 assertPreferenceTemplateInflated(layout); in testOnCreateRecyclerView() 70 layout.onCreateRecyclerView( in testOnCreateRecyclerView() 71 LayoutInflater.from(mContext), layout, null /* savedInstanceState */); in testOnCreateRecyclerView() 77 GlifPreferenceLayout layout = new GlifPreferenceLayout(mContext); in testDividerInset() local [all …]
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 85 LinearLayout layout = new LinearLayout(this); in onCreate() local 86 addBitmapDrawable(layout, R.drawable.logo120dpi, true); in onCreate() 87 addBitmapDrawable(layout, R.drawable.logo160dpi, true); in onCreate() 88 addBitmapDrawable(layout, R.drawable.logo240dpi, true); in onCreate() 90 addChildToRoot(root, layout); in onCreate() 92 layout = new LinearLayout(this); in onCreate() 93 addBitmapDrawable(layout, R.drawable.logo120dpi, false); in onCreate() 94 addBitmapDrawable(layout, R.drawable.logo160dpi, false); in onCreate() 95 addBitmapDrawable(layout, R.drawable.logo240dpi, false); in onCreate() 97 addChildToRoot(root, layout); in onCreate() [all …]
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 68 const C2PlanarLayout &layout = view.layout(); in _ImageCopy() local 71 for (uint32_t i = 0; i < layout.numPlanes; ++i) { in _ImageCopy() 76 const C2PlaneInfo &plane = layout.planes[i]; in _ImageCopy() 129 int32_t src_stride_y = view.layout().planes[0].rowInc; in ImageCopy() 130 int32_t src_stride_u = view.layout().planes[1].rowInc; in ImageCopy() 131 int32_t src_stride_v = view.layout().planes[2].rowInc; in ImageCopy() 170 int32_t dst_stride_y = view.layout().planes[0].rowInc; in ImageCopy() 171 int32_t dst_stride_u = view.layout().planes[1].rowInc; in ImageCopy() 172 int32_t dst_stride_v = view.layout().planes[2].rowInc; in ImageCopy() 191 const C2PlanarLayout &layout = view.layout(); in IsYUV420() local [all …]
|
/frameworks/base/core/java/android/text/ |
D | Selection.java | 198 public static boolean moveUp(Spannable text, Layout layout) { in moveUp() argument 214 int line = layout.getLineForOffset(end); in moveUp() 218 text, layout, line, end, -1 /* direction */, false /* extend */); in moveUp() 232 private static void setSelectionAndMemory(Spannable text, Layout layout, int line, int end, in setSelectionAndMemory() argument 237 if (layout.getParagraphDirection(line) in setSelectionAndMemory() 238 == layout.getParagraphDirection(line + direction)) { in setSelectionAndMemory() 242 float h = layout.getPrimaryHorizontal(memory); in setSelectionAndMemory() 243 move = layout.getOffsetForHorizontal(line + direction, h); in setSelectionAndMemory() 247 float h = layout.getPrimaryHorizontal(end); in setSelectionAndMemory() 248 move = layout.getOffsetForHorizontal(line + direction, h); in setSelectionAndMemory() [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_2/ |
D | resize_nearest_neighbor.mod.py | 17 layout = BoolScalar("layout", False) # NHWC variable 22 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 1, 1, layout).To(o1) 23 model_scale = Model("scale").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 0.5, 0.5, layout).To(o1) 36 Example(test1, model=model_shape).AddNchw(i1, o1, layout).AddVariations("relaxed", quant8, "float16… 37 Example(test1, model=model_scale).AddNchw(i1, o1, layout).AddVariations("relaxed", quant8, "float16… 43 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 3, 3, layout).To(o1) 44 model_scale = Model("scale").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 1.5, 1.5, layout).To(o1) 57 Example(test2, model=model_shape).AddNchw(i1, o1, layout).AddVariations("relaxed", quant8, "float16… 58 Example(test2, model=model_scale).AddNchw(i1, o1, layout).AddVariations("relaxed", quant8, "float16… 64 model_shape = Model("shape").Operation("RESIZE_NEAREST_NEIGHBOR", i1, 2, 2, layout).To(o1) [all …]
|
D | l2_pool_v1_2.mod.py | 17 layout = BoolScalar("layout", False) # NHWC variable 22 Model().Operation("L2_POOL_2D", i1, 0, 0, 0, 0, 1, 1, 1, 1, 0, layout).To(o1) 28 }).AddNchw(i1, o1, layout).AddVariations("relaxed", "float16") 34 Model().Operation("L2_POOL_2D", i2, 1, 2, 2, 2, 2, 0, layout).To(o2) 40 }).AddNchw(i2, o2, layout).AddVariations("relaxed", "float16") 46 Model("large").Operation("L2_POOL_2D", i3, 0, 0, 0, 0, 1, 1, 2, 2, 0, layout).To(o3) 52 }).AddNchw(i3, o3, layout).AddVariations("relaxed", "float16") 69 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 73 model = model.Operation("L2_POOL_2D", zero_sized, 0, 0, 0, 0, 1, 1, 2, 2, 0, layout).To(o3) 80 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", "float16") [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | resize_quant8_signed.mod.py | 17 layout = BoolScalar("layout", False) # NHWC variable 22 model_shape = Model("shape").Operation("RESIZE_BILINEAR", i1, 3, 3, layout).To(o1) 23 model_scale = Model("scale").Operation("RESIZE_BILINEAR", i1, 1.5, 1.5, layout).To(o1) 39 Example(test1, model=model_shape).AddNchw(i1, o1, layout).AddVariations(quant8_signed, includeDefau… 40 Example(test1, model=model_scale).AddNchw(i1, o1, layout).AddVariations(quant8_signed, includeDefau… 46 model_shape = Model("shape").Operation("RESIZE_BILINEAR", i2, 3, 3, layout).To(o2) 47 model_scale = Model("scale").Operation("RESIZE_BILINEAR", i2, 1.6, 1.6, layout).To(o2) 63 Example(test2, model=model_shape).AddNchw(i2, o2, layout).AddVariations(quant8_signed, includeDefau… 64 Example(test2, model=model_scale).AddNchw(i2, o2, layout).AddVariations(quant8_signed, includeDefau… 105 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) [all …]
|
D | resize_nearest_neighbor_v1_3.mod.py | 16 def test(name, input0, output_width, output_height, layout, align_corners, argument 19 output_height, layout, align_corners, 42 layout=BoolScalar("layout", False), 55 layout=BoolScalar("layout", False), 68 layout=BoolScalar("layout", False), 81 layout=BoolScalar("layout", False), 94 layout=BoolScalar("layout", False), 107 layout=BoolScalar("layout", False), 120 layout=BoolScalar("layout", False), 133 layout=BoolScalar("layout", False), [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | ArrowKeyMovementMethod.java | 38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { in getCurrentLineTop() argument 39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); in getCurrentLineTop() 70 final Layout layout = widget.getLayout(); in left() local 72 return Selection.extendLeft(buffer, layout); in left() 74 return Selection.moveLeft(buffer, layout); in left() 80 final Layout layout = widget.getLayout(); in right() local 82 return Selection.extendRight(buffer, layout); in right() 84 return Selection.moveRight(buffer, layout); in right() 90 final Layout layout = widget.getLayout(); in up() local 92 return Selection.extendUp(buffer, layout); in up() [all …]
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/ |
D | TemplateLayoutTest.java | 51 TemplateLayout layout = in testAddView() local 52 new TemplateLayout(mContext, R.layout.test_template, R.id.suw_layout_content); in testAddView() 55 layout.addView(tv); in testAddView() 56 View view = layout.findViewById(R.id.test_view_id); in testAddView() 63 TemplateLayout layout = (TemplateLayout) inflater.inflate(R.layout.test_template_layout, null); in testInflateFromXml() local 64 View content = layout.findViewById(R.id.test_content); in testInflateFromXml() 70 TemplateLayout layout = in testTemplate() local 71 new TemplateLayout(mContext, R.layout.test_template, R.id.suw_layout_content); in testTemplate() 72 View templateView = layout.findViewById(R.id.test_template_view); in testTemplate() 77 layout.addView(tv); in testTemplate() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | TextGammaActivity.java | 37 final LinearLayout layout = new LinearLayout(this); in onCreate() local 38 layout.setOrientation(LinearLayout.VERTICAL); in onCreate() 41 layout.addView(gamma, new LinearLayout.LayoutParams( in onCreate() 45 setContentView(layout); in onCreate() 47 layout.post(new Runnable() { in onCreate() 58 layout.addView(image, new LinearLayout.LayoutParams( in onCreate() 77 inflater.inflate(R.layout.text_large, this, true); in GammaTextView() 78 inflater.inflate(R.layout.text_medium, this, true); in GammaTextView() 79 inflater.inflate(R.layout.text_small, this, true); in GammaTextView() 88 final LinearLayout layout = new LinearLayout(this); in onCreate() local [all …]
|