Home
last modified time | relevance | path

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

123

/aosp12/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/
H A Dtyping_weighting.h42 float cost = 0.0f; in getTerminalSpatialCost() local
52 return cost; in getTerminalSpatialCost()
61 float cost = 0.0f; in getOmissionCost() local
63 cost = 0.0f; in getOmissionCost()
67 cost = ScoringParams::OMISSION_COST_FIRST_CHAR; in getOmissionCost()
72 return cost; in getOmissionCost()
90 cost += ScoringParams::FIRST_PROXIMITY_COST; in getMatchedCost()
102 return weightedDistance + cost; in getMatchedCost()
148 cost += ScoringParams::INSERTION_COST; in getInsertionCost()
150 return cost + weightedDistance; in getInsertionCost()
[all …]
/aosp12/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
H A DLevenshteinDistance.java75 int cost = sourceToken.prefixOf(targetToken) ? 0 : 1; in calculate() local
87 if (d + cost < distance) { in calculate()
88 distance = d + cost; in calculate()
89 type = cost == 0 ? EDIT_UNCHANGED : EDIT_REPLACE; in calculate()
/aosp12/hardware/google/camera/common/hal/tests/
H A Dmock_device_hwl.h41 status_t GetResourceCost(CameraResourceCost* cost) const { in GetResourceCost() argument
42 if (cost == nullptr) { in GetResourceCost()
46 *cost = resource_cost_; in GetResourceCost()
/aosp12/system/netd/server/
H A DBandwidthController.cpp354 constexpr char cost[] = "shared"; in setInterfaceSharedQuota() local
382 chain, maxBytes, cost)); in setInterfaceSharedQuota()
397 res |= updateQuota(cost, maxBytes); in setInterfaceSharedQuota()
399 ALOGE("Failed update quota for %s", cost); in setInterfaceSharedQuota()
410 constexpr char cost[] = "shared"; in removeInterfaceSharedQuota() local
432 chain, mSharedQuotaBytes, cost)); in removeInterfaceSharedQuota()
458 const std::string& cost = iface; in setInterfaceQuota() local
474 if (int res = updateQuota(cost, maxBytes)) { in setInterfaceQuota()
495 maxBytes, cost.c_str()), in setInterfaceQuota()
/aosp12/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
H A Ddic_node_utils.cpp83 const float cost = static_cast<float>(MAX_PROBABILITY - wordAttributes.getProbability()) in getBigramNodeImprobability() local
85 return cost; in getBigramNodeImprobability()
/aosp12/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_rob_image_homography.cpp97 stat->cost=db_RobImageHomography_Cost(H,point_count,x_i,xp_i,one_over_scale2); 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()
603 if(current_cost-cost<current_cost*improvement_requirement) stop++; in db_RobCamRotation_Polish_Generic()
[all …]
H A 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()
H A Ddb_robust.h43 double cost; member
/aosp12/frameworks/av/services/camera/libcameraservice/utils/
H A DClientManager.h143 ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost,
146 ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, std::set<KEY>&& conflictingKeys,
211 ClientDescriptor<KEY, VALUE>::ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost, in ClientDescriptor() argument
214 mKey{key}, mValue{value}, mCost{cost}, mConflicting{conflictingKeys}, in ClientDescriptor()
219 ClientDescriptor<KEY, VALUE>::ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, in ClientDescriptor() argument
222 mKey{std::forward<KEY>(key)}, mValue{std::forward<VALUE>(value)}, mCost{cost}, in ClientDescriptor()
495 int32_t cost = client->getCost(); in wouldEvictLocked() local
499 int64_t totalCost = getCurrentCostLocked() + cost; in wouldEvictLocked()
/aosp12/frameworks/base/core/proto/android/os/
H A Dmessage.proto33 … // Lower-cost alternative to using setData() if the app only needs to store a few integer values.
35 … // Lower-cost alternative to using setData() if the app only needs to store a few integer values.
/aosp12/frameworks/av/services/camera/libcameraservice/tests/
H A DClientManagerTest.cpp29 TestClient(int id, int32_t cost, const std::set<int>& conflictingKeys, int32_t ownerId, in TestClient()
31 mId(id), mCost(cost), mConflictingKeys(conflictingKeys), in TestClient()
/aosp12/frameworks/native/libs/android_runtime_lazy/
H A DAndroid.bp21 // a library can be loaded without paying the cost of libandroid_runtime
22 // which is quite huge. The cost will be paid when libandroid_runtime is actually used.
/aosp12/hardware/interfaces/camera/device/3.2/default/
H A DCameraDevice.cpp108 int cost = 100; in getResourceCost() local
116 cost = info.resource_cost; in getResourceCost()
131 resCost.resourceCost = cost; in getResourceCost()
/aosp12/system/core/storaged/
H A Dstoraged.cpp359 int64_t cost = (end_ts.tv_sec - start_ts.tv_sec) * SEC_TO_USEC + in event_checked() local
361 if (cost > mConfig.event_time_check_usec) { in event_checked()
362 LOG(ERROR) << "event loop spent " << cost << " usec, threshold " in event_checked()
/aosp12/hardware/google/camera/devices/EmulatedCamera/hwl/
H A DEmulatedCameraDeviceHWLImpl.cpp106 CameraResourceCost* cost) const { in GetResourceCost()
108 cost->resource_cost = 100; in GetResourceCost()
H A DEmulatedCameraDeviceHWLImpl.h50 status_t GetResourceCost(CameraResourceCost* cost) const override;
/aosp12/bionic/libc/kernel/uapi/linux/netfilter_bridge/
H A Debt_limit.h29 __u32 credit_cap, cost; member
/aosp12/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_limit.h29 __u32 credit_cap, cost; member
/aosp12/hardware/google/camera/common/hal/hwl_interface/
H A Dcamera_device_hwl.h44 virtual status_t GetResourceCost(CameraResourceCost* cost) const = 0;
/aosp12/hardware/google/camera/common/hal/google_camera_hal/
H A Dcamera_device.cc173 status_t CameraDevice::GetResourceCost(CameraResourceCost* cost) { in GetResourceCost() argument
175 return camera_device_hwl_->GetResourceCost(cost); in GetResourceCost()
H A Dcamera_device.h46 status_t GetResourceCost(CameraResourceCost* cost);
/aosp12/system/sepolicy/
H A DNOTICE16 lost profits, cost of cover, or other special, incidental,
/aosp12/system/extras/simpleperf/doc/
H A Dinferno.md31 A flamegraph give you instant vision on the CPU cycles cost centers but
97 The cost of frame pointer is negligible on arm64 parameter but considerable
/aosp12/frameworks/native/opengl/specs/
H A DEGL_ANDROID_front_buffer_auto_refresh.txt41 surface has been updated, but it comes at the cost of doing potentially
/aosp12/hardware/interfaces/camera/common/1.0/
H A Dtypes.hal262 * Structure defining the abstract resource cost of opening a camera device,
269 * The total resource "cost" of using this camera, represented as an integer
279 * the resource costs of these cameras is <= 100. For determining cost,
286 * of camera devices with a total resource cost > 100. This may succeed or
289 * must fail during the configure calls. If the total resource cost is <=

123