/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/ |
D | RequestPermissionViewModelTest.kt | 22 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY 148 READ_HEALTH_DATA_HISTORY) in <lambda>() 171 fromPermissionString(READ_HEALTH_DATA_HISTORY))) in <lambda>() 179 fromPermissionString(READ_HEALTH_DATA_HISTORY))) in <lambda>() 222 READ_HEALTH_DATA_HISTORY, in <lambda>() 303 val permissions = arrayOf(READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_HISTORY) in <lambda>() 306 val historyReadPermission = fromPermissionString(READ_HEALTH_DATA_HISTORY) in <lambda>() 314 val permissions = arrayOf(READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_HISTORY) in <lambda>() 328 READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 331 val historyReadPermission = fromPermissionString(READ_HEALTH_DATA_HISTORY) in <lambda>() [all …]
|
D | AdditionalPermissionsFragmentTest.kt | 96 AdditionalPermission.READ_HEALTH_DATA_HISTORY, in displaysCombinedAdditionalPermissions() 169 listOf(AdditionalPermission.READ_HEALTH_DATA_HISTORY), in displaysHistoryReadPermission() 199 AdditionalPermission.READ_HEALTH_DATA_HISTORY, in toggleOn_updatesAdditionalPermission() 223 AdditionalPermission.READ_HEALTH_DATA_HISTORY, in toggleOff_updatesAdditionalPermission() 229 MutableLiveData(setOf(AdditionalPermission.READ_HEALTH_DATA_HISTORY)) in toggleOff_updatesAdditionalPermission() 233 eq(AdditionalPermission.READ_HEALTH_DATA_HISTORY))) in toggleOff_updatesAdditionalPermission() 253 HealthPermissions.READ_HEALTH_DATA_HISTORY, in allowButton_noAdditionalPermissionsSelected_isDisabled() 271 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_noAdditionalPermissionsSelected_isDisabled() 290 HealthPermissions.READ_HEALTH_DATA_HISTORY, in allowButton_additionalPermissionsSelected_isEnabled() 310 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_additionalPermissionsSelected_isEnabled() [all …]
|
D | MockedPermissionsActivityTest.kt | 30 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY in <lambda>() 210 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 227 fromPermissionString(READ_HEALTH_DATA_HISTORY) to PermissionState.GRANTED, in <lambda>() 240 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 257 fromPermissionString(READ_HEALTH_DATA_HISTORY) to PermissionState.GRANTED, in <lambda>() 270 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 287 fromPermissionString(READ_HEALTH_DATA_HISTORY) to PermissionState.GRANTED, in <lambda>() 312 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 332 fromPermissionString(READ_HEALTH_DATA_HISTORY) to PermissionState.NOT_GRANTED, in <lambda>() 370 READ_HEALTH_DATA_HISTORY, in <lambda>() [all …]
|
D | PermissionsActivityTest.kt | 35 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY in <lambda>() 283 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 356 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 396 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY) in <lambda>() 439 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 471 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 473 TEST_APP_PACKAGE_NAME, listOf(READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_HISTORY)) in <lambda>() 501 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 503 TEST_APP_PACKAGE_NAME, listOf(READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_HISTORY)) in <lambda>() 530 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/permissions/ |
D | AdditionalPermissionsRequestUITest.kt | 54 revokePermissionViaPackageManager(context, TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in setup() 62 revokePermissionViaPackageManager(context, TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in tearDown() 70 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsBoth() 79 assertPermGrantedForApp(TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsBoth() 86 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_deniesBoth() 95 assertPermNotGrantedForApp(TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in requestAdditionalPermissions_showsBothAdditionalPermissions_deniesBoth() 102 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsOnlySelected() 110 assertPermGrantedForApp(TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsOnlySelected() 117 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsOnlyNotGrantedPermissions() 119 grantPermissionViaPackageManager(context, TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in requestAdditionalPermissions_showsOnlyNotGrantedPermissions() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/ |
D | MockedConnectedAppFragmentTest.kt | 88 HealthPermissions.READ_HEALTH_DATA_HISTORY)) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog() 114 TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEALTH_DATA_HISTORY) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog() 124 HealthPermissions.READ_EXERCISE, HealthPermissions.READ_HEALTH_DATA_HISTORY) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog() 129 HealthPermissions.READ_HEALTH_DATA_HISTORY) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog() 167 TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEALTH_DATA_HISTORY) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog() 174 listOf(HealthPermissions.READ_EXERCISE, HealthPermissions.READ_HEALTH_DATA_HISTORY)) in exerciseRoutesAskEveryTime_revokeExercise_lastReadPermission_doesNotShowDialog() 202 TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEALTH_DATA_HISTORY) in exerciseRoutesAskEveryTime_revokeExercise_lastReadPermission_doesNotShowDialog()
|
D | AppPermissionViewModelTest.kt | 97 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/ |
D | HealthPermission.kt | 28 HealthPermissions.READ_HEALTH_DATA_HISTORY) 92 val READ_HEALTH_DATA_HISTORY = in fromPermissionString() constant 93 AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_HISTORY) in fromPermissionString() 110 this.additionalPermission == HealthPermissions.READ_HEALTH_DATA_HISTORY in isExerciseRoutesPermission()
|
D | AdditionalPermissionStrings.kt | 54 HealthPermissions.READ_HEALTH_DATA_HISTORY,
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/ |
D | AdditionalAccessViewModelTest.kt | 21 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY 120 READ_HEALTH_DATA_HISTORY, in setup() 133 READ_HEALTH_DATA_HISTORY, in setup() 158 .thenReturn(listOf(READ_EXERCISE, READ_EXERCISE_ROUTES, READ_HEALTH_DATA_HISTORY)) in <lambda>() 197 .thenReturn(listOf(READ_EXERCISE, READ_EXERCISE_ROUTES, READ_HEALTH_DATA_HISTORY)) in <lambda>() 236 .thenReturn(listOf(READ_EXERCISE, READ_EXERCISE_ROUTES, READ_HEALTH_DATA_HISTORY)) in loadAdditionalAccessPreferences_backgroundReadNotEnabled_doesNotReturnBackgroundRead()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/ |
D | AdditionalPermissionsFragment.kt | 176 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>() 199 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>() 215 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>()
|
D | RequestPermissionViewModel.kt | 330 return permission == HealthPermissions.READ_HEALTH_DATA_HISTORY in <lambda>()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/ |
D | HomeFragment.kt | 42 import com.android.healthconnect.testapps.toolbox.Constants.READ_HEALTH_DATA_HISTORY in <lambda>() 278 if (!isPermissionGranted(READ_HEALTH_DATA_HISTORY)) { in <lambda>() 279 mRequestPermissionLauncher.launch(arrayOf(READ_HEALTH_DATA_HISTORY)) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/ |
D | HealthPermissionReader.kt | 60 private val historyReadPermission = listOf(HealthPermissions.READ_HEALTH_DATA_HISTORY) in <lambda>() 67 HealthPermissions.READ_HEALTH_DATA_HISTORY) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/ |
D | AdditionalAccessViewModel.kt | 129 additionalPermissions.contains(HealthPermissions.READ_HEALTH_DATA_HISTORY)) { in <lambda>() 137 HealthPermissions.READ_HEALTH_DATA_HISTORY), in <lambda>()
|
D | AdditionalAccessFragment.kt | 163 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY) in <lambda>() 183 packageName, HealthPermissions.READ_HEALTH_DATA_HISTORY, newValue as Boolean) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/ |
D | RevokeHealthPermissionUseCaseTest.kt | 55 useCase.invoke("TEST_APP", HealthPermissions.READ_HEALTH_DATA_HISTORY) in invoke_withAdditionalPermission_callsHealthPermissionManager()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthPermissionsPresenceTest.java | 38 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY; 121 READ_HEALTH_DATA_HISTORY,
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ |
D | Constants.kt | 157 const val READ_HEALTH_DATA_HISTORY = "android.permission.health.READ_HEALTH_DATA_HISTORY" constant 159 val ADDITIONAL_PERMISSIONS = arrayOf(READ_HEALTH_DATA_IN_BACKGROUND, READ_HEALTH_DATA_HISTORY)
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/data/ |
D | HealthPermissionTest.kt | 89 .isEqualTo(AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_HISTORY)) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/ |
D | HealthPermissionReaderTest.kt | 72 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY) in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions()
|
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/ |
D | HealthPermissionsTest.java | 63 HealthPermissions.READ_HEALTH_DATA_HISTORY,
|
/packages/modules/HealthFitness/framework/java/android/health/connect/ |
D | HealthPermissions.java | 151 public static final String READ_HEALTH_DATA_HISTORY = field in HealthPermissions
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/ |
D | HealthConnectServiceImpl.java | 27 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY; 2508 && isPermissionGranted(READ_HEALTH_DATA_HISTORY, uid, pid); in hasReadHistoryPermission()
|
/packages/modules/HealthFitness/framework/api/ |
D | current.txt | 107 …ry_read") public static final String READ_HEALTH_DATA_HISTORY = "android.permission.health.READ_HE…
|