/system/netd/server/ |
D | SoftapController.cpp | 64 return ResponseCode::SoftapStatusResult; in startSoftap() 73 return ResponseCode::ServiceStartFailed; in startSoftap() 84 return ResponseCode::ServiceStartFailed; in startSoftap() 90 return ResponseCode::SoftapStatusResult; in startSoftap() 97 return ResponseCode::SoftapStatusResult; in stopSoftap() 107 return ResponseCode::SoftapStatusResult; in stopSoftap() 130 return ResponseCode::CommandSyntaxError; in setSoftap() 158 return ResponseCode::OperationFailed; in setSoftap() 163 return ResponseCode::OperationFailed; in setSoftap() 179 return ResponseCode::OperationFailed; in setSoftap() [all …]
|
D | CommandListener.cpp | 257 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 266 cli->sendMsg(ResponseCode::OperationFailed, "Failed to open sysfs dir", true); in runCommand() 273 cli->sendMsg(ResponseCode::InterfaceListResult, de->d_name, false); in runCommand() 276 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false); in runCommand() 283 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 297 cli->sendMsg(ResponseCode::OperationFailed, "Interface not found", true); in runCommand() 325 cli->sendMsg(ResponseCode::InterfaceGetCfgResult, msg, false); in runCommand() 336 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 351 cli->sendMsg(ResponseCode::OperationFailed, "Failed to clear address", true); in runCommand() 357 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 | 160 notify(ResponseCode::InterfaceChange, "Iface added %s", name); in notifyInterfaceAdded() 164 notify(ResponseCode::InterfaceChange, "Iface removed %s", name); in notifyInterfaceRemoved() 168 notify(ResponseCode::InterfaceChange, in notifyInterfaceChanged() 173 notify(ResponseCode::InterfaceChange, in notifyInterfaceLinkChanged() 178 notify(ResponseCode::BandwidthControl, "limit alert %s %s", name, iface); in notifyQuotaLimitReached() 186 notify(ResponseCode::InterfaceClassActivity, in notifyInterfaceClassActivity() 189 notify(ResponseCode::InterfaceClassActivity, in notifyInterfaceClassActivity() 192 notify(ResponseCode::InterfaceClassActivity, in notifyInterfaceClassActivity() 199 notify(ResponseCode::InterfaceAddressChange, in notifyAddressChanged() 208 notify(ResponseCode::InterfaceDnsInfo, "DnsInfo servers %s %s %s", in notifyInterfaceDnsServers() [all …]
|
D | DnsProxyListener.cpp | 203 mClient->sendBinaryMsg(ResponseCode::DnsProxyOperationFailed, &rv, sizeof(rv)); in run() 205 bool success = !mClient->sendCode(ResponseCode::DnsProxyQueryResult); in run() 242 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand() 318 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand() 393 success = mClient->sendCode(ResponseCode::DnsProxyQueryResult) == 0; in run() 396 success = mClient->sendBinaryMsg(ResponseCode::DnsProxyOperationFailed, NULL, 0) == 0; in run() 430 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand() 448 cli->sendMsg(ResponseCode::OperationFailed, msg, false); in runCommand() 515 success = mClient->sendCode(ResponseCode::DnsProxyQueryResult) == 0; in run() 518 success = mClient->sendBinaryMsg(ResponseCode::DnsProxyOperationFailed, NULL, 0) == 0; in run()
|
D | ResponseCode.h | 20 class ResponseCode {
|
/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 | 102 return cli->sendMsg(ResponseCode::CommandOkay, "Command succeeded", false); in sendGenericOkFail() 104 return cli->sendMsg(ResponseCode::OperationFailed, "Command failed", false); in sendGenericOkFail() 116 cli->sendMsg(ResponseCode::CommandOkay, "Loop dump failed", true); in runCommand() 120 cli->sendMsg(ResponseCode::CommandOkay, "Devmapper dump failed", true); in runCommand() 133 cli->sendMsg(ResponseCode::CommandOkay, "dump complete", false); in runCommand() 146 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing Argument", false); in runCommand() 170 return cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown disk", false); in runCommand() 180 return cli->sendMsg(ResponseCode::CommandSyntaxError, nullptr, false); in runCommand() 185 return cli->sendMsg(ResponseCode::CommandSyntaxError, nullptr, false); in runCommand() 213 return cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown volume", false); in runCommand() [all …]
|
D | CryptCommandListener.cpp | 95 return cli->sendMsg(ResponseCode::CommandOkay, "Command succeeded", false); in sendGenericOkFailOnBool() 97 return cli->sendMsg(ResponseCode::OperationFailed, "Command failed", false); in sendGenericOkFailOnBool() 144 cli->sendMsg(ResponseCode::CommandSyntaxError, message.c_str(), false); in check_argc() 175 … cli->sendMsg(ResponseCode::CommandNoPermission, "No permission to run cryptfs commands", false); in runCommand() 180 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing subcommand", false); in runCommand() 248 cli->sendMsg(ResponseCode::CommandSyntaxError, syntax, false); in runCommand() 272 cli->sendMsg(ResponseCode::CommandSyntaxError, syntax, false); in runCommand() 277 cli->sendMsg(ResponseCode::CommandSyntaxError, syntax, false); in runCommand() 297 cli->sendMsg(ResponseCode::OperationFailed, "Failed to allocate memory", false); in runCommand() 308 cli->sendMsg(ResponseCode::CryptfsGetfieldResult, valbuf, false); in runCommand() [all …]
|
D | VolumeBase.cpp | 49 notifyEvent(ResponseCode::VolumeStateChanged, StringPrintf("%d", mState)); in setState() 119 notifyEvent(ResponseCode::VolumePathChanged, mPath); in setPath() 130 notifyEvent(ResponseCode::VolumeInternalPathChanged, mInternalPath); in setInternalPath() 168 notifyEvent(ResponseCode::VolumeCreated, in create() 188 notifyEvent(ResponseCode::VolumeDestroyed); in destroy()
|
D | Disk.cpp | 149 notifyEvent(ResponseCode::DiskCreated, StringPrintf("%d", mFlags)); in create() 159 notifyEvent(ResponseCode::DiskDestroyed); in destroy() 275 notifyEvent(ResponseCode::DiskSizeChanged, StringPrintf("%" PRIu64, mSize)); in readMetadata() 276 notifyEvent(ResponseCode::DiskLabelChanged, mLabel); in readMetadata() 277 notifyEvent(ResponseCode::DiskSysPathChanged, mSysPath); in readMetadata() 300 notifyEvent(ResponseCode::DiskScanned); in readPartitions() 366 notifyEvent(ResponseCode::DiskScanned); in readPartitions()
|
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 | 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 | 111 ResponseCode::TrimResult, res.c_str(), false); in notifyResult()
|
D | Android.mk | 16 ResponseCode.cpp \
|
/system/security/keystore/ |
D | keystore.h | 46 ResponseCode initialize(); 50 ResponseCode initializeUser(const android::String8& pw, uid_t userId); 52 ResponseCode copyMasterKey(uid_t srcUser, uid_t dstUser); 53 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId); 54 ResponseCode readMasterKey(const android::String8& pw, uid_t userId); 70 ResponseCode get(const char* filename, Blob* keyBlob, const BlobType type, uid_t userId); 71 ResponseCode put(const char* filename, Blob* keyBlob, uid_t userId); 72 ResponseCode del(const char* filename, const BlobType type, uid_t userId); 73 ResponseCode list(const android::String8& prefix, android::Vector<android::String16>* matches, 82 ResponseCode importKey(const uint8_t* key, size_t keyLen, const char* filename, uid_t userId, [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 | user_state.cpp | 79 ResponseCode UserState::initialize(const android::String8& pw, Entropy* entropy) { in initialize() 83 ResponseCode response = writeMasterKey(pw, entropy); in initialize() 91 ResponseCode UserState::copyMasterKey(UserState* src) { in copyMasterKey() 103 ResponseCode UserState::copyMasterKeyFile(UserState* src) { in copyMasterKeyFile() 133 ResponseCode UserState::writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey() 142 ResponseCode UserState::readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey() 167 ResponseCode response = masterKeyBlob.readBlob(mMasterKeyFile, &passwordAesKey, STATE_NO_ERROR); in readMasterKey()
|
D | keystore.cpp | 54 ResponseCode KeyStore::initialize() { in initialize() 63 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() 68 ResponseCode KeyStore::copyMasterKey(uid_t srcUser, uid_t dstUser) { in copyMasterKey() 74 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() 79 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() 151 ResponseCode rc = get(filename, &blob, ::TYPE_ANY, userId); in resetUser() 212 ResponseCode KeyStore::get(const char* filename, Blob* keyBlob, const BlobType type, uid_t userId) { in get() 214 ResponseCode rc = in get() 242 ResponseCode imported = in get() 267 ResponseCode KeyStore::put(const char* filename, Blob* keyBlob, uid_t userId) { in put() [all …]
|
D | blob.h | 104 ResponseCode writeBlob(const char* filename, AES_KEY* aes_key, State state, Entropy* entropy); 105 ResponseCode readBlob(const char* filename, AES_KEY* aes_key, State state);
|
D | blob.cpp | 90 ResponseCode Blob::writeBlob(const char* filename, AES_KEY* aes_key, State state, in writeBlob() 153 ResponseCode Blob::readBlob(const char* filename, AES_KEY* aes_key, State state) { in readBlob()
|
D | key_store_service.cpp | 76 ResponseCode responseCode = mKeyStore->getKeyForName(&keyBlob, name8, targetUid, TYPE_GENERIC); in get() 539 ResponseCode responseCode = in duplicate() 687 ResponseCode responseCode = in getKeyCharacteristics() 793 ResponseCode responseCode = in exportKey() 836 ResponseCode responseCode = in begin() 1143 ResponseCode responseCode = in attestKey() 1490 if (result.resultCode != ResponseCode::NO_ERROR) { in doLegacySignVerify() 1504 if (result.resultCode != ResponseCode::NO_ERROR) { in doLegacySignVerify() 1521 if (result.resultCode != ResponseCode::NO_ERROR) { in doLegacySignVerify() 1543 ResponseCode responseCode = mKeyStore->getKeyForName(blob, name8, uid, TYPE_KEYMASTER_10); in upgradeKeyBlob()
|
/system/security/keystore/include/keystore/ |
D | keystore.h | 29 enum ResponseCode { enum
|