/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontTest.java | 155 int weight = style.first.intValue(); in testBuilder_buffer() local 158 String path = FontTestUtil.getFontPathFromStyle(weight, italic); in testBuilder_buffer() 163 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer() 176 int weight = style.first.intValue(); in testBuilder_buffer_ttc() local 182 int ttcIndex = FontTestUtil.getTtcIndexFromStyle(weight, italic); in testBuilder_buffer_ttc() 185 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer_ttc() 198 int weight = style.first.intValue(); in testBuilder_buffer_vf() local 205 FontTestUtil.getVarSettingsFromStyle(weight, italic)); in testBuilder_buffer_vf() 208 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer_vf() 222 int weight = style.first.intValue(); in testBuilder_buffer_override() local [all …]
|
D | FontTestUtil.java | 262 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()
|
D | NativeSystemFontHelper.java | 147 public static Pair<File, Integer> matchFamilyStyleCharacter(String familyName, int weight, in matchFamilyStyleCharacter() argument 149 final long fontPtr = nMatchFamilyStyleCharacter(familyName, weight, italic, languageTags, in matchFamilyStyleCharacter() 151 final int runLength = nMatchFamilyStyleCharacter_runLength(familyName, weight, italic, in matchFamilyStyleCharacter() 172 private static native long nMatchFamilyStyleCharacter(String familyName, int weight, in nMatchFamilyStyleCharacter() argument 174 private static native int nMatchFamilyStyleCharacter_runLength(String familyName, int weight, in nMatchFamilyStyleCharacter_runLength() argument
|
D | NativeSystemFontTest.java | 122 for (int weight : weights) { in testMatchFamilyStyleCharacter_notCrash() 129 familyName, weight, italic, languageTag, in testMatchFamilyStyleCharacter_notCrash()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | LinearLayout_LayoutParamsTest.java | 53 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()
|
D | RadioGroup_LayoutParamsTest.java | 62 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()
|
D | TextViewFontWeightTest.java | 55 FontStyle(int weight, boolean italic) { in FontStyle() argument 56 mWeight = weight; in FontStyle()
|
D | TableLayout_LayoutParamsTest.java | 74 assertEquals(1.2f, layoutParams.weight, 0.0f); in testConstructor() 95 assertEquals(1.4f, layoutParams.weight, 0.0f); in testConstructor()
|
D | RadioGroupTest.java | 316 assertEquals(0.0, layoutParams.weight, 0); in testGenerateLayoutParams() 329 assertEquals(0.5, layoutParams.weight, 0); in testGenerateLayoutParams()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | TypefaceCustomFallbackBuilderTest.java | 53 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 …]
|
D | TypefaceTestUtil.java | 43 public static Typeface getRobotoTypeface(int weight, boolean italic) { in getRobotoTypeface() argument 68 return Typeface.create(tf, weight, italic); in getRobotoTypeface()
|
D | PathTest.java | 458 float weight = segment.getConicWeight(); in testConicTo() local 467 assertEquals(2f, weight, 0f); in testConicTo() 545 float weight = segment.getConicWeight(); in testRConicTo() local 558 assertEquals(2f, weight, 0f); in testRConicTo()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_fonts_cts_SystemFonts.cpp | 110 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/openglperf2/assets/fragment/ |
D | water | 22 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/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | layered_filter_f32_helper.rsh | 94 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;
|
D | layered_filter_d1new_helper.rsh | 158 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;
|
D | layered_filter_fast_f32.rscript | 269 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};
|
D | layered_filter_fast_d1new.rscript | 356 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/hostsidetests/theme/app/src/android/theme/app/ |
D | TypefaceTestUtil.java | 41 public static Typeface getRobotoTypeface(int weight, boolean italic) { in getRobotoTypeface() argument 65 return Typeface.create(tf, weight, italic); in getRobotoTypeface()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | TypefaceTestUtil.java | 43 public static Typeface getRobotoTypeface(int weight, boolean italic) { in getRobotoTypeface() argument 68 return Typeface.create(tf, weight, italic); in getRobotoTypeface()
|
D | BitmapFilterTests.java | 55 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/CtsVerifier/assets/report/ |
D | compatibility_result.css | 102 font-weight: bold; 108 font-weight: bold; 139 font-weight: bold;
|
/cts/apps/CameraITS/tests/inprog/rolling_shutter_skew/ |
D | test_rolling_shutter_skew.py | 252 weight = 0.0 269 weight += confidence 276 avg_shutter_skew /= weight 277 avg_slope /= weight
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MockFontProvider.java | 63 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/ |
D | ListItemFactory.java | 99 lp.weight = 0.33f; in horizontalButtonSlots()
|