/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | HistoryEvaluator.java | 62 sumValue += data.evaluation * data.weight; 63 sumWeight += data.weight; 91 list.get(i).weight *= factor; 95 while (!list.isEmpty() && isZero(list.get(0).weight)) { 105 * For each stroke it holds its initial value and the current weight. Initially the 106 * weight is set to 1.0 110 public float weight; field in class:HistoryEvaluator.Data 114 weight = 1.0f;
|
/frameworks/minikin/tests/util/ |
H A D | FontTestUtils.cpp | 57 int weight = atoi((const char*)(xmlGetProp(fontNode, (const xmlChar*)"weight"))) / 100; local 74 fonts.push_back(Font(minikinFont, FontStyle(weight, italic))); 78 fonts.push_back(Font(minikinFont, FontStyle(weight, italic)));
|
/frameworks/support/tv-provider/src/android/support/media/tv/ |
H A D | PreviewProgram.java | 207 * Sets the weight of the preview program within the channel. 209 * @param weight The value of {@link PreviewPrograms#COLUMN_WEIGHT} for the program. 212 public Builder setWeight(int weight) { argument 213 mValues.put(PreviewPrograms.COLUMN_WEIGHT, weight);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Typeface.cpp | 46 jint weight, jboolean italic) { 48 return reinterpret_cast<jlong>(Typeface::createAbsolute(baseTypeface, weight, italic)); 68 static jlong Typeface_createWeightAlias(JNIEnv* env, jobject, jlong familyHandle, jint weight) { argument 70 Typeface* face = Typeface::createWithDifferentBaseWeight(family, weight); 90 int weight, int italic) { 99 Typeface::createFromFamilies(std::move(familyVec), weight, italic)); 45 Typeface_createFromTypefaceWithExactStyle(JNIEnv* env, jobject, jlong nativeInstance, jint weight, jboolean italic) argument 89 Typeface_createFromArray(JNIEnv *env, jobject, jlongArray familyArray, int weight, int italic) argument
|
H A D | FontFamily.cpp | 124 int weight = givenWeight / 100; local 135 weight = os2Weight; 142 builder->fonts.push_back(minikin::Font(minikinFont, minikin::FontStyle(weight, italic))); 171 jint ttcIndex, jint weight, jint isItalic) { 189 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); 193 jobject font, jint ttcIndex, jint weight, jint isItalic) { 211 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); 220 jint weight, jint isItalic) { 258 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); 170 FontFamily_addFont(JNIEnv* env, jobject clazz, jlong builderPtr, jobject bytebuf, jint ttcIndex, jint weight, jint isItalic) argument 192 FontFamily_addFontWeightStyle(JNIEnv* env, jobject clazz, jlong builderPtr, jobject font, jint ttcIndex, jint weight, jint isItalic) argument 218 FontFamily_addFontFromAssetManager(JNIEnv* env, jobject, jlong builderPtr, jobject jassetMgr, jstring jpath, jint cookie, jboolean isAsset, jint ttcIndex, jint weight, jint isItalic) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | FontFamily.java | 92 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, argument 106 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic); 114 int weight, int italic) { 123 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic); 132 * @param weight The weight of the font. If 0 is given, the weight and italic will be resolved 134 * @param isItalic Whether this font is italic. If the weight is set to 0, this will be resolved 139 boolean isAsset, int ttcIndex, int weight, int isItalic, 149 return nAddFontFromAssetManager(mBuilderPtr, mgr, path, cookie, isAsset, ttcIndex, weight, 113 addFontFromBuffer(ByteBuffer font, int ttcIndex, FontVariationAxis[] axes, int weight, int italic) argument 138 addFontFromAssetManager(AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic, FontVariationAxis[] axes) argument 192 nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument 194 nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument 196 nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | Interpolator.cpp | 140 float ipart, weight; local 141 weight = modff(lutpos, &ipart); 147 " i1=%d, i2=%d, input=%f, lutpos=%f, size=%zu, values=%p, ipart=%f, weight=%f", 148 i1, i2, input, lutpos, mSize, mValues.get(), ipart, weight); 153 return MathUtils::lerp(v1, v2, weight);
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Typeface.cpp | 43 static SkTypeface::Style computeSkiaStyle(int weight, bool italic) { argument 45 if (weight >= SkFontStyle::kSemiBold_Weight) { 52 static minikin::FontStyle computeMinikinStyle(int weight, bool italic) { argument 53 // TODO: Better to use raw base weight value for font selection instead of dividing by 100. 54 const int minikinWeight = uirenderer::MathUtils::clamp((weight + 50) / 100, 1, 10); 58 // Resolve the relative weight from the baseWeight and target style. 60 int weight = baseWeight; local 62 weight += 300; 65 return computeMinikinStyle(weight, italic); 87 Typeface* Typeface::createAbsolute(Typeface* base, int weight, boo argument 120 createWithDifferentBaseWeight(Typeface* src, int weight) argument 132 createFromFamilies( std::vector<std::shared_ptr<minikin::FontFamily>>&& families, int weight, int italic) argument [all...] |
/frameworks/base/libs/hwui/tests/macrobench/ |
H A D | TestSceneRunner.cpp | 45 explicit ModifiedMovingAverage(int weight) : mWeight(weight) {} argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | UsageView.java | 116 private void setWeight(int id, float weight) { argument 119 params.weight = weight;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Typeface_Delegate.java | 92 // Calculate the required weight based on style and weight of this typeface. 93 int weight = mWeight + ((mStyle & Font.BOLD) == 0 ? 0 : FontFamily_Delegate.BOLD_FONT_WEIGHT_DELTA); 94 if (weight > 900) { 95 weight = 900; 102 Font font = ffd.getFont(weight, isItalic); 116 Font font2 = ffd2.getFont(weight, isItalic); 184 /*package*/ static long nativeCreateWeightAlias(long native_instance, int weight) { argument 193 new Typeface_Delegate(delegate.mFontFamilies, delegate.mStyle, weight); 251 public Typeface_Delegate(@NonNull FontFamily_Delegate[] fontFamilies, int style, int weight) { argument [all...] |
H A D | FontFamily_Delegate.java | 254 FontVariationAxis[] axes, int weight, int italic) { 260 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); 294 int weight, int isItalic) { 301 int ttcIndex, int weight, int isItalic) { 311 static boolean addFont(long builderPtr, final String path, final int weight, argument 317 delegate.mPostInitRunnables.add(() -> delegate.addFont(path, weight, italic)); 320 return delegate.addFont(path, weight, italic); 327 int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) { 368 if (weight == RESOLVE_BY_FONT_TABLE) { 371 fontInfo.mWeight = weight; 253 addFont(FontFamily thisFontFamily, String path, int ttcIndex, FontVariationAxis[] axes, int weight, int italic) argument 293 nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument 300 nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument 326 nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) argument 423 addFont(final String path, int ttcIndex, int weight, int italic) argument 436 addFont(@onNull String path, int weight, int italic) argument [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | FontUtils.cpp | 33 bool analyzeStyle(const uint8_t* os2_data, size_t os2_size, int* weight, bool* italic) { argument 41 *weight = weightClass / 100;
|
H A D | FontFamily.cpp | 43 FontStyle::FontStyle(int variant, int weight, bool italic) argument 44 : FontStyle(FontLanguageListCache::kEmptyListId, variant, weight, italic) { 47 FontStyle::FontStyle(uint32_t languageListId, int variant, int weight, bool italic) argument 48 : bits(pack(variant, weight, italic)), mLanguageListId(languageListId) { 64 uint32_t FontStyle::pack(int variant, int weight, bool italic) { argument 65 return (weight & kWeightMask) | (italic ? kItalicMask : 0) | (variant << kVariantShift); 112 bool FontFamily::analyzeStyle(const std::shared_ptr<MinikinFont>& typeface, int* weight, argument 118 return ::minikin::analyzeStyle(os2Table.get(), os2Table.size(), weight, italic); 132 // If desired weight is semibold or darker, and 2 or more grades
|
/frameworks/support/compat/java/android/support/v4/graphics/ |
H A D | TypefaceCompatApi24Impl.java | 103 int weight, boolean style) { 106 family, buffer, ttcIndex, null /* variation axis */, weight, style); 102 addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex, int weight, boolean style) argument
|
/frameworks/base/core/java/android/content/res/ |
H A D | FontResourcesParser.java | 83 public FontFileResourceEntry(@NonNull String fileName, int weight, int italic) { argument 85 mWeight = weight; 202 int weight = array.getInt(R.styleable.FontFamilyFont_fontWeight, 214 return new FontFileResourceEntry(filename, weight, italic);
|
/frameworks/base/core/java/android/text/ |
H A D | FontConfig.java | 72 int weight, boolean isItalic) { 76 mWeight = weight; 102 * Returns the weight value for this font. 138 public Alias(@NonNull String name, @NonNull String toName, int weight) { argument 141 mWeight = weight; 159 * Returns the weight associated with this alias. 71 Font(@onNull String fontName, int ttcIndex, @NonNull FontVariationAxis[] axes, int weight, boolean isItalic) argument
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
H A D | MockFontProvider.java | 101 public Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, argument 107 mWeight = weight;
|
/frameworks/minikin/include/minikin/ |
H A D | FontFamily.h | 40 FontStyle() : FontStyle(0 /* variant */, 4 /* weight */, false /* italic */) {} 41 FontStyle(int weight, bool italic) : FontStyle(0 /* variant */, weight, italic) {} argument 43 : FontStyle(langListId, 0 /* variant */, 4 /* weight */, false /* italic */) {} 45 FontStyle(int variant, int weight, bool italic); 46 FontStyle(uint32_t langListId, int variant, int weight, bool italic); 68 static uint32_t pack(int variant, int weight, bool italic); 130 static bool analyzeStyle(const std::shared_ptr<MinikinFont>& typeface, int* weight,
|
/frameworks/support/compat/java/android/support/v4/content/res/ |
H A D | FontResourcesParserCompat.java | 106 public FontFileResourceEntry(int weight, boolean italic, int resourceId) { argument 107 mWeight = weight; 247 int weight = array.getInt(R.styleable.FontFamilyFont_fontWeight, NORMAL_WEIGHT); 254 return new FontFileResourceEntry(weight, isItalic, resourceId);
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | ParameterUtils.java | 56 /** The default normalized area uses the default normalized rectangle with a weight=1 */ 59 /*weight*/1); 115 * arbitrary weight. 127 /** Arbitrary weight (the range is user-defined). */ 128 public final int weight; field in class:ParameterUtils.WeightedRectangle 131 * Create a new weighted-rectangle from a non-{@code null} rectangle; the {@code weight} 134 public WeightedRectangle(Rect rect, int weight) { argument 136 this.weight = weight; 147 int weight [all...] |
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | Target.java | 200 * Returns the weight of importance that this target places on a color's saturation within 203 * <p>The larger the weight, relative to the other weights, the more important that a color 213 * Returns the weight of importance that this target places on a color's lightness within 216 * <p>The larger the weight, relative to the other weights, the more important that a color 226 * Returns the weight of importance that this target places on a color's population within 229 * <p>The larger the weight, relative to the other weights, the more important that a 260 float weight = mWeights[i]; 261 if (weight > 0) { 262 sum += weight; 369 * Set the weight o 379 setSaturationWeight(@loatRangefrom = 0) float weight) argument 395 setLightnessWeight(@loatRangefrom = 0) float weight) argument 410 setPopulationWeight(@loatRangefrom = 0) float weight) argument [all...] |
/frameworks/support/compat/tests/java/android/support/v4/provider/ |
H A D | MockFontProvider.java | 64 Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, argument 70 mWeight = weight;
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | Target.java | 182 * Returns the weight of importance that this target places on a color's saturation within 185 * <p>The larger the weight, relative to the other weights, the more important that a color 195 * Returns the weight of importance that this target places on a color's lightness within 198 * <p>The larger the weight, relative to the other weights, the more important that a color 208 * Returns the weight of importance that this target places on a color's population within 211 * <p>The larger the weight, relative to the other weights, the more important that a 242 float weight = mWeights[i]; 243 if (weight > 0) { 244 sum += weight; 351 * Set the weight o 361 setSaturationWeight(@loatRangefrom = 0) float weight) argument 377 setLightnessWeight(@loatRangefrom = 0) float weight) argument 392 setPopulationWeight(@loatRangefrom = 0) float weight) argument [all...] |
/frameworks/base/core/java/android/provider/ |
H A D | FontsContract.java | 113 * should have this column populated with the int weight for the resulting font. This value 114 * should be between 100 and 900. The most common values are 400 for regular weight and 700 115 * for bold weight. 194 * @param weight An integer that indicates the font weight. 200 @Nullable FontVariationAxis[] axes, @IntRange(from = 1, to = 1000) int weight, 205 mWeight = weight; 232 * Returns the weight value for this font. 797 int weight; 800 weight 199 FontInfo(@onNull Uri uri, @IntRange(from = 0) int ttcIndex, @Nullable FontVariationAxis[] axes, @IntRange(from = 1, to = 1000) int weight, boolean italic, int resultCode) argument [all...] |