/frameworks/base/libs/hwui/hwui/ |
D | Typeface.cpp | 39 static Typeface::Style computeAPIStyle(int weight, bool italic) { in computeAPIStyle() argument 41 if (weight >= SkFontStyle::kSemiBold_Weight) { in computeAPIStyle() 48 static minikin::FontStyle computeMinikinStyle(int weight, bool italic) { in computeMinikinStyle() argument 49 return minikin::FontStyle(uirenderer::MathUtils::clamp(weight, 1, 1000), in computeMinikinStyle() 55 int weight = baseWeight; in computeRelativeStyle() local 57 weight += 300; in computeRelativeStyle() 60 return computeMinikinStyle(weight, italic); in computeRelativeStyle() 82 Typeface* Typeface::createAbsolute(Typeface* base, int weight, bool italic) { in createAbsolute() argument 88 result->fAPIStyle = computeAPIStyle(weight, italic); in createAbsolute() 89 result->fStyle = computeMinikinStyle(weight, italic); in createAbsolute() [all …]
|
/frameworks/minikin/include/minikin/ |
D | FontStyle.h | 46 constexpr explicit FontStyle(Weight weight) : FontStyle(weight, Slant::UPRIGHT) {} in FontStyle() argument 48 constexpr FontStyle(Weight weight, Slant slant) in FontStyle() argument 49 : FontStyle(static_cast<uint16_t>(weight), slant) {} in FontStyle() 50 constexpr FontStyle(uint16_t weight, Slant slant) : mWeight(weight), mSlant(slant) {} in FontStyle() argument 61 constexpr uint16_t weight() const { return mWeight; } in weight() function 65 return weight() == other.weight() && slant() == other.slant(); 69 return (static_cast<uint32_t>(weight()) << 16) | static_cast<uint32_t>(slant()); in identifier()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | TypefaceTests.cpp | 88 EXPECT_EQ(700, bold->fStyle.weight()); in TEST() 93 EXPECT_EQ(300, light->fStyle.weight()); in TEST() 101 EXPECT_EQ(400, normal->fStyle.weight()); in TEST() 107 EXPECT_EQ(700, bold->fStyle.weight()); in TEST() 113 EXPECT_EQ(400, italic->fStyle.weight()); in TEST() 119 EXPECT_EQ(700, boldItalic->fStyle.weight()); in TEST() 130 EXPECT_EQ(700, normal->fStyle.weight()); in TEST() 137 EXPECT_EQ(1000, bold->fStyle.weight()); in TEST() 144 EXPECT_EQ(700, italic->fStyle.weight()); in TEST() 152 EXPECT_EQ(1000, boldItalic->fStyle.weight()); in TEST() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ActivityChooserModel.java | 561 final float weight; in setDefaultActivity() local 564 weight = oldDefaultActivity.weight - newDefaultActivity.weight in setDefaultActivity() 567 weight = DEFAULT_HISTORICAL_RECORD_WEIGHT; in setDefaultActivity() 574 System.currentTimeMillis(), weight); in setDefaultActivity() 807 public final float weight; field in ActivityChooserModel.HistoricalRecord 816 public HistoricalRecord(String activityName, long time, float weight) { in HistoricalRecord() argument 817 this(ComponentName.unflattenFromString(activityName), time, weight); in HistoricalRecord() 827 public HistoricalRecord(ComponentName activityName, long time, float weight) { in HistoricalRecord() argument 830 this.weight = weight; in HistoricalRecord() 839 result = prime * result + Float.floatToIntBits(weight); in hashCode() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Typeface_Delegate.java | 93 int weight) { in Typeface_Delegate() argument 97 mWeight = weight; in Typeface_Delegate() 122 /*package*/ static long nativeCreateFromTypefaceWithExactStyle(long native_instance, int weight, in nativeCreateFromTypefaceWithExactStyle() argument 132 int style = weight >= 600 ? (italic ? Typeface.BOLD_ITALIC : Typeface.BOLD) : in nativeCreateFromTypefaceWithExactStyle() 136 weight)); in nativeCreateFromTypefaceWithExactStyle() 158 /*package*/ static long nativeCreateWeightAlias(long native_instance, int weight) { in nativeCreateWeightAlias() argument 169 weight); in nativeCreateWeightAlias() 174 /*package*/ static synchronized long nativeCreateFromArray(long[] familyArray, int weight, in nativeCreateFromArray() argument 185 if (weight == Typeface.RESOLVE_BY_FONT_TABLE) { in nativeCreateFromArray() 186 weight = 400; in nativeCreateFromArray() [all …]
|
D | FontFamily_Delegate.java | 292 FontVariationAxis[] axes, int weight, int italic) { in addFont() argument 298 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); in addFont() 336 int weight, int isItalic) { 343 int ttcIndex, int weight, int isItalic) { 353 static boolean addFont(long builderPtr, final String path, final int weight, 359 delegate.mPostInitRunnables.add(() -> delegate.addFont(path, weight, italic)); 362 return delegate.addFont(path, weight, italic); 383 private boolean addFont(final String path, int ttcIndex, int weight, int italic) { 386 mPostInitRunnables.add(() -> addFont(path, weight, italic)); 389 return addFont(path, weight, italic); [all …]
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontFileUtil.java | 57 private static int pack(@IntRange(from = 0, to = 1000) int weight, boolean italic) { in pack() 58 return weight | (italic ? 0x10000 : 0); in pack() 73 int weight = -1; in analyzeStyle() local 78 weight = (int) axis.getStyleValue(); in analyzeStyle() 85 if (weight != -1 && italic != -1) { in analyzeStyle() 89 return pack(weight, italic == 1); in analyzeStyle() 130 return pack(weight == -1 ? weightFromOS2 : weight, in analyzeStyle()
|
D | FontStyle.java | 207 public FontStyle(int weight, @FontSlant int slant) { in FontStyle() argument 208 Preconditions.checkArgument(FONT_WEIGHT_MIN <= weight && weight <= FONT_WEIGHT_MAX, in FontStyle() 212 mWeight = weight; in FontStyle()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | ButtonBarLayout.java | 87 child.setTag(R.id.suw_original_weight, childParams.weight); in setStacked() 88 childParams.weight = 0; in setStacked() 90 Float weight = (Float) child.getTag(R.id.suw_original_weight); in setStacked() local 91 if (weight != null) { in setStacked() 92 childParams.weight = weight; in setStacked()
|
/frameworks/base/graphics/java/android/graphics/ |
D | FontFamily.java | 139 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, in addFont() argument 153 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic); in addFont() 165 int weight, int italic) { in addFontFromBuffer() argument 174 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic); in addFontFromBuffer() 194 boolean isAsset, int ttcIndex, int weight, int isItalic, in addFontFromAssetManager() argument 202 return addFontFromBuffer(buffer, ttcIndex, axes, weight, isItalic); in addFontFromAssetManager() 221 int weight, int isItalic); in nAddFont() argument 223 int ttcIndex, int weight, int isItalic); in nAddFontWeightStyle() argument
|
D | Typeface.java | 529 public Builder setWeight(@IntRange(from = 1, to = 1000) int weight) { in setWeight() 530 mWeight = weight; in setWeight() 531 mFontBuilder.setWeight(weight); in setWeight() 619 @Nullable FontVariationAxis[] axes, int weight, int italic, String fallback) { in createAssetUid() argument 631 builder.append(Integer.toString(weight)); in createAssetUid() 659 final int weight = (mWeight == RESOLVE_BY_FONT_TABLE) ? base.mWeight : mWeight; in resolveFallbackTypeface() local 662 return createWeightStyle(base, weight, italic); in resolveFallbackTypeface() 690 final int weight = mWeight == RESOLVE_BY_FONT_TABLE in build() local 695 .setStyle(new FontStyle(weight, slant)); in build() 867 final int weight = mStyle == null ? 400 : mStyle.getWeight(); [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | InstanceLearner.java | 60 double weight; in classify() local 62 weight = Double.MAX_VALUE; in classify() 64 weight = 1 / distance; in classify() 67 if (score == null || weight > score) { in classify() 68 label2score.put(sample.label, weight); in classify()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | FontFileUtilTest.java | 108 int weight = style.first.intValue(); in testRegularFonts() local 110 String path = FontTestUtil.getFontPathFromStyle(weight, italic); in testRegularFonts() 114 assertEquals(path, weight, FontFileUtil.unpackWeight(packed)); in testRegularFonts() 125 int weight = style.first.intValue(); in testTtcFont() local 127 int ttcIndex = FontTestUtil.getTtcIndexFromStyle(weight, italic); in testTtcFont() 130 assertEquals(path + "#" + ttcIndex, weight, FontFileUtil.unpackWeight(packed)); in testTtcFont() 141 int weight = style.first.intValue(); in testVariationFont() local 143 String axes = FontTestUtil.getVarSettingsFromStyle(weight, italic); in testVariationFont() 147 assertEquals(path + "#" + axes, weight, FontFileUtil.unpackWeight(packed)); in testVariationFont()
|
D | FontTestUtil.java | 184 public static int getTtcIndexFromStyle(int weight, boolean italic) { in getTtcIndexFromStyle() argument 185 return sTtcMap.get(new Pair<>(weight, italic)).intValue(); in getTtcIndexFromStyle() 191 public static String getVarSettingsFromStyle(int weight, boolean italic) { in getVarSettingsFromStyle() argument 192 return sVariationSettingsMap.get(new Pair<>(weight, italic)); in getVarSettingsFromStyle() 198 public static String getFontPathFromStyle(int weight, boolean italic) { in getFontPathFromStyle() argument 199 return sFontMap.get(new Pair<>(weight, italic)); in getFontPathFromStyle()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | Target.java | 245 public Builder setChromaWeight(@FloatRange(from = 0) float weight) { in setChromaWeight() 246 mTarget.mChromaWeight = weight; in setChromaWeight() 261 public Builder setLightnessWeight(@FloatRange(from = 0) float weight) { in setLightnessWeight() 262 mTarget.mRelativeLuminanceWeight = weight; in setLightnessWeight() 278 public Builder setPopulationWeight(@FloatRange(from = 0) float weight) { in setPopulationWeight() 279 mTarget.mPopulationWeight = weight; in setPopulationWeight()
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryableMeteringRectangle.java | 47 int weight = value.getMeteringWeight(); in marshal() local 53 buffer.putInt(weight); in marshal() 62 int weight = buffer.getInt(); in unmarshal() local 67 return new MeteringRectangle(xMin, yMin, width, height, weight); in unmarshal()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | TextAnimatorTest.kt | 69 weight = 400, in testAnimationStarted() 101 weight = 400, in testAnimationNotStarted() 131 weight = 400, in testAnimationEnded() 162 weight = 400, in testCacheTypeface() 169 weight = 700, in testCacheTypeface() 176 weight = 400, in testCacheTypeface()
|
/frameworks/base/services/core/java/com/android/server/display/utils/ |
D | AmbientFilter.java | 211 final float weight = weights[i]; in filter() local 212 total += weight * value; in filter() 213 totalWeight += weight; in filter() 233 final float weight = calculateIntegral(previousTime, currentTime); in getWeights() local 234 weights[i - 1] = weight; in getWeights()
|
/frameworks/base/docs/html/sdk/support_api_diff/25.0.0/ |
D | stylesheet-jdiff.css | 8 .diffspectable td {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;pa… 10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex… 11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali… 12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4… 42 font-size: 1.5em;font-weight:9;
|
/frameworks/base/docs/html/sdk/support_api_diff/25.1.0/ |
D | stylesheet-jdiff.css | 8 .diffspectable td {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;pa… 10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex… 11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali… 12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4… 42 font-size: 1.5em;font-weight:9;
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ConversationHeaderLinearLayout.java | 91 final float weight = ((LayoutParams) child.getLayoutParams()).weight; in onMeasure() local 92 if (weight == 0) { in onMeasure() 102 remainingWeight += Math.max(0, weight); in onMeasure() 175 this.mWeight = ((LayoutParams) view.getLayoutParams()).weight; in ViewInfo()
|
/frameworks/base/libs/hwui/jni/ |
D | FontFamily.cpp | 113 jint weight, jint italic) { in addSkTypeface() argument 139 if (weight != RESOLVE_BY_FONT_TABLE) { in addSkTypeface() 140 fontBuilder.setWeight(weight); in addSkTypeface() 170 jint ttcIndex, jint weight, jint isItalic) { in FontFamily_addFont() argument 188 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFont() 192 jobject font, jint ttcIndex, jint weight, jint isItalic) { in FontFamily_addFontWeightStyle() argument 210 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFontWeightStyle()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | TextAnimator.kt | 109 weight: Int = -1, in draw() 126 if (weight >= 0) { in draw() 129 textInterpolator.targetPaint.typeface = typefaceCache.getOrElse(weight) { in draw() 130 textInterpolator.targetPaint.fontVariationSettings = "'$TAG_WGHT' $weight" in draw()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RefreshRateConfigsTest.cpp | 353 auto layers = std::vector<LayerRequirement>{LayerRequirement{.weight = 1.0f}}; in TEST_F() 497 auto layers = std::vector<LayerRequirement>{LayerRequirement{.weight = 1.0f}}; in TEST_F() 542 auto layers = std::vector<LayerRequirement>{LayerRequirement{.weight = 1.0f}}; in TEST_F() 580 auto layers = std::vector<LayerRequirement>{LayerRequirement{.weight = 1.0f}, in TEST_F() 581 LayerRequirement{.weight = 1.0f}}; in TEST_F() 612 auto layers = std::vector<LayerRequirement>{LayerRequirement{.weight = 1.0f}, in TEST_F() 613 LayerRequirement{.weight = 1.0f}}; in TEST_F() 705 auto layers = std::vector<LayerRequirement>{LayerRequirement{.weight = 1.0f}, in TEST_F() 706 LayerRequirement{.weight = 1.0f}}; in TEST_F() 797 auto layers = std::vector<LayerRequirement>{LayerRequirement{.weight = 1.0f}}; in TEST_F() [all …]
|
/frameworks/base/libs/hwui/ |
D | Interpolator.cpp | 141 float ipart, weight; in interpolate() local 142 weight = modff(lutpos, &ipart); in interpolate() 151 i1, i2, input, lutpos, mSize, mValues.get(), ipart, weight); in interpolate() 156 return MathUtils::lerp(v1, v2, weight); in interpolate()
|