Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/
DDeletionConfirmationDialogFragment.kt90 ChosenRange.DELETE_RANGE_LAST_24_HOURS -> in <lambda>()
92 ChosenRange.DELETE_RANGE_LAST_7_DAYS -> in <lambda>()
94 ChosenRange.DELETE_RANGE_LAST_30_DAYS -> in <lambda>()
96 ChosenRange.DELETE_RANGE_ALL_DATA -> getString(R.string.confirming_question_all) in <lambda>()
102 ChosenRange.DELETE_RANGE_LAST_24_HOURS -> in <lambda>()
105 ChosenRange.DELETE_RANGE_LAST_7_DAYS -> in <lambda>()
108 ChosenRange.DELETE_RANGE_LAST_30_DAYS -> in <lambda>()
111 ChosenRange.DELETE_RANGE_ALL_DATA -> in <lambda>()
118 ChosenRange.DELETE_RANGE_LAST_24_HOURS -> in <lambda>()
120 ChosenRange.DELETE_RANGE_LAST_7_DAYS -> in <lambda>()
[all …]
DDeletionParameters.kt29 var chosenRange: ChosenRange = ChosenRange.DELETE_RANGE_LAST_24_HOURS,
40 ChosenRange.valueOf(
41 parcel.readString() ?: ChosenRange.DELETE_RANGE_LAST_24_HOURS.toString()),
116 ChosenRange.DELETE_RANGE_LAST_24_HOURS -> endTime.minus(ofDays(1)) in getStartTimeInstant()
117 ChosenRange.DELETE_RANGE_LAST_7_DAYS -> endTime.minus(ofDays(7)) in getStartTimeInstant()
118 ChosenRange.DELETE_RANGE_LAST_30_DAYS -> endTime.minus(ofDays(30)) in getStartTimeInstant()
119 ChosenRange.DELETE_RANGE_ALL_DATA -> Instant.EPOCH in getStartTimeInstant()
124 if (chosenRange == ChosenRange.DELETE_RANGE_ALL_DATA) { in getEndTimeInstant()
134 enum class ChosenRange { class
DTimeRangeDialogFragment.kt108 private fun getChosenRange(radioGroup: RadioGroup): ChosenRange { in <lambda>()
110 R.id.radio_button_one_day -> ChosenRange.DELETE_RANGE_LAST_24_HOURS in <lambda>()
111 R.id.radio_button_one_week -> ChosenRange.DELETE_RANGE_LAST_7_DAYS in <lambda>()
112 R.id.radio_button_one_month -> ChosenRange.DELETE_RANGE_LAST_30_DAYS in <lambda>()
113 else -> ChosenRange.DELETE_RANGE_ALL_DATA in <lambda>()
DDeletionAppDataConfirmationDialogFragment.kt82 viewModel.setChosenRange(ChosenRange.DELETE_RANGE_ALL_DATA) in <lambda>()
DDeletionViewModel.kt79 fun setChosenRange(chosenRange: ChosenRange) { in setChosenRange()
DDeletionFragment.kt149 viewModel.deletionParameters.value?.chosenRange == ChosenRange.DELETE_RANGE_ALL_DATA) { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/deletion/
DDeletionParametersTest.kt5 import com.android.healthconnect.controller.deletion.ChosenRange
26 chosenRange = ChosenRange.DELETE_RANGE_LAST_24_HOURS, in deletionToParcel()
49 chosenRange = ChosenRange.DELETE_RANGE_LAST_30_DAYS, in deletionTypeHealthPermissionTypeData_toParcel()
82 chosenRange = ChosenRange.DELETE_RANGE_LAST_30_DAYS, in deletionTypeCategoryData_toParcel()
111 chosenRange = ChosenRange.DELETE_RANGE_LAST_24_HOURS, in getPermissionTypeLabel_permissionTypeFromApp_correctPermissionLabelReturned()
146 chosenRange = ChosenRange.DELETE_RANGE_LAST_24_HOURS, in getStartTimeInstant_24HoursRangeSelected_correctStartTimeReturned()
158 chosenRange = ChosenRange.DELETE_RANGE_LAST_7_DAYS, in getStartTimeInstant_7DaysRangeSelected_correctStartTimeReturned()
170 chosenRange = ChosenRange.DELETE_RANGE_LAST_30_DAYS, in getStartTimeInstant_30DaysRangeSelected_correctStartTimeReturned()
182 chosenRange = ChosenRange.DELETE_RANGE_ALL_DATA, in getStartTimeInstant_allTimeRangeSelected_correctStartTimeReturned()
194 chosenRange = ChosenRange.DELETE_RANGE_LAST_7_DAYS, in getEndTimeInstant_24HoursRangeSelected_correctEndTimeReturned()
[all …]
DDeletionFragmentTest.kt31 import com.android.healthconnect.controller.deletion.ChosenRange
202 chosenRange = ChosenRange.DELETE_RANGE_LAST_24_HOURS)) in deleteAllData_confirmationDialogForOneDay_showsCorrectText()
235 chosenRange = ChosenRange.DELETE_RANGE_LAST_7_DAYS)) in deleteAllData_confirmationDialogForOneWeek_showsCorrectText()
268 chosenRange = ChosenRange.DELETE_RANGE_LAST_30_DAYS)) in deleteAllData_confirmationDialogForOneMonth_showsCorrectText()
301 chosenRange = ChosenRange.DELETE_RANGE_ALL_DATA)) in deleteAllData_confirmationDialogForAllTime_showsCorrectText()
335 chosenRange = ChosenRange.DELETE_RANGE_LAST_24_HOURS)) in deleteCategoryData_confirmationDialogForOneDay_showsCorrectText()
368 chosenRange = ChosenRange.DELETE_RANGE_LAST_7_DAYS)) in deleteCategoryData_confirmationDialogForOneWeek_showsCorrectText()
402 chosenRange = ChosenRange.DELETE_RANGE_LAST_30_DAYS)) in deleteCategoryData_confirmationDialogForOneMonth_showsCorrectText()
435 chosenRange = ChosenRange.DELETE_RANGE_ALL_DATA)) in deleteCategoryData_confirmationDialogForAllTime_showsCorrectText()
470 chosenRange = ChosenRange.DELETE_RANGE_LAST_24_HOURS)) in deletePermissionTypeData_confirmationDialogForOneDay_showsCorrectText()
[all …]