/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/ |
D | scoring_params.cpp | 21 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 …]
|
D | typing_weighting.h | 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() 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 …]
|
D | typing_traversal.h | 44 < 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 …]
|
D | typing_scoring.h | 48 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()
|
D | scoring_params.h | 24 class ScoringParams { 78 DISALLOW_IMPLICIT_CONSTRUCTORS(ScoringParams);
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScoringParamsTest.java | 50 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 …]
|
D | CandidateScorerTest.java | 53 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;
|
D | WakeupEvaluatorTest.java | 64 private final ScoringParams mScoringParams = new ScoringParams();
|
D | VelocityBasedConnectedScoreTest.java | 93 new ScoringParams(mContext), mClock); in setUp()
|
D | WifiScoreReportTest.java | 97 ScoringParams mScoringParams; 204 mScoringParams = new ScoringParams(); in setUp()
|
D | WifiNetworkSelectorTest.java | 97 mScoringParams = new ScoringParams(); in setUp() 284 private ScoringParams mScoringParams;
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | AggressiveConnectedScore.java | 26 private final ScoringParams mScoringParams; 31 public AggressiveConnectedScore(ScoringParams scoringParams, Clock clock) { in AggressiveConnectedScore()
|
D | WakeupEvaluator.java | 28 private final ScoringParams mScoringParams; 30 WakeupEvaluator(ScoringParams scoringParams) { in WakeupEvaluator()
|
D | CompatibilityScorer.java | 38 private final ScoringParams mScoringParams; 66 CompatibilityScorer(ScoringParams scoringParams) { in CompatibilityScorer()
|
D | BubbleFunScorer.java | 46 private final ScoringParams mScoringParams; 48 BubbleFunScorer(ScoringParams scoringParams) { in BubbleFunScorer()
|
D | ScoreCardBasedScorer.java | 40 private final ScoringParams mScoringParams; 74 ScoreCardBasedScorer(ScoringParams scoringParams) { in ScoreCardBasedScorer()
|
D | VelocityBasedConnectedScore.java | 33 private final ScoringParams mScoringParams; 40 public VelocityBasedConnectedScore(ScoringParams scoringParams, Clock clock) { in VelocityBasedConnectedScore()
|
D | ThroughputScorer.java | 47 private final ScoringParams mScoringParams; 73 ThroughputScorer(ScoringParams scoringParams) { in ThroughputScorer()
|
D | ScoringParams.java | 36 public class ScoringParams { class 231 public ScoringParams() { in ScoringParams() method in ScoringParams 236 public ScoringParams(Context context) { in ScoringParams() method in ScoringParams
|
D | WifiInjector.java | 154 private final ScoringParams mScoringParams; 261 mScoringParams = new ScoringParams(mContext); in WifiInjector() 673 public ScoringParams getScoringParams() { in getScoringParams()
|
D | WifiScoreReport.java | 91 private final ScoringParams mScoringParams; 478 WifiScoreReport(ScoringParams scoringParams, Clock clock, WifiMetrics wifiMetrics, in WifiScoreReport()
|
D | WifiBlocklistMonitor.java | 125 private final ScoringParams mScoringParams; 199 WifiScoreCard wifiScoreCard, ScoringParams scoringParams, WifiMetrics wifiMetrics) { in WifiBlocklistMonitor()
|
D | WifiNetworkSelector.java | 105 private final ScoringParams mScoringParams; 1264 ScoringParams scoringParams, in WifiNetworkSelector()
|
D | WifiConnectivityManager.java | 152 private final ScoringParams mScoringParams; 1001 ScoringParams scoringParams, in WifiConnectivityManager()
|
/packages/modules/Wifi/service/tests/wifitests/ |
D | Android.bp | 285 "com.android.server.wifi.ScoringParams", 286 "com.android.server.wifi.ScoringParams$*", 287 "com.android.server.wifi.ScoringParams.**",
|