/aosp14/frameworks/base/core/java/android/security/keymaster/ |
H A D | KeymasterDefs.java | 22 import android.hardware.security.keymint.ErrorCode; 240 ErrorCode.INVALID_USER_ID; // -15; 260 ErrorCode.KEY_EXPIRED; // -25; 288 ErrorCode.UNSUPPORTED_TAG; // -39; 290 ErrorCode.INVALID_TAG; // -40; 302 ErrorCode.SECURE_HW_BUSY; // -48; 308 ErrorCode.MISSING_NONCE; // -51; 310 ErrorCode.INVALID_NONCE; // -52; 341 ErrorCode.DEVICE_LOCKED; // -72; 355 ErrorCode.UNIMPLEMENTED; // -100; [all …]
|
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
H A D | return.h | 30 enum class ErrorCode : int32_t { enum 31 SUCCESS = static_cast<int32_t>(FiemapStatus::ErrorCode::SUCCESS), 32 ERROR = static_cast<int32_t>(FiemapStatus::ErrorCode::ERROR), 33 NO_SPACE = static_cast<int32_t>(FiemapStatus::ErrorCode::NO_SPACE), 35 ErrorCode error_code() const { return error_code_; } in error_code() 36 bool is_ok() const { return error_code() == ErrorCode::SUCCESS; } in is_ok() 42 static Return Ok() { return Return(ErrorCode::SUCCESS); } in Ok() 43 static Return Error() { return Return(ErrorCode::ERROR); } in Error() 50 ErrorCode error_code_; 52 Return(ErrorCode error_code, uint64_t required_size = 0) [all …]
|
/aosp14/system/core/fs_mgr/libsnapshot/ |
H A D | return.cpp | 25 case ErrorCode::ERROR: in string() 27 case ErrorCode::SUCCESS: in string() 29 case ErrorCode::NO_SPACE: in string() 34 Return::ErrorCode Return::FromFiemapStatusErrorCode(FiemapStatus::ErrorCode error_code) { in FromFiemapStatusErrorCode() 36 case FiemapStatus::ErrorCode::SUCCESS: in FromFiemapStatusErrorCode() 37 case FiemapStatus::ErrorCode::ERROR: in FromFiemapStatusErrorCode() 38 case FiemapStatus::ErrorCode::NO_SPACE: in FromFiemapStatusErrorCode() 39 return static_cast<ErrorCode>(error_code); in FromFiemapStatusErrorCode() 41 return ErrorCode::ERROR; in FromFiemapStatusErrorCode()
|
/aosp14/system/core/fs_mgr/libfiemap/include/libfiemap/ |
H A D | fiemap_status.h | 29 enum class ErrorCode : int32_t { enum 47 static FiemapStatus Error() { return FiemapStatus(ErrorCode::ERROR); } in Error() 50 static FiemapStatus Ok() { return FiemapStatus(ErrorCode::SUCCESS); } in Ok() 52 ErrorCode error_code() const { return error_code_; } in error_code() 53 bool is_ok() const { return error_code() == ErrorCode::SUCCESS; } in is_ok() 60 FiemapStatus(ErrorCode code) : error_code_(code) {} in FiemapStatus() 63 ErrorCode error_code_; 65 static ErrorCode CastErrorCode(int error);
|
/aosp14/system/core/fs_mgr/libfiemap/ |
H A D | fiemap_status.cpp | 23 if (error_code() == ErrorCode::ERROR) { in string() 31 FiemapStatus::ErrorCode FiemapStatus::CastErrorCode(int error_code) { in CastErrorCode() 33 case static_cast<int32_t>(ErrorCode::SUCCESS): in CastErrorCode() 34 case static_cast<int32_t>(ErrorCode::NO_SPACE): in CastErrorCode() 35 return static_cast<ErrorCode>(error_code); in CastErrorCode() 36 case static_cast<int32_t>(ErrorCode::ERROR): in CastErrorCode() 38 return ErrorCode::ERROR; in CastErrorCode()
|
H A D | fiemap_writer_test.cpp | 544 ASSERT_EQ(status.error_code(), FiemapStatus::ErrorCode::NO_SPACE); in TEST_F() 549 ASSERT_NE(status.error_code(), FiemapStatus::ErrorCode::NO_SPACE); in TEST_F()
|
/aosp14/frameworks/base/services/incremental/ |
H A D | ServiceWrappers.h | 79 using ErrorCode = incfs::ErrorCode; variable 100 virtual ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id, 102 virtual ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode, 104 virtual ErrorCode makeDir(const Control& control, std::string_view path, int mode) const = 0; 115 virtual ErrorCode link(const Control& control, std::string_view from, 117 virtual ErrorCode unlink(const Control& control, std::string_view path) const = 0; 119 virtual ErrorCode writeBlocks(std::span<const incfs::DataBlock> blocks) const = 0; 120 virtual ErrorCode reserveSpace(const Control& control, FileId id, IncFsSize size) const = 0; 124 virtual ErrorCode setUidReadTimeouts( 128 virtual ErrorCode forEachFile(const Control& control, FileCallback cb) const = 0; [all …]
|
H A D | ServiceWrappers.cpp | 160 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id, in makeFile() 164 ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode, in makeMappedFile() 168 ErrorCode makeDir(const Control& control, std::string_view path, int mode) const final { in makeDir() 171 ErrorCode makeDirs(const Control& control, std::string_view path, int mode) const final { in makeDirs() 224 ErrorCode link(const Control& control, std::string_view from, std::string_view to) const final { in link() 227 ErrorCode unlink(const Control& control, std::string_view path) const final { in unlink() 233 ErrorCode writeBlocks(std::span<const incfs::DataBlock> blocks) const final { in writeBlocks() 236 ErrorCode reserveSpace(const Control& control, FileId id, IncFsSize size) const final { in reserveSpace() 244 ErrorCode setUidReadTimeouts(const Control& control, in setUidReadTimeouts() 258 ErrorCode forEachFile(const Control& control, FileCallback cb) const final { in forEachFile() [all …]
|
/aosp14/system/core/trusty/keymaster/include/trusty_keymaster/ |
H A D | TrustyKeymaster3Device.h | 35 using ::android::hardware::keymaster::V3_0::ErrorCode; 48 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override; 66 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override; 67 Return<ErrorCode> deleteAllKeys() override; 68 Return<ErrorCode> destroyAttestationIds() override; 76 Return<ErrorCode> abort(uint64_t operationHandle) override;
|
H A D | TrustyKeymaster4Device.h | 33 using ::android::hardware::keymaster::V4_0::ErrorCode; 59 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override; 83 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override; 84 Return<ErrorCode> deleteAllKeys() override; 85 Return<ErrorCode> destroyAttestationIds() override; 96 Return<ErrorCode> abort(uint64_t operationHandle) override;
|
/aosp14/frameworks/base/services/core/java/com/android/server/security/rkp/ |
H A D | RemoteProvisioningRegistration.java | 84 wrapCallback(() -> mCallback.onError(IGetKeyCallback.ErrorCode.ERROR_UNKNOWN, in onError() 93 return IGetKeyCallback.ErrorCode.ERROR_UNKNOWN; in toGetKeyError() 95 return IGetKeyCallback.ErrorCode.ERROR_REQUIRES_SECURITY_PATCH; in toGetKeyError() 97 return IGetKeyCallback.ErrorCode.ERROR_PENDING_INTERNET_CONNECTIVITY; in toGetKeyError() 99 return IGetKeyCallback.ErrorCode.ERROR_PERMANENT; in toGetKeyError() 102 return IGetKeyCallback.ErrorCode.ERROR_UNKNOWN; in toGetKeyError() 131 wrapCallback(() -> callback.onError(IGetKeyCallback.ErrorCode.ERROR_UNKNOWN, in getKey()
|
/aosp14/frameworks/base/core/java/android/security/rkp/ |
H A D | IGetKeyCallback.aidl | 28 enum ErrorCode { enum 78 void onError(ErrorCode error, String description); in onError()
|
/aosp14/system/core/trusty/keymaster/3.0/ |
H A D | TrustyKeymaster3Device.cpp | 66 inline ErrorCode legacy_enum_conversion(const keymaster_error_t value) { in legacy_enum_conversion() 67 return ErrorCode(value); in legacy_enum_conversion() 223 Return<ErrorCode> TrustyKeymaster3Device::addRngEntropy(const hidl_vec<uint8_t>& data) { in addRngEntropy() 224 if (data.size() == 0) return ErrorCode::OK; in addRngEntropy() 346 _hidl_cb(ErrorCode::OK, kmBlob2hidlVec(response.upgraded_key)); in upgradeKey() 353 Return<ErrorCode> TrustyKeymaster3Device::deleteKey(const hidl_vec<uint8_t>& keyBlob) { in deleteKey() 363 Return<ErrorCode> TrustyKeymaster3Device::deleteAllKeys() { in deleteAllKeys() 371 Return<ErrorCode> TrustyKeymaster3Device::destroyAttestationIds() { in destroyAttestationIds() 372 return ErrorCode::UNIMPLEMENTED; in destroyAttestationIds() 454 Return<ErrorCode> TrustyKeymaster3Device::abort(uint64_t operationHandle) { in abort()
|
/aosp14/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/ |
H A D | RemoteProvisioningRegistrationTest.java | 124 verify(callback).onError(eq(IGetKeyCallback.ErrorCode.ERROR_UNKNOWN), eq("oops!")); in getKeyHandlesArbitraryException() 132 IGetKeyCallback.ErrorCode.ERROR_UNKNOWN, in getKeyMapsRkpErrorsCorrectly() 134 IGetKeyCallback.ErrorCode.ERROR_REQUIRES_SECURITY_PATCH, in getKeyMapsRkpErrorsCorrectly() 136 IGetKeyCallback.ErrorCode.ERROR_PENDING_INTERNET_CONNECTIVITY, in getKeyMapsRkpErrorsCorrectly() 138 IGetKeyCallback.ErrorCode.ERROR_PERMANENT, in getKeyMapsRkpErrorsCorrectly() 141 for (Field errorField: IGetKeyCallback.ErrorCode.class.getFields()) { in getKeyMapsRkpErrorsCorrectly() 236 verify(callback).onError(eq(IGetKeyCallback.ErrorCode.ERROR_UNKNOWN), in getKeyCatchesExceptionFromProxy()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | UpdateEngine.java | 181 public @interface ErrorCode {} annotation in UpdateEngine 503 private @ErrorCode int mErrorCode = ErrorCodeConstants.SUCCESS; 518 @ErrorCode 656 @ErrorCode
|
H A D | UpdateEngineCallback.java | 48 @UpdateEngine.ErrorCode int errorCode); in onPayloadApplicationComplete()
|
/aosp14/system/core/trusty/keymaster/4.0/ |
H A D | TrustyKeymaster4Device.cpp | 79 inline ErrorCode legacy_enum_conversion(const keymaster_error_t value) { in legacy_enum_conversion() 80 return ErrorCode(value); in legacy_enum_conversion() 338 Return<ErrorCode> TrustyKeymaster4Device::addRngEntropy(const hidl_vec<uint8_t>& data) { in addRngEntropy() 339 if (data.size() == 0) return ErrorCode::OK; in addRngEntropy() 487 _hidl_cb(ErrorCode::OK, kmBlob2hidlVec(response.upgraded_key)); in upgradeKey() 494 Return<ErrorCode> TrustyKeymaster4Device::deleteKey(const hidl_vec<uint8_t>& keyBlob) { in deleteKey() 504 Return<ErrorCode> TrustyKeymaster4Device::deleteAllKeys() { in deleteAllKeys() 512 Return<ErrorCode> TrustyKeymaster4Device::destroyAttestationIds() { in destroyAttestationIds() 513 return ErrorCode::UNIMPLEMENTED; in destroyAttestationIds() 605 Return<ErrorCode> TrustyKeymaster4Device::abort(uint64_t operationHandle) { in abort()
|
/aosp14/frameworks/base/media/java/android/media/metrics/ |
H A D | PlaybackErrorEvent.java | 178 public @interface ErrorCode {} annotation in PlaybackErrorEvent 206 @ErrorCode 343 public @NonNull Builder setErrorCode(@ErrorCode int value) { in setErrorCode()
|
/aosp14/frameworks/base/keystore/java/android/security/keystore2/ |
H A D | KeyStoreCryptoOperationUtils.java | 21 import android.hardware.security.keymint.ErrorCode; 189 if (e.getErrorCode() != ErrorCode.INVALID_OPERATION_HANDLE) { in abortOperation()
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CameraDevice.java | 1514 public @interface ErrorCode {}; annotation in CameraDevice.StateCallback 1600 @ErrorCode int error); // Must implement in onError()
|
H A D | CameraInjectionSession.java | 99 public @interface ErrorCode {}; annotation in CameraInjectionSession.InjectionStatusCallback
|
/aosp14/frameworks/base/telephony/java/android/telephony/ims/ |
H A D | RcsUceAdapter.java | 194 public @interface ErrorCode {} annotation in RcsUceAdapter 502 default void onError(@ErrorCode int errorCode, long retryIntervalMillis) {} in onError() 536 default void onError(@ErrorCode int errorCode, long retryIntervalMillis, in onError()
|
/aosp14/frameworks/base/services/incremental/test/ |
H A D | IncrementalServiceTest.cpp | 389 ErrorCode(const Control& control, std::string_view path, int mode, 393 ErrorCode(const Control& control, std::string_view path, int mode)); 405 ErrorCode(const Control& control, std::string_view from, 407 MOCK_CONST_METHOD2(unlink, ErrorCode(const Control& control, std::string_view path)); 409 MOCK_CONST_METHOD1(writeBlocks, ErrorCode(std::span<const DataBlock> blocks)); 410 MOCK_CONST_METHOD3(reserveSpace, ErrorCode(const Control& control, FileId id, IncFsSize size)); 415 ErrorCode(const Control& control, 417 MOCK_CONST_METHOD2(forEachFile, ErrorCode(const Control& control, FileCallback cb)); 418 MOCK_CONST_METHOD2(forEachIncompleteFile, ErrorCode(const Control& control, FileCallback cb)); 2057 static ErrorCode checkPerUidTimeouts(const Control& control, in checkPerUidTimeouts() [all …]
|
/aosp14/system/core/trusty/keymaster/keymint/ |
H A D | TrustyKeyMintOperation.cpp | 122 static_cast<int32_t>(ErrorCode::OUTPUT_PARAMETER_NULL))); in finish()
|
/aosp14/frameworks/base/media/java/android/media/tv/interactive/ |
H A D | TvInteractiveAppManager.java | 136 public @interface ErrorCode {} annotation in TvInteractiveAppManager 819 @ErrorCode int err) { in onTvInteractiveAppServiceStateChanged() 2529 @ErrorCode int err) { in onSessionStateChanged()
|