/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 | 112 int weight; local 114 if (analyzeStyle(os2Data.get(), os2Size, &weight, &italic)) { 115 //ALOGD("analyzed weight = %d, italic = %s", weight, italic ? "true" : "false"); 116 FontStyle style(weight, italic); 146 // If desired weight is semibold or darker, and 2 or more grades
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Typeface.cpp | 44 static jlong Typeface_createWeightAlias(JNIEnv* env, jobject, jlong familyHandle, jint weight) { argument 46 TypefaceImpl* face = TypefaceImpl_createWeightAlias(family, weight);
|
H A D | FontFamily.cpp | 70 jstring path, jint weight, jboolean isItalic) { 80 fontFamily->addFont(minikinFont, FontStyle(weight / 100, isItalic)); 69 FontFamily_addFontWeightStyle(JNIEnv* env, jobject clazz, jlong familyPtr, jstring path, jint weight, jboolean isItalic) argument
|
H A D | TypefaceImpl.cpp | 42 // Resolve the 1..9 weight based on base weight and bold flag 44 int weight = typeface->fBaseWeight / 100; local 46 weight += 3; 48 if (weight > 9) { 49 weight = 9; 52 typeface->fStyle = FontStyle(weight, italic); 124 TypefaceImpl* TypefaceImpl_createWeightAlias(TypefaceImpl* src, int weight) { argument 131 result->fBaseWeight = weight;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | FontFamily.java | 65 public boolean addFontWeightStyle(String path, int weight, boolean style) { argument 66 return nAddFontWeightStyle(mNativePtr, path, weight, style); 77 int weight, boolean isItalic); 76 nAddFontWeightStyle(long nativeFamily, String path, int weight, boolean isItalic) argument
|
H A D | FontListParser.java | 46 Font(String fontName, int weight, boolean isItalic) { argument 48 this.weight = weight; 52 public int weight; field in class:FontListParser.Font 59 public int weight; field in class:FontListParser.Alias 115 String weightStr = parser.getAttributeValue(null, "weight"); 116 int weight = weightStr == null ? 400 : Integer.parseInt(weightStr); 120 fonts.add(new Font(fullFilename, weight, isItalic)); 133 String weightStr = parser.getAttributeValue(null, "weight"); 135 alias.weight [all...] |
H A D | Typeface.java | 265 fontFamily.addFontWeightStyle(font.fontName, font.weight, font.isItalic); 315 int weight = alias.weight; 316 if (weight != 400) { 317 newFace = new Typeface(nativeCreateWeightAlias(base.native_instance, weight)); 389 private static native long nativeCreateWeightAlias(long native_instance, int weight); argument
|
/frameworks/base/libs/hwui/ |
H A D | Interpolator.cpp | 109 float ipart, weight; local 110 weight = modff(lutpos, &ipart); 116 " i1=%d, i2=%d, input=%f, lutpos=%f, size=%zu, values=%p, ipart=%f, weight=%f", 117 i1, i2, input, lutpos, mSize, mValues, ipart, weight); 122 return MathUtils::lerp(v1, v2, weight);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Typeface_Delegate.java | 86 // Calculate the required weight based on style and weight of this typeface. 87 int weight = mWeight + ((mStyle & Font.BOLD) == 0 ? 0 : FontFamily_Delegate.BOLD_FONT_WEIGHT_DELTA); 88 if (weight > 900) { 89 weight = 900; 96 Font font = ffd.getFont(weight, isItalic); 110 Font font2 = ffd2.getFont(weight, isItalic); 160 /*package*/ static long nativeCreateWeightAlias(long native_instance, int weight) { argument 169 new Typeface_Delegate(delegate.mFontFamilies, delegate.mStyle, weight); 214 public Typeface_Delegate(@NonNull FontFamily_Delegate[] fontFamilies, int style, int weight) { argument [all...] |
H A D | FontFamily_Delegate.java | 265 final int weight, final boolean isItalic) { 272 delegate.addFont(path, weight, isItalic); 277 return delegate.addFont(path, weight, isItalic); 303 private boolean addFont(@NonNull String path, int weight, boolean isItalic) { argument 316 fontInfo.mWeight = weight; 323 int weight = fontInfo.mWeight; 328 if (font.mWeight == weight && font.mIsItalic == isItalic) { 264 nAddFontWeightStyle(long nativeFamily, final String path, final int weight, final boolean isItalic) argument
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | ParameterUtils.java | 58 /** The default normalized area uses the default normalized rectangle with a weight=1 */ 61 /*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/android/widget/ |
H A D | ActivityChooserModel.java | 126 // This cannot be done by a simple comparator since an Activity weight 187 * Attribute for the choice weight. 189 private static final String ATTRIBUTE_WEIGHT = "weight"; 208 * Default weight for a choice record. 536 * historical record with weight high enough that this activity will 538 * will eventually change if not used. Also the weight of the record for 551 final float weight; 553 // Add a record with weight enough to boost the chosen at the top. 554 weight = oldDefaultActivity.weight 797 public final float weight; field in class:ActivityChooserModel.HistoricalRecord 806 HistoricalRecord(String activityName, long time, float weight) argument 817 HistoricalRecord(ComponentName activityName, long time, float weight) argument 886 public float weight; field in class:ActivityChooserModel.ActivityResolveInfo [all...] |
H A D | LinearLayout.java | 44 * grow to fill up any remaining space in the layout by setting the <em>weight</em> member of 449 * When true, all children with a weight will be considered having 453 * @return True to measure children with a weight using the minimum 463 * When set to true, all children with a weight will be considered having 469 * @param enabled True to measure children with a weight using the 585 * @return A number greater than 0.0f if the weight sum is defined, or 586 * a number lower than or equals to 0.0f if not weight sum is 602 * to 0.0f if the weight sum should be computed from the children's 697 totalWeight += lp.weight; 699 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 1835 public float weight; field in class:LinearLayout.LayoutParams 1892 LayoutParams(int width, int height, float weight) argument [all...] |
H A D | GridLayout.java | 107 * As of API 21, GridLayout's distribution of excess space accomodates the principle of weight. 115 * If either a weight or alignment were defined along a given axis then the component 116 * is taken as <em>flexible</em> in that direction. If no weight or alignment was set, 127 * weight or a gravity. To prevent a column from stretching, ensure that one of the components 128 * in the column does not define a weight or a gravity. 1325 int size = (spec.weight == 0) ? 1717 if (spec.weight != 0) { 1758 float weight = spec.weight; 1759 if (weight ! 2555 final float weight; field in class:GridLayout.Spec 2557 Spec(boolean startDefined, Interval span, Alignment alignment, float weight) argument 2564 Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) argument 2635 spec(int start, int size, Alignment alignment, float weight) argument 2646 spec(int start, Alignment alignment, float weight) argument 2659 spec(int start, int size, float weight) argument 2669 spec(int start, float weight) argument [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | FusedPrintersProvider.java | 449 // Aggregate weight for the same printer 455 record.weight += currentWeight; 478 public float weight; field in class:FusedPrintersProvider.PersistenceManager.PrinterRecord 486 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ActivityChooserModel.java | 123 // This cannot be done by a simple comparator since an Activity weight 184 * Attribute for the choice weight. 186 private static final String ATTRIBUTE_WEIGHT = "weight"; 205 * Default weight for a choice record. 527 * historical record with weight high enough that this activity will 529 * will eventually change if not used. Also the weight of the record for 542 final float weight; 544 // Add a record with weight enough to boost the chosen at the top. 545 weight = oldDefaultActivity.weight 777 public final float weight; field in class:ActivityChooserModel.HistoricalRecord 786 HistoricalRecord(String activityName, long time, float weight) argument 797 HistoricalRecord(ComponentName activityName, long time, float weight) argument 866 public float weight; field in class:ActivityChooserModel.ActivityResolveInfo [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | Parameters.h | 100 int weight; member in struct:android::camera2::Parameters::Area 102 Area(int left, int top, int right, int bottom, int weight): argument 104 weight(weight) {}
|
/frameworks/base/core/java/android/speech/srec/ |
H A D | Recognizer.java | 199 * @param weight weight to give the word. One is normal, 50 is low. 202 public void addWordToSlot(String slot, String word, String pron, int weight, String tag) { argument 203 SR_GrammarAddWordToSlot(mGrammar, slot, word, pron, weight, tag); 623 String ruleName, int weight); 662 String word, String pronunciation, int weight, String tag); 665 // const struct SR_Nametag_t* nametag, int weight, String tag); 622 SR_RecognizerActivateRule(long recognizer, long grammar, String ruleName, int weight) argument 661 SR_GrammarAddWordToSlot(long grammar, String slot, String word, String pronunciation, int weight, String tag) argument
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | LinearLayoutCompat.java | 46 * grow to fill up any remaining space in the layout by setting the <em>weight</em> member of 392 * When true, all children with a weight will be considered having 396 * @return True to measure children with a weight using the minimum 404 * When set to true, all children with a weight will be considered having 410 * @param enabled True to measure children with a weight using the 520 * @return A number greater than 0.0f if the weight sum is defined, or 521 * a number lower than or equals to 0.0f if not weight sum is 537 * to 0.0f if the weight sum should be computed from the children's 631 totalWeight += lp.weight; 633 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 1764 public float weight; field in class:LinearLayoutCompat.LayoutParams 1805 LayoutParams(int width, int height, float weight) argument [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SlidingPaneLayout.java | 82 * When views do not overlap weight behaves as it does in a LinearLayout.</p> 84 * <p>When views do overlap, weight on a slideable pane indicates that the pane should be 511 if (lp.weight > 0) { 512 weightSum += lp.weight; 514 // If we have no width, weight is the only contributor to the final size. 515 // Measure this view on the weight pass only. 555 // Resolve weight and make sure non-sliding panels are smaller than the full screen. 572 final boolean skippedFirstPass = lp.width == 0 && lp.weight > 0; 575 if (lp.width < 0 && (measuredWidth > fixedPanelWidthLimit || lp.weight > 0)) { 600 } else if (lp.weight > 1400 public float weight = 0; field in class:SlidingPaneLayout.LayoutParams [all...] |
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
H A D | GridLayout.java | 104 * GridLayout's distribution of excess space accommodates the principle of weight. 111 * If either a weight or alignment were defined along a given axis then the component 112 * is taken as <em>flexible</em> in that direction. If no weight or alignment was set, 123 * weight or a gravity. To prevent a column from stretching, ensure that one of the components 124 * in the column does not define a weight or a gravity. 1202 int size = (spec.weight == 0) ? 1594 if (spec.weight != 0) { 1635 float weight = spec.weight; 1636 if (weight ! 2430 final float weight; field in class:GridLayout.Spec 2432 Spec(boolean startDefined, Interval span, Alignment alignment, float weight) argument 2439 Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) argument 2510 spec(int start, int size, Alignment alignment, float weight) argument 2521 spec(int start, Alignment alignment, float weight) argument 2534 spec(int start, int size, float weight) argument 2544 spec(int start, float weight) argument [all...] |
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 1978 * <p>Each Area consists of a rectangle specifying its bounds, and a weight 1986 * <p>The weight must range from 1 to 1000, and represents a weight for 1988 * the same weight as a smaller area will have more effect in the 2005 * Create an area with specified rectangle and weight. 2008 * @param weight the weight of the area. 2010 public Area(Rect rect, int weight) { argument 2012 this.weight = weight; 2057 public int weight; field in class:Camera.Area [all...] |