Lines Matching refs:rc
54 static bool logKeystore2ExceptionIfPresent(::ndk::ScopedAStatus& rc, const std::string& func_name) { in logKeystore2ExceptionIfPresent() argument
55 if (rc.isOk()) return false; in logKeystore2ExceptionIfPresent()
57 auto exception_code = rc.getExceptionCode(); in logKeystore2ExceptionIfPresent()
60 << " returned service specific error: " << rc.getServiceSpecificError(); in logKeystore2ExceptionIfPresent()
79 auto rc = ks2Operation->update(input_vec, &output); in updateCompletely() local
81 if (logKeystore2ExceptionIfPresent(rc, "update")) { in updateCompletely()
95 auto rc = ks2Operation->finish(std::nullopt, std::nullopt, &out_vec); in finish() local
96 if (logKeystore2ExceptionIfPresent(rc, "finish")) { in finish()
124 auto rc = keystore2Service->getSecurityLevel(km::SecurityLevel::TRUSTED_ENVIRONMENT, in Keymaster() local
126 if (logKeystore2ExceptionIfPresent(rc, "getSecurityLevel")) in Keymaster()
138 auto rc = securityLevel->generateKey(in_key, std::nullopt, inParams.vector_data(), 0, {}, in generateKey() local
141 if (logKeystore2ExceptionIfPresent(rc, "generateKey")) return false; in generateKey()
162 auto rc = securityLevel->convertStorageKeyToEphemeral(storageKey, &ephemeral_key_response); in exportKey() local
164 if (logKeystore2ExceptionIfPresent(rc, "exportKey")) goto out; in exportKey()
187 auto rc = securityLevel->deleteKey(keyDesc); in deleteKey() local
188 return !logKeystore2ExceptionIfPresent(rc, "deleteKey"); in deleteKey()
202 auto rc = securityLevel->createOperation(keyDesc, inParams.vector_data(), true, &cor); in begin() local
203 if (logKeystore2ExceptionIfPresent(rc, "createOperation")) { in begin()
204 if (rc.getExceptionCode() == EX_SERVICE_SPECIFIC) in begin()
205 return KeymasterOperation((km::ErrorCode)rc.getServiceSpecificError()); in begin()
229 auto rc = maint_service->earlyBootEnded(); in earlyBootEnded() local
230 logKeystore2ExceptionIfPresent(rc, "earlyBootEnded"); in earlyBootEnded()
242 auto rc = maint_service->deleteAllKeys(); in deleteAllKeys() local
243 logKeystore2ExceptionIfPresent(rc, "deleteAllKeys"); in deleteAllKeys()