/frameworks/base/libs/hwui/hwui/ |
D | Typeface.cpp | 40 static Typeface::Style computeAPIStyle(int weight, bool italic) { in computeAPIStyle() argument 42 if (weight >= SkFontStyle::kSemiBold_Weight) { in computeAPIStyle() 49 static minikin::FontStyle computeMinikinStyle(int weight, bool italic) { in computeMinikinStyle() argument 50 return minikin::FontStyle(uirenderer::MathUtils::clamp(weight, 1, 1000), in computeMinikinStyle() 56 int weight = baseWeight; in computeRelativeStyle() local 58 weight += 300; in computeRelativeStyle() 61 return computeMinikinStyle(weight, italic); in computeRelativeStyle() 83 Typeface* Typeface::createAbsolute(Typeface* base, int weight, bool italic) { in createAbsolute() argument 89 result->fAPIStyle = computeAPIStyle(weight, italic); in createAbsolute() 90 result->fStyle = computeMinikinStyle(weight, italic); in createAbsolute() [all …]
|
/frameworks/minikin/include/minikin/ |
D | FontStyle.h | 48 constexpr explicit FontStyle(Weight weight) : FontStyle(weight, Slant::UPRIGHT) {} in FontStyle() argument 50 constexpr FontStyle(Weight weight, Slant slant) in FontStyle() argument 51 : FontStyle(static_cast<uint16_t>(weight), slant) {} in FontStyle() 52 constexpr FontStyle(uint16_t weight, Slant slant) : mWeight(weight), mSlant(slant) {} in FontStyle() argument 63 constexpr uint16_t weight() const { return mWeight; } in weight() function 67 return (static_cast<uint32_t>(weight()) << 16) | static_cast<uint32_t>(slant()); in identifier() 87 return os << "{weight=" << style.weight() << ", slant=" << style.slant() << "}"; 91 return l.weight() == r.weight() && l.slant() == r.slant();
|
/frameworks/base/libs/hwui/tests/unit/ |
D | TypefaceTests.cpp | 93 EXPECT_EQ(700, bold->fStyle.weight()); in TEST() 98 EXPECT_EQ(300, light->fStyle.weight()); in TEST() 106 EXPECT_EQ(400, normal->fStyle.weight()); in TEST() 112 EXPECT_EQ(700, bold->fStyle.weight()); in TEST() 118 EXPECT_EQ(400, italic->fStyle.weight()); in TEST() 124 EXPECT_EQ(700, boldItalic->fStyle.weight()); in TEST() 135 EXPECT_EQ(700, normal->fStyle.weight()); in TEST() 142 EXPECT_EQ(1000, bold->fStyle.weight()); in TEST() 149 EXPECT_EQ(700, italic->fStyle.weight()); in TEST() 157 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/base/packages/SystemUI/src/com/android/systemui/complication/ |
D | ComplicationLayoutParams.java | 115 @Direction int direction, int weight) { in ComplicationLayoutParams() argument 116 this(width, height, position, direction, weight, DIRECTIONAL_SPACING_UNSPECIFIED, in ComplicationLayoutParams() 133 @Direction int direction, int weight, int directionalSpacing) { in ComplicationLayoutParams() argument 134 this(width, height, position, direction, weight, directionalSpacing, CONSTRAINT_UNSPECIFIED, in ComplicationLayoutParams() 154 @Direction int direction, int weight, int directionalSpacing, int constraint) { in ComplicationLayoutParams() argument 155 this(width, height, position, direction, weight, directionalSpacing, constraint, false); in ComplicationLayoutParams() 175 @Direction int direction, int weight, boolean snapToGuide) { in ComplicationLayoutParams() argument 176 this(width, height, position, direction, weight, DIRECTIONAL_SPACING_UNSPECIFIED, in ComplicationLayoutParams() 201 @Direction int direction, int weight, int directionalSpacing, int constraint, in ComplicationLayoutParams() argument 216 mWeight = weight; in ComplicationLayoutParams()
|
/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/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/packages/SystemUI/animation/src/com/android/systemui/animation/ |
D | FontVariationUtils.kt | 21 weight: Int = -1, in updateFontVariation() 27 if (weight >= 0 && mWeight != weight) { in updateFontVariation() 29 mWeight = weight in updateFontVariation()
|
/frameworks/base/graphics/java/android/graphics/ |
D | FontFamily.java | 143 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, in addFont() argument 157 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic); in addFont() 169 int weight, int italic) { in addFontFromBuffer() argument 178 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic); in addFontFromBuffer() 198 boolean isAsset, int ttcIndex, int weight, int isItalic, in addFontFromAssetManager() argument 206 return addFontFromBuffer(buffer, ttcIndex, axes, weight, isItalic); in addFontFromAssetManager() 225 int weight, int isItalic); in nAddFont() argument 227 int ttcIndex, int weight, int isItalic); in nAddFontWeightStyle() argument
|
D | Typeface.java | 541 public Builder setWeight(@IntRange(from = 1, to = 1000) int weight) { in setWeight() 542 mWeight = weight; in setWeight() 543 mFontBuilder.setWeight(weight); in setWeight() 631 @Nullable FontVariationAxis[] axes, int weight, int italic, String fallback) { in createAssetUid() argument 643 builder.append(Integer.toString(weight)); in createAssetUid() 671 final int weight = (mWeight == RESOLVE_BY_FONT_TABLE) ? base.mWeight : mWeight; in resolveFallbackTypeface() local 674 return createWeightStyle(base, weight, italic); in resolveFallbackTypeface() 702 final int weight = mWeight == RESOLVE_BY_FONT_TABLE in build() local 707 .setStyle(new FontStyle(weight, slant)); in build() 879 final int weight = mStyle == null ? 400 : mStyle.getWeight(); [all …]
|
/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/packages/SystemUI/tests/src/com/android/systemui/animation/ |
D | FontVariationUtilsTest.kt | 23 weight = 100, in testUpdateFontVariation_getCorrectFvarStr() 31 weight = 200, in testUpdateFontVariation_getCorrectFvarStr() 46 weight = 100, in testStyleValueUnchange_getBlankStr() 53 weight = 100, in testStyleValueUnchange_getBlankStr()
|
D | TextAnimatorTest.kt | 64 textAnimator.setTextStyle(weight = 400, animate = true) in testAnimationStarted() 94 textAnimator.setTextStyle(weight = 400, animate = false) in testAnimationNotStarted() 123 weight = 400, in testAnimationEnded() 155 textAnimator.setTextStyle(weight = 400, animate = true) in testCacheTypeface() 159 textAnimator.setTextStyle(weight = 700, animate = true) in testCacheTypeface() 163 textAnimator.setTextStyle(weight = 400, animate = true) in testCacheTypeface()
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontFileUtil.java | 60 private static int pack(@IntRange(from = 0, to = 1000) int weight, boolean italic) { in pack() 61 return weight | (italic ? 0x10000 : 0); in pack() 77 int weight = -1; in analyzeStyle() local 82 weight = (int) axis.getStyleValue(); in analyzeStyle() 89 if (weight != -1 && italic != -1) { in analyzeStyle() 93 return pack(weight, italic == 1); in analyzeStyle() 134 return pack(weight == -1 ? weightFromOS2 : weight, in analyzeStyle()
|
D | FontStyle.java | 211 public FontStyle(int weight, @FontSlant int slant) { in FontStyle() argument 212 Preconditions.checkArgument(FONT_WEIGHT_MIN <= weight && weight <= FONT_WEIGHT_MAX, in FontStyle() 216 mWeight = weight; in FontStyle()
|
/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/packages/SystemUI/compose/core/src/com/android/compose/theme/typography/ |
D | TypefaceTokens.kt | 39 Font(brandFont, weight = WeightMedium), 40 Font(brandFont, weight = WeightRegular), 44 Font(plainFont, weight = WeightMedium), 45 Font(plainFont, weight = WeightRegular),
|
/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/customization/src/com/android/systemui/shared/clocks/ |
D | AnimatableClockView.kt | 302 weight = lockScreenWeight, in <lambda>() 311 weight = lockScreenWeight, in <lambda>() 324 weight = dozingWeight, in <lambda>() 333 weight = lockScreenWeight, in <lambda>() 350 weight = lockScreenWeightInternal, in <lambda>() 359 weight = dozingWeightInternal, in <lambda>() 378 weight = if (isDozing()) dozingWeight else lockScreenWeight, in <lambda>() 388 weight = if (isDozing()) lockScreenWeight else dozingWeight, in <lambda>() 401 weight = if (isDozing) dozingWeight else lockScreenWeight, in <lambda>() 441 @IntRange(from = 0, to = 1000) weight: Int, in <lambda>() [all …]
|
/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 | 92 final float weight = ((LayoutParams) child.getLayoutParams()).weight; in onMeasure() local 93 if (weight == 0) { in onMeasure() 103 remainingWeight += Math.max(0, weight); in onMeasure() 176 this.mWeight = ((LayoutParams) view.getLayoutParams()).weight; in ViewInfo()
|
/frameworks/base/libs/hwui/jni/ |
D | FontFamily.cpp | 115 jint weight, jint italic) { in addSkTypeface() argument 141 if (weight != RESOLVE_BY_FONT_TABLE) { in addSkTypeface() 142 fontBuilder.setWeight(weight); in addSkTypeface() 172 jint ttcIndex, jint weight, jint isItalic) { in FontFamily_addFont() argument 190 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFont() 194 jobject font, jint ttcIndex, jint weight, jint isItalic) { in FontFamily_addFontWeightStyle() argument 212 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFontWeightStyle()
|