Home
last modified time | relevance | path

Searched refs:joinSpec (Results 1 – 9 of 9) sorted by relevance

/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/
DJoinSpecInternalTest.java26 JoinSpec joinSpec = in testJoinSpecBuilderCopyConstructor() local
32 JoinSpec joinSpecCopy = new JoinSpec.Builder(joinSpec).build(); in testJoinSpecBuilderCopyConstructor()
34 .isEqualTo(joinSpec.getMaxJoinedResultCount()); in testJoinSpecBuilderCopyConstructor()
36 .isEqualTo(joinSpec.getChildPropertyExpression()); in testJoinSpecBuilderCopyConstructor()
37 assertThat(joinSpecCopy.getNestedQuery()).isEqualTo(joinSpec.getNestedQuery()); in testJoinSpecBuilderCopyConstructor()
40 .isEqualTo(joinSpec.getAggregationScoringStrategy()); in testJoinSpecBuilderCopyConstructor()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/
DEnterpriseSearchSpecTransformer.java60 JoinSpec joinSpec = searchSpec.getJoinSpec(); in transformSearchSpec() local
61 JoinSpec.Builder joinSpecBuilder = new JoinSpec.Builder(joinSpec); in transformSearchSpec()
63 joinSpec.getNestedQuery(), transformSearchSpec(joinSpec.getNestedSearchSpec())); in transformSearchSpec()
74 private static boolean shouldTransformJoinSpecFilters(@Nullable JoinSpec joinSpec) { in shouldTransformJoinSpecFilters() argument
75 return joinSpec != null && shouldTransformSearchSpecFilters(joinSpec.getNestedSearchSpec()); in shouldTransformJoinSpecFilters()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DJoinSpec.java305 public Builder(@NonNull JoinSpec joinSpec) { in Builder() argument
306 Objects.requireNonNull(joinSpec); in Builder()
307 mNestedQuery = joinSpec.getNestedQuery(); in Builder()
308 mNestedSearchSpec = joinSpec.getNestedSearchSpec(); in Builder()
309 mChildPropertyExpression = joinSpec.getChildPropertyExpression(); in Builder()
310 mMaxJoinedResultCount = joinSpec.getMaxJoinedResultCount(); in Builder()
311 mAggregationScoringStrategy = joinSpec.getAggregationScoringStrategy(); in Builder()
DSearchSpec.java355 @Param(id = 16) @Nullable JoinSpec joinSpec, in SearchSpec()
377 mJoinSpec = joinSpec; in SearchSpec()
1513 public Builder setJoinSpec(@NonNull JoinSpec joinSpec) { in setJoinSpec() argument
1515 mJoinSpec = Objects.requireNonNull(joinSpec); in setJoinSpec()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
DSearchSpecToProtoConverterTest.java149 JoinSpec joinSpec = in testToSearchSpecProtoWithJoinSpec() local
156 searchSpec.setJoinSpec(joinSpec); in testToSearchSpecProtoWithJoinSpec()
230 JoinSpec joinSpec = in testToSearchSpec_withJoinSpec_childSearchesOtherSchema() local
235 searchSpec.setJoinSpec(joinSpec); in testToSearchSpec_withJoinSpec_childSearchesOtherSchema()
400 JoinSpec joinSpec = in testToResultSpecProtoWithJoinSpec() local
411 .setJoinSpec(joinSpec) in testToResultSpecProtoWithJoinSpec()
460 JoinSpec joinSpec = in testToResultSpecProto_grouping_withJoinSpec_packageFilter() local
467 .setJoinSpec(joinSpec) in testToResultSpecProto_grouping_withJoinSpec_packageFilter()
516 JoinSpec joinSpec = in testToResultSpecProto_projection_withJoinSpec_packageFilter() local
523 .setJoinSpec(joinSpec) in testToResultSpecProto_projection_withJoinSpec_packageFilter()
[all …]
/packages/modules/AppSearch/framework/java/android/app/appsearch/
DSearchResults.java152 JoinSpec joinSpec = mSearchSpec.getJoinSpec(); in getNextPage() local
153 if (joinSpec != null && !joinSpec.getChildPropertyExpression().isEmpty()) { in getNextPage()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/
DSearchSpecToProtoConverter.java175 JoinSpec joinSpec = searchSpec.getJoinSpec(); in SearchSpecToProtoConverter() local
176 if (joinSpec == null) { in SearchSpecToProtoConverter()
182 joinSpec.getNestedQuery(), in SearchSpecToProtoConverter()
183 joinSpec.getNestedSearchSpec(), in SearchSpecToProtoConverter()
350 JoinSpec joinSpec = mSearchSpec.getJoinSpec(); in toSearchSpecProto() local
355 .setChildPropertyExpression(joinSpec.getChildPropertyExpression()) in toSearchSpecProto()
358 joinSpec.getAggregationScoringStrategy())); in toSearchSpecProto()
427 JoinSpec joinSpec = mSearchSpec.getJoinSpec(); in toResultSpecProto() local
428 if (joinSpec != null) { in toResultSpecProto()
430 joinSpec.getMaxJoinedResultCount()); in toResultSpecProto()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/transformer/
DEnterpriseSearchSpecTransformerTest.java165 JoinSpec joinSpec = new JoinSpec.Builder("childPropertyExpression") in testTransformJoinSpec() local
168 SearchSpec searchSpec = new SearchSpec.Builder().setJoinSpec(joinSpec).build(); in testTransformJoinSpec()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java1480 JoinSpec joinSpec = searchSpec.getJoinSpec(); in globalQuery() local
1481 if (joinSpec == null) { in globalQuery()
1483 } else if (!joinSpec.getNestedSearchSpec().getFilterPackageNames().isEmpty()) { in globalQuery()
1485 packageFilters.addAll(joinSpec.getNestedSearchSpec().getFilterPackageNames()); in globalQuery()