/frameworks/minikin/libs/minikin/ |
H A D | AnalyzeStyle.cpp | 29 bool analyzeStyle(const uint8_t* os2_data, size_t os2_size, int* weight, bool* italic) { argument 37 *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); 85 int weight; local 87 if (analyzeStyle(os2Table.get(), os2Table.size(), &weight, &italic)) { 88 //ALOGD("analyzed weight = %d, italic = %s", weight, itali [all...] |
/frameworks/minikin/tests/ |
H A D | FontTestUtils.cpp | 58 int weight = atoi((const char*)(xmlGetProp(fontNode, (const xmlChar*)"weight"))) / 100; local 69 family->addFont(new MinikinFontForTest(fontPath), android::FontStyle(weight, italic));
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Typeface.cpp | 43 static jlong Typeface_createWeightAlias(JNIEnv* env, jobject, jlong familyHandle, jint weight) { argument 45 Typeface* face = Typeface::createWeightAlias(family, weight);
|
H A D | FontFamily.cpp | 129 jobject font, jint ttcIndex, jobject listOfAxis, jint weight, jboolean isItalic) { 182 fontFamily->addFont(minikinFont, FontStyle(weight / 100, isItalic)); 128 FontFamily_addFontWeightStyle(JNIEnv* env, jobject clazz, jlong familyPtr, jobject font, jint ttcIndex, jobject listOfAxis, jint weight, jboolean isItalic) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | FontFamily.java | 84 int weight, boolean style) { 85 return nAddFontWeightStyle(mNativePtr, font, ttcIndex, axes, weight, style); 97 int weight, boolean isItalic); 83 addFontWeightStyle(ByteBuffer font, int ttcIndex, List<FontListParser.Axis> axes, int weight, boolean style) argument 95 nAddFontWeightStyle(long nativeFamily, ByteBuffer font, int ttcIndex, List<FontListParser.Axis> listOfAxis, int weight, boolean isItalic) argument
|
H A D | FontListParser.java | 56 Font(String fontName, int ttcIndex, List<Axis> axes, int weight, boolean isItalic) { argument 60 this.weight = weight; 66 public int weight; field in class:FontListParser.Font 73 public int weight; field in class:FontListParser.Alias 147 String weightStr = parser.getAttributeValue(null, "weight"); 148 int weight = weightStr == null ? 400 : Integer.parseInt(weightStr); 165 return new Font(fullFilename, index, axes, weight, isItalic); 207 String weightStr = parser.getAttributeValue(null, "weight"); 209 alias.weight [all...] |
H A D | Typeface.java | 314 font.weight, font.isItalic)) { 368 int weight = alias.weight; 369 if (weight != 400) { 370 newFace = new Typeface(nativeCreateWeightAlias(base.native_instance, weight)); 443 private static native long nativeCreateWeightAlias(long native_instance, int weight); argument
|
/frameworks/base/libs/hwui/ |
H A D | Interpolator.cpp | 105 float ipart, weight; local 106 weight = modff(lutpos, &ipart); 112 " i1=%d, i2=%d, input=%f, lutpos=%f, size=%zu, values=%p, ipart=%f, weight=%f", 113 i1, i2, input, lutpos, mSize, mValues.get(), ipart, weight); 118 return MathUtils::lerp(v1, v2, weight);
|
/frameworks/base/libs/hwui/tests/macrobench/ |
H A D | TestSceneRunner.cpp | 44 ModifiedMovingAverage(int weight) : mWeight(weight) {} argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | HistoryEvaluator.java | 60 sumValue += data.evaluation * data.weight; 61 sumWeight += data.weight; 86 list.get(i).weight *= factor; 90 while (!list.isEmpty() && isZero(list.get(0).weight)) { 100 * For each stroke it holds its initial value and the current weight. Initially the 101 * weight is set to 1.0 105 public float weight; field in class:HistoryEvaluator.Data 109 weight = 1.0f;
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Typeface.cpp | 36 // Resolve the 1..9 weight based on base weight and bold flag 38 int weight = typeface->fBaseWeight / 100; local 40 weight += 3; 42 if (weight > 9) { 43 weight = 9; 46 typeface->fStyle = FontStyle(weight, italic); 121 Typeface* Typeface::createWeightAlias(Typeface* src, int weight) { argument 128 result->fBaseWeight = weight;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | UsageView.java | 115 private void setWeight(int id, float weight) { argument 118 params.weight = weight;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Typeface_Delegate.java | 88 // Calculate the required weight based on style and weight of this typeface. 89 int weight = mWeight + ((mStyle & Font.BOLD) == 0 ? 0 : FontFamily_Delegate.BOLD_FONT_WEIGHT_DELTA); 90 if (weight > 900) { 91 weight = 900; 98 Font font = ffd.getFont(weight, isItalic); 112 Font font2 = ffd2.getFont(weight, isItalic); 162 /*package*/ static long nativeCreateWeightAlias(long native_instance, int weight) { argument 171 new Typeface_Delegate(delegate.mFontFamilies, delegate.mStyle, weight); 215 FontFamily_Delegate.addFont(fontFamily.mNativePtr, font.fontName, font.weight, 227 Typeface_Delegate(@onNull FontFamily_Delegate[] fontFamilies, int style, int weight) argument [all...] |
H A D | FontFamily_Delegate.java | 288 int weight, boolean isItalic) { 293 static boolean addFont(long nativeFamily, final String path, final int weight, argument 298 delegate.mPostInitRunnables.add(() -> delegate.addFont(path, weight, isItalic)); 301 return delegate.addFont(path, weight, isItalic); 405 private boolean addFont(@NonNull String path, int weight, boolean isItalic) { argument 418 fontInfo.mWeight = weight; 425 int weight = fontInfo.mWeight; 432 if (font.mWeight == weight && font.mIsItalic == isItalic) { 286 nAddFontWeightStyle(long nativeFamily, ByteBuffer font, int ttcIndex, List<FontListParser.Axis> listOfAxis, int weight, boolean isItalic) argument
|
/frameworks/minikin/include/minikin/ |
H A D | FontFamily.h | 38 FontStyle() : FontStyle(0 /* variant */, 4 /* weight */, false /* italic */) {} 39 FontStyle(int weight, bool italic) : FontStyle(0 /* variant */, weight, italic) {} argument 41 : FontStyle(langListId, 0 /* variant */, 4 /* weight */, false /* italic */) {} 43 FontStyle(int variant, int weight, bool italic); 44 FontStyle(uint32_t langListId, int variant, int weight, bool italic); 66 static uint32_t pack(int variant, int weight, bool italic);
|
/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/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/content/pm/ |
H A D | ShortcutInfo.java | 448 * Optionally sets the weight of a shortcut, which will be used by the launcher for sorting. 449 * The larger the weight, the more "important" a shortcut is. 452 public Builder setWeight(int weight) { argument 453 mWeight = weight; 588 * Return the weight of a shortcut, which will be used by Launcher for sorting. 589 * The larger the weight, the more "important" a shortcut is. 851 sb.append(", weight="); 887 int weight, PersistableBundle extras, long lastChangedTimestamp, 899 mWeight = weight; 883 ShortcutInfo( @serIdInt int userId, String id, String packageName, ComponentName activityComponent, Icon icon, String title, String text, Set<String> categories, Intent intent, PersistableBundle intentPersistableExtras, int weight, PersistableBundle extras, long lastChangedTimestamp, int flags, int iconResId, String bitmapPath) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | ActivityChooserModel.java | 127 // This cannot be done by a simple comparator since an Activity weight 188 * Attribute for the choice weight. 190 private static final String ATTRIBUTE_WEIGHT = "weight"; 209 * Default weight for a choice record. 537 * historical record with weight high enough that this activity will 539 * will eventually change if not used. Also the weight of the record for 552 final float weight; 554 // Add a record with weight enough to boost the chosen at the top. 555 weight = oldDefaultActivity.weight 798 public final float weight; field in class:ActivityChooserModel.HistoricalRecord 807 HistoricalRecord(String activityName, long time, float weight) argument 818 HistoricalRecord(ComponentName activityName, long time, float weight) argument 887 public float weight; field in class:ActivityChooserModel.ActivityResolveInfo [all...] |
H A D | LinearLayout.java | 46 * grow to fill up any remaining space in the layout by setting the <em>weight</em> member of 475 * When true, all children with a weight will be considered having 479 * @return True to measure children with a weight using the minimum 489 * When set to true, all children with a weight will be considered having 495 * @param enabled True to measure children with a weight using the 612 * @return A number greater than 0.0f if the weight sum is defined, or 613 * a number lower than or equals to 0.0f if not weight sum is 629 * to 0.0f if the weight sum should be computed from the children's 733 totalWeight += lp.weight; 735 final boolean useExcessSpace = lp.height == 0 && lp.weight > 1896 public float weight; field in class:LinearLayout.LayoutParams 1953 LayoutParams(int width, int height, float weight) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActivityChooserModel.java | 120 // This cannot be done by a simple comparator since an Activity weight 181 * Attribute for the choice weight. 183 private static final String ATTRIBUTE_WEIGHT = "weight"; 202 * Default weight for a choice record. 524 * historical record with weight high enough that this activity will 526 * will eventually change if not used. Also the weight of the record for 539 final float weight; 541 // Add a record with weight enough to boost the chosen at the top. 542 weight = oldDefaultActivity.weight 774 public final float weight; field in class:ActivityChooserModel.HistoricalRecord 783 HistoricalRecord(String activityName, long time, float weight) argument 794 HistoricalRecord(ComponentName activityName, long time, float weight) argument 863 public float weight; field in class:ActivityChooserModel.ActivityResolveInfo [all...] |
H A D | LinearLayoutCompat.java | 44 * grow to fill up any remaining space in the layout by setting the <em>weight</em> member of 390 * When true, all children with a weight will be considered having 394 * @return True to measure children with a weight using the minimum 402 * When set to true, all children with a weight will be considered having 408 * @param enabled True to measure children with a weight using the 518 * @return A number greater than 0.0f if the weight sum is defined, or 519 * a number lower than or equals to 0.0f if not weight sum is 535 * to 0.0f if the weight sum should be computed from the children's 629 totalWeight += lp.weight; 631 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 1762 public float weight; field in class:LinearLayoutCompat.LayoutParams 1803 LayoutParams(int width, int height, float weight) argument [all...] |
/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/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | FusedPrintersProvider.java | 712 * Sort the favorite printers by weight. If a printer is in the list multiple times for 713 * different locations, all instances are considered to have the accumulative weight. The 738 // Aggregate weight for the same printer 739 record.weight += currentWeight; 759 * A set of printers with the same ID and the weight associated with them during 768 /** The weight associated with the printers */ 769 public float weight; field in class:FusedPrintersProvider.PersistenceManager.PrinterRecord 779 * Compare two records by weight. 783 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight); [all...] |