Searched refs:AppSearchRateLimitConfig (Results 1 – 8 of 8) sorted by relevance
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/ |
D | AppSearchRateLimitConfigTest.java | 32 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create( in testDefaultRateLimitConfig() 52 AppSearchRateLimitConfig rateLimitConfig = in testCustomRateLimitConfig() 53 AppSearchRateLimitConfig.create(1000, 0.8f, in testCustomRateLimitConfig() 71 AppSearchRateLimitConfig rateLimitConfig1 = AppSearchRateLimitConfig.create( in testRateLimitConfigRebuild_noChanges() 75 AppSearchRateLimitConfig rateLimitConfig2 = rateLimitConfig1.rebuildIfNecessary( in testRateLimitConfigRebuild_noChanges() 84 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create( in testRateLimitConfigRebuild_changeTotalCapacity() 109 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create(10000, in testRateLimitConfigRebuild_changePerPackagePercentage() 131 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create( in testRateLimitConfigRebuild_changeApiCosts() 158 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create( in testRateLimitConfigRebuild_allConfigsChanged() 180 AppSearchRateLimitConfig rateLimitConfig = in testApiCostStringCaseSensitive() [all …]
|
D | RateLimitedExecutorTest.java | 44 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create(100, 0.9f, in testAddTaskToQueue_addOk() 71 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create(100, 0.9f, in testAddTaskToQueue_exceedsPerPackageCapacity_cannotAddTask() 110 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create(100, 0.9f, in testAddTaskToQueue_otherPackageExceedsPerPackageCapacity_canAddTask() 147 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create(100, 0.9f, in testAddTaskToQueue_exceedsTotalCapacity_cannotAddTask() 190 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create(100, 0.9f, in testRemoveTaskFromQueue_removeOk() 235 AppSearchRateLimitConfig rateLimitConfig = AppSearchRateLimitConfig.create(100, 0.9f, in testCanAddMoreTasksAfterQueueClearsUp()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/ |
D | AppSearchRateLimitConfig.java | 53 public final class AppSearchRateLimitConfig { class 67 public static AppSearchRateLimitConfig create( in create() 71 return new AppSearchRateLimitConfig( in create() 87 private AppSearchRateLimitConfig( in AppSearchRateLimitConfig() method in AppSearchRateLimitConfig 110 public AppSearchRateLimitConfig rebuildIfNecessary( in rebuildIfNecessary() 116 return AppSearchRateLimitConfig.create( in rebuildIfNecessary()
|
D | ServiceAppSearchConfig.java | 184 AppSearchRateLimitConfig getCachedRateLimitConfig(); in getCachedRateLimitConfig()
|
D | FrameworkServiceAppSearchConfig.java | 175 private AppSearchRateLimitConfig mRateLimitConfigLocked = 176 AppSearchRateLimitConfig.create( 538 public AppSearchRateLimitConfig getCachedRateLimitConfig() { in getCachedRateLimitConfig()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/ |
D | RateLimitedExecutor.java | 25 import com.android.server.appsearch.AppSearchRateLimitConfig; 55 private AppSearchRateLimitConfig mRateLimitConfigLocked; 66 @NonNull ExecutorService executor, @NonNull AppSearchRateLimitConfig rateLimitConfig) { in RateLimitedExecutor() 122 public void setRateLimitConfig(@NonNull AppSearchRateLimitConfig rateLimitConfigLocked) { in setRateLimitConfig()
|
D | ExecutorManager.java | 25 import com.android.server.appsearch.AppSearchRateLimitConfig; 119 @NonNull UserHandle userHandle, @NonNull AppSearchRateLimitConfig rateLimitConfig) { in getOrCreateUserRateLimitedExecutorLocked()
|
/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/ |
D | ServiceAppSearchConfigTest.java | 148 AppSearchRateLimitConfig rateLimitConfig = appSearchConfig.getCachedRateLimitConfig(); in testDefaultValues_allCachedValue() 156 AppSearchRateLimitConfig.DEFAULT_API_COST); in testDefaultValues_allCachedValue() 158 AppSearchRateLimitConfig.DEFAULT_API_COST); in testDefaultValues_allCachedValue() 160 AppSearchRateLimitConfig.DEFAULT_API_COST); in testDefaultValues_allCachedValue() 162 AppSearchRateLimitConfig.DEFAULT_API_COST); in testDefaultValues_allCachedValue() 785 AppSearchRateLimitConfig rateLimitConfig = appSearchConfig.getCachedRateLimitConfig(); in testCustomizedValueOverride_rateLimitConfig() 829 AppSearchRateLimitConfig.DEFAULT_API_COST); in testCustomizedValueOverride_rateLimitConfig() 831 AppSearchRateLimitConfig.DEFAULT_API_COST); in testCustomizedValueOverride_rateLimitConfig()
|