Home
last modified time | relevance | path

Searched refs:RankingStrategy (Results 1 – 5 of 5) sorted by relevance

/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/
DSearchSpecToProtoConverter.java553 private static ScoringSpecProto.RankingStrategy.Code toProtoRankingStrategy( in toProtoRankingStrategy()
554 @SearchSpec.RankingStrategy int rankingStrategyCode) { in toProtoRankingStrategy()
557 return ScoringSpecProto.RankingStrategy.Code.NONE; in toProtoRankingStrategy()
559 return ScoringSpecProto.RankingStrategy.Code.DOCUMENT_SCORE; in toProtoRankingStrategy()
561 return ScoringSpecProto.RankingStrategy.Code.CREATION_TIMESTAMP; in toProtoRankingStrategy()
563 return ScoringSpecProto.RankingStrategy.Code.RELEVANCE_SCORE; in toProtoRankingStrategy()
565 return ScoringSpecProto.RankingStrategy.Code.USAGE_TYPE1_COUNT; in toProtoRankingStrategy()
567 return ScoringSpecProto.RankingStrategy.Code.USAGE_TYPE1_LAST_USED_TIMESTAMP; in toProtoRankingStrategy()
569 return ScoringSpecProto.RankingStrategy.Code.USAGE_TYPE2_COUNT; in toProtoRankingStrategy()
571 return ScoringSpecProto.RankingStrategy.Code.USAGE_TYPE2_LAST_USED_TIMESTAMP; in toProtoRankingStrategy()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/stats/
DSearchStats.java126 @SearchSpec.RankingStrategy private final int mNativeRankingStrategy;
308 @SearchSpec.RankingStrategy
562 public Builder setRankingStrategy(@SearchSpec.RankingStrategy int rankingStrategy) { in setRankingStrategy()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DSearchSpec.java98 @RankingStrategy
216 public @interface RankingStrategy {} annotation in SearchSpec
346 @Param(id = 7) @RankingStrategy int rankingStrategy, in SearchSpec()
469 @RankingStrategy
762 @RankingStrategy private int mRankingStrategy = RANKING_STRATEGY_NONE;
1001 public Builder setRankingStrategy(@RankingStrategy int rankingStrategy) { in setRankingStrategy()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchLoggerTest.java213 int nativeRankingStrategy = ScoringSpecProto.RankingStrategy.Code.CREATION_TIMESTAMP_VALUE; in testAppSearchLoggerHelper_testCopyNativeStats_search()
234 ScoringSpecProto.RankingStrategy.Code.forNumber( in testAppSearchLoggerHelper_testCopyNativeStats_search()
934 .isEqualTo(ScoringSpecProto.RankingStrategy.Code.JOIN_AGGREGATE_SCORE_VALUE); in testLoggingStats_search_join()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
DSearchSpecToProtoConverterTest.java213 .isEqualTo(ScoringSpecProto.RankingStrategy.Code.CREATION_TIMESTAMP); in testToSearchSpecProtoWithJoinSpec()
334 .isEqualTo(ScoringSpecProto.RankingStrategy.Code.RELEVANCE_SCORE.getNumber()); in testToScoringSpecProto()
360 .isEqualTo(ScoringSpecProto.RankingStrategy.Code.ADVANCED_SCORING_EXPRESSION_VALUE); in testToAdvancedRankingSpecProto()