/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | DataPermissionEnforcerTest.java | 24 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/ |
D | MockedPermissionsActivityTest.kt | 33 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 …]
|
D | FitnessPermissionsFragmentTest.kt | 20 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>()
|
D | RequestPermissionViewModelTest.kt | 28 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>()
|
D | MedicalPermissionsFragmentTest.kt | 19 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/ |
D | HealthConnectManagerNotAllPermissionsAreGrantedTest.java | 23 import static android.health.connect.HealthPermissions.READ_STEPS; 141 READ_STEPS, in testGetChangeLogs_somePermissionsAreNotGranted_expectError()
|
D | HealthConnectManagerNoPermissionsGrantedTest.java | 23 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/ |
D | HealthPermissionsTest.java | 72 HealthPermissions.READ_STEPS, 305 return mPackageManager.getPermissionInfo(HealthPermissions.READ_STEPS, /* flags= */ 0) in getControllerUiPackageName()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthPermissionsPresenceTest.java | 53 import static android.health.connect.HealthPermissions.READ_STEPS; 127 READ_STEPS,
|
/packages/modules/HealthFitness/framework/java/android/health/connect/ |
D | HealthPermissions.java | 225 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/ |
D | HealthConnectDeviceTest.java | 120 public static final String APP_A_DECLARED_PERMISSION = HealthPermissions.READ_STEPS;
|
/packages/modules/HealthFitness/framework/api/ |
D | current.txt | 129 field public static final String READ_STEPS = "android.permission.health.READ_STEPS";
|