Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/
DHealthConnectManagerNoPermissionsGrantedTest.java115 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testInsert_noPermissions_expectError()
128 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testUpdate_noPermissions_expectError()
141 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testDeleteUsingId_noPermissions_expectError()
159 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testDeleteUsingFilter_noPermissions_expectError()
176 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testChangeLogsToken_noPermissions_expectError()
213 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testGetChangeLogs_noPermissions_expectError()
229 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testReadByFilters_noPermissions_expectError()
247 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testReadByRecordIds_noPermissions_expectError()
265 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testReadByClientIds_noPermissions_expectError()
299 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testAggregate_noPermissions_expectError()
[all …]
DHealthConnectManagerNotAllPermissionsAreGrantedTest.java86 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testInsert_somePermissionsAreNotGranted_expectError()
98 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testUpdate_somePermissionsAreNotGranted_expectError()
111 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testDeleteUsingIds_somePermissionsAreNotGranted_expectError()
129 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testGetChangeLogToken_somePermissionsAreNotGranted_expectError()
170 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testGetChangeLogs_somePermissionsAreNotGranted_expectError()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java24 import static android.health.connect.HealthConnectException.ERROR_SECURITY;
415 logger.setHealthDataServiceApiStatusError(ERROR_SECURITY); in insertRecords()
417 tryAndThrowException(callback, securityException, ERROR_SECURITY); in insertRecords()
543 logger.setHealthDataServiceApiStatusError(ERROR_SECURITY); in aggregateRecords()
545 tryAndThrowException(callback, securityException, ERROR_SECURITY); in aggregateRecords()
750 logger.setHealthDataServiceApiStatusError(ERROR_SECURITY); in readRecords()
752 tryAndThrowException(callback, securityException, ERROR_SECURITY); in readRecords()
861 logger.setHealthDataServiceApiStatusError(ERROR_SECURITY); in updateRecords()
862 tryAndThrowException(callback, securityException, ERROR_SECURITY); in updateRecords()
942 logger.setHealthDataServiceApiStatusError(ERROR_SECURITY); in getChangeLogToken()
[all …]
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/
DExerciseRouteNoReadWritePermissionTest.java87 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in insertRecords_canNotInsertRoute()
130 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in insertRecords_withSameClientId_updatedRoute_throws_routeDoesNotGetUpdated()
155 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in insertRecords_withSameClientId_addedRoute_throws_routeDoesNotGetAdded()
198 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in updateRecords_withUpdatedRoute_throws_routeDoesNotGetUpdated()
224 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in updateRecords_withAddedRoute_throws_routeDoesNotGetAdded()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthConnectException.java52 public static final int ERROR_SECURITY = 5; field in HealthConnectException
127 ERROR_SECURITY,
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthPermissionCategoryPriorityTests.java94 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testGetPriority_no_perm()
138 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testUpdatePriority_no_perm()
DGetApplicationInfoTest.java111 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testEmptyApplicationInfo_no_perm()
DHealthConnectManagerTest.java1030 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testStageRemoteData_withoutPermission_errorSecurityReturned()
1566 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testGetHealthConnectDataState_withoutPermission_returnsSecurityException()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/
DHealthConnectDeviceTest.java279 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in testAppWithWritePermsOnly_readDataFromAllApps_throwsError()
303 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in testAppWithWritePermsOnly_readDataFromOtherApps_throwsError()
513 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in testAggregateRecords_onlyWritePermissions_requestsOthersData_throwsHcException()
532 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in testAggregateRecords_onlyWritePermissions_allDataRequested_throwsHcException()
562 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in testAggregateRecords_someReadAndWritePermissions_requestsOthersData_throwsHcException()
575 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in testAppWithManageHealthDataPermsOnlyCantInsertRecords()
589 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in testAppWithManageHealthDataPermsOnlyCantUpdateRecords()
1153 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in testToVerifyNoPermissionChangeLog()
1168 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_SECURITY); in testToVerifyNoPermissionChangeLog()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/backgroundread/
DBackgroundReadTest.java19 import static android.health.connect.HealthConnectException.ERROR_SECURITY;
111 assertThat(TestReceiver.getErrorCode()).isEqualTo(ERROR_SECURITY); in testReadRecordsByFilters_inBackgroundWithoutPermission_cannotReadOtherAppsData()
281 assertThat(TestReceiver.getErrorCode()).isEqualTo(ERROR_SECURITY); in assertSecurityError()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/backuprestore/
DBackupRestore.java287 HealthConnectException.ERROR_SECURITY, e.getMessage())); in stageAllHealthConnectRemoteData()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt64 field public static final int ERROR_SECURITY = 5; // 0x5