/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SlidingPaneLayout.java | 86 * When views do not overlap weight behaves as it does in a LinearLayout.</p> 88 * <p>When views do overlap, weight on a slideable pane indicates that the pane should be 517 if (lp.weight > 0) { 518 weightSum += lp.weight; 520 // If we have no width, weight is the only contributor to the final size. 521 // Measure this view on the weight pass only. 561 // Resolve weight and make sure non-sliding panels are smaller than the full screen. 578 final boolean skippedFirstPass = lp.width == 0 && lp.weight > 0; 581 if (lp.width < 0 && (measuredWidth > fixedPanelWidthLimit || lp.weight > 0)) { 606 } else if (lp.weight > 1414 public float weight = 0; field in class:SlidingPaneLayout.LayoutParams [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/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. 142 * had never been added to it. GONE views are taken to have zero weight during excess space 1204 ((spec.weight == 0) ? 0 : getDeltas()[i]); 1598 if (spec.weight != 0) { 1629 float weight = spec.weight; 2427 final float weight; field in class:GridLayout.Spec 2429 Spec(boolean startDefined, Interval span, Alignment alignment, float weight) argument 2436 Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) argument 2517 spec(int start, int size, Alignment alignment, float weight) argument 2528 spec(int start, Alignment alignment, float weight) argument 2541 spec(int start, int size, float weight) argument 2551 spec(int start, float weight) argument [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/support/design/src/android/support/design/widget/ |
H A D | AppBarLayout.java | 652 public LayoutParams(int width, int height, float weight) { argument 653 super(width, height, weight);
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.cpp | 719 /* TODO: for now we're simplifying the progress calculation by using the timeout as the weight. 720 * It's a good approximation for most cases, except when calling dumpsys, where its weight 722 int weight = timeout_seconds; local 811 if (weight > 0) { 812 update_progress(weight); 1192 MYLOGD("Adjusting total weight from %d to %d\n", weight_total, new_total); 1198 MYLOGE("Could not update max weight by setting system property %s to %s: %d\n",
|
/frameworks/data-binding/prebuilds/1.0-rc0/ |
H A D | databinding-studio-bundle.jar | META-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ... |
/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/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/tools/layoutlib/bridge/src/android/graphics/ |
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
|
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...] |
/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...] |
/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/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/graphics/java/android/graphics/ |
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
|
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...] |
/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/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/libs/hwui/tests/macrobench/ |
H A D | TestSceneRunner.cpp | 44 ModifiedMovingAverage(int weight) : mWeight(weight) {} argument
|
/frameworks/base/core/jni/android/graphics/ |
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
|
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);
|