Home
last modified time | relevance | path

Searched refs:Style (Results 1 – 25 of 174) sorted by relevance

1234567

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DStringUtilTest.java131 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_WithSeconds_ShowSeconds()
140 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_NoSeconds_DoNotShowSeconds()
149 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_LessThanTwoMinutes_withSeconds()
158 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_LessThanTwoMinutes_NoSeconds()
167 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_TwoMinutes_withSeconds()
176 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_LessThanTwoHours_withSeconds()
185 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_TwoHours_withSeconds()
194 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_LessThanTwoDays_withSeconds()
203 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_TwoDays_withSeconds()
212 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_FormatZero_WithSeconds()
[all …]
/frameworks/base/tools/aapt2/
DValueVisitor_test.cpp39 Style* visited_style = nullptr;
43 void Visit(Style* style) override { in Visit()
58 std::unique_ptr<Style> style = in TEST()
78 std::unique_ptr<Style> style = in TEST()
83 EXPECT_NE(ValueCast<Style>(style.get()), nullptr); in TEST()
DResourceValues_test.cpp109 std::unique_ptr<Style> a = test::StyleBuilder() in TEST()
115 std::unique_ptr<Style> b = test::StyleBuilder() in TEST()
121 std::unique_ptr<Style> c = test::StyleBuilder() in TEST()
127 std::unique_ptr<Style> d = test::StyleBuilder() in TEST()
132 std::unique_ptr<Style> e = test::StyleBuilder() in TEST()
138 std::unique_ptr<Style> f = test::StyleBuilder() in TEST()
143 std::unique_ptr<Style> g = test::StyleBuilder() in TEST()
159 std::unique_ptr<Style> a = test::StyleBuilder() in TEST()
166 std::unique_ptr<Style> b(a->Transform(cloner)); in TEST()
191 std::unique_ptr<Style> a = in TEST()
[all …]
DValueVisitor.h42 virtual void Visit(Style* value) { VisitAny(value); } in Visit()
86 virtual void Visit(const Style* value) { in Visit()
122 void VisitSubValues(Style* style) { in VisitSubValues()
127 for (Style::Entry& entry : style->entries) { in VisitSubValues()
154 DECL_VISIT_COMPOUND_VALUE(Style);
DResourceValues.cpp800 std::ostream& operator<<(std::ostream& out, const Style::Entry& entry) { in operator <<()
832 static bool KeyNameComparator(const Style::Entry* a, const Style::Entry* b) { in KeyNameComparator()
836 bool Style::Equals(const Value* value) const { in Equals()
837 const Style* other = ValueCast<Style>(value); in Equals()
863 void Style::Print(std::ostream* out) const { in Print()
875 Style::Entry CloneEntry(const Style::Entry& entry, StringPool* pool) { in CloneEntry()
876 Style::Entry cloned_entry{entry.key}; in CloneEntry()
884 void Style::MergeWith(Style* other, StringPool* pool) { in MergeWith()
1137 std::unique_ptr<Style> CloningValueTransformer::TransformDerived(const Style* value) { in TransformDerived()
1138 auto new_value = std::make_unique<Style>(); in TransformDerived()
[all …]
DValueTransformer.h36 struct Style;
97 AAPT_TRANSFORM_VALUE(Style);
DResourceValues.h322 struct Style : public TransformableValue<Style, BaseValue<Style>> { struct
342 void MergeWith(Style* style, StringPool* pool);
413 std::unique_ptr<Style> TransformDerived(const Style* value) override;
/frameworks/base/graphics/java/android/graphics/
DPathDashPathEffect.java21 public enum Style { enum in PathDashPathEffect
26 Style(int value) { in Style() method in PathDashPathEffect.Style
43 Style style) { in PathDashPathEffect()
/frameworks/layoutlib/bridge/src/android/graphics/
DBaseCanvas_Delegate.java229 if (style == Paint.Style.FILL.nativeInt || in nDrawRect()
230 style == Paint.Style.FILL_AND_STROKE.nativeInt) { in nDrawRect()
235 if (style == Paint.Style.STROKE.nativeInt || in nDrawRect()
236 style == Paint.Style.FILL_AND_STROKE.nativeInt) { in nDrawRect()
252 if (style == Paint.Style.FILL.nativeInt || in nDrawOval()
253 style == Paint.Style.FILL_AND_STROKE.nativeInt) { in nDrawOval()
258 if (style == Paint.Style.STROKE.nativeInt || in nDrawOval()
259 style == Paint.Style.FILL_AND_STROKE.nativeInt) { in nDrawOval()
291 if (style == Paint.Style.FILL.nativeInt || in nDrawArc()
292 style == Paint.Style.FILL_AND_STROKE.nativeInt) { in nDrawArc()
[all …]
/frameworks/base/libs/hwui/hwui/
DTypeface.h41 enum Style : uint8_t { kNormal = 0, kBold = 0x01, kItalic = 0x02, kBoldItalic = 0x03 }; enum
42 Style fAPIStyle;
74 static Typeface* createRelative(Typeface* src, Style desiredStyle);
/frameworks/base/tools/aapt2/link/
DAutoVersioner_test.cpp87Style* style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie… in TEST()
92 …style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie("v13")… in TEST()
98 …style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie("v17")… in TEST()
105 …style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie("v21")… in TEST()
DAutoVersioner.cpp92 if (Style* style = ValueCast<Style>(config_value->value.get())) { in Consume()
94 std::vector<Style::Entry> stripped; in Consume()
132 std::unique_ptr<Style> new_style(style->Transform(cloner)); in Consume()
DReferenceLinker_test.cpp89 Style* style = test::GetValue<Style>(table.get(), "com.app.test:style/Theme"); in TEST()
120 Style* style = test::GetValue<Style>(table.get(), "com.app.test:style/Theme"); in TEST()
166 Style* style = test::GetValue<Style>(table.get(), "com.app.test:style/Theme"); in TEST()
/frameworks/base/media/java/android/media/
DRating.java44 public @interface Style {} annotation in Rating
97 private Rating(@Style int ratingStyle, float rating) { in Rating()
145 public static Rating newUnratedRating(@Style int ratingStyle) { in newUnratedRating()
247 @Style
DTimedText.java105 private List<Style> mStyleList = null;
174 public static final class Style { class in TimedText
228 public Style(int startChar, int endChar, int fontId, in Style() method in TimedText.Style
596 Style style = new Style(startChar, endChar, fontId, isBold, in readStyle()
599 mStyleList = new ArrayList<Style>(); in readStyle()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DScaledPathsActivity.java49 mPathPaint.setStyle(Paint.Style.FILL); in PathsView()
66 mPathPaint.setStyle(Paint.Style.FILL); in onDraw()
75 mPathPaint.setStyle(Paint.Style.STROKE); in onDraw()
DTextActivity.java89 mMediumPaint.setStyle(Paint.Style.FILL_AND_STROKE); in onDraw()
93 mMediumPaint.setStyle(Paint.Style.FILL); in onDraw()
97 mMediumPaint.setStyle(Paint.Style.STROKE); in onDraw()
102 mMediumPaint.setStyle(Paint.Style.FILL); in onDraw()
DPathsActivity.java62 mSmallPaint.setStyle(Paint.Style.STROKE); in PathsView()
68 mLinePaint.setStyle(Paint.Style.STROKE); in PathsView()
74 mMediumPaint.setStyle(Paint.Style.STROKE); in PathsView()
80 mLargePaint.setStyle(Paint.Style.FILL); in PathsView()
DPathDestructionActivity.java55 strokePaint.setStyle(Paint.Style.STROKE); in MyView()
56 fillPaint.setStyle(Paint.Style.FILL); in MyView()
57 fillAndStrokePaint.setStyle(Paint.Style.FILL_AND_STROKE); in MyView()
DShapesActivity.java55 mNormalPaint.setStyle(Paint.Style.FILL_AND_STROKE); in ShapesView()
61 mStrokePaint.setStyle(Paint.Style.STROKE); in ShapesView()
66 mFillPaint.setStyle(Paint.Style.FILL); in ShapesView()
/frameworks/base/core/java/android/text/format/
DRelativeDateTimeFormatter.java126 android.icu.text.RelativeDateTimeFormatter.Style style; in getRelativeTimeSpanString()
128 style = android.icu.text.RelativeDateTimeFormatter.Style.SHORT; in getRelativeTimeSpanString()
130 style = android.icu.text.RelativeDateTimeFormatter.Style.LONG; in getRelativeTimeSpanString()
277 android.icu.text.RelativeDateTimeFormatter.Style style; in getRelativeDateTimeString()
279 style = android.icu.text.RelativeDateTimeFormatter.Style.SHORT; in getRelativeDateTimeString()
281 style = android.icu.text.RelativeDateTimeFormatter.Style.LONG; in getRelativeDateTimeString()
337 ULocale locale, android.icu.text.RelativeDateTimeFormatter.Style style, in getFormatter()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DClockPlugin.java17 import android.graphics.Paint.Style;
94 void setStyle(Style style); in setStyle()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DPerfTimeline.java89 mPaintBaseLow.setStyle(Paint.Style.FILL); in init()
93 mPaintBaseHigh.setStyle(Paint.Style.FILL); in init()
97 mPaintValue.setStyle(Paint.Style.FILL); in init()
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java27 import android.graphics.Paint.Style;
314 paint.setStyle(Style.FILL); in onDraw()
332 textPaint.setStyle(Style.FILL_AND_STROKE); in onDraw()
347 textPaint.setStyle(Style.FILL); in onDraw()
358 textPaint.setStyle(Style.FILL); in onDraw()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DBrushPropertyDrawable.kt28 it.style = Paint.Style.FILL in <lambda>()
32 it.style = Paint.Style.FILL in <lambda>()

1234567