Searched refs:optimizeInfo (Results 1 – 14 of 14) sorted by relevance
45 GetOptimizeInfoResultProto optimizeInfo = in testShouldNotOptimize_underAllThresholds() local55 assertThat(mServiceOptimizeStrategy.shouldOptimize(optimizeInfo)).isFalse(); in testShouldNotOptimize_underAllThresholds()60 GetOptimizeInfoResultProto optimizeInfo = in testShouldOptimize_byteThreshold() local70 assertThat(mServiceOptimizeStrategy.shouldOptimize(optimizeInfo)).isTrue(); in testShouldOptimize_byteThreshold()75 GetOptimizeInfoResultProto optimizeInfo = in testShouldOptimize_timeThreshold() local85 assertThat(mServiceOptimizeStrategy.shouldOptimize(optimizeInfo)).isTrue(); in testShouldOptimize_timeThreshold()90 GetOptimizeInfoResultProto optimizeInfo = in testShouldOptimize_docCountThreshold() local99 assertThat(mServiceOptimizeStrategy.shouldOptimize(optimizeInfo)).isTrue(); in testShouldOptimize_docCountThreshold()104 GetOptimizeInfoResultProto optimizeInfo = in testShouldNotOptimize_underMinTimeThreshold() local113 assertThat(mServiceOptimizeStrategy.shouldOptimize(optimizeInfo)).isFalse(); in testShouldNotOptimize_underMinTimeThreshold()
131 optimizeInfo -> true); in testDesensitizeRealDebugInfo()
45 public boolean shouldOptimize(@NonNull GetOptimizeInfoResultProto optimizeInfo) { in shouldOptimize() argument47 optimizeInfo.getOptimizableDocs() in shouldOptimize()49 || optimizeInfo.getEstimatedOptimizableBytes() in shouldOptimize()51 || optimizeInfo.getTimeSinceLastOptimizeMs() in shouldOptimize()54 && optimizeInfo.getTimeSinceLastOptimizeMs() in shouldOptimize()63 + optimizeInfo.getTimeSinceLastOptimizeMs() in shouldOptimize()
68 GetOptimizeInfoResultProto optimizeInfo = in testShouldNotOptimize_overOtherThresholds_underMinTimeThreshold() local82 assertThat(mServiceOptimizeStrategy.shouldOptimize(optimizeInfo)).isTrue(); in testShouldNotOptimize_overOtherThresholds_underMinTimeThreshold()94 assertThat(mServiceOptimizeStrategy.shouldOptimize(optimizeInfo)).isFalse(); in testShouldNotOptimize_overOtherThresholds_underMinTimeThreshold()
38 boolean shouldOptimize(@NonNull GetOptimizeInfoResultProto optimizeInfo); in shouldOptimize() argument
2784 GetOptimizeInfoResultProto optimizeInfo = getOptimizeInfoResultLocked(); in checkForOptimize() local2785 checkSuccess(optimizeInfo.getStatus()); in checkForOptimize()2787 if (mOptimizeStrategy.shouldOptimize(optimizeInfo)) { in checkForOptimize()
53 private static final OptimizeStrategy ALWAYS_OPTIMIZE = optimizeInfo -> true;
58 private static final OptimizeStrategy ALWAYS_OPTIMIZE = optimizeInfo -> true;
57 private static final OptimizeStrategy ALWAYS_OPTIMIZE = optimizeInfo -> true;
111 private static final OptimizeStrategy ALWAYS_OPTIMIZE = optimizeInfo -> true;506 GetOptimizeInfoResultProto optimizeInfo = mAppSearchImpl.getOptimizeInfoResultLocked(); in testTriggerCheckOptimizeByMutationSize() local507 assertThat(optimizeInfo.getOptimizableDocs()).isEqualTo(1); in testTriggerCheckOptimizeByMutationSize()514 optimizeInfo = mAppSearchImpl.getOptimizeInfoResultLocked(); in testTriggerCheckOptimizeByMutationSize()515 assertThat(optimizeInfo.getOptimizableDocs()).isEqualTo(1); in testTriggerCheckOptimizeByMutationSize()522 optimizeInfo = mAppSearchImpl.getOptimizeInfoResultLocked(); in testTriggerCheckOptimizeByMutationSize()523 assertThat(optimizeInfo.getOptimizableDocs()).isEqualTo(0); in testTriggerCheckOptimizeByMutationSize()524 assertThat(optimizeInfo.getEstimatedOptimizableBytes()).isEqualTo(0); in testTriggerCheckOptimizeByMutationSize()
70 private static final OptimizeStrategy ALWAYS_OPTIMIZE = optimizeInfo -> true;
73 private static final OptimizeStrategy ALWAYS_OPTIMIZE = optimizeInfo -> true;
65 public static final OptimizeStrategy ALWAYS_OPTIMIZE = optimizeInfo -> true;