Home
last modified time | relevance | path

Searched refs:mTaskCount (Results 1 – 3 of 3) sorted by relevance

/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/
DRateLimitedExecutorTest.java63 assertThat(rateLimitedExecutor.getPerPackageTaskCosts().get(pkgName).mTaskCount).isEqualTo( in testAddTaskToQueue_addOk()
101 assertThat(rateLimitedExecutor.getPerPackageTaskCosts().get(pkgName).mTaskCount).isEqualTo( in testAddTaskToQueue_exceedsPerPackageCapacity_cannotAddTask()
135 assertThat(rateLimitedExecutor.getPerPackageTaskCosts().get(pkgName1).mTaskCount).isEqualTo( in testAddTaskToQueue_otherPackageExceedsPerPackageCapacity_canAddTask()
139 assertThat(rateLimitedExecutor.getPerPackageTaskCosts().get(pkgName2).mTaskCount).isEqualTo( in testAddTaskToQueue_otherPackageExceedsPerPackageCapacity_canAddTask()
178 assertThat(rateLimitedExecutor.getPerPackageTaskCosts().get(pkgName1).mTaskCount).isEqualTo( in testAddTaskToQueue_exceedsTotalCapacity_cannotAddTask()
182 assertThat(rateLimitedExecutor.getPerPackageTaskCosts().get(pkgName2).mTaskCount).isEqualTo( in testAddTaskToQueue_exceedsTotalCapacity_cannotAddTask()
223 assertThat(rateLimitedExecutor.getPerPackageTaskCosts().get(pkgName1).mTaskCount) in testRemoveTaskFromQueue_removeOk()
227 assertThat(rateLimitedExecutor.getPerPackageTaskCosts().get(pkgName2).mTaskCount) in testRemoveTaskFromQueue_removeOk()
278 assertThat(rateLimitedExecutor.getPerPackageTaskCosts().get(pkgName1).mTaskCount) in testCanAddMoreTasksAfterQueueClearsUp()
282 assertThat(rateLimitedExecutor.getPerPackageTaskCosts().get(pkgName2).mTaskCount) in testCanAddMoreTasksAfterQueueClearsUp()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DRateLimitedExecutor.java182 ++packageTaskCostInfo.mTaskCount; in addPackageTaskInfoLocked()
193 --packageTaskCostInfo.mTaskCount; in removePackageTaskInfoLocked()
195 if (packageTaskCostInfo.mTaskCount <= 0 || packageTaskCostInfo.mTotalTaskCost <= 0) { in removePackageTaskInfoLocked()
272 public int mTaskCount; field in RateLimitedExecutor.TaskCostInfo
276 mTaskCount = taskCount; in TaskCostInfo()
/packages/services/Car/service/src/com/android/car/remoteaccess/
DCarRemoteAccessService.java157 private final AtomicLong mTaskCount = new AtomicLong(/* initialValue= */ 0); field in CarRemoteAccessService
1751 return TASK_PREFIX + "_" + mTaskCount.incrementAndGet() + "_" in generateNewTaskId()