/system/security/keystore/ |
D | user_state.cpp | 81 ResponseCode UserState::initialize(const android::String8& pw, Entropy* entropy) { in initialize() 83 return ResponseCode::SYSTEM_ERROR; in initialize() 85 ResponseCode response = writeMasterKey(pw, entropy); in initialize() 86 if (response != ResponseCode::NO_ERROR) { in initialize() 90 return ResponseCode::NO_ERROR; in initialize() 93 ResponseCode UserState::copyMasterKey(UserState* src) { in copyMasterKey() 95 return ResponseCode::SYSTEM_ERROR; in copyMasterKey() 98 return ResponseCode::SYSTEM_ERROR; in copyMasterKey() 105 ResponseCode UserState::copyMasterKeyFile(UserState* src) { in copyMasterKeyFile() 111 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile() [all …]
|
D | blob.cpp | 106 ResponseCode Blob::writeBlob(const char* filename, AES_KEY* aes_key, State state, in writeBlob() 112 return ResponseCode::LOCKED; in writeBlob() 117 return ResponseCode::SYSTEM_ERROR; in writeBlob() 151 return ResponseCode::SYSTEM_ERROR; in writeBlob() 155 return ResponseCode::SYSTEM_ERROR; in writeBlob() 160 return ResponseCode::SYSTEM_ERROR; in writeBlob() 164 return ResponseCode::SYSTEM_ERROR; in writeBlob() 166 return ResponseCode::NO_ERROR; in writeBlob() 169 ResponseCode Blob::readBlob(const char* filename, AES_KEY* aes_key, State state) { in readBlob() 173 return (errno == ENOENT) ? ResponseCode::KEY_NOT_FOUND : ResponseCode::SYSTEM_ERROR; in readBlob() [all …]
|
D | keystore.cpp | 63 ResponseCode KeyStore::initialize() { in initialize() 69 return ResponseCode::NO_ERROR; in initialize() 72 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() 77 ResponseCode KeyStore::copyMasterKey(uid_t srcUser, uid_t dstUser) { in copyMasterKey() 83 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() 88 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() 166 if (list(prefix, &aliases, userId) != ResponseCode::NO_ERROR) { in resetUser() 176 ResponseCode rc = get(filename, &blob, ::TYPE_ANY, userId); in resetUser() 179 case ResponseCode::SYSTEM_ERROR: in resetUser() 180 case ResponseCode::VALUE_CORRUPTED: in resetUser() [all …]
|
D | IKeystoreService.cpp | 126 return ResponseCode::SYSTEM_ERROR; in getState() 129 ResponseCode ret = ResponseCode(reply.readInt32()); in getState() 132 return ResponseCode::SYSTEM_ERROR; in getState() 146 return ResponseCode::SYSTEM_ERROR; in get() 151 return ResponseCode::SYSTEM_ERROR; in get() 155 return ResponseCode(reply.readInt32()); in get() 169 return ResponseCode::SYSTEM_ERROR; in insert() 174 return ResponseCode::SYSTEM_ERROR; in insert() 176 return ResponseCode(reply.readInt32()); in insert() 187 return ResponseCode::SYSTEM_ERROR; in del() [all …]
|
D | keystore.h | 62 ResponseCode initialize(); 66 ResponseCode initializeUser(const android::String8& pw, uid_t userId); 68 ResponseCode copyMasterKey(uid_t srcUser, uid_t dstUser); 69 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId); 70 ResponseCode readMasterKey(const android::String8& pw, uid_t userId); 88 ResponseCode get(const char* filename, Blob* keyBlob, const BlobType type, uid_t userId); 89 ResponseCode put(const char* filename, Blob* keyBlob, uid_t userId); 90 ResponseCode del(const char* filename, const BlobType type, uid_t userId); 91 ResponseCode list(const android::String8& prefix, android::Vector<android::String16>* matches, 100 ResponseCode importKey(const uint8_t* key, size_t keyLen, const char* filename, uid_t userId, [all …]
|
D | key_store_service.cpp | 70 return {ResponseCode::NO_ERROR, diff_secs < kIdRotationPeriod}; in hadFactoryResetSinceIdRotation() 75 return {ResponseCode::SYSTEM_ERROR, false /* don't care */}; in hadFactoryResetSinceIdRotation() 81 return {ResponseCode::SYSTEM_ERROR, false /* don't care */}; in hadFactoryResetSinceIdRotation() 86 return {ResponseCode::SYSTEM_ERROR, false /* don't care */}; in hadFactoryResetSinceIdRotation() 89 return {ResponseCode::NO_ERROR, true}; in hadFactoryResetSinceIdRotation() 119 return ResponseCode::NO_ERROR; in updateParamsForAttestation() 133 return ResponseCode::PERMISSION_DENIED; in getState() 136 return ResponseCode(mKeyStore->getState(userId)); in getState() 143 return ResponseCode::PERMISSION_DENIED; in get() 165 return ResponseCode::NO_ERROR; in get() [all …]
|
D | user_state.h | 50 ResponseCode initialize(const android::String8& pw, Entropy* entropy); 52 ResponseCode copyMasterKey(UserState* src); 53 ResponseCode copyMasterKeyFile(UserState* src); 54 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy); 55 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy);
|
D | blob.h | 111 ResponseCode writeBlob(const char* filename, AES_KEY* aes_key, State state, Entropy* entropy); 112 ResponseCode readBlob(const char* filename, AES_KEY* aes_key, State state);
|
/system/netd/server/ |
D | CommandListener.cpp | 125 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 134 cli->sendMsg(ResponseCode::OperationFailed, "Failed to open sysfs dir", true); in runCommand() 141 cli->sendMsg(ResponseCode::InterfaceListResult, de->d_name, false); in runCommand() 144 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false); in runCommand() 151 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 165 cli->sendMsg(ResponseCode::OperationFailed, "Interface not found", true); in runCommand() 193 cli->sendMsg(ResponseCode::InterfaceGetCfgResult, msg, false); in runCommand() 204 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 219 cli->sendMsg(ResponseCode::OperationFailed, "Failed to clear address", true); in runCommand() 225 cli->sendMsg(ResponseCode::OperationFailed, "Failed to set address", true); in runCommand() [all …]
|
D | MDnsSdListener.cpp | 76 cli->sendMsg(ResponseCode::CommandParameterError, in discover() 89 cli->sendMsg(ResponseCode::CommandParameterError, in discover() 95 cli->sendMsg(ResponseCode::CommandOkay, "Discover operation started", false); in discover() 108 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false); in MDnsSdListenerDiscoverCallback() 118 respCode = ResponseCode::ServiceDiscoveryServiceAdded; in MDnsSdListenerDiscoverCallback() 124 respCode = ResponseCode::ServiceDiscoveryServiceRemoved; in MDnsSdListenerDiscoverCallback() 137 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in stop() 145 cli->sendMsg(ResponseCode::CommandParameterError, "Unknown requestId", false); in stop() 153 cli->sendMsg(ResponseCode::CommandOkay, msg, false); in stop() 169 cli->sendMsg(ResponseCode::CommandParameterError, in serviceRegister() [all …]
|
D | NetlinkHandler.cpp | 163 notify(ResponseCode::InterfaceChange, "Iface added %s", name); in notifyInterfaceAdded() 167 notify(ResponseCode::InterfaceChange, "Iface removed %s", name); in notifyInterfaceRemoved() 171 notify(ResponseCode::InterfaceChange, in notifyInterfaceChanged() 176 notify(ResponseCode::InterfaceChange, in notifyInterfaceLinkChanged() 181 notify(ResponseCode::BandwidthControl, "limit alert %s %s", name, iface); in notifyQuotaLimitReached() 189 notify(ResponseCode::InterfaceClassActivity, in notifyInterfaceClassActivity() 192 notify(ResponseCode::InterfaceClassActivity, in notifyInterfaceClassActivity() 195 notify(ResponseCode::InterfaceClassActivity, in notifyInterfaceClassActivity() 202 notify(ResponseCode::InterfaceAddressChange, in notifyAddressChanged() 211 notify(ResponseCode::InterfaceDnsInfo, "DnsInfo servers %s %s %s", in notifyInterfaceDnsServers() [all …]
|
D | DnsProxyListener.cpp | 108 cli->sendMsg(ResponseCode::OperationFailed, msg, false); in tryThreadOrError() 233 mClient->sendBinaryMsg(ResponseCode::DnsProxyOperationFailed, &rv, sizeof(rv)); in run() 235 bool success = !mClient->sendCode(ResponseCode::DnsProxyQueryResult); in run() 315 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand() 391 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand() 451 success = mClient->sendCode(ResponseCode::DnsProxyQueryResult) == 0; in run() 454 success = mClient->sendBinaryMsg(ResponseCode::DnsProxyOperationFailed, NULL, 0) == 0; in run() 522 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand() 540 cli->sendMsg(ResponseCode::OperationFailed, msg, false); in runCommand() 590 success = mClient->sendCode(ResponseCode::DnsProxyQueryResult) == 0; in run() [all …]
|
D | ResponseCode.h | 20 class ResponseCode {
|
/system/security/keystore/include/keystore/ |
D | keystore_return_types.h | 45 KeyStoreServiceReturnCode(const ResponseCode& errorCode) : errorCode_(int32_t(errorCode)) {} in KeyStoreServiceReturnCode() 53 inline KeyStoreServiceReturnCode& operator=(const ResponseCode& errorCode) { 62 return errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR) || in isOk() 66 if (!errorCode_) return static_cast<int32_t>(ResponseCode::NO_ERROR); in int32_t() 69 inline bool operator==(const ResponseCode& rhs) const { 70 return (rhs == ResponseCode::NO_ERROR && 76 errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR)) || 79 inline bool operator!=(const ResponseCode& rhs) const { return !(*this == rhs); } 86 inline bool operator==(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) { 92 inline bool operator!=(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) { [all …]
|
D | keystore.h | 29 enum class ResponseCode: int32_t { enum
|
/system/vold/ |
D | ResponseCode.cpp | 27 int ResponseCode::convertFromErrno() { in convertFromErrno() 29 return(ResponseCode::OpFailedNoMedia); in convertFromErrno() 31 return(ResponseCode::OpFailedMediaBlank); in convertFromErrno() 33 return(ResponseCode::OpFailedMediaCorrupt); in convertFromErrno() 35 return(ResponseCode::OpFailedStorageBusy); in convertFromErrno() 37 return(ResponseCode::OpFailedStorageNotFound); in convertFromErrno() 41 return(ResponseCode::OperationFailed); in convertFromErrno()
|
D | CommandListener.cpp | 105 return cli->sendMsg(ResponseCode::CommandOkay, "Command succeeded", false); in sendGenericOkFail() 107 return cli->sendMsg(ResponseCode::OperationFailed, "Command failed", false); in sendGenericOkFail() 119 cli->sendMsg(ResponseCode::CommandOkay, "Loop dump failed", true); in runCommand() 123 cli->sendMsg(ResponseCode::CommandOkay, "Devmapper dump failed", true); in runCommand() 136 cli->sendMsg(ResponseCode::CommandOkay, "dump complete", false); in runCommand() 149 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing Argument", false); in runCommand() 173 return cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown disk", false); in runCommand() 183 return cli->sendMsg(ResponseCode::CommandSyntaxError, nullptr, false); in runCommand() 188 return cli->sendMsg(ResponseCode::CommandSyntaxError, nullptr, false); in runCommand() 216 return cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown volume", false); in runCommand() [all …]
|
D | CryptCommandListener.cpp | 96 return cli->sendMsg(ResponseCode::CommandOkay, "Command succeeded", false); in sendGenericOkFailOnBool() 98 return cli->sendMsg(ResponseCode::OperationFailed, "Command failed", false); in sendGenericOkFailOnBool() 145 cli->sendMsg(ResponseCode::CommandSyntaxError, message.c_str(), false); in check_argc() 176 … cli->sendMsg(ResponseCode::CommandNoPermission, "No permission to run cryptfs commands", false); in runCommand() 181 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing subcommand", false); in runCommand() 249 cli->sendMsg(ResponseCode::CommandSyntaxError, syntax, false); in runCommand() 273 cli->sendMsg(ResponseCode::CommandSyntaxError, syntax, false); in runCommand() 278 cli->sendMsg(ResponseCode::CommandSyntaxError, syntax, false); in runCommand() 298 cli->sendMsg(ResponseCode::OperationFailed, "Failed to allocate memory", false); in runCommand() 309 cli->sendMsg(ResponseCode::CryptfsGetfieldResult, valbuf, false); in runCommand() [all …]
|
D | VolumeBase.cpp | 47 notifyEvent(ResponseCode::VolumeStateChanged, StringPrintf("%d", mState)); in setState() 117 notifyEvent(ResponseCode::VolumePathChanged, mPath); in setPath() 128 notifyEvent(ResponseCode::VolumeInternalPathChanged, mInternalPath); in setInternalPath() 166 notifyEvent(ResponseCode::VolumeCreated, in create() 186 notifyEvent(ResponseCode::VolumeDestroyed); in destroy()
|
D | PrivateVolume.cpp | 57 notifyEvent(ResponseCode::VolumeFsTypeChanged, mFsType); in readMetadata() 58 notifyEvent(ResponseCode::VolumeFsUuidChanged, mFsUuid); in readMetadata() 59 notifyEvent(ResponseCode::VolumeFsLabelChanged, mFsLabel); in readMetadata()
|
D | Disk.cpp | 152 notifyEvent(ResponseCode::DiskCreated, StringPrintf("%d", mFlags)); in create() 162 notifyEvent(ResponseCode::DiskDestroyed); in destroy() 282 notifyEvent(ResponseCode::DiskSizeChanged, StringPrintf("%" PRIu64, mSize)); in readMetadata() 283 notifyEvent(ResponseCode::DiskLabelChanged, mLabel); in readMetadata() 284 notifyEvent(ResponseCode::DiskSysPathChanged, mSysPath); in readMetadata() 307 notifyEvent(ResponseCode::DiskScanned); in readPartitions() 373 notifyEvent(ResponseCode::DiskScanned); in readPartitions()
|
D | PublicVolume.cpp | 55 notifyEvent(ResponseCode::VolumeFsTypeChanged, mFsType); in readMetadata() 56 notifyEvent(ResponseCode::VolumeFsUuidChanged, mFsUuid); in readMetadata() 57 notifyEvent(ResponseCode::VolumeFsLabelChanged, mFsLabel); in readMetadata()
|
D | ResponseCode.h | 20 class ResponseCode {
|
D | Benchmark.cpp | 48 ResponseCode::BenchmarkResult, res.c_str(), false); in notifyResult()
|
D | TrimTask.cpp | 110 ResponseCode::TrimResult, res.c_str(), false); in notifyResult()
|