Home
last modified time | relevance | path

Searched refs:cost (Results 1 – 25 of 32) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/
Dtyping_weighting.h42 float cost = 0.0f; in getTerminalSpatialCost() local
44 cost += ScoringParams::HAS_MULTI_WORD_TERMINAL_COST; in getTerminalSpatialCost()
47 cost += ScoringParams::HAS_PROXIMITY_TERMINAL_COST; in getTerminalSpatialCost()
50 cost += ScoringParams::HAS_EDIT_CORRECTION_TERMINAL_COST; in getTerminalSpatialCost()
52 return cost; in getTerminalSpatialCost()
61 float cost = 0.0f; in getOmissionCost() local
63 cost = 0.0f; in getOmissionCost()
65 cost = ScoringParams::INTENTIONAL_OMISSION_COST; in getOmissionCost()
67 cost = ScoringParams::OMISSION_COST_FIRST_CHAR; in getOmissionCost()
69 cost = sameCodePoint ? ScoringParams::OMISSION_COST_SAME_CHAR in getOmissionCost()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/ratelimiter/
DRateLimiter.java260 int uid, List<Integer> quotaBuckets, int cost) { in spendApiCallResourcesIfAvailable() argument
263 checkIfResourcesAreAvailable(quotaBucketToAvailableQuotaMap, quotaBuckets, cost); in spendApiCallResourcesIfAvailable()
264 spendAvailableResources(uid, quotaBucketToAvailableQuotaMap, quotaBuckets, cost); in spendApiCallResourcesIfAvailable()
271 int cost, in spendApiAndMemoryResourcesIfAvailable() argument
286 checkIfResourcesAreAvailable(apiQuotaBucketToAvailableQuotaMap, apiQuotaBuckets, cost); in spendApiAndMemoryResourcesIfAvailable()
295 spendAvailableResources(uid, apiQuotaBucketToAvailableQuotaMap, apiQuotaBuckets, cost); in spendApiAndMemoryResourcesIfAvailable()
304 long cost) { in checkIfResourcesAreAvailable() argument
306 hasSufficientQuota(quotaBucketToAvailableQuotaMap.get(quotaBucket), cost, quotaBucket); in checkIfResourcesAreAvailable() local
320 long cost) { in spendAvailableResources() argument
322 spendResources(uid, quotaBucket, quotaBucketToAvailableQuotaMap.get(quotaBucket), cost); in spendAvailableResources()
[all …]
/packages/modules/Profiling/service/java/com/android/os/profiling/
DRateLimiter.java185 final int cost = getCostForProfiling(profilingType); in isProfilingRequestAllowed() local
187 int status = mPastRunsHour.isProfilingAllowed(uid, cost, currentTimeMillis); in isProfilingRequestAllowed()
189 status = mPastRunsDay.isProfilingAllowed(uid, cost, currentTimeMillis); in isProfilingRequestAllowed()
192 status = mPastRunsWeek.isProfilingAllowed(uid, cost, currentTimeMillis); in isProfilingRequestAllowed()
195 mPastRunsHour.add(uid, cost, currentTimeMillis); in isProfilingRequestAllowed()
196 mPastRunsDay.add(uid, cost, currentTimeMillis); in isProfilingRequestAllowed()
197 mPastRunsWeek.add(uid, cost, currentTimeMillis); in isProfilingRequestAllowed()
596 public void add(final int uid, final int cost, final long timestamp) { in add() argument
598 mTotalCost += cost; in add()
601 mPerUidCost.put(uid, cost); in add()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DLevenshteinDistance.kt49 val cost = if (sourceToken?.prefixOf(targetToken) == true) 0 else 1 in calculate() constant
58 if (d + cost < distance) { in calculate()
59 distance = d + cost in calculate()
60 type = if (cost == 0) EDIT_UNCHANGED else EDIT_REPLACE in calculate()
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/
DStringUtils.java69 int i, j, cost; in getDistance() local
81 cost = s.charAt(i - 1) == t_j ? 0 : 1; in getDistance()
82 d[i] = Math.min(Math.min(d[i - 1] + 1, p[i] + 1), p[i - 1] + cost); in getDistance()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_rob_image_homography.cpp97 stat->cost=db_RobImageHomography_Cost(H,point_count,x_i,xp_i,one_over_scale2); in db_RobImageHomography_Statistics()
104 …stat->gric=stat->cost+stat->lambda1*stat->model_dimension*((double)stat->nr_points)+stat->lambda2*… in db_RobImageHomography_Statistics()
230 double lambda,cost,current_cost; in db_RobCamRotation_Polish() local
253 cost=db_RobImageHomography_Cost(H_p_dx,point_count,x_i,xp_i,one_over_scale2); in db_RobCamRotation_Polish()
256 if(cost<current_cost) in db_RobCamRotation_Polish()
259 if(current_cost-cost<current_cost*improvement_requirement) stop++; in db_RobCamRotation_Polish()
263 current_cost=cost; in db_RobCamRotation_Polish()
572 double lambda,cost,current_cost; in db_RobCamRotation_Polish_Generic() local
597 cost=db_RobImageHomography_Cost(H_p_dx,point_count,x_i,xp_i,one_over_scale2); in db_RobCamRotation_Polish_Generic()
600 if(cost<current_cost) in db_RobCamRotation_Polish_Generic()
[all …]
Ddb_image_homography.cpp181 double cost,best_cost; in db_StitchRotationCommonFocalLength_3Points() local
214 cost=db_SquaredReprojectionErrorHomography(y,hyp_point,x3); in db_StitchRotationCommonFocalLength_3Points()
216 if(!done || cost<best_cost) in db_StitchRotationCommonFocalLength_3Points()
219 best_cost=cost; in db_StitchRotationCommonFocalLength_3Points()
Ddb_robust.h43 double cost; member
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_utils.cpp83 const float cost = static_cast<float>(MAX_PROBABILITY - wordAttributes.getProbability()) in getBigramNodeImprobability() local
85 return cost; in getBigramNodeImprobability()
/packages/modules/Profiling/service/proto/android/os/
Dratelimiter.proto12 required int32 cost = 2; field
/packages/services/Car/car-lib/src/android/car/telemetry/
Dtelemetry.proto173 // Important: Specifying package_names will increase the cost of data collection in
/packages/modules/Bluetooth/system/doc/
Dstyle_guide.md84 outweigh the cost of safety.
/packages/modules/NeuralNetworks/runtime/
DNOTICE578 than the cost of distribution to the recipient; and
673 * (not any Contributor) assume the cost of any necessary servicing, *
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/geojsontz_to_tzs2polygons/data/
DLICENSE350 available at no more than a reasonable production cost for physical
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/input_polygons/
DLICENSE350 available at no more than a reasonable production cost for physical
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2polygons_tzs2cellunions/data/
DLICENSE350 available at no more than a reasonable production cost for physical
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2cellunions_to_tzs2ranges/data/
DLICENSE350 available at no more than a reasonable production cost for physical
/packages/modules/GeoTZ/tzbb_data/
DDATA_LICENSE350 available at no more than a reasonable production cost for physical
DLICENSE350 available at no more than a reasonable production cost for physical
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/mergetzs2ranges/data/
DLICENSE350 available at no more than a reasonable production cost for physical
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/createtzs2protodatafile/data/
DLICENSE350 available at no more than a reasonable production cost for physical
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/output_polygons/
DLICENSE350 available at no more than a reasonable production cost for physical
/packages/modules/GeoTZ/output_data/odbl/
DLICENSE350 available at no more than a reasonable production cost for physical
/packages/apps/TV/res/raw/
Dthird_party_licenses3168 than the cost of performing this distribution.
/packages/apps/Dialer/java/com/android/dialer/about/res/raw/
Dthird_party_licenses11755 basis of media cost, duplication charges, time of people involved,

12