/cts/tests/tests/graphics/src/android/graphics/cts/ |
PathDashPathEffect_StyleTest.java | 21 import android.graphics.PathDashPathEffect.Style; 33 assertEquals(Style.TRANSLATE, Style.valueOf("TRANSLATE")); 34 assertEquals(Style.ROTATE, Style.valueOf("ROTATE")); 35 assertEquals(Style.MORPH, Style.valueOf("MORPH")); 36 // Every Style element will be tested somewhere else. 42 Style[] expected = { 43 Style.TRANSLATE [all...] |
Paint_StyleTest.java | 22 import android.graphics.Paint.Style; 34 assertEquals(Style.FILL, Style.valueOf("FILL")); 35 assertEquals(Style.STROKE, Style.valueOf("STROKE")); 36 assertEquals(Style.FILL_AND_STROKE, Style.valueOf("FILL_AND_STROKE")); 42 Style[] actual = Style.values(); 45 assertEquals(Style.FILL, actual[0]) [all...] |
/external/clang/tools/clang-format/fuzzer/ |
ClangFormatFuzzer.cpp | 19 // FIXME: fuzz more things: different styles, different style features. 21 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp); 22 Style.ColumnLimit = 60; 24 Style, s, {clang::tooling::Range(0, s.size())}));
|
/frameworks/base/graphics/java/android/graphics/ |
PathDashPathEffect.java | 21 public enum Style { 26 Style(int value) { 34 * applies to drawings when the paint's style is STROKE or STROKE_AND_FILL. 35 * If the paint's style is FILL, then this effect is ignored. The paint's 40 * @param style how to transform the shape at each position as it is stamped 43 Style style) { 45 style.native_style);
|
/external/icu/icu4c/source/i18n/unicode/ |
scientificnumberformatter.h | 145 class U_I18N_API Style : public UObject { 147 virtual Style *clone() const = 0; 160 class U_I18N_API SuperscriptStyle : public Style { 162 virtual Style *clone() const; 173 class U_I18N_API MarkupStyle : public Style { 178 : Style(), 181 virtual Style *clone() const; 197 Style *styleToAdopt, 208 Style *styleToAdopt, 213 Style *fStyle [all...] |
/external/clang/lib/Format/ |
Format.cpp | 201 static void mapping(IO &IO, FormatStyle &Style) { 203 IO.mapOptional("Language", Style.Language); 212 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) && 213 Style == PredefinedStyle) { 222 FormatStyle::LanguageKind OldLanguage = Style.Language; 225 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) { 229 Style.Language = OldLanguage; 235 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment); 237 Style.IndentWrappedFunctionNames); 238 IO.mapOptional("PointerBindsToType", Style.PointerAlignment) [all...] |
SortJavaScriptImports.h | 28 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
|
UnwrappedLineFormatter.h | 35 const FormatStyle &Style, 38 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), 66 const FormatStyle &Style;
|
UnwrappedLineFormatter.cpp | 39 LevelIndentTracker(const FormatStyle &Style, 42 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) { 44 IndentForLevel.push_back(Style.IndentWidth * i + AdditionalIndent); 59 Indent = Line.Level * Style.IndentWidth + AdditionalIndent; 88 if (Style.Language == FormatStyle::LK_Java || 89 Style.Language == FormatStyle::LK_JavaScript) 95 return Style.AccessModifierOffset; 109 return getIndent(IndentForLevel, Level - 1) + Style.IndentWidth; 112 const FormatStyle &Style; [all...] |
ContinuationIndenter.cpp | 55 const FormatStyle &Style) { 58 Style.BreakConstructorInitializersBeforeComma) 62 !Style.BreakConstructorInitializersBeforeComma); 65 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style, 71 : Style(Style), Keywords(Keywords), SourceMgr(SourceMgr), 74 CommentPragmasRegex(Style.CommentPragmas) {} 104 Current.closesBlockOrBlockTypeList(Style))) 135 if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None) 148 Current.closesBlockOrBlockTypeList(Style)) [all...] |
BreakableToken.h | 77 const FormatStyle &Style) 79 Encoding(Encoding), Style(Style) {} 85 const FormatStyle &Style; 102 const FormatStyle &Style); 123 encoding::Encoding Encoding, const FormatStyle &Style); 141 encoding::Encoding Encoding, const FormatStyle &Style); 168 encoding::Encoding Encoding, const FormatStyle &Style);
|
WhitespaceManager.h | 40 WhitespaceManager(const SourceManager &SourceMgr, const FormatStyle &Style, 42 : SourceMgr(SourceMgr), Style(Style), UseCRLF(UseCRLF) {} 208 const FormatStyle &Style;
|
/external/clang/unittests/Format/ |
FormatTestSelective.cpp | 29 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat); 37 FormatStyle Style = getLLVMStyle(); 57 Style.ColumnLimit = 12; 102 Style.AllowShortIfStatementsOnASingleLine = true; 322 Style.AlignEscapedNewlinesLeft = true; 451 Style.ColumnLimit = 11; 462 Style.IndentWidth = 8; 463 Style.UseTab = FormatStyle::UT_Always; 464 Style.AlignEscapedNewlinesLeft = true; 516 Style = getGoogleStyle(FormatStyle::LK_JavaScript) [all...] |
FormatTestJS.cpp | 23 unsigned Length, const FormatStyle &Style) { 29 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat); 39 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { 40 return format(Code, 0, Code.size(), Style); 44 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); 45 Style.ColumnLimit = ColumnLimit; 46 return Style; 51 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { 52 std::string Result = format(test::messUp(Code), Style); 59 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) [all...] |
FormatTest.cpp | 37 const FormatStyle &Style = getLLVMStyle(), 44 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat); 57 FormatStyle Style = getLLVMStyle(); 58 Style.ColumnLimit = ColumnLimit; 59 return Style; 63 FormatStyle Style = getGoogleStyle(); 64 Style.ColumnLimit = ColumnLimit; 65 return Style; 69 const FormatStyle &Style = getLLVMStyle()) { 70 EXPECT_EQ(Code.str(), format(test::messUp(Code), Style)); [all...] |
SortIncludesTest.cpp | 30 applyAllReplacements(Code, sortIncludes(Style, Code, Ranges, FileName)); 33 *Sorted, reformat(Style, *Sorted, Ranges, FileName)); 39 sortIncludes(Style, Code, GetCodeRange(Code), "input.cpp", &Cursor); 43 FormatStyle Style = getLLVMStyle(); 64 EXPECT_TRUE(sortIncludes(Style, Code, GetCodeRange(Code), "a.cc").empty()); 87 Style.SortIncludes = false; 159 Style = getGoogleStyle(FormatStyle::LK_Cpp); 181 Style.IncludeIsMainRegex = "([-_](test|unittest))?$"; 257 Style.IncludeCategories = {{".*important_os_header.*", -1}, {".*", 1}};
|
FormatTestJava.cpp | 23 unsigned Length, const FormatStyle &Style) { 27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); 36 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_Java)) { 37 return format(Code, 0, Code.size(), Style); 41 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Java); 42 Style.ColumnLimit = ColumnLimit; 43 return Style; 48 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_Java)) { 49 EXPECT_EQ(Code.str(), format(test::messUp(Code), Style)); 62 FormatStyle Style = getStyleWithColumns(50) [all...] |
FormatTestProto.cpp | 23 unsigned Length, const FormatStyle &Style) { 27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); 35 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Proto); 36 Style.ColumnLimit = 60; // To make writing tests easier. 37 return format(Code, 0, Code.size(), Style);
|
/frameworks/base/tools/aapt2/ |
ValueVisitor_test.cpp | 39 Style* visited_style = nullptr; 43 void Visit(Style* style) override { 44 visited_style = style; 45 ValueVisitor::Visit(style); 58 std::unique_ptr<Style> style = local 60 .SetParent("android:style/foo") 65 style->Accept(&visitor); 67 ASSERT_EQ(style.get(), visitor.visited_style) 78 std::unique_ptr<Style> style = local [all...] |
ResourceValues_test.cpp | 91 std::unique_ptr<Style> a = test::StyleBuilder() 92 .SetParent("android:style/Parent") 97 std::unique_ptr<Style> b = test::StyleBuilder() 98 .SetParent("android:style/Parent") 103 std::unique_ptr<Style> c = test::StyleBuilder() 104 .SetParent("android:style/NoParent") 109 std::unique_ptr<Style> d = test::StyleBuilder() 114 std::unique_ptr<Style> e = test::StyleBuilder() 115 .SetParent("android:style/Parent") 120 std::unique_ptr<Style> f = test::StyleBuilder( [all...] |
/external/skia/include/core/ |
SkStrokeRec.h | 4 * Use of this source code is governed by a BSD-style license that can be 22 SkStrokeRec(InitStyle style); 23 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1); 26 enum Style { 36 Style getStyle() const; 55 * strokeAndFill==true -> new style will be Fill 56 * strokeAndFill==false -> new style will be Hairline 80 Style style = this->getStyle(); local 81 return (kStroke_Style == style) || (kStrokeAndFill_Style == style) [all...] |
/external/skia/include/effects/ |
Sk1DPathEffect.h | 4 * Use of this source code is governed by a BSD-style license that can be 44 enum Style { 56 @param style how to transform path at each point (based on the current 59 static sk_sp<SkPathEffect> Make(const SkPath& path, SkScalar advance, SkScalar phase, Style); 68 SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, Style); 79 Style fStyle; // copied from constructor
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/ |
BarFormatter.java | 45 fillPaint.setStyle(Paint.Style.FILL);
48 borderPaint.setStyle(Paint.Style.STROKE);
|
/frameworks/base/libs/hwui/hwui/ |
Typeface.h | 38 // resolved style actually used for rendering 41 // style used for constructing and querying Typeface objects 42 SkTypeface::Style fSkiaStyle; 47 // style. There is a base weight concept which is used for calculating relative style from an 49 // The createRelative method creates a new Typeface with a style relative to the base Typeface. 50 // For example, if the base Typeface has a base weight of 400 and the desired style is bold, the 71 static Typeface* createRelative(Typeface* src, SkTypeface::Style desiredStyle); 86 // base weight in CSS-style units, 1..1000
|
/external/llvm/include/llvm/MC/ |
MCInstPrinter.h | 30 enum Style { 54 /// Which style to use for printing hexadecimal values. 55 HexStyle::Style PrintHexStyle; 92 HexStyle::Style getPrintHexStyle() const { return PrintHexStyle; } 93 void setPrintHexStyle(HexStyle::Style Value) { PrintHexStyle = Value; }
|