Home
last modified time | relevance | path

Searched refs:READ_STEPS (Results 1 – 12 of 12) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DDataPermissionEnforcerTest.java24 import static android.health.connect.HealthPermissions.READ_STEPS;
117 READ_STEPS, mAttributionSource, null)) in testEnforceRecordIdsReadPermissions_permissionGranted_doesNotThrow()
127 READ_STEPS, mAttributionSource, null)) in testEnforceRecordIdsReadPermissions_permissionDenied_throwsSecurityException()
137 READ_STEPS, mAttributionSource, null)) in testEnforceRecordIdsReadPermissions_onePermissionDenied_throwsSecurityException()
151 READ_STEPS, mAttributionSource, null)) in testEnforceReadAccessAndGetEnforceSelfRead_readPermissionGranted_returnsFalse()
165 READ_STEPS, mAttributionSource, null)) in testEnforceReadAccessAndGetEnforceSelfRead_onlyWritePermissionGranted_returnsTrue()
182 READ_STEPS, mAttributionSource, null)) in testEnforceReadAccessAndGetEnforceSelfRead_permissionsDenied_throwsSecurityException()
196 READ_STEPS, mAttributionSource, null)) in testEnforceReadAccessAndGetEnforceSelfReadList_oneWritePermissionGranted_returnsTrue()
261 when(mContext.checkCallingPermission(READ_STEPS)).thenReturn(PERMISSION_DENIED); in testEnforceAnyOfPermissions_onePermissionsGranted_doesNotThrow()
264 mDataPermissionEnforcer.enforceAnyOfPermissions(READ_STEPS, WRITE_STEPS); in testEnforceAnyOfPermissions_onePermissionsGranted_doesNotThrow()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DMockedPermissionsActivityTest.kt33 import android.health.connect.HealthPermissions.READ_STEPS in <lambda>()
115 fromPermissionString(READ_STEPS), in <lambda>()
156 val permissions = arrayOf(READ_STEPS, READ_HEART_RATE, WRITE_DISTANCE, WRITE_EXERCISE) in <lambda>()
167 fromPermissionString(READ_STEPS) to PermissionState.GRANTED, in <lambda>()
366 READ_STEPS, in <lambda>()
389 fromPermissionString(READ_STEPS) to PermissionState.GRANTED, in <lambda>()
445 READ_STEPS, in <lambda>()
468 fromPermissionString(READ_STEPS) to PermissionState.GRANTED, in <lambda>()
521 READ_STEPS, in <lambda>()
546 fromPermissionString(READ_STEPS) to PermissionState.GRANTED, in <lambda>()
[all …]
DFitnessPermissionsFragmentTest.kt20 import android.health.connect.HealthPermissions.READ_STEPS in <lambda>()
114 fromPermissionString(READ_STEPS), in <lambda>()
159 fromPermissionString(READ_STEPS), in <lambda>()
184 fromPermissionString(READ_STEPS), in <lambda>()
260 fromPermissionString(READ_STEPS), in <lambda>()
293 fromPermissionString(READ_STEPS), in <lambda>()
319 val permissions = arrayOf(READ_STEPS, READ_HEART_RATE, WRITE_DISTANCE, WRITE_EXERCISE) in <lambda>()
328 HealthPermission.fromPermissionString(READ_STEPS) to PermissionState.GRANTED, in <lambda>()
343 val permissions = arrayOf(READ_STEPS, READ_HEART_RATE, WRITE_DISTANCE, WRITE_EXERCISE) in <lambda>()
351 MutableLiveData(setOf(HealthPermission.fromPermissionString(READ_STEPS))) in <lambda>()
DRequestPermissionViewModelTest.kt28 import android.health.connect.HealthPermissions.READ_STEPS
199 arrayOf(READ_STEPS, READ_HEART_RATE, READ_HEALTH_DATA_IN_BACKGROUND)) in <lambda>()
317 val readStepsPermission = fromPermissionString(READ_STEPS) in <lambda>()
DMedicalPermissionsFragmentTest.kt19 import android.health.connect.HealthPermissions.READ_STEPS in <lambda>()
273 FitnessPermission.fromPermissionString(READ_STEPS), in <lambda>()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/
DHealthConnectManagerNotAllPermissionsAreGrantedTest.java23 import static android.health.connect.HealthPermissions.READ_STEPS;
141 READ_STEPS, in testGetChangeLogs_somePermissionsAreNotGranted_expectError()
DHealthConnectManagerNoPermissionsGrantedTest.java23 import static android.health.connect.HealthPermissions.READ_STEPS;
188 new Pair<>(READ_STEPS, StepsRecord.class), in testGetChangeLogs_noPermissions_expectError()
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DHealthPermissionsTest.java72 HealthPermissions.READ_STEPS,
305 return mPackageManager.getPermissionInfo(HealthPermissions.READ_STEPS, /* flags= */ 0) in getControllerUiPackageName()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthPermissionsPresenceTest.java53 import static android.health.connect.HealthPermissions.READ_STEPS;
127 READ_STEPS,
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthPermissions.java225 public static final String READ_STEPS = "android.permission.health.READ_STEPS"; field in HealthPermissions
1038 sHealthCategoryToReadPermissionMap.put(STEPS, READ_STEPS); in populateHealthPermissionToHealthPermissionCategoryMap()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/
DHealthConnectDeviceTest.java120 public static final String APP_A_DECLARED_PERMISSION = HealthPermissions.READ_STEPS;
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt129 field public static final String READ_STEPS = "android.permission.health.READ_STEPS";