Home
last modified time | relevance | path

Searched refs:layout (Results 1 – 25 of 1820) sorted by relevance

12345678910>>...73

/frameworks/minikin/tests/unittest/
DLayoutCoreTest.cpp92 auto layout = buildLayout("I", fc); in TEST() local
93 EXPECT_EQ(1u, layout.glyphCount()); in TEST()
94 EXPECT_EQ(1u, layout.clusterCount()); in TEST()
95 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST()
96 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST()
97 EXPECT_EQ(1u, layout.fonts().size()); in TEST()
98 EXPECT_TRUE(layout.fontAt(0).font); in TEST()
99 EXPECT_EQ(1u, layout.advances().size()); in TEST()
100 EXPECT_EQ(10.0f, layout.advances()[0]); in TEST()
101 EXPECT_EQ(10.0f, layout.advance()); in TEST()
[all …]
DMeasuredTextTest.cpp234 Layout layout = mt->buildLayout(text, Range(0, 0), fullContext, samePaint, in TEST() local
236 EXPECT_EQ(0u, layout.nGlyphs()); in TEST()
238 layout = mt->buildLayout(text, Range(0, 1), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
240 ASSERT_EQ(1u, layout.nGlyphs()); in TEST()
241 EXPECT_TRUE(layout.getFont(0)); in TEST()
242 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
243 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
244 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
245 EXPECT_EQ(10.0f, layout.getCharAdvance(0)); in TEST()
246 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/
DGlifLayoutTest.java62 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/base/core/tests/coretests/src/android/widget/
DTextViewPopulateCharacterBoundsTest.java87 textView.layout(0, 0, width, height); in createTextView()
102 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_LTR() local
104 new RectF(0.0f, layout.getLineTop(0), 10.0f, layout.getLineBottom(0)), in testPopulateCharacterBounds_LTR()
105 new RectF(10.0f, layout.getLineTop(0), 20.0f, layout.getLineBottom(0)), in testPopulateCharacterBounds_LTR()
106 new RectF(20.0f, layout.getLineTop(0), 70.0f, layout.getLineBottom(0)), in testPopulateCharacterBounds_LTR()
107 new RectF(70.0f, layout.getLineTop(0), 170.0f, layout.getLineBottom(0)) in testPopulateCharacterBounds_LTR()
131 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_LTR_multiline() local
133 new RectF(0.0f, layout.getLineTop(0), 10.0f, layout.getLineBottom(0)), in testPopulateCharacterBounds_LTR_multiline()
134 new RectF(10.0f, layout.getLineTop(0), 60.0f, layout.getLineBottom(0)), in testPopulateCharacterBounds_LTR_multiline()
136 new RectF(0.0f, layout.getLineTop(1), 50.0f, layout.getLineBottom(1)), in testPopulateCharacterBounds_LTR_multiline()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DSetupWizardLayoutTest.java67 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 …]
DGlifListLayoutTest.java58 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 …]
DSetupWizardListLayoutTest.java59 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/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp71 const C2PlanarLayout &layout = view.layout(); in _ImageCopy() local
74 for (uint32_t i = 0; i < layout.numPlanes; ++i) { in _ImageCopy()
79 const C2PlaneInfo &plane = layout.planes[i]; in _ImageCopy()
133 int32_t src_stride_y = view.layout().planes[0].rowInc; in ImageCopy()
134 int32_t src_stride_u = view.layout().planes[1].rowInc; in ImageCopy()
135 int32_t src_stride_v = view.layout().planes[2].rowInc; in ImageCopy()
224 int32_t dst_stride_y = view.layout().planes[0].rowInc; in ImageCopy()
225 int32_t dst_stride_u = view.layout().planes[1].rowInc; in ImageCopy()
226 int32_t dst_stride_v = view.layout().planes[2].rowInc; in ImageCopy()
293 const C2PlanarLayout &layout = view.layout(); in IsYUV420() local
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutTest.java48 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 …]
DStaticLayoutTextMeasuringTest.java55 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 …]
DStaticLayoutTest.java84 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 …]
DLayoutTest.java109 Layout layout = new MockLayout(text, mTextPaint, mWidth, in testGetText() local
111 assertEquals(text, layout.getText()); in testGetText()
113 layout = new MockLayout(null, mTextPaint, mWidth, mAlign, mSpacingMult, mSpacingAdd); in testGetText()
114 assertNull(layout.getText()); in testGetText()
119 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetPaint() local
122 assertSame(mTextPaint, layout.getPaint()); in testGetPaint()
124 layout = new MockLayout(LAYOUT_TEXT, null, mWidth, mAlign, mSpacingMult, mSpacingAdd); in testGetPaint()
125 assertNull(layout.getPaint()); in testGetPaint()
130 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, 10, in testGetWidth() local
132 assertEquals(10, layout.getWidth()); in testGetWidth()
[all …]
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifRecyclerLayoutTest.java58 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 …]
DSetupWizardRecyclerLayoutTest.java60 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 …]
DGlifPreferenceLayoutTest.java54 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 …]
DSetupWizardPreferenceLayoutTest.java55 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 …]
/frameworks/base/libs/hwui/jni/text/
DTextShaper.cpp35 LayoutWrapper(minikin::Layout&& layout, float ascent, float descent) in LayoutWrapper()
36 : layout(std::move(layout)), ascent(ascent), descent(descent) {} in LayoutWrapper()
37 minikin::Layout layout; member
52 minikin::Layout layout = MinikinUtils::doLayout(&paint, bidiFlags, typeface, in shapeTextRun() local
58 for (int i = 0; i < layout.nGlyphs(); ++i) { in shapeTextRun()
59 const minikin::Font* font = layout.getFont(i); in shapeTextRun()
62 layout.typeface(i)->GetFontExtent(&extent, minikinPaint, layout.getFakery(i)); in shapeTextRun()
68 std::move(layout), overallAscent, overallDescent in shapeTextRun()
107 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getGlyphCount() local
108 return layout->layout.nGlyphs(); in TextShaper_Result_getGlyphCount()
[all …]
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java85 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/base/services/tests/displayservicetests/src/com/android/server/display/
DDeviceStateToLayoutMapTest.java29 import com.android.server.display.layout.DisplayIdProducer;
30 import com.android.server.display.layout.Layout;
162 Layout layout = new Layout(); in testLeadDisplayAddress() local
163 createNonDefaultDisplay(layout, 111L, /* enabled= */ true, /* group= */ null, in testLeadDisplayAddress()
165 createNonDefaultDisplay(layout, 222L, /* enabled= */ true, /* group= */ null, in testLeadDisplayAddress()
168 layout.postProcessLocked(); in testLeadDisplayAddress()
170 com.android.server.display.layout.Layout.Display display111 = in testLeadDisplayAddress()
171 layout.getByAddress(DisplayAddress.fromPhysicalDisplayId(111)); in testLeadDisplayAddress()
172 com.android.server.display.layout.Layout.Display display222 = in testLeadDisplayAddress()
173 layout.getByAddress(DisplayAddress.fromPhysicalDisplayId(222)); in testLeadDisplayAddress()
[all …]
/frameworks/base/core/java/android/text/
DSelection.java199 public static boolean moveUp(Spannable text, Layout layout) { in moveUp() argument
215 int line = layout.getLineForOffset(end); in moveUp()
219 text, layout, line, end, -1 /* direction */, false /* extend */); in moveUp()
233 private static void setSelectionAndMemory(Spannable text, Layout layout, int line, int end, in setSelectionAndMemory() argument
238 if (layout.getParagraphDirection(line) in setSelectionAndMemory()
239 == layout.getParagraphDirection(line + direction)) { in setSelectionAndMemory()
243 float h = layout.getPrimaryHorizontal(memory); in setSelectionAndMemory()
244 move = layout.getOffsetForHorizontal(line + direction, h); in setSelectionAndMemory()
248 float h = layout.getPrimaryHorizontal(end); in setSelectionAndMemory()
249 move = layout.getOffsetForHorizontal(line + direction, h); in setSelectionAndMemory()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DCombinedShadeHeaderConstraintsTest.kt62 assertThat(getConstraint(R.id.clock).layout.startToStart).isEqualTo(R.id.begin_guide) in <lambda>()
63 assertThat(getConstraint(R.id.clock).layout.horizontalBias).isEqualTo(0f) in <lambda>()
65 assertThat(getConstraint(R.id.shade_header_system_icons).layout.endToEnd) in <lambda>()
67 assertThat(getConstraint(R.id.shade_header_system_icons).layout.horizontalBias) in <lambda>()
70 assertThat(getConstraint(R.id.privacy_container).layout.endToEnd) in <lambda>()
72 assertThat(getConstraint(R.id.privacy_container).layout.horizontalBias) in <lambda>()
92 assertThat(getConstraint(R.id.clock).layout.startToStart).isEqualTo(PARENT_ID) in <lambda>()
93 assertThat(getConstraint(R.id.clock).layout.horizontalBias).isEqualTo(0.5f) in <lambda>()
95 assertThat(getConstraint(R.id.date).layout.startToStart).isEqualTo(PARENT_ID) in <lambda>()
96 assertThat(getConstraint(R.id.date).layout.horizontalBias).isEqualTo(0.5f) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DTooltipManager.kt63 val layout: ViewGroup = in <lambda>() constant
64 LayoutInflater.from(context).inflate(R.layout.controls_onboarding, null) as ViewGroup in <lambda>()
70 layout.alpha = 0f in <lambda>()
73 private val textView = layout.requireViewById<TextView>(R.id.onboarding_text) in <lambda>()
74 private val dismissView = layout.requireViewById<View>(R.id.dismiss).apply { in <lambda>()
80 private val arrowView = layout.requireViewById<View>(R.id.arrow).apply { in <lambda>()
98 layout.removeView(arrowView) in <lambda>()
99 layout.addView(arrowView) in <lambda>()
119 layout.post { in <lambda>()
121 layout.getLocationOnScreen(p) in <lambda>()
[all …]
/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java39 private static int getCurrentLineTop(Spannable buffer, Layout layout) { in getCurrentLineTop() argument
40 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); in getCurrentLineTop()
74 final Layout layout = widget.getLayout(); in left() local
76 return Selection.extendLeft(buffer, layout); in left()
78 return Selection.moveLeft(buffer, layout); in left()
87 final Layout layout = widget.getLayout(); in right() local
89 return Selection.extendRight(buffer, layout); in right()
91 return Selection.moveRight(buffer, layout); in right()
100 final Layout layout = widget.getLayout(); in up() local
102 return Selection.extendUp(buffer, layout); in up()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DCpuPowerStatsCollectorTest.java231 CpuPowerStatsLayout layout = in powerStatsDescriptor() local
233 layout.fromExtras(descriptor.extras); in powerStatsDescriptor()
236 layout.setTimeByScalingStep(deviceStats, 2, 42); in powerStatsDescriptor()
237 layout.setConsumedEnergy(deviceStats, 1, 43); in powerStatsDescriptor()
238 layout.setUsageDuration(deviceStats, 44); in powerStatsDescriptor()
239 layout.setDevicePowerEstimate(deviceStats, 45); in powerStatsDescriptor()
242 layout.setUidTimeByPowerBracket(uidStats, 3, 46); in powerStatsDescriptor()
243 layout.setUidPowerEstimate(uidStats, 47); in powerStatsDescriptor()
245 assertThat(layout.getCpuScalingStepCount()).isEqualTo(7); in powerStatsDescriptor()
246 assertThat(layout.getTimeByScalingStep(deviceStats, 2)).isEqualTo(42); in powerStatsDescriptor()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/ui/composable/
DVolumePanelRoot.kt19 import androidx.compose.foundation.layout.Arrangement in <lambda>()
20 import androidx.compose.foundation.layout.Box in <lambda>()
21 import androidx.compose.foundation.layout.Column in <lambda>()
22 import androidx.compose.foundation.layout.fillMaxWidth in <lambda>()
23 import androidx.compose.foundation.layout.heightIn in <lambda>()
24 import androidx.compose.foundation.layout.padding in <lambda>()
35 import com.android.systemui.volume.panel.ui.layout.ComponentsLayout in <lambda>()
69 layout: ComponentsLayout, in Components()
85 layout = layout in Components()
90 layout = layout, in Components()
[all …]

12345678910>>...73