Home
last modified time | relevance | path

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

123

/frameworks/base/keystore/java/android/security/keystore2/
DKeyStoreCryptoOperationUtils.java113 switch (e.getErrorCode()) { in getInvalidKeyException()
139 if (e.getErrorCode() == KeyStore.NO_ERROR) { in getExceptionForCipherInit()
144 switch (e.getErrorCode()) { in getExceptionForCipherInit()
189 if (e.getErrorCode() != ErrorCode.INVALID_OPERATION_HANDLE) { in abortOperation()
DAndroidKeyStoreSpi.java128 if (((android.security.KeyStoreException) cause).getErrorCode() in engineGetKey()
168 if (e.getErrorCode() != ResponseCode.KEY_NOT_FOUND) { in getKeyMetadata()
943 + e.getErrorCode(), e); in setWrappedKeyEntry()
977 switch (e.getErrorCode()) { in setWrappedKeyEntry()
983 + "code: " + e.getErrorCode(), e); in setWrappedKeyEntry()
1044 if (e.getErrorCode() != ResponseCode.KEY_NOT_FOUND) { in engineDeleteEntry()
/frameworks/libs/gsma_services/satellite_client/src/android/telephony/satellite/wrapper/
DSatelliteManagerWrapper.java357 public int getErrorCode() { in getErrorCode() method in SatelliteManagerWrapper.SatelliteExceptionWrapper
389 callback.onError(new SatelliteExceptionWrapper(exception.getErrorCode())); in requestIsSatelliteEnabled()
408 callback.onError(new SatelliteExceptionWrapper(exception.getErrorCode())); in requestIsDemoModeEnabled()
427 callback.onError(new SatelliteExceptionWrapper(exception.getErrorCode())); in requestIsSatelliteSupported()
451 callback.onError(new SatelliteExceptionWrapper(exception.getErrorCode())); in requestSatelliteCapabilities()
591 callback.onError(new SatelliteExceptionWrapper(exception.getErrorCode())); in requestIsSatelliteProvisioned()
701 callback.onError(new SatelliteExceptionWrapper(exception.getErrorCode())); in requestIsSatelliteCommunicationAllowedForCurrentLocation()
724 callback.onError(new SatelliteExceptionWrapper(exception.getErrorCode())); in requestTimeForNextSatelliteVisibility()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp187 int getErrorCode() { in getErrorCode() function in android::os::dumpstate::DumpstateListener
475 while (!listener->getIsFinished() && listener->getErrorCode() == -1 && in WaitTillExecutionComplete()
519 listener->getErrorCode() == IDumpstateListener::BUGREPORT_ERROR_USER_DENIED_CONSENT || in TEST_F()
520 listener->getErrorCode() == IDumpstateListener::BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT); in TEST_F()
549 EXPECT_EQ(listener->getErrorCode(), IDumpstateListener::BUGREPORT_ERROR_INVALID_INPUT); in TEST_F()
593 EXPECT_EQ(listener2->getErrorCode(), in TEST_F()
602 listener1->getErrorCode() == IDumpstateListener::BUGREPORT_ERROR_USER_DENIED_CONSENT || in TEST_F()
603 listener1->getErrorCode() == IDumpstateListener::BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT); in TEST_F()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DStagingManagerTest.java160 assertThat(session1.getErrorCode()).isEqualTo(PackageManager.INSTALL_ACTIVATION_FAILED); in restoreSessions_deviceUpgrading_failsAllSessions()
163 assertThat(session2.getErrorCode()).isEqualTo(PackageManager.INSTALL_ACTIVATION_FAILED); in restoreSessions_deviceUpgrading_failsAllSessions()
248 assertThat(apexSession.getErrorCode()) in restoreSessions_unknownApexSession_failsAllSessions()
253 assertThat(apkSession.getErrorCode()) in restoreSessions_unknownApexSession_failsAllSessions()
304 assertThat(apexSession1.getErrorCode()) in restoreSessions_failedApexSessions_failsAllSessions()
309 assertThat(apexSession2.getErrorCode()) in restoreSessions_failedApexSessions_failsAllSessions()
314 assertThat(apexSession3.getErrorCode()) in restoreSessions_failedApexSessions_failsAllSessions()
319 assertThat(apkSession.getErrorCode()) in restoreSessions_failedApexSessions_failsAllSessions()
352 assertThat(apexSession.getErrorCode()) in restoreSessions_stagedApexSession_failsAllSessions()
357 assertThat(apkSession.getErrorCode()) in restoreSessions_stagedApexSession_failsAllSessions()
[all …]
/frameworks/av/media/module/service.mediatranscoding/tests/TranscodingUidPolicyTestApp/src/com/android/tests/transcoding/
DResourcePolicyTestActivity.java58 Log.d(TAG, "onError " + codec.toString() + " errorCode " + e.getErrorCode()); in onError()
181 Log.d(TAG, "CodecException 0x" + Integer.toHexString(e.getErrorCode())); in allocateCodecs()
211 Log.d(TAG, "useCodecs got CodecException 0x" + Integer.toHexString(e.getErrorCode())); in doUseCodecs()
212 if (e.getErrorCode() == MediaCodec.CodecException.ERROR_RECLAIMED) { in doUseCodecs()
/frameworks/base/core/java/android/webkit/
DWebResourceError.java32 public abstract int getErrorCode(); in getErrorCode() method in WebResourceError
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/
DUceDeviceState.java139 public Optional<Integer> getErrorCode() { in getErrorCode() method in UceDeviceState.DeviceStateResult
164 mErrorCode.equals(otherDeviceState.getErrorCode()) && in isDeviceStateEqual()
176 .append(", ErrorCode=").append(getErrorCode()) in toString()
204 mErrorCode = deviceState.get().getErrorCode(); in UceDeviceState()
/frameworks/base/core/java/android/content/pm/parsing/result/
DParseResult.java56 int getErrorCode(); in getErrorCode() method
DParseTypeImpl.java213 return error(intentResult.getErrorCode(), intentResult.getErrorMessage(),
256 public int getErrorCode() {
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccPortTest.java341 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testDisableProfile_Error()
377 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testSwitchToProfile_Error()
392 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testSwitchToProfile_MepA1()
441 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testDeleteProfile_Error()
622 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testAuthenticateServer_Error()
695 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testPrepareDownload_Error()
785 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testLoadBoundProfilePackage_ErrorAtEnd()
832 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testLoadBoundProfilePackage_ErrorInMiddle()
965 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testCancelSession_Error()
1001 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testListNotifications_Error()
[all …]
/frameworks/base/keystore/java/android/security/keystore/
DKeystoreResponse.java56 public final int getErrorCode() { in getErrorCode() method in KeystoreResponse
/frameworks/base/services/tests/servicestests/src/com/android/server/os/
DBugreportManagerServiceImplTest.java135 assertThat(listener.getErrorCode()).isEqualTo( in testRetrieveBugreportWithoutFilesForCaller()
208 int getErrorCode() { in getErrorCode() method in BugreportManagerServiceImplTest.Listener
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/http/
DHttpClientTest.java127 assertThat(exception.getErrorCode()).isEqualTo( in request_httpGetResponseBadRequest_throwsException()
216 assertThat(exception.getErrorCode()).isEqualTo( in request_getResponseCodeFailed_expectThrowsException()
242 assertThat(exception.getErrorCode()).isEqualTo( in request_getResponseBodyFailed_expectThrowsException()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/
DServiceEntitlementException.java119 public int getErrorCode() { in getErrorCode() method in ServiceEntitlementException
/frameworks/base/media/java/android/media/
DMediaCasStateException.java114 public int getErrorCode() { in getErrorCode() method in MediaCasStateException
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java541 assertThat(e.getErrorCode()).isEqualTo(FontManager.RESULT_ERROR_DOWNGRADING); in installFontFile_downgrade()
598 assertThat(e.getErrorCode()) in installFontFile_invalidSignature()
657 assertThat(e.getErrorCode()).isEqualTo(FontManager.RESULT_ERROR_DOWNGRADING); in installFontFile_preinstalled_downgrade()
688 assertThat(e.getErrorCode()) in installFontFile_failedToWriteConfigXml()
731 assertThat(e.getErrorCode()) in installFontFile_failedToParsePostScript()
768 assertThat(e.getErrorCode()) in installFontFile_failedToParsePostScriptName_invalidFont()
806 assertThat(e.getErrorCode()) in installFontFile_failedToCreateTypeface()
841 assertThat(e.getErrorCode()) in installFontFile_renameToPsNameFailure()
918 assertThat(e.getErrorCode()) in addFontFamily_fontNotAvailable()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/
DEuiccCardErrorException.java103 public int getErrorCode() { in getErrorCode() method in EuiccCardErrorException
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DSubscribeRequestCoordinator.java118 int errorCode = deviceState.getErrorCode().orElse(RcsUceAdapter.ERROR_FORBIDDEN);
144 if (terminatedResult.getErrorCode().isPresent()) {
146 int errorCode = terminatedResult.getErrorCode().get();
562 int errorCode = result.getErrorCode().orElse(DEFAULT_ERROR_CODE); in checkAndFinishRequestCoordinator()
DSubscriptionTerminatedHelper.java60 public Optional<Integer> getErrorCode() { in getErrorCode() method in SubscriptionTerminatedHelper.TerminatedResult
/frameworks/base/core/java/android/service/voice/
DHotwordDetectionServiceFailure.java117 public int getErrorCode() { in getErrorCode() method in HotwordDetectionServiceFailure
DVisualQueryDetectionServiceFailure.java102 public int getErrorCode() { in getErrorCode() method in VisualQueryDetectionServiceFailure
DSoundTriggerFailure.java119 public int getErrorCode() { in getErrorCode() method in SoundTriggerFailure
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/eapaka/
DEapAkaApiTest.java217 assertThat(exception.getErrorCode()) in queryEntitlementStatus_noAuthenticationToken_invalidChallenge()
353 assertThat(exception.getErrorCode()) in queryEntitlementStatus_noAuthenticationToken_fourthChallenge_throwException()
400 assertThat(exception.getErrorCode()).isEqualTo( in queryEntitlementStatus_noAuthenticationToken_emptyResponseBody_throwException()
477 assertThat(exception.getErrorCode()) in queryEntitlementStatus_noAuthenticationToken_eapAkaSyncFailure_invalidChallenge()
518 assertThat(exception.getErrorCode()) in queryEntitlementStatus_noAuthenticationToken_fourthEapAkaSyncFailure()
696 assertThat(exception.getErrorCode()) in performEsimOdsaOperation_noAuthenticationToken_invalidChallenge()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/
DUceControllerTest.java161 .getErrorCode(); in testRequestCapabilitiesWithForbidden()
208 .getErrorCode(); in testRequestAvailabilityWithForbidden()

123