Home
last modified time | relevance | path

Searched refs:deletionType (Results 1 – 20 of 20) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/deletion/
DDeletionParametersTest.kt27 deletionType = DeletionType.DeletionTypeAllData(), in deletionToParcel()
37 assertTrue(deletionParameters.deletionType == outValue?.deletionType) in deletionToParcel()
44 val deletionType = in deletionTypeHealthPermissionTypeData_toParcel() constant
52 deletionType = deletionType, in deletionTypeHealthPermissionTypeData_toParcel()
65 assertTrue(deletionParameters.deletionType == outValue?.deletionType) in deletionTypeHealthPermissionTypeData_toParcel()
67 deletionType.healthPermissionType == in deletionTypeHealthPermissionTypeData_toParcel()
68 (outValue?.deletionType as DeletionType.DeletionTypeHealthPermissionTypeData) in deletionTypeHealthPermissionTypeData_toParcel()
79 val deletionType = DeletionType.DeletionTypeCategoryData(HealthDataCategory.ACTIVITY) in deletionTypeCategoryData_toParcel() constant
85 deletionType = deletionType, in deletionTypeCategoryData_toParcel()
98 assertTrue(deletionParameters.deletionType == outValue?.deletionType) in deletionTypeCategoryData_toParcel()
[all …]
DDeletionFragmentTest.kt73 MutableLiveData(DeletionParameters(deletionType = deletionTypeAllData)) in deleteAllData_timeRangeDialog_showsCorrectText()
104 MutableLiveData(DeletionParameters(deletionType = deletionTypeCategory)) in deleteCategoryData_timeRangeDialog_showsCorrectText()
136 MutableLiveData(DeletionParameters(deletionType = deletionTypeHealthPermissionType)) in deletePermissionTypeData_timeRangeDialog_showsCorrectText()
169 MutableLiveData(DeletionParameters(deletionType = deletionTypeAppData)) in deleteAppData_timeRangeDialog_showsCorrectText()
201 deletionType = deletionTypeAllData, in deleteAllData_confirmationDialogForOneDay_showsCorrectText()
234 deletionType = deletionTypeAllData, in deleteAllData_confirmationDialogForOneWeek_showsCorrectText()
267 deletionType = deletionTypeAllData, in deleteAllData_confirmationDialogForOneMonth_showsCorrectText()
300 deletionType = deletionTypeAllData, in deleteAllData_confirmationDialogForAllTime_showsCorrectText()
334 deletionType = deletionTypeCategory, in deleteCategoryData_confirmationDialogForOneDay_showsCorrectText()
367 deletionType = deletionTypeCategory, in deleteCategoryData_confirmationDialogForOneWeek_showsCorrectText()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/selectabledeletion/
DDeletionTypeTest.kt16 val deletionType = in deletionTypeHealthPermissionTypeData_isParcelable() constant
23 deletionType.writeToParcel(parcel, 0) in deletionTypeHealthPermissionTypeData_isParcelable()
30 recreatedDeletionType.healthPermissionTypes == deletionType.healthPermissionTypes) in deletionTypeHealthPermissionTypeData_isParcelable()
38 val deletionType = in deletionTypeAppData_isParcelable() constant
43 deletionType.writeToParcel(parcel, 0) in deletionTypeAppData_isParcelable()
49 assertTrue(recreatedDeletionType.appName == deletionType.appName) in deletionTypeAppData_isParcelable()
50 assertTrue(recreatedDeletionType.packageName == deletionType.packageName) in deletionTypeAppData_isParcelable()
58 val deletionType = in deletionTypeEntries_isParcelable() constant
63 deletionType.writeToParcel(parcel, 0) in deletionTypeEntries_isParcelable()
69 assertTrue(recreatedDeletionType.dataType == deletionType.dataType) in deletionTypeEntries_isParcelable()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/
DDeletionParameters.kt32 var deletionType: DeletionType = DeletionType.DeletionTypeAllData(), variable in com.android.healthconnect.controller.deletion.DeletionParameters
58 parcel.writeString(this.deletionType.toString()) in writeToParcel()
75 check(deletionType.hasPermissionType) { in getPermissionTypeLabel()
80 if (deletionType is DeletionType.DeletionTypeHealthPermissionTypeData) in getPermissionTypeLabel()
81 (deletionType as DeletionType.DeletionTypeHealthPermissionTypeData) in getPermissionTypeLabel()
84 (deletionType as DeletionType.DeletionTypeHealthPermissionTypeFromApp) in getPermissionTypeLabel()
92 check(deletionType.hasCategory) { in getCategoryLabel()
96 val category = (deletionType as DeletionType.DeletionTypeCategoryData).category in getCategoryLabel()
102 check(deletionType.hasAppData) { "App name not supported for this Deletion parameter" } in getAppName()
105 if (deletionType is DeletionType.DeletionTypeAppData) in getAppName()
[all …]
DDeletionViewModel.kt66 fun setDeletionType(deletionType: DeletionType) { in setDeletionType()
68 when (deletionType) { in setDeletionType()
76 deletionType = deletionType) in setDeletionType()
121 when (val deletionType = currentDeletionParameters().deletionType) { in delete() constant
123 _deletionParameters.value?.let { deleteEntryUseCase.invoke(deletionType) } in delete()
133 deleteCategoryUseCase.invoke(deletionType, timeRangeFilter) in delete()
139 deletePermissionTypeUseCase.invoke(deletionType, timeRangeFilter) in delete()
145 deletionType, timeRangeFilter, _removePermissions) in delete()
DDeletionFragment.kt67 val deletionType = bundle.getParcelable(DELETION_TYPE, DeletionType::class.java) in <lambda>() constant
70 viewModel.setDeletionType(deletionType!!) in <lambda>()
75 showFirstDialog(deletionType, false) in <lambda>()
81 val deletionType = bundle.getParcelable(DELETION_TYPE, DeletionType::class.java) in <lambda>() constant
82 viewModel.setDeletionType(deletionType!!) in <lambda>()
83 showFirstDialog(deletionType, true) in <lambda>()
148 if (viewModel.deletionParameters.value?.deletionType is DeletionType.DeletionTypeAppData && in <lambda>()
185 private fun showFirstDialog(deletionType: DeletionType, isInactiveApp: Boolean) { in <lambda>()
189 when (deletionType) { in <lambda>()
DDeletionConfirmationDialogFragment.kt84 val deletionType = deletionParameters.deletionType in <lambda>() constant
87 when (deletionType) { in <lambda>()
153 val deletionType = deletionParameters.deletionType in <lambda>() constant
156 if (deletionType is DeletionType.DeleteDataEntry && in <lambda>()
157 deletionType.dataType == DataType.MENSTRUATION_PERIOD) { in <lambda>()
DTimeRangeDialogFragment.kt83 val deletionType: DeletionType = deletionParameters.deletionType in <lambda>() constant
85 return when (deletionType) { in <lambda>()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/rollback/
DRollbackHandlingManager.java98 public void recordAdServicesDataDeletion(@AdServicesManager.DeletionApiType int deletionType) in recordAdServicesDataDeletion() argument
100 BooleanFileDatastore datastore = getOrCreateBooleanFileDatastore(deletionType); in recordAdServicesDataDeletion()
111 public boolean wasAdServicesDataDeleted(@AdServicesManager.DeletionApiType int deletionType) in wasAdServicesDataDeleted() argument
113 BooleanFileDatastore datastore = getOrCreateBooleanFileDatastore(deletionType); in wasAdServicesDataDeleted()
120 public int getPreviousStoredVersion(@AdServicesManager.DeletionApiType int deletionType) in getPreviousStoredVersion() argument
122 BooleanFileDatastore datastore = getOrCreateBooleanFileDatastore(deletionType); in getPreviousStoredVersion()
130 public void resetAdServicesDataDeletion(@AdServicesManager.DeletionApiType int deletionType) in resetAdServicesDataDeletion() argument
132 BooleanFileDatastore datastore = getOrCreateBooleanFileDatastore(deletionType); in resetAdServicesDataDeletion()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/selectabledeletion/
DDeletionViewModel.kt39 private lateinit var deletionType: DeletionType variable in com.android.healthconnect.controller.selectabledeletion.DeletionViewModel
60 when (deletionType) { in delete()
63 deletionType as DeletionType.DeletionTypeHealthPermissionTypes) in delete()
89deletionType = DeletionType.DeletionTypeHealthPermissionTypes(setOfPermissionTypesToBeDeleted.toLi… in setDeleteSet()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DAdServicesManagerService.java835 @AdServicesManager.DeletionApiType int deletionType) { in recordAdServicesDeletionOccurred()
842 userIdentifier, deletionType); in recordAdServicesDeletionOccurred()
846 .recordAdServicesDataDeletion(deletionType); in recordAdServicesDeletionOccurred()
853 @AdServicesManager.DeletionApiType int deletionType) { in needsToHandleRollbackReconciliation()
860 if (!hasAdServicesDeletionOccurred(deletionType)) { in needsToHandleRollbackReconciliation()
866 int previousStoredVersion = getPreviousStoredVersion(deletionType); in needsToHandleRollbackReconciliation()
872 resetAdServicesDeletionOccurred(deletionType); in needsToHandleRollbackReconciliation()
882 boolean hasAdServicesDeletionOccurred(@AdServicesManager.DeletionApiType int deletionType) { in hasAdServicesDeletionOccurred() argument
886 .wasAdServicesDataDeleted(deletionType)); in hasAdServicesDeletionOccurred()
890 void resetAdServicesDeletionOccurred(@AdServicesManager.DeletionApiType int deletionType) { in resetAdServicesDeletionOccurred() argument
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/
DDataEntriesFragment.kt226 val index = (params.deletionType as DeletionType.DeleteDataEntry).index in <lambda>()
290 val deletionType = DeletionType.DeleteDataEntry(uuid, dataType, index) in <lambda>() constant
292 if (deletionType.dataType == DataType.MENSTRUATION_PERIOD) { in <lambda>()
296 DELETION_TYPE to deletionType, START_TIME to startTime, END_TIME to endTime)) in <lambda>()
299 START_DELETION_EVENT, bundleOf(DELETION_TYPE to deletionType)) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataaccess/
DHealthDataAccessFragment.kt142 val deletionType = in <lambda>() constant
146 START_DELETION_EVENT, bundleOf(DELETION_TYPE to deletionType)) in <lambda>()
248 val deletionType = in <lambda>() constant
252 START_DELETION_EVENT, bundleOf(DELETION_TYPE to deletionType)) in <lambda>()
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/
DIAdServicesManager.aidl41 void recordAdServicesDeletionOccurred(in int deletionType); in recordAdServicesDeletionOccurred() argument
46 boolean needsToHandleRollbackReconciliation(in int deletionType); in needsToHandleRollbackReconciliation() argument
DAdServicesManager.java390 public void recordAdServicesDeletionOccurred(@DeletionApiType int deletionType) { in recordAdServicesDeletionOccurred() argument
392 mService.recordAdServicesDeletionOccurred(deletionType); in recordAdServicesDeletionOccurred()
452 public boolean needsToHandleRollbackReconciliation(@DeletionApiType int deletionType) { in needsToHandleRollbackReconciliation() argument
454 return mService.needsToHandleRollbackReconciliation(deletionType); in needsToHandleRollbackReconciliation()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/entrydetails/
DDataEntryDetailsFragment.kt251 val deletionType = DeletionType.DeleteDataEntry(uuid, dataType, index) in <lambda>() constant
253 if (deletionType.dataType == DataType.MENSTRUATION_PERIOD) { in <lambda>()
257 DELETION_TYPE to deletionType, START_TIME to startTime, END_TIME to endTime)) in <lambda>()
260 START_DELETION_EVENT, bundleOf(DELETION_TYPE to deletionType)) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/access/
DAccessFragment.kt185 val deletionType = in <lambda>() constant
189 START_DELETION_EVENT, bundleOf(DELETION_TYPE to deletionType)) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/categories/
DHealthDataCategoriesFragment.kt106 val deletionType = DeletionType.DeletionTypeAllData() in <lambda>() constant
108 START_DELETION_EVENT, bundleOf(DELETION_TYPE to deletionType)) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/
DHealthPermissionTypesFragment.kt123 val deletionType = DeletionType.DeletionTypeCategoryData(category = category) in <lambda>() constant
125 START_DELETION_EVENT, bundleOf(DELETION_TYPE to deletionType)) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DConnectedAppFragment.kt241 val deletionType = DeletionType.DeletionTypeAppData(packageName, appName) in <lambda>() constant
243 START_DELETION_EVENT, bundleOf(DELETION_TYPE to deletionType)) in <lambda>()