Home
last modified time | relevance | path

Searched refs:getErrorCode (Results 1 – 25 of 150) sorted by relevance

123456

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/
DHealthConnectManagerNoPermissionsGrantedTest.java114 assertThat(healthConnectException.getErrorCode()) in testInsert_noPermissions_expectError()
127 assertThat(healthConnectException.getErrorCode()) in testUpdate_noPermissions_expectError()
140 assertThat(healthConnectException.getErrorCode()) in testDeleteUsingId_noPermissions_expectError()
158 assertThat(healthConnectException.getErrorCode()) in testDeleteUsingFilter_noPermissions_expectError()
175 assertThat(healthConnectException.getErrorCode()) in testChangeLogsToken_noPermissions_expectError()
212 assertThat(healthConnectException.getErrorCode()) in testGetChangeLogs_noPermissions_expectError()
228 assertThat(healthConnectException.getErrorCode()) in testReadByFilters_noPermissions_expectError()
246 assertThat(healthConnectException.getErrorCode()) in testReadByRecordIds_noPermissions_expectError()
264 assertThat(healthConnectException.getErrorCode()) in testReadByClientIds_noPermissions_expectError()
298 assertThat(healthConnectException.getErrorCode()) in testAggregate_noPermissions_expectError()
[all …]
DHealthConnectManagerNotAllPermissionsAreGrantedTest.java85 assertThat(healthConnectException.getErrorCode()) in testInsert_somePermissionsAreNotGranted_expectError()
97 assertThat(healthConnectException.getErrorCode()) in testUpdate_somePermissionsAreNotGranted_expectError()
110 assertThat(healthConnectException.getErrorCode()) in testDeleteUsingIds_somePermissionsAreNotGranted_expectError()
128 assertThat(healthConnectException.getErrorCode()) in testGetChangeLogToken_somePermissionsAreNotGranted_expectError()
169 assertThat(healthConnectException.getErrorCode()) in testGetChangeLogs_somePermissionsAreNotGranted_expectError()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/logging/
DHealthConnectServiceStatsTests.java87 assertThat(atom.getErrorCode()).isEqualTo(0); in testInsertRecords()
105 assertThat(atom.getErrorCode()).isNotEqualTo(0); in testInsertRecordsError()
124 assertThat(atom.getErrorCode()).isEqualTo(0); in testUpdateRecords()
143 assertThat(atom.getErrorCode()).isNotEqualTo(0); in testUpdateRecordsError()
165 assertThat(atom.getErrorCode()).isEqualTo(0); in testDeleteRecords()
186 assertThat(atom.getErrorCode()).isNotEqualTo(0); in testDeleteRecordsError()
203 assertThat(atom.getErrorCode()).isEqualTo(0); in testReadRecords()
222 assertThat(atom.getErrorCode()).isNotEqualTo(0); in testReadRecordsError()
240 assertThat(atom.getErrorCode()).isEqualTo(0); in testChangeLogTokenRequest()
258 assertThat(atom.getErrorCode()).isNotEqualTo(0); in testChangeLogTokenRequestError()
[all …]
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DRkpdExceptionTest.java39 assertThat(ex.getErrorCode()).isEqualTo(ErrorCode.HTTP_UNKNOWN_ERROR); in handlesUnknownHttpStatus()
51 .that(ex.getErrorCode()).isEqualTo(ErrorCode.HTTP_SERVER_ERROR); in handlesServerErrors()
63 assertThat(ex.getErrorCode()).isEqualTo(ErrorCode.DEVICE_NOT_REGISTERED); in handlesClientErrors()
66 .that(ex.getErrorCode()).isEqualTo(ErrorCode.HTTP_CLIENT_ERROR); in handlesClientErrors()
DServerInterfaceTest.java85 assertThat(e.getErrorCode()).isEqualTo(RkpdException.ErrorCode.HTTP_SERVER_ERROR); in testRetryOnServerFailure()
177 assertThat(e.getErrorCode()).isEqualTo(RkpdException.ErrorCode.DEVICE_NOT_REGISTERED); in testRequestSignedCertUnregistered()
194 assertThat(e.getErrorCode()).isEqualTo(RkpdException.ErrorCode.HTTP_CLIENT_ERROR); in testRequestSignedCertClientError()
210 assertThat(e.getErrorCode()).isEqualTo(RkpdException.ErrorCode.INTERNAL_ERROR); in testRequestSignedCertCborError()
249 assertThat(e.getErrorCode()).isEqualTo( in testDataBudgetEmptyFetchGeekNetworkConnected()
272 assertThat(e.getErrorCode()).isEqualTo(RkpdException.ErrorCode.NO_NETWORK_CONNECTIVITY); in testNetworkDisconnected()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DNetworkIpProvisioningMetricsTest.java80 assertEquals(DhcpErrorCode.ET_BOOTP_TOO_SHORT, mStats.getDhcpSession().getErrorCode(0)); in testIpProvisioningMetrics_addDhcpErrorCode()
81 assertEquals(DhcpErrorCode.ET_BUFFER_UNDERFLOW, mStats.getDhcpSession().getErrorCode(1)); in testIpProvisioningMetrics_addDhcpErrorCode()
84 assertEquals(DhcpErrorCode.ET_UNKNOWN, mStats.getDhcpSession().getErrorCode(2)); in testIpProvisioningMetrics_addDhcpErrorCode()
86 assertEquals(DhcpErrorCode.ET_PARSING_ERROR, mStats.getDhcpSession().getErrorCode(3)); in testIpProvisioningMetrics_addDhcpErrorCode()
87 assertEquals(DhcpErrorCode.ET_PARSING_ERROR, mStats.getDhcpSession().getErrorCode(4)); in testIpProvisioningMetrics_addDhcpErrorCode()
/packages/services/Car/car-lib/src/com/android/car/internal/property/
DCarPropertyEventCallbackController.java67 carPropertyValue, carPropertyEvent.getErrorCode()); in onEvent()
81 updatedCarPropertyEvent.getErrorCode())); in onEvent()
84 Slog.e(TAG, "onEvent: unknown errorCode=" + updatedCarPropertyEvent.getErrorCode() in onEvent()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/errorlogging/
DAdServicesErrorStatsTest.java47 expect.that(errorData.getErrorCode()).isEqualTo(ERROR_CODE); in testBuilderCreateSuccess()
65 expect.that(errorData.getErrorCode()).isEqualTo(ERROR_CODE); in testBuilderCreateSuccess_lineNumberMissing_ppapiNameMissing()
81 expect.that(errorData.getErrorCode()).isEqualTo(ERROR_CODE); in testBuilderCreateSuccess_exceptionInfoMissing()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java420 healthConnectException.getErrorCode()); in insertRecords()
425 healthConnectException.getErrorCode()); in insertRecords()
548 healthConnectException.getErrorCode()); in aggregateRecords()
553 healthConnectException.getErrorCode()); in aggregateRecords()
759 healthConnectException.getErrorCode()); in readRecords()
764 healthConnectException.getErrorCode()); in readRecords()
879 healthConnectException.getErrorCode()); in updateRecords()
884 healthConnectException.getErrorCode()); in updateRecords()
955 healthConnectException.getErrorCode()); in getChangeLogToken()
960 healthConnectException.getErrorCode()); in getChangeLogToken()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DAidlVehicleStubUnitTest.java475 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlError()
497 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlServiceSpecificExceptionInternalError()
510 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlServiceSpecificExceptionTryAgainError()
523 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlServiceSpecificExceptionNotAvailable()
536 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlServiceSpecificExceptionNotAvailableDisabled()
549 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlServiceSpecificExceptionNotAvailableSpeedLow()
562 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlServiceSpecificExceptionNotAvailableSpeedHigh()
576 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlServiceSpecificExceptionNotAvailablePoorVisibility()
589 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlServiceSpecificExceptionNotAvailableSafety()
1096 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo(STATUS_OK); in testSetAsync()
[all …]
DHidlVehicleStubUnitTest.java430 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncError()
453 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncTryAgainError()
488 assertThat(callResult0.get(0).getErrorCode()).isEqualTo( in testGetAsyncOneOkayResultOneNoValue()
495 assertThat(callResult1.get(0).getErrorCode()).isEqualTo(STATUS_OK); in testGetAsyncOneOkayResultOneNoValue()
542 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo(STATUS_OK); in testSetAsync()
559 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testSetAsyncRemoteException()
577 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testSetAsyncServiceSpecificExceptionTryAgain()
595 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testSetAsyncServiceSpecificExceptionNotAvailable()
613 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testSetAsyncServiceSpecificExceptionInternal()
/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/AdServices/adservices/framework/java/android/adservices/exceptions/
DAdServicesNetworkException.java96 public int getErrorCode() { in getErrorCode() method in AdServicesNetworkException
109 this.getErrorCode()); in toString()
/packages/services/Telephony/testapps/TestSatelliteApp/src/com/android/phone/testapps/satellitetestapp/
DSatelliteControl.java154 errorCode.set(exception.getErrorCode()); in requestIsEnabledApp()
182 errorCode.set(exception.getErrorCode()); in requestIsDemoModeEnabledApp()
210 errorCode.set(exception.getErrorCode()); in requestIsSupportedApp()
234 errorCode.set(exception.getErrorCode()); in requestCapabilitiesApp()
263 errorCode.set(exception.getErrorCode()); in requestIsCommunicationAllowedForCurrentLocationApp()
288 errorCode.set(exception.getErrorCode()); in requestTimeForNextSatelliteVisibilityApp()
/packages/modules/RemoteKeyProvisioning/app/tests/e2e/src/com/android/rkpdapp/e2etest/
DKeystoreIntegrationTest.java254 assertThat(((KeyStoreException) e.getCause()).getErrorCode()) in testKeyCreationFailsWhenRkpFails()
291 assertThat(keyStoreException.getErrorCode()) in testDataBudgetEmptyGenerateKey()
307 assertThat(keyStoreException.getErrorCode()) in testRetryableRkpError()
325 assertThat(keyStoreException.getErrorCode()) in testPeriodicProvisionerProvisioningDisabled()
343 assertThat(keyStoreException.getErrorCode()) in testRetryNeverWhenDeviceNotRegistered()
371 assertThat(keyStoreException.getErrorCode()) in testCancelDueToServiceTimeout()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarBugreportManagerTest.java149 assertThat(callback2.getErrorCode()).isEqualTo( in test_requestBugreport_cannotRunMultipleBugreports()
172 assertThat(callback2.getErrorCode()).isEqualTo(NO_ERROR); in test_cancelBugreport_works()
330 int getErrorCode() { in getErrorCode() method in CarBugreportManagerTest.FakeCarBugreportCallback
343 return mEndedLatch.getCount() == 0 && getErrorCode() == NO_ERROR; in isFinishedSuccessfully()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkExceptionTest.java52 assertThat(errorThreadDisabled.getErrorCode()).isEqualTo(ERROR_THREAD_DISABLED); in constructor_validValues_valuesAreConnectlySet()
54 assertThat(errorInternalError.getErrorCode()).isEqualTo(ERROR_INTERNAL_ERROR); in constructor_validValues_valuesAreConnectlySet()
/packages/modules/Profiling/tests/cts/src/android/profiling/cts/
DProfilingFrameworkTests.java173 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testInvalidProfilingType()
200 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testInvalidProfilingParams()
656 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testJavaHeapDumpKillswitchEnabled()
682 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testHeapProfileKillswitchEnabled()
709 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testStackSamplingKillswitchEnabled()
735 assertEquals(ProfilingResult.ERROR_FAILED_INVALID_REQUEST, callback.mResult.getErrorCode()); in testSystemTraceKillswitchEnabled()
904 assertEquals(ProfilingResult.ERROR_NONE, result.getErrorCode()); in confirmCollectionSuccess()
918 assertEquals(ProfilingResult.ERROR_NONE, result.getErrorCode()); in dumpTrace()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java278 + exception.getErrorCode()); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
346 + exception.getErrorCode()); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
357 assertThat(responseException.get().getErrorCode()) in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
422 + exception.getErrorCode()); in testUpdateRecords_recordWithInvalidPackageName_noChangeInDataBase()
895 .getErrorCode()) in testStageRemoteData_whenNotReadMode_errorIoReturned()
1029 .getErrorCode()) in testStageRemoteData_withoutPermission_errorSecurityReturned()
1565 assertThat(returnedException.get().getErrorCode()) in testGetHealthConnectDataState_withoutPermission_returnsSecurityException()
1590 assertThat(exception.getErrorCode()) in testDataApis_migrationInProgress_apisBlocked()
1603 assertThat(exception.getErrorCode()) in testDataApis_migrationInProgress_apisBlocked()
1612 assertThat(exception.getErrorCode()) in testDataApis_migrationInProgress_apisBlocked()
[all …]
DHealthPermissionCategoryPriorityTests.java93 assertThat(healthConnectException.getErrorCode()) in testGetPriority_no_perm()
137 assertThat(healthConnectException.getErrorCode()) in testUpdatePriority_no_perm()
DSessionDatatypeDisabledFeatureTest.java78 assertThat(healthConnectException.getErrorCode()) in testWriteExerciseSession_insertWithDisableFeature_throwsException()
105 assertThat(healthConnectException.getErrorCode()) in testWriteSleepSession_insertWithDisableFeature_throwsException()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/
DHealthConnectDeviceTest.java206 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_INVALID_ARGUMENT); in testAnAppCantDeleteAnotherAppEntry()
220 assertThat(e.getErrorCode()).isEqualTo(HealthConnectException.ERROR_INVALID_ARGUMENT); in testAnAppCantUpdateAnotherAppEntry()
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()
[all …]
/packages/services/Car/service/src/com/android/car/
DVehicleStub.java118 public int getErrorCode() { in getErrorCode() method in VehicleStub.GetVehicleStubAsyncResult
166 public int getErrorCode() { in getErrorCode() method in VehicleStub.SetVehicleStubAsyncResult
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/backgroundread/
DBackgroundReadTest.java111 assertThat(TestReceiver.getErrorCode()).isEqualTo(ERROR_SECURITY); in testReadRecordsByFilters_inBackgroundWithoutPermission_cannotReadOtherAppsData()
281 assertThat(TestReceiver.getErrorCode()).isEqualTo(ERROR_SECURITY); in assertSecurityError()
286 assertThat(TestReceiver.getErrorCode()).isNull(); in assertSuccess()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyManagerTest.java769 assertThat(callback.getErrorCode()).isEqualTo( in testReceiveOnErrorEvent()
1277 assertThat(error.getErrorCode()).isNotEqualTo(0); in testGetPropertiesAsync()
1284 .that(error.getErrorCode()).isEqualTo(STATUS_ERROR_INTERNAL_ERROR); in testGetPropertiesAsync()
1291 .that(error.getErrorCode()).isEqualTo(STATUS_ERROR_NOT_AVAILABLE); in testGetPropertiesAsync()
1296 .that(error.getErrorCode()).isEqualTo(STATUS_ERROR_TIMEOUT); in testGetPropertiesAsync()
1301 .that(error.getErrorCode()).isEqualTo(STATUS_ERROR_INTERNAL_ERROR); in testGetPropertiesAsync()
1396 .that(error.getErrorCode()).isEqualTo(STATUS_ERROR_INTERNAL_ERROR); in testSetPropertiesAsync()
1402 .that(error.getErrorCode()).isEqualTo(STATUS_ERROR_NOT_AVAILABLE); in testSetPropertiesAsync()
1407 .that(error.getErrorCode()).isEqualTo(STATUS_ERROR_TIMEOUT); in testSetPropertiesAsync()
1412 .that(error.getErrorCode()).isEqualTo(STATUS_ERROR_NOT_AVAILABLE); in testSetPropertiesAsync()
[all …]

123456