/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 114 * As of API 21, GridLayout's distribution of excess space accomodates the principle of weight. 122 * If either a weight or alignment were defined along a given axis then the component 123 * is taken as <em>flexible</em> in that direction. If no weight or alignment was set, 134 * weight or a gravity. To prevent a column from stretching, ensure that one of the components 135 * in the column does not define a weight or a gravity. 153 * had never been added to it. GONE views are taken to have zero weight during excess space 1319 ((spec.weight == 0) ? 0 : getDeltas()[i]); 1713 if (spec.weight != 0) { 1744 float weight = spec.weight; 2543 final float weight; field in class:GridLayout.Spec 2545 Spec(boolean startDefined, Interval span, Alignment alignment, float weight) argument 2552 Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) argument 2633 spec(int start, int size, Alignment alignment, float weight) argument 2644 spec(int start, Alignment alignment, float weight) argument 2657 spec(int start, int size, float weight) argument 2667 spec(int start, float weight) argument [all...] |
H A D | TableLayout.java | 724 weight = ((TableLayout.LayoutParams) source).weight;
|
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
H A D | GridLayout.java | 110 * GridLayout's distribution of excess space accommodates the principle of weight. 117 * If either a weight or alignment were defined along a given axis then the component 118 * is taken as <em>flexible</em> in that direction. If no weight or alignment was set, 129 * weight or a gravity. To prevent a column from stretching, ensure that one of the components 130 * in the column does not define a weight or a gravity. 148 * had never been added to it. GONE views are taken to have zero weight during excess space 1210 ((spec.weight == 0) ? 0 : getDeltas()[i]); 1604 if (spec.weight != 0) { 1635 float weight = spec.weight; 2433 final float weight; field in class:GridLayout.Spec 2435 Spec(boolean startDefined, Interval span, Alignment alignment, float weight) argument 2442 Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) argument 2523 spec(int start, int size, Alignment alignment, float weight) argument 2534 spec(int start, Alignment alignment, float weight) argument 2547 spec(int start, int size, float weight) argument 2557 spec(int start, 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...] |
/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/base/libs/hwui/tests/macrobench/ |
H A D | TestSceneRunner.cpp | 45 explicit ModifiedMovingAverage(int weight) : mWeight(weight) {} argument
|
/frameworks/base/packages/ExtServices/src/android/ext/services/resolver/ |
H A D | LRResolverRankerService.java | 145 float weight = mFeatureWeights.getOrDefault(featureName, 0.0f); 146 sum += weight * target.valueAt(i);
|
/frameworks/support/compat/java/android/support/v4/graphics/ |
H A D | TypefaceCompatApi24Impl.java | 109 int weight, boolean style) { 112 family, buffer, ttcIndex, null /* variation axis */, weight, style); 108 addFontWeightStyle(Object family, ByteBuffer buffer, int ttcIndex, int weight, boolean style) argument
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | SlidingPaneLayout.java | 83 * When views do not overlap weight behaves as it does in a LinearLayout.</p> 85 * <p>When views do overlap, weight on a slideable pane indicates that the pane should be 514 if (lp.weight > 0) { 515 weightSum += lp.weight; 517 // If we have no width, weight is the only contributor to the final size. 518 // Measure this view on the weight pass only. 558 // Resolve weight and make sure non-sliding panels are smaller than the full screen. 575 final boolean skippedFirstPass = lp.width == 0 && lp.weight > 0; 578 if (lp.width < 0 && (measuredWidth > fixedPanelWidthLimit || lp.weight > 0)) { 603 } else if (lp.weight > 1390 public float weight = 0; field in class:SlidingPaneLayout.LayoutParams [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | AutomaticBrightnessController.java | 51 // This provides a bit of prediction, as well as ensures that the weight for the last sample is 52 // non-zero, which in turn ensures that the total weight is non-zero. 400 float weight = calculateWeight(startTime, endTime); 405 (endTime) + "]: lux=" + lux + ", weight=" + weight); 407 totalWeight += weight; 408 sum += mAmbientLightRingBuffer.getLux(i) * weight;
|
/frameworks/support/compat/java/android/support/v4/provider/ |
H A D | FontsContractCompat.java | 109 * should have this column populated with the int weight for the resulting font. This value 110 * should be between 100 and 900. The most common values are 400 for regular weight and 700 111 * for bold weight. 292 * @param weight An integer that indicates the font weight. 299 @IntRange(from = 1, to = 1000) int weight, 303 mWeight = weight; 323 * Returns the weight value for this font. 805 int weight = weightColumnIndex != -1 ? cursor.getInt(weightColumnIndex) : 400; 808 result.add(new FontInfo(fileUri, ttcIndex, weight, itali 298 FontInfo(@onNull Uri uri, @IntRange(from = 0) int ttcIndex, @IntRange(from = 1, to = 1000) int weight, boolean italic, int resultCode) argument [all...] |
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 2050 * <p>Each Area consists of a rectangle specifying its bounds, and a weight 2058 * <p>The weight must range from 1 to 1000, and represents a weight for 2060 * the same weight as a smaller area will have more effect in the 2077 * Create an area with specified rectangle and weight. 2080 * @param weight the weight of the area. 2082 public Area(Rect rect, int weight) { argument 2084 this.weight = weight; 2129 public int weight; field in class:Camera.Area [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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NavigationBarInflaterView.java | 253 ((LinearLayout.LayoutParams) layoutParams).weight); 289 float weight = Float.parseFloat(sizeStr.substring(0, sizeStr.indexOf(WEIGHT_SUFFIX))); 299 frame.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, weight));
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ListItemFactory.java | 99 lp.weight = 0.33f;
|
/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/SystemUI/src/com/android/systemui/qs/ |
H A D | QuickQSPanel.java | 190 lp.weight = 1;
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
H A D | ButtonFooterMixinTest.java | 112 assertEquals("Space should have weight of 1", 113 1f, ((LinearLayout.LayoutParams) space.getLayoutParams()).weight, 0.001);
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/dao/ |
H A D | UserDao.java | 195 @Query("UPDATE User set mWeight = :weight WHERE mId IN (:ids) AND mAge == :age") 196 public abstract int updateByAgeAndIds(float weight, int age, List<Integer> ids); argument
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | GuidedStepFragment.java | 1132 lp.weight = 0; 1135 // when there are two actions panel, we need adjust the weight of action to 1142 float weight = typedValue.getFloat(); 1145 lp.weight = weight;
|
H A D | GuidedStepSupportFragment.java | 1129 lp.weight = 0; 1132 // when there are two actions panel, we need adjust the weight of action to 1139 float weight = typedValue.getFloat(); 1142 lp.weight = weight;
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 316 source.weight);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | TabLayout.java | 993 lp.weight = 1; 996 lp.weight = 0; 1893 if (lp.width != largestTabWidth || lp.weight != 0) { 1895 lp.weight = 0;
|
H A D | AppBarLayout.java | 697 public LayoutParams(int width, int height, float weight) { argument 698 super(width, height, weight);
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | AlertController.java | 654 ((LinearLayoutCompat.LayoutParams) customPanel.getLayoutParams()).weight = 0; 810 params.weight = 0.5f;
|