Home
last modified time | relevance | path

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

1234567

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DStringUtilTest.java121 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_WithSeconds_ShowSeconds()
130 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_NoSeconds_DoNotShowSeconds()
139 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_LessThanTwoMinutes_withSeconds()
148 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_LessThanTwoMinutes_NoSeconds()
157 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_TwoMinutes_withSeconds()
166 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_LessThanTwoHours_withSeconds()
175 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_TwoHours_withSeconds()
184 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_LessThanTwoDays_withSeconds()
193 RelativeDateTimeFormatter.Style.LONG).toString()).isEqualTo(expectedTime); in testFormatRelativeTime_TwoDays_withSeconds()
202 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.cpp107 std::unique_ptr<Style> a = test::StyleBuilder() in TEST()
113 std::unique_ptr<Style> b = test::StyleBuilder() in TEST()
119 std::unique_ptr<Style> c = test::StyleBuilder() in TEST()
125 std::unique_ptr<Style> d = test::StyleBuilder() in TEST()
130 std::unique_ptr<Style> e = test::StyleBuilder() in TEST()
136 std::unique_ptr<Style> f = test::StyleBuilder() in TEST()
141 std::unique_ptr<Style> g = test::StyleBuilder() in TEST()
157 std::unique_ptr<Style> a = test::StyleBuilder() in TEST()
163 std::unique_ptr<Style> b(a->Clone(nullptr)); in TEST()
187 std::unique_ptr<Style> a = in TEST()
[all …]
DValueVisitor.h42 virtual void Visit(Style* value) { VisitAny(value); } in Visit()
83 virtual void Visit(const Style* value) { in Visit()
116 void VisitSubValues(Style* style) { in VisitSubValues()
121 for (Style::Entry& entry : style->entries) { in VisitSubValues()
148 DECL_VISIT_COMPOUND_VALUE(Style);
DResourceValues.cpp837 std::ostream& operator<<(std::ostream& out, const Style::Entry& entry) { in operator <<()
869 static bool KeyNameComparator(const Style::Entry* a, const Style::Entry* b) { in KeyNameComparator()
873 bool Style::Equals(const Value* value) const { in Equals()
874 const Style* other = ValueCast<Style>(value); in Equals()
900 Style* Style::Clone(StringPool* new_pool) const { in Clone()
901 Style* style = new Style(); in Clone()
912 void Style::Print(std::ostream* out) const { in Print()
924 Style::Entry CloneEntry(const Style::Entry& entry, StringPool* pool) { in CloneEntry()
925 Style::Entry cloned_entry{entry.key}; in CloneEntry()
932 void Style::MergeWith(Style* other, StringPool* pool) { in MergeWith()
/frameworks/layoutlib/bridge/src/android/graphics/
DBaseCanvas_Delegate.java225 if (style == Paint.Style.FILL.nativeInt || in nDrawRect()
226 style == Paint.Style.FILL_AND_STROKE.nativeInt) { in nDrawRect()
231 if (style == Paint.Style.STROKE.nativeInt || in nDrawRect()
232 style == Paint.Style.FILL_AND_STROKE.nativeInt) { in nDrawRect()
248 if (style == Paint.Style.FILL.nativeInt || in nDrawOval()
249 style == Paint.Style.FILL_AND_STROKE.nativeInt) { in nDrawOval()
254 if (style == Paint.Style.STROKE.nativeInt || in nDrawOval()
255 style == Paint.Style.FILL_AND_STROKE.nativeInt) { in nDrawOval()
287 if (style == Paint.Style.FILL.nativeInt || in nDrawArc()
288 style == Paint.Style.FILL_AND_STROKE.nativeInt) { in nDrawArc()
[all …]
/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/base/libs/hwui/hwui/
DTypeface.h41 enum Style : uint8_t { kNormal = 0, kBold = 0x01, kItalic = 0x02, kBoldItalic = 0x03 }; enum
42 Style fAPIStyle;
71 static Typeface* createRelative(Typeface* src, Style desiredStyle);
/frameworks/base/tools/aapt2/link/
DAutoVersioner_test.cpp88Style* style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie… in TEST()
93 …style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie("v13")… in TEST()
99 …style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie("v17")… in TEST()
106 …style = test::GetValueForConfig<Style>(table.get(), "app:style/Foo", test::ParseConfigOrDie("v21")… in TEST()
DAutoVersioner.cpp91 if (Style* style = ValueCast<Style>(config_value->value.get())) { in Consume()
93 std::vector<Style::Entry> stripped; in Consume()
131 std::unique_ptr<Style> new_style(style->Clone(&table->string_pool)); in Consume()
DReferenceLinker_test.cpp91 Style* style = test::GetValue<Style>(table.get(), "com.app.test:style/Theme"); in TEST()
122 Style* style = test::GetValue<Style>(table.get(), "com.app.test:style/Theme"); in TEST()
169 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()
246 @Style
DTimedText.java104 private List<Style> mStyleList = null;
173 public static final class Style { class in TimedText
227 public Style(int startChar, int endChar, int fontId, in Style() method in TimedText.Style
595 Style style = new Style(startChar, endChar, fontId, isBold, in readStyle()
598 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/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DRegion.java81 paint1.setStyle(Paint.Style.STROKE); in getSourceLocation()
82 paint2.setStyle(Paint.Style.STROKE); in getSourceLocation()
132 paint.setStyle(Paint.Style.STROKE); in findMatch()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DRegion.java72 paint1.setStyle(Paint.Style.STROKE); in getSourceLocation()
73 paint2.setStyle(Paint.Style.STROKE); in getSourceLocation()
123 paint.setStyle(Paint.Style.STROKE); in findMatch()
/frameworks/base/rs/java/android/renderscript/
DFont.java76 public enum Style { enum in Font
134 static String getFontFileName(String familyName, Style style) { in getFontFileName()
241 …static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, floa… in create()

1234567