Home
last modified time | relevance | path

Searched refs:ScoringParams (Results 1 – 25 of 31) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/
Dscoring_params.cpp21 const float ScoringParams::MAX_SPATIAL_DISTANCE = 1.0f;
22 const int ScoringParams::THRESHOLD_NEXT_WORD_PROBABILITY = 40;
23 const int ScoringParams::THRESHOLD_NEXT_WORD_PROBABILITY_FOR_CAPPED = 120;
24 const float ScoringParams::AUTOCORRECT_OUTPUT_THRESHOLD = 1.0f;
26 const float ScoringParams::EXACT_MATCH_PROMOTION = 1.1f;
27 const float ScoringParams::PERFECT_MATCH_PROMOTION = 1.1f;
28 const float ScoringParams::CASE_ERROR_PENALTY_FOR_EXACT_MATCH = 0.01f;
29 const float ScoringParams::ACCENT_ERROR_PENALTY_FOR_EXACT_MATCH = 0.02f;
30 const float ScoringParams::DIGRAPH_PENALTY_FOR_EXACT_MATCH = 0.03f;
33 const int ScoringParams::MAX_CACHE_DIC_NODE_SIZE = 170;
[all …]
Dtyping_weighting.h44 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()
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()
70 : ScoringParams::OMISSION_COST; in getOmissionCost()
83 const float weightedDistance = ScoringParams::DISTANCE_WEIGHT_LENGTH * normalizedDistance; in getMatchedCost()
87 float cost = isProximity ? (isFirstChar ? ScoringParams::FIRST_CHAR_PROXIMITY_COST in getMatchedCost()
88 : ScoringParams::PROXIMITY_COST) : 0.0f; in getMatchedCost()
[all …]
Dtyping_traversal.h44 < ScoringParams::NORMALIZED_SPATIAL_DISTANCE_THRESHOLD_FOR_EDIT; in allowsErrorCorrections()
82 < ScoringParams::LOCALE_WEIGHT_THRESHOLD_FOR_SPACE_SUBSTITUTION) { in isSpaceSubstitutionTerminal()
103 < ScoringParams::LOCALE_WEIGHT_THRESHOLD_FOR_SPACE_OMISSION) { in isSpaceOmissionTerminal()
152 return ScoringParams::MAX_SPATIAL_DISTANCE; in getMaxSpatialDistance()
161 return ScoringParams::MAX_CACHE_DIC_NODE_SIZE_FOR_SINGLE_POINT; in getMaxCacheSize()
163 if (weightForLocale < ScoringParams::LOCALE_WEIGHT_THRESHOLD_FOR_SMALL_CACHE_SIZE) { in getMaxCacheSize()
164 return ScoringParams::MAX_CACHE_DIC_NODE_SIZE_FOR_LOW_PROBABILITY_LOCALE; in getMaxCacheSize()
166 return ScoringParams::MAX_CACHE_DIC_NODE_SIZE; in getMaxCacheSize()
186 if (probability < ScoringParams::THRESHOLD_NEXT_WORD_PROBABILITY) { in isGoodToTraverseNextWord()
190 < ScoringParams::THRESHOLD_SHORT_WORD_LENGTH && dicNode->isFirstCharUppercase(); in isGoodToTraverseNextWord()
[all …]
Dtyping_scoring.h48 const float maxDistance = ScoringParams::DISTANCE_WEIGHT_LANGUAGE in calculateFinalScore()
49 + static_cast<float>(inputSize) * ScoringParams::TYPING_MAX_OUTPUT_SCORE_PER_INPUT; in calculateFinalScore()
50 float score = ScoringParams::TYPING_BASE_OUTPUT_SCORE - compoundDistance / maxDistance; in calculateFinalScore()
52 score += ScoringParams::AUTOCORRECT_OUTPUT_THRESHOLD; in calculateFinalScore()
77 score += ScoringParams::PERFECT_MATCH_PROMOTION; in calculateFinalScore()
81 score += ScoringParams::EXACT_MATCH_PROMOTION; in calculateFinalScore()
83 score -= ScoringParams::CASE_ERROR_PENALTY_FOR_EXACT_MATCH; in calculateFinalScore()
86 score -= ScoringParams::ACCENT_ERROR_PENALTY_FOR_EXACT_MATCH; in calculateFinalScore()
89 score -= ScoringParams::DIGRAPH_PENALTY_FOR_EXACT_MATCH; in calculateFinalScore()
Dscoring_params.h24 class ScoringParams {
78 DISALLOW_IMPLICIT_CONSTRUCTORS(ScoringParams);
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScoringParamsTest.java50 private ScoringParams mScoringParams;
60 mScoringParams = new ScoringParams(); in setUp()
82 mScoringParams = new ScoringParams();
94 mScoringParams = new ScoringParams();
105 mScoringParams = new ScoringParams();
116 mScoringParams = new ScoringParams();
131 mScoringParams = new ScoringParams();
156 mScoringParams = new ScoringParams();
168 mScoringParams = new ScoringParams();
183 mScoringParams = new ScoringParams();
[all …]
DCandidateScorerTest.java53 ScoringParams sp; in listOfObjectArraysBecauseJUnitMadeUs()
56 sp = new ScoringParams(); in listOfObjectArraysBecauseJUnitMadeUs()
63 sp = new ScoringParams(); in listOfObjectArraysBecauseJUnitMadeUs()
70 sp = new ScoringParams(); in listOfObjectArraysBecauseJUnitMadeUs()
77 sp = new ScoringParams(); in listOfObjectArraysBecauseJUnitMadeUs()
97 public ScoringParams mScoringParams;
DWakeupEvaluatorTest.java64 private final ScoringParams mScoringParams = new ScoringParams();
DVelocityBasedConnectedScoreTest.java93 new ScoringParams(mContext), mClock); in setUp()
DWifiScoreReportTest.java97 ScoringParams mScoringParams;
204 mScoringParams = new ScoringParams(); in setUp()
DWifiNetworkSelectorTest.java97 mScoringParams = new ScoringParams(); in setUp()
284 private ScoringParams mScoringParams;
/packages/modules/Wifi/service/java/com/android/server/wifi/
DAggressiveConnectedScore.java26 private final ScoringParams mScoringParams;
31 public AggressiveConnectedScore(ScoringParams scoringParams, Clock clock) { in AggressiveConnectedScore()
DWakeupEvaluator.java28 private final ScoringParams mScoringParams;
30 WakeupEvaluator(ScoringParams scoringParams) { in WakeupEvaluator()
DCompatibilityScorer.java38 private final ScoringParams mScoringParams;
66 CompatibilityScorer(ScoringParams scoringParams) { in CompatibilityScorer()
DBubbleFunScorer.java46 private final ScoringParams mScoringParams;
48 BubbleFunScorer(ScoringParams scoringParams) { in BubbleFunScorer()
DScoreCardBasedScorer.java40 private final ScoringParams mScoringParams;
74 ScoreCardBasedScorer(ScoringParams scoringParams) { in ScoreCardBasedScorer()
DVelocityBasedConnectedScore.java33 private final ScoringParams mScoringParams;
40 public VelocityBasedConnectedScore(ScoringParams scoringParams, Clock clock) { in VelocityBasedConnectedScore()
DThroughputScorer.java47 private final ScoringParams mScoringParams;
73 ThroughputScorer(ScoringParams scoringParams) { in ThroughputScorer()
DScoringParams.java36 public class ScoringParams { class
231 public ScoringParams() { in ScoringParams() method in ScoringParams
236 public ScoringParams(Context context) { in ScoringParams() method in ScoringParams
DWifiInjector.java154 private final ScoringParams mScoringParams;
261 mScoringParams = new ScoringParams(mContext); in WifiInjector()
673 public ScoringParams getScoringParams() { in getScoringParams()
DWifiScoreReport.java91 private final ScoringParams mScoringParams;
478 WifiScoreReport(ScoringParams scoringParams, Clock clock, WifiMetrics wifiMetrics, in WifiScoreReport()
DWifiBlocklistMonitor.java125 private final ScoringParams mScoringParams;
199 WifiScoreCard wifiScoreCard, ScoringParams scoringParams, WifiMetrics wifiMetrics) { in WifiBlocklistMonitor()
DWifiNetworkSelector.java105 private final ScoringParams mScoringParams;
1264 ScoringParams scoringParams, in WifiNetworkSelector()
DWifiConnectivityManager.java152 private final ScoringParams mScoringParams;
1001 ScoringParams scoringParams, in WifiConnectivityManager()
/packages/modules/Wifi/service/tests/wifitests/
DAndroid.bp285 "com.android.server.wifi.ScoringParams",
286 "com.android.server.wifi.ScoringParams$*",
287 "com.android.server.wifi.ScoringParams.**",

12