/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/jni/android/graphics/ |
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
|
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
|
/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/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/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QuickTileLayout.java | 25 ((LinearLayout.LayoutParams) params).weight = 1;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ColorfulnessFilter.java | 69 float weight = (float) Math.pow(2, r); 71 float value = histogramBuffer.get() * weight;
|
/frameworks/minikin/libs/minikin/ |
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
|
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;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | FontListParser.java | 111 String weightStr = parser.getAttributeValue(null, "weight"); 112 int weight = weightStr == null ? 400 : Integer.parseInt(weightStr); 129 axes.toArray(new FontVariationAxis[axes.size()]), weight, isItalic); 144 String weightStr = parser.getAttributeValue(null, "weight"); 145 int weight; 147 weight = 400; 149 weight = Integer.parseInt(weightStr); 152 return new FontConfig.Alias(name, toName, weight);
|
H A D | Typeface.java | 128 // Value for weight and italic. Indicates the value is resolved by font metadata. 170 RESOLVE_BY_FONT_TABLE /* weight */, RESOLVE_BY_FONT_TABLE /* italic */); 177 0 /* ttcIndex */, RESOLVE_BY_FONT_TABLE /* weight */, 248 null /* axes */, RESOLVE_BY_FONT_TABLE /* weight */, 264 RESOLVE_BY_FONT_TABLE /* weight */, RESOLVE_BY_FONT_TABLE /* italic */); 375 * weight and italic information, so {@link #setWeight} and {@link #setItalic} are used 389 * Sets weight of the font. 391 * Tells the system the weight of the given font. If not provided, the system will resolve 392 * the weight value by reading font tables. 393 * @param weight 395 setWeight(@ntRangefrom = 1, to = 1000) int weight) argument 500 createAssetUid(final AssetManager mgr, String path, int ttcIndex, @Nullable FontVariationAxis[] axes, int weight, int italic) argument 865 createFromFamiliesWithDefault(FontFamily[] families, int weight, int italic) argument 1063 nativeCreateFromTypefaceWithExactStyle( long native_instance, int weight, boolean italic) argument 1068 nativeCreateWeightAlias(long native_instance, int weight) argument 1072 nativeCreateFromArray(long[] familyArray, int weight, int italic) argument [all...] |
/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/layoutlib/bridge/src/com/android/internal/view/animation/ |
H A D | NativeInterpolatorFactoryHelper_Delegate.java | 125 float weight = lutpos - ipart; 132 return MathUtils.lerp(mValues[i1], mValues[i2], weight);
|
/frameworks/support/tv-provider/src/android/support/media/tv/ |
H A D | PreviewProgram.java | 210 * Sets the weight of the preview program within the channel. 212 * @param weight The value of {@link PreviewPrograms#COLUMN_WEIGHT} for the program. 215 public Builder setWeight(int weight) { argument 216 mValues.put(PreviewPrograms.COLUMN_WEIGHT, weight);
|
/frameworks/support/wear/src/android/support/wear/widget/ |
H A D | BezierSCurveInterpolator.java | 80 float weight = difference / STEP_SIZE; 82 return VALUES[position] + weight * (VALUES[position + 1] - VALUES[position]);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | LinearLayoutCompat.java | 45 * grow to fill up any remaining space in the layout by setting the <em>weight</em> member of 394 * When true, all children with a weight will be considered having 398 * @return True to measure children with a weight using the minimum 406 * When set to true, all children with a weight will be considered having 412 * @param enabled True to measure children with a weight using the 522 * @return A number greater than 0.0f if the weight sum is defined, or 523 * a number lower than or equals to 0.0f if not weight sum is 539 * to 0.0f if the weight sum should be computed from the children's 633 totalWeight += lp.weight; 635 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 1773 public float weight; field in class:LinearLayoutCompat.LayoutParams 1814 LayoutParams(int width, int height, float weight) argument [all...] |
/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/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | Rotate3dTextActivity.java | 55 lp.weight = 1.0f;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ParallaxEffect.java | 67 * Returns a list of Float objects that represents weight associated with each variable range. 70 * @return A list of Float objects that represents weight associated with each variable range. 92 * Sets a list of Float objects that represents weight associated with each variable range. 95 * @param weights A list of Float objects that represents weight associated with each variable 100 for (float weight : weights) { 101 if (weight <= 0) { 108 for (float weight : weights) { 109 mWeights.add(weight); 110 totalWeight += weight; 116 * Sets a list of Float objects that represents weight associate [all...] |
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/vo/ |
H A D | User.java | 93 public void setWeight(float weight) { argument 94 mWeight = weight;
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | Parameters.h | 102 int weight; member in struct:android::camera2::Parameters::Area 104 Area(int left, int top, int right, int bottom, int weight): argument 106 weight(weight) {}
|
/frameworks/support/compat/java/android/support/v4/content/res/ |
H A D | FontResourcesParserCompat.java | 107 public FontFileResourceEntry(@NonNull String fileName, int weight, boolean italic, argument 110 mWeight = weight; 255 int weight = array.getInt(R.styleable.FontFamilyFont_fontWeight, NORMAL_WEIGHT); 263 return new FontFileResourceEntry(filename, weight, isItalic, resourceId);
|
/frameworks/support/compat/java/android/support/v4/graphics/ |
H A D | TypefaceCompatApi26Impl.java | 140 * boolean isAsset, int ttcIndex, int weight, int isItalic, FontVariationAxis[] axes) 143 int ttcIndex, int weight, int style) { 147 weight, style, null /* axes */); 156 * int weight, int italic) 159 int ttcIndex, int weight, int style) { 162 buffer, ttcIndex, null /* axes */, weight, style); 171 * FontFamily[] families, int weight, int italic) 291 0 /* ttcIndex */, RESOLVE_BY_FONT_TABLE /* weight */, 142 addFontFromAssetManager(Context context, Object family, String fileName, int ttcIndex, int weight, int style) argument 158 addFontFromBuffer(Object family, ByteBuffer buffer, int ttcIndex, int weight, int style) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | LinearLayout.java | 520 * When true, all children with a weight will be considered having 524 * @return True to measure children with a weight using the minimum 534 * When set to true, all children with a weight will be considered having 540 * @param enabled True to measure children with a weight using the 657 * @return A number greater than 0.0f if the weight sum is defined, or 658 * a number lower than or equals to 0.0f if not weight sum is 674 * to 0.0f if the weight sum should be computed from the children's 781 totalWeight += lp.weight; 783 final boolean useExcessSpace = lp.height == 0 && lp.weight > 0; 802 // previous children have given a weight, the 1947 public float weight; field in class:LinearLayout.LayoutParams 2004 LayoutParams(int width, int height, float weight) argument [all...] |
/frameworks/base/tools/fonts/ |
H A D | fontchain_lint.py | 197 def __init__(self, name, scripts, variant, weight, style, font): 201 self.weight = weight 240 weight = int(child.get('weight')) 241 assert weight % 100 == 0, ( 242 'Font weight "%d" is not a multiple of 100.' % weight) 256 weight,
|