Lines Matching refs:Status

80 Status Credential::ensureOrReplaceHalBinder() {  in ensureOrReplaceHalBinder()
84 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in ensureOrReplaceHalBinder()
89 Status status = in ensureOrReplaceHalBinder()
91 if (!status.isOk() && status.exceptionCode() == binder::Status::EX_SERVICE_SPECIFIC) { in ensureOrReplaceHalBinder()
99 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC); in ensureOrReplaceHalBinder()
103 return Status::ok(); in ensureOrReplaceHalBinder()
106 Status Credential::getCredentialKeyCertificateChain(std::vector<uint8_t>* _aidl_return) { in getCredentialKeyCertificateChain()
110 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in getCredentialKeyCertificateChain()
114 return Status::ok(); in getCredentialKeyCertificateChain()
118 Status Credential::selectAuthKey(bool allowUsingExhaustedKeys, bool allowUsingExpiredKeys, in selectAuthKey()
123 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in selectAuthKey()
132 return Status::fromServiceSpecificError( in selectAuthKey()
138 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in selectAuthKey()
142 return Status::ok(); in selectAuthKey()
151 Status status = halBinder_->createAuthChallenge(&challenge); in ensureChallenge()
217 Status Credential::getEntries(const vector<uint8_t>& requestMessage, in getEntries()
227 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in getEntries()
245 return Status::fromServiceSpecificError( in getEntries()
266 return Status::fromServiceSpecificError( in getEntries()
331 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in getEntries()
352 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in getEntries()
376 return Status::fromServiceSpecificError( in getEntries()
408 Status status = halBinder_->setRequestedNamespaces(halRequestNamespaces); in getEntries()
424 if (!status.isOk() && status.exceptionCode() == binder::Status::EX_SERVICE_SPECIFIC) { in getEntries()
458 if (!status.isOk() && status.exceptionCode() == binder::Status::EX_SERVICE_SPECIFIC) { in getEntries()
510 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in getEntries()
516 return Status::ok(); in getEntries()
519 Status Credential::deleteCredential(vector<uint8_t>* _aidl_return) { in deleteCredential()
525 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in deleteCredential()
529 Status status = halBinder_->deleteCredential(&proofOfDeletionSignature); in deleteCredential()
534 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in deleteCredential()
538 return Status::ok(); in deleteCredential()
541 Status Credential::deleteWithChallenge(const vector<uint8_t>& challenge, in deleteWithChallenge()
544 return Status::fromServiceSpecificError(ICredentialStore::ERROR_NOT_SUPPORTED, in deleteWithChallenge()
552 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in deleteWithChallenge()
556 Status status = halBinder_->deleteCredentialWithChallenge(challenge, &proofOfDeletionSignature); in deleteWithChallenge()
561 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in deleteWithChallenge()
565 return Status::ok(); in deleteWithChallenge()
568 Status Credential::proveOwnership(const vector<uint8_t>& challenge, vector<uint8_t>* _aidl_return) { in proveOwnership()
570 return Status::fromServiceSpecificError(ICredentialStore::ERROR_NOT_SUPPORTED, in proveOwnership()
574 Status status = halBinder_->proveOwnership(challenge, &proofOfOwnershipSignature); in proveOwnership()
579 return Status::ok(); in proveOwnership()
582 Status Credential::createEphemeralKeyPair(vector<uint8_t>* _aidl_return) { in createEphemeralKeyPair()
584 Status status = halBinder_->createEphemeralKeyPair(&keyPair); in createEphemeralKeyPair()
597 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in createEphemeralKeyPair()
601 return Status::ok(); in createEphemeralKeyPair()
604 Status Credential::setReaderEphemeralPublicKey(const vector<uint8_t>& publicKey) { in setReaderEphemeralPublicKey()
605 Status status = halBinder_->setReaderEphemeralPublicKey(publicKey); in setReaderEphemeralPublicKey()
609 return Status::ok(); in setReaderEphemeralPublicKey()
612 Status Credential::setAvailableAuthenticationKeys(int32_t keyCount, int32_t maxUsesPerKey) { in setAvailableAuthenticationKeys()
616 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in setAvailableAuthenticationKeys()
621 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in setAvailableAuthenticationKeys()
624 return Status::ok(); in setAvailableAuthenticationKeys()
627 Status Credential::getAuthKeysNeedingCertification(vector<AuthKeyParcel>* _aidl_return) { in getAuthKeysNeedingCertification()
631 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in getAuthKeysNeedingCertification()
637 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in getAuthKeysNeedingCertification()
647 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in getAuthKeysNeedingCertification()
651 return Status::ok(); in getAuthKeysNeedingCertification()
654 Status Credential::storeStaticAuthenticationData(const AuthKeyParcel& authenticationKey, in storeStaticAuthenticationData()
659 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in storeStaticAuthenticationData()
664 return Status::fromServiceSpecificError( in storeStaticAuthenticationData()
670 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in storeStaticAuthenticationData()
673 return Status::ok(); in storeStaticAuthenticationData()
676 Status
681 return Status::fromServiceSpecificError(ICredentialStore::ERROR_NOT_SUPPORTED, in storeStaticAuthenticationDataWithExpiration()
687 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in storeStaticAuthenticationDataWithExpiration()
692 return Status::fromServiceSpecificError( in storeStaticAuthenticationDataWithExpiration()
698 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in storeStaticAuthenticationDataWithExpiration()
701 return Status::ok(); in storeStaticAuthenticationDataWithExpiration()
704 Status Credential::getAuthenticationDataUsageCount(vector<int32_t>* _aidl_return) { in getAuthenticationDataUsageCount()
708 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in getAuthenticationDataUsageCount()
717 return Status::ok(); in getAuthenticationDataUsageCount()
739 Status Credential::update(sp<IWritableCredential>* _aidl_return) { in update()
741 return Status::fromServiceSpecificError(ICredentialStore::ERROR_NOT_SUPPORTED, in update()
747 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in update()
752 Status status = halBinder_->updateCredential(&halWritableCredential); in update()
759 return Status::fromServiceSpecificError(ICredentialStore::ERROR_GENERIC, in update()
789 return Status::ok(); in update()
793 Status status = ensureOrReplaceHalBinder(); in writableCredentialPersonalized()