Home
last modified time | relevance | path

Searched refs:isInForeground (Results 1 – 19 of 19) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/ratelimiter/
DRateLimiter.java133 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/
DReadTransactionRequest.java59 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/
DRateLimiterTest.java208 @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/
DHealthConnectServiceImpl.java382 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/
DExerciseSessionRecordHelper.java313 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()
DRecordHelper.java339 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/
DForegroundUtilsTest.java96 boolean isInForegroundTrue = mForegroundUtils.isInForeground(0); in testIsInForeground()
98 isInForegroundTrue = mForegroundUtils.isInForeground(10); in testIsInForeground()
/packages/services/Car/service/src/com/android/car/
DAppFocusService.java195 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()
DSystemActivityMonitoringService.java153 public boolean isInForeground(int pid, int uid) { in isInForeground() method in SystemActivityMonitoringService
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeSystemActivityMonitoringService.java45 public boolean isInForeground(int pid, int uid) { in isInForeground() method in FakeSystemActivityMonitoringService
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java106 public boolean isInForeground(int uid) { in isInForeground() method in ForegroundUtils
DNfcService.java1779 if (mForegroundUtils.isInForeground(callingUid)) { in setObserveMode()
1907 if (!mForegroundUtils.isInForeground(Binder.getCallingUid())) { in setForegroundDispatch()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DPreferredServicesTest.java454 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()
DCardEmulationManagerTest.java1459 when(mForegroundUtils.isInForeground(anyInt())) in testCardEmulationRecoverRoutingTable_callerForeground()
1478 when(mForegroundUtils.isInForeground(anyInt())) in testCardEmulationRecoverRoutingTable_callerNotForeground()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DEnabledNfcFServices.java174 if (mForegroundUtils.isInForeground(callingUid)) { in unregisteredEnabledForegroundService()
DPreferredServices.java446 if (mForegroundUtils.isInForeground(callingUid)) { in unregisteredPreferredForegroundService()
DCardEmulationManager.java886 if (!mForegroundUtils.isInForeground(Binder.getCallingUid())) { in recoverRoutingTable()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarAppFocusManagerTest.java89 when(mSystemActivityMonitoringService.isInForeground(anyInt(), anyInt())) in setUp()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStatsManagerTest.java306 private boolean isInForeground() throws IOException { in isInForeground() method in NetworkStatsManagerTest
779 int currentState = isInForeground() ? STATE_FOREGROUND : STATE_DEFAULT; in testUidTagStateDetails()