Searched refs:ERROR_SECURITY (Results 1 – 12 of 12) sorted by relevance
115 .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 …]
86 .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()
24 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 …]
87 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()
52 public static final int ERROR_SECURITY = 5; field in HealthConnectException127 ERROR_SECURITY,
94 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testGetPriority_no_perm()138 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testUpdatePriority_no_perm()
111 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testEmptyApplicationInfo_no_perm()
1030 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testStageRemoteData_withoutPermission_errorSecurityReturned()1566 .isEqualTo(HealthConnectException.ERROR_SECURITY); in testGetHealthConnectDataState_withoutPermission_returnsSecurityException()
279 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()
19 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()
287 HealthConnectException.ERROR_SECURITY, e.getMessage())); in stageAllHealthConnectRemoteData()
64 field public static final int ERROR_SECURITY = 5; // 0x5