Home
last modified time | relevance | path

Searched refs:NO_ERROR (Results 1 – 25 of 71) sorted by relevance

123

/system/security/keystore/
DKeyAttestationPackageInfo.cpp35 if (rc != NO_ERROR) return rc; in writeToParcel()
37 if (rc != NO_ERROR) return rc; in writeToParcel()
43 if (rc != NO_ERROR) return rc; in readFromParcel()
45 if (rc != NO_ERROR) return rc; in readFromParcel()
49 if (rc != NO_ERROR) return rc; in readFromParcel()
51 return NO_ERROR; in readFromParcel()
Dkeystore_attestation_id.h39 StatusOr(const T& value) : _status(NO_ERROR), _value(value) {} in StatusOr()
41 StatusOr(T&& value) : _status(NO_ERROR), _value(value) {} in StatusOr()
50 bool isOk() const { return NO_ERROR == _status; } in isOk()
DKeystoreResponse.cpp31 if (rc != NO_ERROR) return rc; in readFromParcel()
37 if (rc != NO_ERROR) return rc; in writeToParcel()
Dkey_store_service.cpp91 return {ResponseCode::NO_ERROR, diff_secs < kIdRotationPeriod}; in hadFactoryResetSinceIdRotation()
110 return {ResponseCode::NO_ERROR, true}; in hadFactoryResetSinceIdRotation()
143 return ResponseCode::NO_ERROR; in updateParamsForAttestation()
175 if (rc != ResponseCode::NO_ERROR) { in get()
246 static_cast<int32_t>(lockedEntry ? ResponseCode::NO_ERROR : ResponseCode::KEY_NOT_FOUND); in exist()
273 if (rc != ResponseCode::NO_ERROR) { in list()
316 if (rc != ResponseCode::NO_ERROR) { in listUidsOfAuthBoundKeys()
331 if (rc != ResponseCode::NO_ERROR && rc != ResponseCode::LOCKED) { in listUidsOfAuthBoundKeys()
350 *aidl_return = static_cast<int32_t>(ResponseCode::NO_ERROR); in listUidsOfAuthBoundKeys()
363 *aidl_return = static_cast<int32_t>(ResponseCode::NO_ERROR); in reset()
[all …]
DKeyAttestationApplicationId.cpp44 if (rc != NO_ERROR) return rc; in readFromParcel()
46 return NO_ERROR; in readFromParcel()
Dblob.cpp116 return ResponseCode::NO_ERROR; in AES_gcm_encrypt()
157 return ResponseCode::NO_ERROR; in AES_gcm_decrypt()
339 if (rc != ResponseCode::NO_ERROR) return rc; in writeBlob()
360 return ResponseCode::NO_ERROR; in writeBlob()
373 if (rc != ResponseCode::NO_ERROR) { in writeBlobs()
423 if (rc != ResponseCode::NO_ERROR) { in readBlob()
474 return ResponseCode::NO_ERROR; in readBlob()
484 if (rc != ResponseCode::NO_ERROR && rc != ResponseCode::UNINITIALIZED) { in readBlobs()
495 if (entry_ == nullptr) return ResponseCode::NO_ERROR; in deleteBlobs()
500 : ResponseCode::NO_ERROR; in deleteBlobs()
[all …]
DKeyStore.cpp78 return ResponseCode::NO_ERROR; in initialize()
155 if (rc != ResponseCode::NO_ERROR) { in resetUser()
176 case ResponseCode::NO_ERROR: in resetUser()
258 if (rc != ResponseCode::NO_ERROR) { in get()
272 if ((rc = this->put(blobfile, keyBlob, {})) != ResponseCode::NO_ERROR || in get()
274 rc) != ResponseCode::NO_ERROR) { in get()
303 if (rc != ResponseCode::NO_ERROR) { in del()
366 if (rc == ResponseCode::NO_ERROR) { in getKeyForName()
Duser_state.cpp93 if (response != ResponseCode::NO_ERROR) { in initialize()
97 return ResponseCode::NO_ERROR; in initialize()
139 return ResponseCode::NO_ERROR; in copyMasterKeyFile()
192 if (response == ResponseCode::NO_ERROR && masterKeyBlobLength == masterKeySize) { in readMasterKey()
200 if (response == ResponseCode::NO_ERROR) { in readMasterKey()
/system/iorap/tests/src/binder/
Dauto_parcelable_test.cc29 static constexpr auto NO_ERROR = android::NO_ERROR; in TEST() local
44 EXPECT_EQ(NO_ERROR, typical.writeToParcel(&parcel_typical)); in TEST()
66 EXPECT_EQ(NO_ERROR, copy.readFromParcel(&parcel_typical)); in TEST()
77 EXPECT_EQ(NO_ERROR, typical.writeToParcel(&parcel)); in TEST()
79 EXPECT_EQ(NO_ERROR, copy.readFromParcel(&parcel)); in TEST()
/system/bt/packet/tests/avrcp/
Dget_folder_items_packet_test.cc30 Status::NO_ERROR, 0x0000, 0xFFFF); in TEST()
41 Status::NO_ERROR, 0x0000, 0xFFFF); in TEST()
60 Status::NO_ERROR, 0x0000, packet_size); in TEST()
68 auto builder = GetFolderItemsResponseBuilder::MakeVFSBuilder(Status::NO_ERROR, in TEST()
78 auto builder = GetFolderItemsResponseBuilder::MakeVFSBuilder(Status::NO_ERROR, in TEST()
98 Status::NO_ERROR, 0x0000, packet_size); in TEST()
107 Status::NO_ERROR, 0x0000, 0xFFFF); in TEST()
119 Status::NO_ERROR, 0x0000, 0xFFFF); in TEST()
140 Status::NO_ERROR, 0x0000, packet_size); in TEST()
149 Status::NO_ERROR, 0x0000, 0xFFFF); in TEST()
[all …]
Dget_item_attributes_packet_test.cc30 GetItemAttributesResponseBuilder::MakeBuilder(Status::NO_ERROR, 0xFFFF); in TEST()
45 GetItemAttributesResponseBuilder::MakeBuilder(Status::NO_ERROR, 0xFFFF); in TEST()
62 Status::NO_ERROR, truncated_size); in TEST()
74 GetItemAttributesResponseBuilder::MakeBuilder(Status::NO_ERROR, 0xFFFF); in TEST()
/system/extras/simpleperf/
Dread_elf_test.cpp64 ASSERT_EQ(ElfStatus::NO_ERROR, GetBuildIdFromElfFile(GetTestData(ELF_FILE), &build_id)); in TEST()
70 …ASSERT_EQ(ElfStatus::NO_ERROR, GetBuildIdFromEmbeddedElfFile(GetTestData(APK_FILE), NATIVELIB_OFFS… in TEST()
99 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), elf_file_build_id, in TEST()
106 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), BuildId(), in TEST()
128 …ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE_WITH_MINI_DEBUG_INFO),… in TEST()
141 ASSERT_NE(ElfStatus::NO_ERROR, IsValidElfPath("/dev/zero")); in TEST()
146 ASSERT_EQ(ElfStatus::NO_ERROR, IsValidElfPath(GetTestData(ELF_FILE))); in TEST()
151 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), BuildId(), in TEST()
166 ASSERT_EQ(ElfStatus::NO_ERROR, ReadMinExecutableVirtualAddressFromElfFile( in TEST()
175 ASSERT_EQ(ElfStatus::NO_ERROR, ReadMinExecutableVirtualAddressFromElfFile( in TEST()
Dread_elf.cpp48 case ElfStatus::NO_ERROR: in operator <<()
86 return IsValidElfFileMagic(buf, 4) ? ElfStatus::NO_ERROR : ElfStatus::FILE_MALFORMED; in IsValidElfFile()
141 return ElfStatus::NO_ERROR; in GetBuildIdFromNoteFile()
159 return ElfStatus::NO_ERROR; in GetBuildIdFromELFFile()
209 return ElfStatus::NO_ERROR; in OpenObjectFile()
224 return ElfStatus::NO_ERROR; in OpenObjectFileInMemory()
229 if (result != ElfStatus::NO_ERROR) { in GetBuildIdFromElfFile()
239 if (result != ElfStatus::NO_ERROR) { in GetBuildIdFromEmbeddedElfFile()
259 return ElfStatus::NO_ERROR; in ReadSectionFromELFFile()
393 return ElfStatus::NO_ERROR; in ParseSymbolsFromELFFile()
[all …]
/system/security/keystore/include/keystore/
Dkeystore_return_types.h66 return errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR) || in isOk()
71 if (!errorCode_) return static_cast<int32_t>(ResponseCode::NO_ERROR /* 1 */); in getErrorCode()
75 return (rhs == ResponseCode::NO_ERROR &&
81 errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR)) ||
143 return errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR) || in isOk()
147 if (errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR) /* 1 */) { in getErrorCode()
153 return (rhs == ResponseCode::NO_ERROR &&
159 errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR)) ||
/system/iorap/include/binder/
Dapp_launch_event.h79 if (::android::status_t res = function(__VA_ARGS__); res != ::android::NO_ERROR) { \ in readFromParcel()
117 return ::android::NO_ERROR; in readFromParcel()
123 if (::android::status_t res = function(__VA_ARGS__); res != ::android::NO_ERROR) { \
155 return android::NO_ERROR; in writeToParcel()
169 if ((res = parcel->readByteVector(/*out*/&byte_vector)) != ::android::NO_ERROR) { in ReadProto()
201 if (res != ::android::NO_ERROR) { in ReadNullableProto()
228 if ((res = parcel->writeByteVector(/*in*/byte_vector)) != ::android::NO_ERROR) { in WriteProto()
232 return ::android::NO_ERROR; in WriteProto()
243 if (res != ::android::NO_ERROR) { in WriteNullableProto()
248 return ::android::NO_ERROR; in WriteNullableProto()
[all …]
Dauto_parcelable.h51 status_t result = android::NO_ERROR; in writeToParcel()
53 if (result == android::NO_ERROR) { in writeToParcel()
77 status_t result = android::NO_ERROR; in readFromParcel()
83 if (result == android::NO_ERROR) { in readFromParcel()
93 if (result != android::NO_ERROR) { in readFromParcel()
102 return ::android::NO_ERROR; in readFromParcel()
/system/libfmq/
DEventFlag.cpp44 if (status == NO_ERROR) { in createEventFlag()
65 if (status == NO_ERROR) { in createEventFlag()
85 *status = NO_ERROR; in EventFlag()
97 *status = NO_ERROR; in EventFlag()
114 return NO_ERROR; in wake()
117 status_t status = NO_ERROR; in wake()
146 status_t status = NO_ERROR; in waitHelper()
235 status_t status = NO_ERROR; in unmapEventFlagWord()
/system/core/libutils/include/utils/
DErrors.h39 # undef NO_ERROR
44NO_ERROR = OK, // Deprecated synonym for `OK`. Prefer `OK` because it doesn't conflict … enumerator
78 # define NO_ERROR 0L macro
/system/libhwbinder/
DIPCThreadState.cpp349 mLastError = NO_ERROR; in clearLastError()
444 if (result >= NO_ERROR) { in getAndExecuteCommand()
563 … if (result < NO_ERROR && result != TIMED_OUT && result != -ECONNREFUSED && result != -EBADF) { in joinThreadPool()
642 if (err != NO_ERROR) { in transact()
739 handle, result == NO_ERROR ? "SUCCESS" : "FAILURE"); in attemptIncStrongHandle()
763 return NO_ERROR; in requestDeathNotification()
771 return NO_ERROR; in clearDeathNotification()
798 if (err < NO_ERROR) return err; in sendReply()
809 if ((err=talkWithDriver()) < NO_ERROR) break; in waitForResponse()
811 if (err < NO_ERROR) break; in waitForResponse()
[all …]
DStatic.cpp45 return NO_ERROR; in writeLines()
59 return NO_ERROR; in writeLines()
DBufferedTextOutput.cpp66 return NO_ERROR; in append()
184 if (err != NO_ERROR) return err; in print()
207 if (err != NO_ERROR) return err; in print()
223 return NO_ERROR; in print()
DBpHwBinder.cpp143 return res >= (ssize_t)NO_ERROR ? (status_t)NO_ERROR : res; in linkToDeath()
178 return NO_ERROR; in unlinkToDeath()
312 return ipc ? ipc->attemptIncStrongHandle(mHandle) == NO_ERROR : false; in onIncStrongAttempted()
/system/bt/packet/avrcp/
Dget_total_number_of_items.cc36 if (status_ != Status::NO_ERROR) return len; in size()
51 if (status_ != Status::NO_ERROR) return true; in Serialize()
Dset_browsed_player.cc40 if (status_ != Status::NO_ERROR) return len; in size()
64 if (status_ != Status::NO_ERROR) return true; in Serialize()
/system/libfmq/tests/
Dmq_test.cpp147 ASSERT_EQ(android::NO_ERROR, status); in ReaderThreadBlocking()
167 ASSERT_EQ(android::NO_ERROR, status); in ReaderThreadBlocking()
182 ASSERT_EQ(android::NO_ERROR, status); in ReaderThreadBlocking2()
192 ASSERT_EQ(android::NO_ERROR, status); in ReaderThreadBlocking2()
219 ASSERT_EQ(android::NO_ERROR, status); in TEST_F()
235 ASSERT_EQ(android::NO_ERROR, status); in TEST_F()
241 ASSERT_EQ(android::NO_ERROR, status); in TEST_F()
255 ASSERT_EQ(android::NO_ERROR, status); in TEST_F()
273 ASSERT_EQ(android::NO_ERROR, status); in TEST_F()
283 ASSERT_EQ(android::NO_ERROR, status); in TEST_F()
[all …]

123