/frameworks/ml/nn/runtime/test/specs/ |
H A D | lsh_projection.mod.py | 26 weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) variable 29 model = model.Operation("LSH_PROJECTION", hhash, lookup, weight, 32 #TODO: weight should be a constant, too. 35 weight: [0.12, 0.34, 0.56]
|
H A D | lsh_projection_2.mod.py | 26 weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) variable 29 model = model.Operation("LSH_PROJECTION", hhash, lookup, weight, 32 # Omit weight, since this is a sparse projection, for which the optional weight 36 weight: [],
|
H A D | lsh_projection_weights_as_inputs.mod.py | 25 weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) variable 28 model = model.Operation("LSH_PROJECTION", hhash, lookup, weight, type_param).To(output) 32 weight: [0.12, 0.34, 0.56],
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Typeface.cpp | 43 static SkTypeface::Style computeSkiaStyle(int weight, bool italic) { argument 45 if (weight >= SkFontStyle::kSemiBold_Weight) { 52 static minikin::FontStyle computeMinikinStyle(int weight, bool italic) { argument 53 // TODO: Better to use raw base weight value for font selection instead of dividing by 100. 54 const int minikinWeight = uirenderer::MathUtils::clamp((weight + 50) / 100, 1, 10); 58 // Resolve the relative weight from the baseWeight and target style. 60 int weight = baseWeight; local 62 weight += 300; 65 return computeMinikinStyle(weight, italic); 87 Typeface* Typeface::createAbsolute(Typeface* base, int weight, boo argument 120 createWithDifferentBaseWeight(Typeface* src, int weight) argument 132 createFromFamilies( std::vector<std::shared_ptr<minikin::FontFamily>>&& families, int weight, int italic) argument [all...] |
H A D | Typeface.h | 30 // This indicates that the weight or italic information should be resolved by OS/2 table. 47 // style. There is a base weight concept which is used for calculating relative style from an 50 // For example, if the base Typeface has a base weight of 400 and the desired style is bold, the 51 // resulting Typeface renders the text with a weight of 700. This function doesn't change the 52 // base weight, so even if you create a new Typeface from the bold Typeface specifying bold on 53 // it again, the text is still rendered with a weight of 700. 54 // You can create another base weight Typeface from an existing Typeface with 56 // a specified base weight. 57 // The createAbsolute method creates a new Typeface ignoring the base weight. 59 // Typeface* base = resolveDefault(nullptr); // Usually this has a weight o [all...] |
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Typeface_Delegate.java | 92 // Calculate the required weight based on style and weight of this typeface. 93 int weight = mWeight + 50 + 95 if (weight > 1000) { 96 weight = 1000; 97 } else if (weight < 100) { 98 weight = 100; 105 Font font = ffd.getFont(weight, isItalic); 119 Font font2 = ffd2.getFont(weight, isItalic); 170 int weight, boolea 169 nativeCreateFromTypefaceWithExactStyle(long native_instance, int weight, boolean italic) argument 203 nativeCreateWeightAlias(long native_instance, int weight) argument 217 nativeCreateFromArray(long[] familyArray, int weight, int italic) argument 284 Typeface_Delegate(@onNull FontFamily_Delegate[] fontFamilies, int style, int weight) argument [all...] |
H A D | FontFamily_Delegate.java | 254 FontVariationAxis[] axes, int weight, int italic) { 260 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); 294 int weight, int isItalic) { 301 int ttcIndex, int weight, int isItalic) { 311 static boolean addFont(long builderPtr, final String path, final int weight, argument 317 delegate.mPostInitRunnables.add(() -> delegate.addFont(path, weight, italic)); 320 return delegate.addFont(path, weight, italic); 327 int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) { 368 if (weight == RESOLVE_BY_FONT_TABLE) { 371 fontInfo.mWeight = weight; 253 addFont(FontFamily thisFontFamily, String path, int ttcIndex, FontVariationAxis[] axes, int weight, int italic) argument 293 nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument 300 nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument 326 nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) argument 431 addFont(final String path, int ttcIndex, int weight, int italic) argument 444 addFont(@onNull String path, int weight, int italic) argument [all...] |
/frameworks/ml/nn/runtime/test/generated/models/ |
H A D | lsh_projection_weights_as_inputs.model.cpp | 11 auto weight = model->addOperand(&type2); local 15 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output}); 18 {hash, lookup, weight, type_param},
|
H A D | lsh_projection.model.cpp | 11 auto weight = model->addOperand(&type2); local 19 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output}); 22 {lookup, weight},
|
H A D | lsh_projection_2.model.cpp | 11 auto weight = model->addOperand(&type2); local 19 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output}); 22 {lookup, weight},
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | HistoryEvaluator.java | 62 sumValue += data.evaluation * data.weight; 63 sumWeight += data.weight; 91 list.get(i).weight *= factor; 95 while (!list.isEmpty() && isZero(list.get(0).weight)) { 105 * For each stroke it holds its initial value and the current weight. Initially the 106 * weight is set to 1.0 110 public float weight; field in class:HistoryEvaluator.Data 114 weight = 1.0f;
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
H A D | ButtonBarLayout.java | 88 child.setTag(R.id.suw_original_weight, childParams.weight); 89 childParams.weight = 0; 91 Float weight = (Float) child.getTag(R.id.suw_original_weight); 92 if (weight != null) { 93 childParams.weight = weight;
|
/frameworks/support/core-ui/java/android/support/v4/view/animation/ |
H A D | LookupTableInterpolator.java | 51 float weight = diff / mStepSize; 54 return mValues[position] + weight * (mValues[position + 1] - mValues[position]);
|
/frameworks/minikin/libs/minikin/ |
H A D | FontUtils.h | 24 bool analyzeStyle(const uint8_t* os2_data, size_t os2_size, int* weight, bool* italic);
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/vo/ |
H A D | AvgWeightByAge.java | 34 public AvgWeightByAge(int age, float weight) { argument 36 mWeight = weight; 51 public void setWeight(float weight) { argument 52 mWeight = weight;
|
/frameworks/ml/nn/common/operations/ |
H A D | LSHProjection.cpp | 61 RunTimeOperandInfo *weight = GetInput(operation, operands, kWeightTensor); local 63 NN_CHECK_EQ(NumDimensions(weight), 1); 64 NN_CHECK_EQ(SizeOfDimension(weight, 0), SizeOfDimension(input, 0)); 79 // Compute sign bit of dot product of hash(seed, input) and weight. 85 const RunTimeOperandInfo* weight, float seed) { 103 if (weight->lifetime == OperandLifeTime::NO_VALUE) { 106 score += reinterpret_cast<float*>(weight->buffer)[i] * running_value; 115 const RunTimeOperandInfo* weight, int32_t* out_buf) { 122 int bit = running_sign_bit(input, weight, seed); 131 const RunTimeOperandInfo* weight, int32_ 84 running_sign_bit(const RunTimeOperandInfo* input, const RunTimeOperandInfo* weight, float seed) argument 113 SparseLshProjection(const RunTimeOperandInfo* hash, const RunTimeOperandInfo* input, const RunTimeOperandInfo* weight, int32_t* out_buf) argument 129 DenseLshProjection(const RunTimeOperandInfo* hash, const RunTimeOperandInfo* input, const RunTimeOperandInfo* weight, int32_t* out_buf) argument [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | InstanceLearner.java | 60 double weight; 62 weight = Double.MAX_VALUE; 64 weight = 1 / distance; 67 if (score == null || weight > score) { 68 label2score.put(sample.label, weight);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | FontFamily.java | 92 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, argument 106 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic); 114 int weight, int italic) { 123 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic); 132 * @param weight The weight of the font. If 0 is given, the weight and italic will be resolved 134 * @param isItalic Whether this font is italic. If the weight is set to 0, this will be resolved 139 boolean isAsset, int ttcIndex, int weight, int isItalic, 149 return nAddFontFromAssetManager(mBuilderPtr, mgr, path, cookie, isAsset, ttcIndex, weight, 113 addFontFromBuffer(ByteBuffer font, int ttcIndex, FontVariationAxis[] axes, int weight, int italic) argument 138 addFontFromAssetManager(AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic, FontVariationAxis[] axes) argument 192 nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument 194 nAddFontWeightStyle(long builderPtr, ByteBuffer font, int ttcIndex, int weight, int isItalic) argument 196 nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableMeteringRectangle.java | 34 /** (xmin, ymin, xmax, ymax, weight) */ 47 int weight = value.getMeteringWeight(); 53 buffer.putInt(weight); 62 int weight = buffer.getInt(); 67 return new MeteringRectangle(xMin, yMin, width, height, weight);
|
/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...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActivityChooserModel.java | 119 // This cannot be done by a simple comparator since an Activity weight 180 * Attribute for the choice weight. 182 static final String ATTRIBUTE_WEIGHT = "weight"; 201 * Default weight for a choice record. 523 * historical record with weight high enough that this activity will 525 * will eventually change if not used. Also the weight of the record for 538 final float weight; 540 // Add a record with weight enough to boost the chosen at the top. 541 weight = oldDefaultActivity.weight 773 public final float weight; field in class:ActivityChooserModel.HistoricalRecord 782 HistoricalRecord(String activityName, long time, float weight) argument 793 HistoricalRecord(ComponentName activityName, long time, float weight) argument 862 public float weight; field in class:ActivityChooserModel.ActivityResolveInfo [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NoisyVelocityTracker.java | 74 float weight = 10f; 96 mVX += weight * dx / dt; 97 mVY += weight * dy / dt; 98 totalweight += weight; 99 weight *= DECAY;
|
/frameworks/minikin/include/minikin/ |
H A D | FontFamily.h | 40 FontStyle() : FontStyle(0 /* variant */, 4 /* weight */, false /* italic */) {} 41 FontStyle(int weight, bool italic) : FontStyle(0 /* variant */, weight, italic) {} argument 43 : FontStyle(langListId, 0 /* variant */, 4 /* weight */, false /* italic */) {} 45 FontStyle(int variant, int weight, bool italic); 46 FontStyle(uint32_t langListId, int variant, int weight, bool italic); 68 static uint32_t pack(int variant, int weight, bool italic); 130 static bool analyzeStyle(const std::shared_ptr<MinikinFont>& typeface, int* weight,
|
/frameworks/base/core/java/android/text/ |
H A D | FontConfig.java | 72 int weight, boolean isItalic) { 76 mWeight = weight; 102 * Returns the weight value for this font. 138 public Alias(@NonNull String name, @NonNull String toName, int weight) { argument 141 mWeight = weight; 159 * Returns the weight associated with this alias. 71 Font(@onNull String fontName, int ttcIndex, @NonNull FontVariationAxis[] axes, int weight, boolean isItalic) argument
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | Target.java | 200 * Returns the weight of importance that this target places on a color's saturation within 203 * <p>The larger the weight, relative to the other weights, the more important that a color 213 * Returns the weight of importance that this target places on a color's lightness within 216 * <p>The larger the weight, relative to the other weights, the more important that a color 226 * Returns the weight of importance that this target places on a color's population within 229 * <p>The larger the weight, relative to the other weights, the more important that a 260 float weight = mWeights[i]; 261 if (weight > 0) { 262 sum += weight; 369 * Set the weight o 379 setSaturationWeight(@loatRangefrom = 0) float weight) argument 395 setLightnessWeight(@loatRangefrom = 0) float weight) argument 410 setPopulationWeight(@loatRangefrom = 0) float weight) argument [all...] |