/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/ |
D | typing_weighting.h | 42 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/ |
D | RateLimiter.java | 260 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/ |
D | RateLimiter.java | 185 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/ |
D | LevenshteinDistance.kt | 49 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/ |
D | StringUtils.java | 69 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/ |
D | db_rob_image_homography.cpp | 97 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 …]
|
D | db_image_homography.cpp | 181 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()
|
D | db_robust.h | 43 double cost; member
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_node_utils.cpp | 83 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/ |
D | ratelimiter.proto | 12 required int32 cost = 2; field
|
/packages/services/Car/car-lib/src/android/car/telemetry/ |
D | telemetry.proto | 173 // Important: Specifying package_names will increase the cost of data collection in
|
/packages/modules/Bluetooth/system/doc/ |
D | style_guide.md | 84 outweigh the cost of safety.
|
/packages/modules/NeuralNetworks/runtime/ |
D | NOTICE | 578 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/ |
D | LICENSE | 350 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/ |
D | LICENSE | 350 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/ |
D | LICENSE | 350 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/ |
D | LICENSE | 350 available at no more than a reasonable production cost for physical
|
/packages/modules/GeoTZ/tzbb_data/ |
D | DATA_LICENSE | 350 available at no more than a reasonable production cost for physical
|
D | LICENSE | 350 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/ |
D | LICENSE | 350 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/ |
D | LICENSE | 350 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/ |
D | LICENSE | 350 available at no more than a reasonable production cost for physical
|
/packages/modules/GeoTZ/output_data/odbl/ |
D | LICENSE | 350 available at no more than a reasonable production cost for physical
|
/packages/apps/TV/res/raw/ |
D | third_party_licenses | 3168 than the cost of performing this distribution.
|
/packages/apps/Dialer/java/com/android/dialer/about/res/raw/ |
D | third_party_licenses | 11755 basis of media cost, duplication charges, time of people involved,
|