/packages/modules/HealthFitness/framework/java/android/health/connect/ratelimiter/ |
D | RateLimiter.java | 133 int uid, @QuotaCategory.Type int quotaCategory, boolean isInForeground) { in tryAcquireApiCallQuota() argument 154 getAffectedAPIQuotaBuckets(quotaCategory, isInForeground), in tryAcquireApiCallQuota() 162 boolean isInForeground, in tryAcquireApiCallQuota() argument 188 getAffectedAPIQuotaBuckets(quotaCategory, isInForeground), in tryAcquireApiCallQuota() 189 getAffectedMemoryQuotaBuckets(quotaCategory, isInForeground), in tryAcquireApiCallQuota() 192 isInForeground); in tryAcquireApiCallQuota() 273 boolean isInForeground) { in spendApiAndMemoryResourcesIfAvailable() argument 278 if (!isInForeground) { in spendApiAndMemoryResourcesIfAvailable() 289 if (!isInForeground) { in spendApiAndMemoryResourcesIfAvailable() 435 @QuotaCategory.Type int quotaCategory, boolean isInForeground) { in getAffectedAPIQuotaBuckets() argument [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/ |
D | ReadTransactionRequest.java | 59 boolean isInForeground) { in ReadTransactionRequest() argument 70 isInForeground)); in ReadTransactionRequest() 85 boolean isInForeground) { in ReadTransactionRequest() argument 96 isInForeground))); in ReadTransactionRequest()
|
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/ |
D | RateLimiterTest.java | 208 @QuotaCategory.Type int quotaCategory, boolean isInForeground, int nTimes) { in tryAcquireCallQuotaNTimes() argument 212 RateLimiter.tryAcquireApiCallQuota(UID, quotaCategory, isInForeground, MEMORY_COST); in tryAcquireCallQuotaNTimes() 216 RateLimiter.tryAcquireApiCallQuota(UID, quotaCategory, isInForeground); in tryAcquireCallQuotaNTimes() 223 boolean isInForeground, in tryAcquireCallQuotaNTimes() argument 227 RateLimiter.tryAcquireApiCallQuota(UID, quotaCategory, isInForeground, memoryCost); in tryAcquireCallQuotaNTimes()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/ |
D | HealthConnectServiceImpl.java | 382 boolean isInForeground = mAppOpsManagerLocal.isUidInForeground(uid); in insertRecords() 386 isInForeground, in insertRecords() 492 boolean isInForeground = mAppOpsManagerLocal.isUidInForeground(uid); in aggregateRecords() 493 logger.setCallerForegroundState(isInForeground); in aggregateRecords() 495 if (!isInForeground) { in aggregateRecords() 505 isInForeground, in aggregateRecords() 603 final boolean isInForeground = mAppOpsManagerLocal.isUidInForeground(uid); in readRecords() 606 logger.setCallerForegroundState(isInForeground); in readRecords() 609 uid, QuotaCategory.QUOTA_CATEGORY_READ, isInForeground, logger); in readRecords() 616 } else if (!isInForeground) { in readRecords() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | ExerciseSessionRecordHelper.java | 313 boolean isInForeground) { in getExtraDataReadRequests() argument 316 packageName, grantedExtraReadPermissions, isInForeground); in getExtraDataReadRequests() 385 boolean isInForeground) { in getExtraDataReadRequests() argument 388 packageName, grantedExtraReadPermissions, isInForeground); in getExtraDataReadRequests() 588 String packageName, Set<String> grantedExtraReadPermissions, boolean isInForeground) { in getExerciseRouteReadAccessType() argument 607 isInForeground in getExerciseRouteReadAccessType()
|
D | RecordHelper.java | 339 boolean isInForeground) { in getReadTableRequest() argument 357 isInForeground)); in getReadTableRequest() 388 boolean isInForeground) { in getReadTableRequest() argument 404 isInForeground)); in getReadTableRequest() 416 boolean isInForeground) { in getExtraDataReadRequests() argument 429 boolean isInForeground) { in getExtraDataReadRequests() argument
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/ |
D | ForegroundUtilsTest.java | 96 boolean isInForegroundTrue = mForegroundUtils.isInForeground(0); in testIsInForeground() 98 isInForegroundTrue = mForegroundUtils.isInForeground(10); in testIsInForeground()
|
/packages/services/Car/service/src/com/android/car/ |
D | AppFocusService.java | 195 if (isInForeground(ownerInfo) && !isInForeground(info) in requestAppFocus() 237 private boolean isInForeground(OwnershipClientInfo info) { in isInForeground() method in AppFocusService 238 return mSystemActivityMonitoringService.isInForeground(info.getPid(), info.getUid()); in isInForeground()
|
D | SystemActivityMonitoringService.java | 153 public boolean isInForeground(int pid, int uid) { in isInForeground() method in SystemActivityMonitoringService
|
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/ |
D | FakeSystemActivityMonitoringService.java | 45 public boolean isInForeground(int pid, int uid) { in isInForeground() method in FakeSystemActivityMonitoringService
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | ForegroundUtils.java | 106 public boolean isInForeground(int uid) { in isInForeground() method in ForegroundUtils
|
D | NfcService.java | 1779 if (mForegroundUtils.isInForeground(callingUid)) { in setObserveMode() 1907 if (!mForegroundUtils.isInForeground(Binder.getCallingUid())) { in setForegroundDispatch()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/ |
D | PreferredServicesTest.java | 454 when(mForegroundUtils.isInForeground(anyInt())).thenReturn(true); in testUnregisteredPreferredForegroundServiceInForeground_ReturnsSuccess() 467 when(mForegroundUtils.isInForeground(anyInt())).thenReturn(true); in testUnregisteredPreferredForegroundServiceInForeground_ReturnsFailure() 480 when(mForegroundUtils.isInForeground(anyInt())).thenReturn(false); in testUnregisteredPreferredForegroundServiceNotInForeground_ReturnsFailure()
|
D | CardEmulationManagerTest.java | 1459 when(mForegroundUtils.isInForeground(anyInt())) in testCardEmulationRecoverRoutingTable_callerForeground() 1478 when(mForegroundUtils.isInForeground(anyInt())) in testCardEmulationRecoverRoutingTable_callerNotForeground()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | EnabledNfcFServices.java | 174 if (mForegroundUtils.isInForeground(callingUid)) { in unregisteredEnabledForegroundService()
|
D | PreferredServices.java | 446 if (mForegroundUtils.isInForeground(callingUid)) { in unregisteredPreferredForegroundService()
|
D | CardEmulationManager.java | 886 if (!mForegroundUtils.isInForeground(Binder.getCallingUid())) { in recoverRoutingTable()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarAppFocusManagerTest.java | 89 when(mSystemActivityMonitoringService.isInForeground(anyInt(), anyInt())) in setUp()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkStatsManagerTest.java | 306 private boolean isInForeground() throws IOException { in isInForeground() method in NetworkStatsManagerTest 779 int currentState = isInForeground() ? STATE_FOREGROUND : STATE_DEFAULT; in testUidTagStateDetails()
|