Home
last modified time | relevance | path

Searched refs:weight (Results 1 – 23 of 23) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java129 int weight = style.first.intValue(); in testBuilder_buffer() local
132 String path = FontTestUtil.getFontPathFromStyle(weight, italic); in testBuilder_buffer()
137 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer()
150 int weight = style.first.intValue(); in testBuilder_buffer_ttc() local
156 int ttcIndex = FontTestUtil.getTtcIndexFromStyle(weight, italic); in testBuilder_buffer_ttc()
159 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer_ttc()
172 int weight = style.first.intValue(); in testBuilder_buffer_vf() local
179 FontTestUtil.getVarSettingsFromStyle(weight, italic)); in testBuilder_buffer_vf()
182 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer_vf()
196 int weight = style.first.intValue(); in testBuilder_buffer_override() local
[all …]
DNativeSystemFontHelper.java70 public static Pair<File, Integer> matchFamilyStyleCharacter(String familyName, int weight, in matchFamilyStyleCharacter() argument
72 final long fontPtr = nMatchFamilyStyleCharacter(familyName, weight, italic, languageTags, in matchFamilyStyleCharacter()
74 final int runLength = nMatchFamilyStyleCharacter_runLength(familyName, weight, italic, in matchFamilyStyleCharacter()
95 private static native long nMatchFamilyStyleCharacter(String familyName, int weight, in nMatchFamilyStyleCharacter() argument
97 private static native int nMatchFamilyStyleCharacter_runLength(String familyName, int weight, in nMatchFamilyStyleCharacter_runLength() argument
DFontTestUtil.java262 public static int getTtcIndexFromStyle(int weight, boolean italic) { in getTtcIndexFromStyle() argument
263 return sTtcMap.get(new Pair<>(weight, italic)).intValue(); in getTtcIndexFromStyle()
269 public static String getVarSettingsFromStyle(int weight, boolean italic) { in getVarSettingsFromStyle() argument
270 return sVariationSettingsMap.get(new Pair<>(weight, italic)); in getVarSettingsFromStyle()
276 public static int getFontResourceIdFromStyle(int weight, boolean italic) { in getFontResourceIdFromStyle() argument
277 return sResourceMap.get(new Pair<>(weight, italic)); in getFontResourceIdFromStyle()
283 public static String getFontPathFromStyle(int weight, boolean italic) { in getFontPathFromStyle() argument
284 return sFontMap.get(new Pair<>(weight, italic)); in getFontPathFromStyle()
DNativeSystemFontTest.java109 for (int weight : weights) { in testMatchFamilyStyleCharacter_notCrash()
116 familyName, weight, italic, languageTag, in testMatchFamilyStyleCharacter_notCrash()
/cts/tests/tests/widget/src/android/widget/cts/
DLinearLayout_LayoutParamsTest.java53 assertEquals(0.0f, linearLayoutParams.weight, 0.0f); in testConstructor()
59 assertEquals(0.0f, linearLayoutParams.weight, 0.0f); in testConstructor()
65 assertEquals(0.4f, linearLayoutParams.weight, 0.0f); in testConstructor()
72 assertEquals(0.0f, linearLayoutParams.weight, 0.0f); in testConstructor()
79 assertEquals(0.0f, linearLayoutParams.weight, 0.0f); in testConstructor()
83 linearLayoutParams2.weight = 0.9f; in testConstructor()
88 assertEquals(0.9f, linearLayoutParams.weight, 0.0f); in testConstructor()
DRadioGroup_LayoutParamsTest.java62 assertEquals(0.0f, mLayoutParams.weight, 0.0f); in testConstructor()
67 assertEquals(0.0f, mLayoutParams.weight, 0.0f); in testConstructor()
73 assertEquals(Float.MAX_VALUE, mLayoutParams.weight, 0.0f); in testConstructor()
79 assertEquals(Float.MIN_VALUE, mLayoutParams.weight, 0.0f); in testConstructor()
84 assertEquals(0.0f, mLayoutParams.weight, 0.0f); in testConstructor()
89 assertEquals(0.0f, mLayoutParams.weight, 0.0f); in testConstructor()
104 assertEquals(0.0f, mLayoutParams.weight, 0.0f); in testConstructor()
113 assertEquals(0.5, mLayoutParams.weight, 0.0f); in testConstructor()
DTextViewFontWeightTest.java55 FontStyle(int weight, boolean italic) { in FontStyle() argument
56 mWeight = weight; in FontStyle()
DTableLayout_LayoutParamsTest.java74 assertEquals(1.2f, layoutParams.weight, 0.0f); in testConstructor()
95 assertEquals(1.4f, layoutParams.weight, 0.0f); in testConstructor()
DRadioGroupTest.java306 assertEquals(0.0, layoutParams.weight, 0); in testGenerateLayoutParams()
319 assertEquals(0.5, layoutParams.weight, 0); in testGenerateLayoutParams()
DTableRow_LayoutParamsTest.java77 assertEquals(1.2f, layoutParams.weight, 0.0f); in testConstructor()
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceCustomFallbackBuilderTest.java53 final int weight = style.first.intValue(); in createFullFamilyTypeface() local
58 FontTestUtil.getFontPathFromStyle(weight, italic)).build()); in createFullFamilyTypeface()
61 FontTestUtil.getFontPathFromStyle(weight, italic)).build()); in createFullFamilyTypeface()
71 final int weight = style.first.intValue(); in testSingleFont_path() local
74 final String path = FontTestUtil.getFontPathFromStyle(weight, italic); in testSingleFont_path()
86 final int weight = style.first.intValue(); in testSingleFont_ttc() local
89 final int ttcIndex = FontTestUtil.getTtcIndexFromStyle(weight, italic); in testSingleFont_ttc()
102 final int weight = style.first.intValue(); in testSingleFont_vf() local
105 final String varSettings = FontTestUtil.getVarSettingsFromStyle(weight, italic); in testSingleFont_vf()
125 final int weight = style.first.intValue(); in testFamily_selectStyle() local
[all …]
/cts/tests/tests/graphics/jni/
Dandroid_graphics_fonts_cts_SystemFonts.cpp110 FontMatcher& setStyle(uint16_t weight, bool italic) { in setStyle() argument
111 AFontMatcher_setStyle(mMatcher.get(), weight, italic); in setStyle()
187 jlong nMatchFamilyStyleCharacter(JNIEnv* env, jclass, jstring familyName, jint weight, in nMatchFamilyStyleCharacter() argument
196 .setStyle(weight, italic) in nMatchFamilyStyleCharacter()
202 jint nMatchFamilyStyleCharacter_runLength(JNIEnv* env, jclass, jstring familyName, jint weight, in nMatchFamilyStyleCharacter_runLength() argument
210 .setStyle(weight, italic) in nMatchFamilyStyleCharacter_runLength()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_f32_helper.rsh94 const float weight = v_p * (*kernel);
95 result.red += weight * sharp_nbr->red;
96 result.green += weight * sharp_nbr->green;
97 result.blue += weight * sharp_nbr->blue;
98 result.alpha += weight;
178 const float weight = flag * (*kernel);
179 result.red += weight * sharp_nbr->red;
180 result.green += weight * sharp_nbr->green;
181 result.blue += weight * sharp_nbr->blue;
182 result.alpha += weight;
Dlayered_filter_fast_f32.rs269 const float weight = vis_prob[sharp->actual_depth];
270 float4 this_value = {weight * sharp->red, weight * sharp->green,
271 weight * sharp->blue, weight};
290 const float weight = ValidDepth(sharp->actual_depth);
291 float4 this_value = {weight * sharp->red, weight * sharp->green,
292 weight * sharp->blue, weight};
Dlayered_filter_d1new_helper.rsh158 const float weight = v_p * (kernel);
159 result.r += weight * sharp_RGBA_nbr.r;
160 result.g += weight * sharp_RGBA_nbr.g;
161 result.b += weight * sharp_RGBA_nbr.b;
162 result.a += weight;
241 const float weight = flag * (kernel);
242 result.r += weight * sharp_RGBA_nbr.r;
243 result.g += weight * sharp_RGBA_nbr.g;
244 result.b += weight * sharp_RGBA_nbr.b;
245 result.a += weight;
Dlayered_filter_fast_d1new.rs356 const float weight = vis_prob[sharp_actual_depth];
358 float4 this_value = {weight * sharp_RGBA.r, weight * sharp_RGBA.g,
359 weight * sharp_RGBA.b, weight};
388 const float weight = ValidDepth(sharp_actual_depth);
389 float4 this_value = {weight * sharp_RGBA.r, weight * sharp_RGBA.g,
390 weight * sharp_RGBA.b, weight};
/cts/tests/openglperf2/assets/fragment/
Dwater22 float weight = abs(mod(float(u_Time), 101.0) - 50.0) / 50.0;// loop between 0.0 and 1.0
27 vec3 normal = normalize((map1 * weight) + (map2 * (1.0 - weight)));
/cts/apps/CtsVerifier/assets/report/
Dcompatibility_result.css102 font-weight: bold;
108 font-weight: bold;
139 font-weight: bold;
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapFilterTests.java55 int weight = Color.red(color) + Color.blue(color) + Color.green(color);
56 return weight < DEFAULT_THRESHOLD // is approx Color.BLACK
57 || weight > WHITE_WEIGHT - DEFAULT_THRESHOLD; // is approx Color.WHITE
/cts/apps/CameraITS/tests/rolling_shutter_skew/
Dtest_rolling_shutter_skew.py252 weight = 0.0
269 weight += confidence
276 avg_shutter_skew /= weight
277 avg_slope /= weight
/cts/tests/tests/provider/src/android/provider/cts/
DMockFontProvider.java63 public Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, in Font() argument
69 mWeight = weight; in Font()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListItemFactory.java99 lp.weight = 0.33f; in horizontalButtonSlots()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java2700 private static ArrayList<Area> makeAreas(int left, int top, int right, int bottom, int weight) { in makeAreas() argument
2702 areas.add(new Area(new Rect(left, top, right, bottom), weight)); in makeAreas()
2707 int weight, int number) { in makeAreas() argument
2710 areas.add(new Area(new Rect(left, top, right, bottom), weight)); in makeAreas()