Searched defs:weight (Results 26 - 32 of 32) sorted by last modified time

12

/frameworks/base/core/java/android/content/pm/
H A DShortcutInfo.java448 * 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/hardware/
H A DCamera.java1986 * <p>Each Area consists of a rectangle specifying its bounds, and a weight
1994 * <p>The weight must range from 1 to 1000, and represents a weight for
1996 * the same weight as a smaller area will have more effect in the
2013 * Create an area with specified rectangle and weight.
2016 * @param weight the weight of the area.
2018 public Area(Rect rect, int weight) { argument
2020 this.weight = weight;
2065 public int weight; field in class:Camera.Area
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DParameterUtils.java56 /** 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/base/core/java/android/widget/
H A DActivityChooserModel.java127 // 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 DGridLayout.java105 * As of API 21, GridLayout's distribution of excess space accomodates the principle of weight.
113 * If either a weight or alignment were defined along a given axis then the component
114 * is taken as <em>flexible</em> in that direction. If no weight or alignment was set,
125 * weight or a gravity. To prevent a column from stretching, ensure that one of the components
126 * in the column does not define a weight or a gravity.
144 * had never been added to it. GONE views are taken to have zero weight during excess space
1309 ((spec.weight == 0) ? 0 : getDeltas()[i]);
1703 if (spec.weight != 0) {
1734 float weight = spec.weight;
2533 final float weight; field in class:GridLayout.Spec
2535 Spec(boolean startDefined, Interval span, Alignment alignment, float weight) argument
2542 Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) argument
2623 spec(int start, int size, Alignment alignment, float weight) argument
2634 spec(int start, Alignment alignment, float weight) argument
2647 spec(int start, int size, float weight) argument
2657 spec(int start, float weight) argument
[all...]
H A DLinearLayout.java46 * 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/av/services/camera/libcameraservice/api1/client2/
H A DParameters.h102 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) {}

Completed in 157 milliseconds

12