Home
last modified time | relevance | path

Searched refs:ScoringParams (Results 1 – 25 of 33) 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_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()
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 …]
Dscoring_params.h24 class ScoringParams {
78 DISALLOW_IMPLICIT_CONSTRUCTORS(ScoringParams);
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScoringParamsTest.java54 private ScoringParams mScoringParams;
64 mScoringParams = new ScoringParams(); in setUp()
86 mScoringParams = new ScoringParams();
98 mScoringParams = new ScoringParams();
109 mScoringParams = new ScoringParams();
120 mScoringParams = new ScoringParams();
135 mScoringParams = new ScoringParams();
160 mScoringParams = new ScoringParams();
172 mScoringParams = new ScoringParams();
187 mScoringParams = new ScoringParams();
[all …]
DCandidateScorerTest.java72 ScoringParams sp; in listOfObjectArraysBecauseJUnitMadeUs()
75 sp = new ScoringParams(); in listOfObjectArraysBecauseJUnitMadeUs()
82 sp = new ScoringParams(); in listOfObjectArraysBecauseJUnitMadeUs()
89 sp = new ScoringParams(); in listOfObjectArraysBecauseJUnitMadeUs()
96 sp = new ScoringParams(); in listOfObjectArraysBecauseJUnitMadeUs()
116 public ScoringParams mScoringParams;
136 mScoringParams = spy(new ScoringParams()); in setUp()
DWakeupEvaluatorTest.java64 private final ScoringParams mScoringParams = new ScoringParams();
DVelocityBasedConnectedScoreTest.java93 new ScoringParams(mContext), mClock); in setUp()
DWifiScoreReportTest.java119 ScoringParams mScoringParams;
256 mScoringParams = new ScoringParams(); in setUp()
DWifiBlocklistMonitorTest.java144 @Mock private ScoringParams mScoringParams;
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWakeupEvaluator.java28 private final ScoringParams mScoringParams;
30 WakeupEvaluator(ScoringParams scoringParams) { in WakeupEvaluator()
DAggressiveConnectedScore.java26 private final ScoringParams mScoringParams;
31 public AggressiveConnectedScore(ScoringParams scoringParams, Clock clock) { in AggressiveConnectedScore()
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.java52 private final ScoringParams mScoringParams;
78 ThroughputScorer(WifiContext wifiContext, ScoringParams scoringParams) { in ThroughputScorer()
DScoringParams.java43 public class ScoringParams { class
255 public ScoringParams() { in ScoringParams() method in ScoringParams
260 public ScoringParams(Context context) { in ScoringParams() method in ScoringParams
DWifiInjector.java174 private final ScoringParams mScoringParams;
314 mScoringParams = new ScoringParams(mContext); in WifiInjector()
793 public ScoringParams getScoringParams() { in getScoringParams()
DWifiScoreReport.java100 private final ScoringParams mScoringParams;
554 WifiScoreReport(ScoringParams scoringParams, Clock clock, WifiMetrics wifiMetrics, in WifiScoreReport()
DWifiBlocklistMonitor.java130 private final ScoringParams mScoringParams;
253 WifiScoreCard wifiScoreCard, ScoringParams scoringParams, WifiMetrics wifiMetrics, in WifiBlocklistMonitor()
DWifiNetworkSelector.java121 private final ScoringParams mScoringParams;
1789 ScoringParams scoringParams, in WifiNetworkSelector()
DWifiConnectivityManager.java169 private final ScoringParams mScoringParams;
1332 ScoringParams scoringParams, in WifiConnectivityManager()
/packages/modules/Wifi/service/tests/wifitests/
DAndroid.bp386 "com.android.server.wifi.ScoringParams",
387 "com.android.server.wifi.ScoringParams$*",
388 "com.android.server.wifi.ScoringParams.**",

12