Home
last modified time | relevance | path

Searched refs:mWeight (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/graphics/java/android/graphics/fonts/
DFontStyle.java125 private final @IntRange(from = 0, to = 1000) int mWeight; field in FontStyle
130 mWeight = FONT_WEIGHT_NORMAL; in FontStyle()
212 mWeight = weight; in FontStyle()
224 return mWeight; in getWeight()
255 return fontStyle.mWeight == mWeight && fontStyle.mSlant == mSlant; in equals()
260 return Objects.hash(mWeight, mSlant); in hashCode()
265 return "FontStyle { weight=" + mWeight + ", slant=" + mSlant + "}"; in toString()
DFont.java68 private @IntRange(from = -1, to = 1000) int mWeight = NOT_SPECIFIED; field in Font.Builder
299 mWeight = weight; in setWeight()
363 if (mWeight == NOT_SPECIFIED || mItalic == NOT_SPECIFIED) { in build()
366 if (mWeight == NOT_SPECIFIED) { in build()
367 mWeight = FontFileUtil.unpackWeight(packed); in build()
373 mWeight = 400; in build()
377 mWeight = Math.max(FontStyle.FONT_WEIGHT_MIN, in build()
378 Math.min(FontStyle.FONT_WEIGHT_MAX, mWeight)); in build()
390 final long ptr = nBuild(builderPtr, readonlyBuffer, filePath, mWeight, italic, in build()
393 new FontStyle(mWeight, slant), mTtcIndex, mAxes, mLocaleList); in build()
/frameworks/base/core/java/android/hardware/camera2/params/
DMeteringRectangle.java78 private final int mWeight; field in MeteringRectangle
96 mWeight = checkArgumentInRange( in MeteringRectangle()
120 mWeight = checkArgumentNonnegative(meteringWeight, "meteringWeight must be nonnegative"); in MeteringRectangle()
141 mWeight = checkArgumentNonnegative(meteringWeight, "meteringWeight must be nonnegative"); in MeteringRectangle()
186 return mWeight; in getMeteringWeight()
247 && mWeight == other.mWeight); in equals()
255 return HashCodeHelpers.hashCode(mX, mY, mWidth, mHeight, mWeight); in hashCode()
267 return String.format("(x:%d, y:%d, w:%d, h:%d, wt:%d)", mX, mY, mWidth, mHeight, mWeight); in toString()
/frameworks/base/core/java/android/text/
DFontConfig.java66 private final int mWeight; field in FontConfig.Font
79 mWeight = weight; in Font()
112 return mWeight; in getWeight()
148 private final int mWeight; field in FontConfig.Alias
153 mWeight = weight; in Alias()
174 return mWeight; in getWeight()
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java102 public int mWeight; field in FontFamily_Delegate.FontInfo
114 return mWeight == fontInfo.mWeight && mIsItalic == fontInfo.mIsItalic; in equals()
119 return Objects.hash(mWeight, mIsItalic); in hashCode()
124 return "FontInfo{" + "mWeight=" + mWeight + ", mIsItalic=" + mIsItalic + '}'; in toString()
210 desiredStyle.mWeight = desiredWeight; in getFont()
417 fontInfo.mWeight = FontUtilities.getFont2D(font).getWeight();
419 fontInfo.mWeight = weight;
504 fontInfo.mWeight = weight;
518 int score = Math.abs(font1.mWeight / 100 - font2.mWeight / 100);
534 int desiredWeight = outFont.mWeight;
[all …]
DTypeface_Delegate.java86 private final int mWeight; field in Typeface_Delegate
97 mWeight = weight; in Typeface_Delegate()
118 delegate.mWeight)); in nativeCreateFromTypeface()
232 return delegate.mWeight; in nativeGetWeight()
332 return new FontsIterator(mFontFamilies, mFontFamilyBuilders, variant, mWeight, mStyle); in getFonts()
/frameworks/minikin/include/minikin/
DFontStyle.h48 constexpr FontStyle(uint16_t weight, Slant slant) : mWeight(weight), mSlant(slant) {} in FontStyle()
50 constexpr uint16_t weight() const { return mWeight; } in weight()
62 uint16_t mWeight;
DFont.h71 mWeight = style.weight(); in setStyle()
79 mWeight = weight; in setWeight()
95 uint16_t mWeight = static_cast<uint16_t>(FontStyle::Weight::NORMAL); variable
/frameworks/base/libs/hwui/tests/macrobench/
DTestSceneRunner.cpp46 explicit ModifiedMovingAverage(int weight) : mWeight(weight) {} in ModifiedMovingAverage()
52 mAverage = (((mWeight - 1) * mAverage) + today) / mWeight; in add()
61 int mWeight; member in ModifiedMovingAverage
/frameworks/opt/net/voip/src/jni/rtp/
DEchoSuppressor.cpp82 mWeight = 1.0f / (mRecordLength * mWindowSize); in EchoSuppressor()
167 float varY = mY2Sum - mWeight * mYSum * mYSum; in run()
169 float cov = mXYSums[i] - mWeight * mXSums[i] * mYSum; in run()
171 float varXi = mX2Sums[i] - mWeight * mXSums[i] * mXSums[i]; in run()
DEchoSuppressor.h55 float mWeight; variable
/frameworks/base/graphics/java/android/graphics/
DTypeface.java167 private @IntRange(from = 0, to = FontStyle.FONT_WEIGHT_MAX) int mWeight = 0; field in Typeface
195 return mWeight; in getWeight()
370 private int mWeight = RESOLVE_BY_FONT_TABLE; field in Typeface.Builder
451 mWeight = weight; in setWeight()
576 if (mWeight == RESOLVE_BY_FONT_TABLE && mItalic == RESOLVE_BY_FONT_TABLE) { in resolveFallbackTypeface()
580 final int weight = (mWeight == RESOLVE_BY_FONT_TABLE) ? base.mWeight : mWeight; in resolveFallbackTypeface()
599 mWeight, mItalic, in build()
611 final int weight = mWeight == RESOLVE_BY_FONT_TABLE in build()
612 ? font.getStyle().getWeight() : mWeight; in build()
1098 mWeight = nativeGetWeight(ni);
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java83 builder.addFont(font.mBuffer, font.mTtcIndex, font.mWeight, font.mItalic); in nAddFont()
117 desiredStyle.mWeight = desiredWeight;
174 fontInfo.mWeight = weight;
DFont_Builder_Delegate.java55 protected int mWeight; field in Font_Builder_Delegate
110 font.mWeight = weight; in nBuild()
/frameworks/base/core/tests/coretests/src/android/provider/
DMockFontProvider.java103 mWeight = weight; in Font()
121 return mWeight; in getWeight()
140 private int mWeight; field in MockFontProvider.Font
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java84 private int mWeight; field in FontResourcesParser.FontFileResourceEntry
93 mWeight = weight; in FontFileResourceEntry()
104 return mWeight; in getWeight()
/frameworks/minikin/libs/minikin/
DFontFamily.cpp43 return Font(std::move(mTypeface), FontStyle(mWeight, mSlant), prepareFont(mTypeface)); in build()
49 mWeight = styleFromFont.weight(); in build()
54 return Font(std::move(mTypeface), FontStyle(mWeight, mSlant), std::move(font)); in build()
/frameworks/base/native/android/
Dsystem_fonts.cpp61 uint16_t mWeight; member
129 out->mWeight = weightStr ? in copyFont()
261 result->mWeight = font->style().weight(); in AFontMatcher_match()
344 return font->mWeight; in AFont_getWeight()
/frameworks/base/core/java/android/provider/
DFontsContract.java182 private final int mWeight; field in FontsContract.FontInfo
202 mWeight = weight; in FontInfo()
232 return mWeight; in getWeight()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt16614 Landroid/content/res/FontResourcesParser$FontFileResourceEntry;->mWeight:I
21350 Landroid/graphics/Typeface$Builder;->mWeight:I
21367 Landroid/graphics/Typeface;->mWeight:I
22213 Landroid/hardware/camera2/params/MeteringRectangle;->mWeight:I
55898 Landroid/provider/FontsContract$FontInfo;->mWeight:I
70042 Landroid/text/FontConfig$Alias;->mWeight:I
70062 Landroid/text/FontConfig$Font;->mWeight:I