/frameworks/base/libs/hwui/hwui/ |
D | Typeface.cpp | 43 static SkTypeface::Style computeSkiaStyle(int weight, bool italic) { in computeSkiaStyle() argument 45 if (weight >= SkFontStyle::kSemiBold_Weight) { in computeSkiaStyle() 52 static minikin::FontStyle computeMinikinStyle(int weight, bool italic) { in computeMinikinStyle() argument 54 const int minikinWeight = uirenderer::MathUtils::clamp((weight + 50) / 100, 1, 10); in computeMinikinStyle() 60 int weight = baseWeight; in computeRelativeStyle() local 62 weight += 300; in computeRelativeStyle() 65 return computeMinikinStyle(weight, italic); in computeRelativeStyle() 87 Typeface* Typeface::createAbsolute(Typeface* base, int weight, bool italic) { in createAbsolute() argument 93 result->fSkiaStyle = computeSkiaStyle(weight, italic); in createAbsolute() 94 result->fStyle = computeMinikinStyle(weight, italic); in createAbsolute() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Typeface_Delegate.java | 93 int weight = mWeight + 50 + in getFonts() local 95 if (weight > 1000) { in getFonts() 96 weight = 1000; in getFonts() 97 } else if (weight < 100) { in getFonts() 98 weight = 100; in getFonts() 105 Font font = ffd.getFont(weight, isItalic); in getFonts() 119 Font font2 = ffd2.getFont(weight, isItalic); in getFonts() 170 int weight, boolean italic) { 179 int style = weight >= 600 ? (italic ? Typeface.BOLD_ITALIC : Typeface.BOLD) : 181 … return sManager.addNewDelegate(new Typeface_Delegate(delegate.mFontFamilies, style, weight)); [all …]
|
D | FontFamily_Delegate.java | 254 FontVariationAxis[] axes, int weight, int italic) { in addFont() argument 260 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); in addFont() 294 int weight, int isItalic) { 301 int ttcIndex, int weight, int isItalic) { 311 static boolean addFont(long builderPtr, final String path, final int weight, 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; [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ActivityChooserModel.java | 552 final float weight; in setDefaultActivity() local 555 weight = oldDefaultActivity.weight - newDefaultActivity.weight in setDefaultActivity() 558 weight = DEFAULT_HISTORICAL_RECORD_WEIGHT; in setDefaultActivity() 565 System.currentTimeMillis(), weight); in setDefaultActivity() 798 public final float weight; field in ActivityChooserModel.HistoricalRecord 807 public HistoricalRecord(String activityName, long time, float weight) { in HistoricalRecord() argument 808 this(ComponentName.unflattenFromString(activityName), time, weight); in HistoricalRecord() 818 public HistoricalRecord(ComponentName activityName, long time, float weight) { in HistoricalRecord() argument 821 this.weight = weight; in HistoricalRecord() 830 result = prime * result + Float.floatToIntBits(weight); in hashCode() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ActivityChooserModel.java | 538 final float weight; in setDefaultActivity() local 541 weight = oldDefaultActivity.weight - newDefaultActivity.weight in setDefaultActivity() 544 weight = DEFAULT_HISTORICAL_RECORD_WEIGHT; in setDefaultActivity() 551 System.currentTimeMillis(), weight); in setDefaultActivity() 773 public final float weight; field in ActivityChooserModel.HistoricalRecord 782 public HistoricalRecord(String activityName, long time, float weight) { in HistoricalRecord() argument 783 this(ComponentName.unflattenFromString(activityName), time, weight); in HistoricalRecord() 793 public HistoricalRecord(ComponentName activityName, long time, float weight) { in HistoricalRecord() argument 796 this.weight = weight; in HistoricalRecord() 805 result = prime * result + Float.floatToIntBits(weight); in hashCode() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | FontFamily.java | 92 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, in addFont() argument 106 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic); in addFont() 114 int weight, int italic) { in addFontFromBuffer() argument 123 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic); in addFontFromBuffer() 139 boolean isAsset, int ttcIndex, int weight, int isItalic, in addFontFromAssetManager() argument 149 return nAddFontFromAssetManager(mBuilderPtr, mgr, path, cookie, isAsset, ttcIndex, weight, in addFontFromAssetManager() 193 int weight, int isItalic); in nAddFont() argument 195 int ttcIndex, int weight, int isItalic); in nAddFontWeightStyle() argument 197 String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic); in nAddFontFromAssetManager() argument
|
/frameworks/ml/nn/common/operations/ |
D | LSHProjection.cpp | 61 RunTimeOperandInfo *weight = GetInput(operation, operands, kWeightTensor); in Prepare() local 63 NN_CHECK_EQ(NumDimensions(weight), 1); in Prepare() 64 NN_CHECK_EQ(SizeOfDimension(weight, 0), SizeOfDimension(input, 0)); in Prepare() 85 const RunTimeOperandInfo* weight, float seed) { in running_sign_bit() argument 103 if (weight->lifetime == OperandLifeTime::NO_VALUE) { in running_sign_bit() 106 score += reinterpret_cast<float*>(weight->buffer)[i] * running_value; in running_sign_bit() 115 const RunTimeOperandInfo* weight, int32_t* out_buf) { in SparseLshProjection() argument 122 int bit = running_sign_bit(input, weight, seed); in SparseLshProjection() 131 const RunTimeOperandInfo* weight, int32_t* out_buf) { in DenseLshProjection() argument 137 int bit = running_sign_bit(input, weight, seed); in DenseLshProjection()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | HistoryEvaluator.java | 62 sumValue += data.evaluation * data.weight; in weightedAverage() 63 sumWeight += data.weight; in weightedAverage() 91 list.get(i).weight *= factor; in decayValue() 95 while (!list.isEmpty() && isZero(list.get(0).weight)) { in decayValue() 110 public float weight; field in HistoryEvaluator.Data 114 weight = 1.0f; in Data()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | ButtonBarLayout.java | 88 child.setTag(R.id.suw_original_weight, childParams.weight); in setStacked() 89 childParams.weight = 0; in setStacked() 91 Float weight = (Float) child.getTag(R.id.suw_original_weight); in setStacked() local 92 if (weight != null) { in setStacked() 93 childParams.weight = weight; in setStacked()
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
D | Target.java | 242 float weight = mWeights[i]; in normalizeWeights() local 243 if (weight > 0) { in normalizeWeights() 244 sum += weight; in normalizeWeights() 361 public Builder setSaturationWeight(@FloatRange(from = 0) float weight) { in setSaturationWeight() 362 mTarget.mWeights[INDEX_WEIGHT_SAT] = weight; in setSaturationWeight() 377 public Builder setLightnessWeight(@FloatRange(from = 0) float weight) { in setLightnessWeight() 378 mTarget.mWeights[INDEX_WEIGHT_LUMA] = weight; in setLightnessWeight() 392 public Builder setPopulationWeight(@FloatRange(from = 0) float weight) { in setPopulationWeight() 393 mTarget.mWeights[INDEX_WEIGHT_POP] = weight; in setPopulationWeight()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | Target.java | 260 float weight = mWeights[i]; in normalizeWeights() local 261 if (weight > 0) { in normalizeWeights() 262 sum += weight; in normalizeWeights() 379 public Target.Builder setSaturationWeight(@FloatRange(from = 0) float weight) { in setSaturationWeight() 380 mTarget.mWeights[INDEX_WEIGHT_SAT] = weight; in setSaturationWeight() 395 public Target.Builder setLightnessWeight(@FloatRange(from = 0) float weight) { in setLightnessWeight() 396 mTarget.mWeights[INDEX_WEIGHT_LUMA] = weight; in setLightnessWeight() 410 public Target.Builder setPopulationWeight(@FloatRange(from = 0) float weight) { in setPopulationWeight() 411 mTarget.mWeights[INDEX_WEIGHT_POP] = weight; in setPopulationWeight()
|
/frameworks/base/core/java/android/gesture/ |
D | InstanceLearner.java | 60 double weight; in classify() local 62 weight = Double.MAX_VALUE; in classify() 64 weight = 1 / distance; in classify() 67 if (score == null || weight > score) { in classify() 68 label2score.put(sample.label, weight); in classify()
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/vo/ |
D | AvgWeightByAge.java | 34 public AvgWeightByAge(int age, float weight) { in AvgWeightByAge() argument 36 mWeight = weight; in AvgWeightByAge() 51 public void setWeight(float weight) { in setWeight() argument 52 mWeight = weight; in setWeight()
|
/frameworks/minikin/include/minikin/ |
D | FontFamily.h | 41 FontStyle(int weight, bool italic) : FontStyle(0 /* variant */, weight, italic) {} in FontStyle() argument 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/ml/nn/runtime/test/specs/ |
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, 36 weight: [],
|
D | lsh_projection.mod.py | 26 weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) variable 29 model = model.Operation("LSH_PROJECTION", hhash, lookup, weight, 35 weight: [0.12, 0.34, 0.56]
|
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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NoisyVelocityTracker.java | 74 float weight = 10f; in computeCurrentVelocity() local 96 mVX += weight * dx / dt; in computeCurrentVelocity() 97 mVY += weight * dy / dt; in computeCurrentVelocity() 98 totalweight += weight; in computeCurrentVelocity() 99 weight *= DECAY; in computeCurrentVelocity()
|
/frameworks/base/core/jni/android/graphics/ |
D | FontFamily.cpp | 124 int weight = givenWeight / 100; in addSkTypeface() local 135 weight = os2Weight; in addSkTypeface() 142 builder->fonts.push_back(minikin::Font(minikinFont, minikin::FontStyle(weight, italic))); in addSkTypeface() 171 jint ttcIndex, jint weight, jint isItalic) { in FontFamily_addFont() argument 189 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFont() 193 jobject font, jint ttcIndex, jint weight, jint isItalic) { in FontFamily_addFontWeightStyle() argument 211 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFontWeightStyle() 220 jint weight, jint isItalic) { in FontFamily_addFontFromAssetManager() argument 258 return addSkTypeface(builder, std::move(data), ttcIndex, weight, isItalic); in FontFamily_addFontFromAssetManager()
|
D | Typeface.cpp | 46 jint weight, jboolean italic) { in Typeface_createFromTypefaceWithExactStyle() argument 48 return reinterpret_cast<jlong>(Typeface::createAbsolute(baseTypeface, weight, italic)); in Typeface_createFromTypefaceWithExactStyle() 68 static jlong Typeface_createWeightAlias(JNIEnv* env, jobject, jlong familyHandle, jint weight) { in Typeface_createWeightAlias() argument 70 Typeface* face = Typeface::createWithDifferentBaseWeight(family, weight); in Typeface_createWeightAlias() 90 int weight, int italic) { in Typeface_createFromArray() argument 99 Typeface::createFromFamilies(std::move(familyVec), weight, italic)); in Typeface_createFromArray()
|
/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 43 FontStyle::FontStyle(int variant, int weight, bool italic) in FontStyle() argument 44 : FontStyle(FontLanguageListCache::kEmptyListId, variant, weight, italic) { in FontStyle() 47 FontStyle::FontStyle(uint32_t languageListId, int variant, int weight, bool italic) in FontStyle() argument 48 : bits(pack(variant, weight, italic)), mLanguageListId(languageListId) { in FontStyle() 64 uint32_t FontStyle::pack(int variant, int weight, bool italic) { in pack() argument 65 return (weight & kWeightMask) | (italic ? kItalicMask : 0) | (variant << kVariantShift); in pack() 112 bool FontFamily::analyzeStyle(const std::shared_ptr<MinikinFont>& typeface, int* weight, in analyzeStyle() argument 118 return ::minikin::analyzeStyle(os2Table.get(), os2Table.size(), weight, italic); in analyzeStyle()
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryableMeteringRectangle.java | 47 int weight = value.getMeteringWeight(); in marshal() local 53 buffer.putInt(weight); in marshal() 62 int weight = buffer.getInt(); in unmarshal() local 67 return new MeteringRectangle(xMin, yMin, width, height, weight); in unmarshal()
|
/frameworks/base/docs/html/sdk/support_api_diff/25.0.0/ |
D | stylesheet-jdiff.css | 8 .diffspectable td {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;pa… 10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex… 11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali… 12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4… 42 font-size: 1.5em;font-weight:9;
|
/frameworks/base/docs/html/sdk/support_api_diff/25.1.0/ |
D | stylesheet-jdiff.css | 8 .diffspectable td {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;pa… 10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex… 11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali… 12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4… 42 font-size: 1.5em;font-weight:9;
|
/frameworks/ml/nn/runtime/test/generated/models/ |
D | lsh_projection_weights_as_inputs.model.cpp | 11 auto weight = model->addOperand(&type2); in CreateModel() local 15 model->addOperation(ANEURALNETWORKS_LSH_PROJECTION, {hash, lookup, weight, type_param}, {output}); in CreateModel() 18 {hash, lookup, weight, type_param}, in CreateModel()
|