Home
last modified time | relevance | path

Searched refs:WRITE_STEPS (Results 1 – 8 of 8) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DDataPermissionEnforcerTest.java28 import static android.health.connect.HealthPermissions.WRITE_STEPS;
83 WRITE_STEPS, mAttributionSource, null)) in testEnforceRecordIdsWritePermissions_permissionGranted_doesNotThrow()
93 WRITE_STEPS, mAttributionSource, null)) in testEnforceRecordIdsWritePermissions_permissionDenied_throwsSecurityException()
103 WRITE_STEPS, mAttributionSource, null)) in testEnforceRecordIdsWritePermissions_onePermissionDenied_throwsSecurityException()
168 WRITE_STEPS, mAttributionSource, null)) in testEnforceReadAccessAndGetEnforceSelfRead_onlyWritePermissionGranted_returnsTrue()
185 WRITE_STEPS, mAttributionSource, null)) in testEnforceReadAccessAndGetEnforceSelfRead_permissionsDenied_throwsSecurityException()
199 WRITE_STEPS, mAttributionSource, null)) in testEnforceReadAccessAndGetEnforceSelfReadList_oneWritePermissionGranted_returnsTrue()
262 when(mContext.checkCallingPermission(WRITE_STEPS)).thenReturn(PERMISSION_GRANTED); in testEnforceAnyOfPermissions_onePermissionsGranted_doesNotThrow()
264 mDataPermissionEnforcer.enforceAnyOfPermissions(READ_STEPS, WRITE_STEPS); in testEnforceAnyOfPermissions_onePermissionsGranted_doesNotThrow()
270 when(mContext.checkCallingPermission(WRITE_STEPS)).thenReturn(PERMISSION_DENIED); in testEnforceAnyOfPermissions_allPermissionsDenied_throwsSecurityException()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelperTest.java252 List.of(HealthPermissions.READ_DISTANCE, HealthPermissions.WRITE_STEPS)); in testMaybeRemoveAppFromPriorityList_ifWritePermissionsForApp_doesNotRemoveApp()
361 HealthPermissions.WRITE_STEPS, in testUpdateHealthDataPriority_ifWritePermissionsForApp_doesNotRemoveApp()
390 HealthPermissions.WRITE_STEPS, in testNewUpdateHealthDataPriority_ifDataForApp_doesNotRemoveApp()
418 HealthPermissions.WRITE_STEPS, in testNewUpdateHealthDataPriority_ifNoDataForApp_removesApp()
451 HealthPermissions.WRITE_STEPS, in testOldUpdateHealthDataPriority_ifNoWritePermissionsForApp_removesApp()
768 mPackageInfo1.requestedPermissions = new String[] {HealthPermissions.WRITE_STEPS}; in testOldReSyncHealthDataPriorityTable_maintainsExistingOrdering()
773 mPackageInfo2.requestedPermissions = new String[] {HealthPermissions.WRITE_STEPS}; in testOldReSyncHealthDataPriorityTable_maintainsExistingOrdering()
778 mPackageInfo3.requestedPermissions = new String[] {HealthPermissions.WRITE_STEPS}; in testOldReSyncHealthDataPriorityTable_maintainsExistingOrdering()
826 HealthPermissions.WRITE_STEPS, in testOldReSyncHealthDataPriorityTable_addsNewApps_withWritePermission()
891 HealthPermissions.WRITE_STEPS, in testOldReSyncHealthDataPriorityTable_removesApps_withoutWritePermissionAndData()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DHealthPermissionsTest.java112 HealthPermissions.WRITE_STEPS,
205 HealthPermissions.WRITE_STEPS, in testGetDataCategoriesWithWritePermissionsForPackage_returnsCorrectSet()
254 HealthPermissions.WRITE_STEPS, in testPackageHasWriteHealthPermissionsForCategory_ifWritePermissions_returnsTrue()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthPermissions.java524 public static final String WRITE_STEPS = "android.permission.health.WRITE_STEPS"; field in HealthPermissions
799 WRITE_STEPS,
995 sHealthCategoryToWritePermissionMap.put(STEPS, WRITE_STEPS); in populateHealthPermissionToHealthPermissionCategoryMap()
1092 sWriteHealthPermissionToHealthDataCategoryMap.put(WRITE_STEPS, HealthDataCategory.ACTIVITY); in populateWriteHealthPermissionToHealthDataCategoryMap()
1164 WRITE_STEPS, in populateWriteHealthPermissionToHealthDataCategoryMap()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DFitnessPermissionsFragmentTest.kt24 import android.health.connect.HealthPermissions.WRITE_STEPS in <lambda>()
261 fromPermissionString(WRITE_STEPS), in <lambda>()
294 fromPermissionString(WRITE_STEPS), in <lambda>()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthPermissionsPresenceTest.java90 import static android.health.connect.HealthPermissions.WRITE_STEPS;
164 WRITE_STEPS,
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DPermissionMigrationPayloadTest.java37 private static final String DEFAULT_PERMISSION = HealthPermissions.WRITE_STEPS;
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt169 field public static final String WRITE_STEPS = "android.permission.health.WRITE_STEPS";