Home
last modified time | relevance | path

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

/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/1.0/generic/
DGenericOperation.h49 Operation() : error_(ResponseCode::Ignored), formattedMessageLength_(0) {} in Operation()
57 if (error_ != ResponseCode::Ignored) return ResponseCode::OperationPending; in init()
79 switch (state.error_) { in init()
100 void setPending() { error_ = ResponseCode::OK; } in setPending()
108 error_ = ResponseCode::Ignored; in abort()
113 if (isPending()) error_ = ResponseCode::Canceled; in userCancel()
117 if (error_ == ResponseCode::Ignored) return; in finalize()
118 resultCB_->result(error_, getMessage(), userConfirm(key)); in finalize()
119 error_ = ResponseCode::Ignored; in finalize()
123 bool isPending() const { return error_ != ResponseCode::Ignored; } in isPending()
[all …]
/hardware/interfaces/confirmationui/support/test/
Dandroid_cbor_test.cpp85 ASSERT_EQ(Error::OK, state.error_); in TEST()
100 ASSERT_EQ(Error::OUT_OF_DATA, state.error_); in TEST()
109 ASSERT_EQ(Error::MALFORMED_UTF8, state.error_); in TEST()
117 ASSERT_EQ(Error::MALFORMED_UTF8, state.error_); in TEST()
125 ASSERT_EQ(Error::OK, state.error_); in TEST()
133 ASSERT_EQ(Error::OK, state.error_); in TEST()
141 ASSERT_EQ(Error::OK, state.error_); in TEST()
149 ASSERT_EQ(Error::MALFORMED_UTF8, state.error_); in TEST()
157 ASSERT_EQ(Error::MALFORMED_UTF8, state.error_); in TEST()
/hardware/qcom/display/msm8998/sdm/include/utils/
Dlocker.h89 explicit SequenceWaitScopeLock(Locker& locker) : locker_(locker), error_(false) { in SequenceWaitScopeLock()
94 error_ = (locker_.sequence_wait_ == -1); in SequenceWaitScopeLock()
103 return error_; in IsError()
108 bool error_; variable
/hardware/qcom/display/msm8996/sdm/include/utils/
Dlocker.h89 explicit SequenceWaitScopeLock(Locker& locker) : locker_(locker), error_(false) { in SequenceWaitScopeLock()
94 error_ = (locker_.sequence_wait_ == -1); in SequenceWaitScopeLock()
103 return error_; in IsError()
108 bool error_; variable
/hardware/qcom/sdm845/display/sdm/include/utils/
Dlocker.h90 explicit SequenceWaitScopeLock(Locker& locker) : locker_(locker), error_(false) { in SequenceWaitScopeLock()
95 error_ = (locker_.sequence_wait_ == -1); in SequenceWaitScopeLock()
104 return error_; in IsError()
109 bool error_; variable
/hardware/qcom/display/msm8909w_3100/sdm/include/utils/
Dlocker.h89 explicit SequenceWaitScopeLock(Locker& locker) : locker_(locker), error_(false) { in SequenceWaitScopeLock()
94 error_ = (locker_.sequence_wait_ == -1); in SequenceWaitScopeLock()
103 return error_; in IsError()
108 bool error_; variable
/hardware/qcom/display/msm8909/sdm/include/utils/
Dlocker.h89 explicit SequenceWaitScopeLock(Locker& locker) : locker_(locker), error_(false) { in SequenceWaitScopeLock()
94 error_ = (locker_.sequence_wait_ == -1); in SequenceWaitScopeLock()
103 return error_; in IsError()
108 bool error_; variable
/hardware/qcom/sm8150/display/sdm/include/utils/
Dlocker.h90 explicit SequenceWaitScopeLock(Locker& locker) : locker_(locker), error_(false) { in SequenceWaitScopeLock()
95 error_ = (locker_.sequence_wait_ == -1); in SequenceWaitScopeLock()
104 return error_; in IsError()
109 bool error_; variable
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/
Dcbor.h199 WriteState() : data_(nullptr), size_(0), error_(Error::OK) {}
200 WriteState(uint8_t* buffer, size_t size) : data_(buffer), size_(size), error_(Error::OK) {}
202 : data_(buffer), size_(size), error_(error) {}
204 WriteState(uint8_t (&buffer)[size]) : data_(buffer), size_(size), error_(Error::OK) {}
211 error_ = Error::OUT_OF_DATA;
217 error_ = Error::OUT_OF_DATA;
224 operator bool() const { return error_ == Error::OK; }
228 Error error_;
276 wState.error_ = Error::MALFORMED_UTF8;
/hardware/interfaces/confirmationui/1.0/vts/functional/
DVtsHalConfirmationUIV1_0TargetTest.cpp180 ResponseCode error_; member in android::hardware::confirmationui::V1_0::test::ConfirmationArgs
198 args.error_ = error; in result()
245 ASSERT_EQ(ResponseCode::OK, result.args->error_); in TEST_P()
312 ASSERT_EQ(ResponseCode::Canceled, result.args->error_); in TEST_P()
331 ASSERT_EQ(ResponseCode::Aborted, result.args->error_); in TEST_P()
352 ASSERT_EQ(ResponseCode::Aborted, result.args->error_); in TEST_P()
374 ASSERT_EQ(ResponseCode::Aborted, result.args->error_); in TEST_P()
395 ASSERT_EQ(ResponseCode::Aborted, result.args->error_); in TEST_P()
417 ASSERT_EQ(ResponseCode::Aborted, result.args->error_); in TEST_P()
/hardware/interfaces/keymaster/4.0/vts/performance/
DBenchmark.cpp117 ErrorCode error_; member in android::hardware::keymaster::V4_0::test::KeymasterWrapper
130 error_ = hidl_error; in GenerateKey()
135 error_ == ErrorCode::OK); in GenerateKey()
252 error_ = hidl_error; in Begin()
257 error_ != ErrorCode::OK) { in Begin()
280 error_ = hidl_error; in ProcessMessage()
286 error_ != ErrorCode::OK) { in ProcessMessage()
299 error_ = hidl_error; in ProcessMessage()
304 error_ != ErrorCode::OK) { in ProcessMessage()
312 int getError() { return static_cast<int>(error_); } in getError()
/hardware/interfaces/confirmationui/support/src/
Dcbor.cpp51 state.error_ = Error::MALFORMED; in writeBytes()