Home
last modified time | relevance | path

Searched refs:ResponseCode (Results 1 – 24 of 24) sorted by relevance

/system/vold/
DCryptCommandListener.cpp87 return cli->sendMsg(ResponseCode::CommandOkay, "Command succeeded", false); in sendGenericOkFail()
89 return cli->sendMsg(ResponseCode::OperationFailed, "Command failed", false); in sendGenericOkFail()
115 … cli->sendMsg(ResponseCode::CommandNoPermission, "No permission to run cryptfs commands", false); in runCommand()
120 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing Argument", false); in runCommand()
128 … cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: cryptfs checkpw <passwd>", false); in runCommand()
135 cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: cryptfs restart", false); in runCommand()
142 cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: cryptfs cryptocomplete", false); in runCommand()
152 cli->sendMsg(ResponseCode::CommandSyntaxError, syntax, false); in runCommand()
161 cli->sendMsg(ResponseCode::CommandSyntaxError, syntax, in runCommand()
180 cli->sendMsg(ResponseCode::CommandSyntaxError, syntax, false); in runCommand()
[all …]
DCommandListener.cpp97 return cli->sendMsg(ResponseCode::CommandOkay, "Command succeeded", false); in sendGenericOkFail()
99 return cli->sendMsg(ResponseCode::OperationFailed, "Command failed", false); in sendGenericOkFail()
111 cli->sendMsg(ResponseCode::CommandOkay, "Loop dump failed", true); in runCommand()
115 cli->sendMsg(ResponseCode::CommandOkay, "Devmapper dump failed", true); in runCommand()
128 cli->sendMsg(ResponseCode::CommandOkay, "dump complete", false); in runCommand()
141 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing Argument", false); in runCommand()
165 return cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown disk", false); in runCommand()
175 return cli->sendMsg(ResponseCode::CommandSyntaxError, nullptr, false); in runCommand()
180 return cli->sendMsg(ResponseCode::CommandSyntaxError, nullptr, false); in runCommand()
208 return cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown volume", false); in runCommand()
[all …]
DResponseCode.cpp27 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()
DVolumeBase.cpp49 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()
DDisk.cpp120 notifyEvent(ResponseCode::DiskCreated, StringPrintf("%d", mFlags)); in create()
130 notifyEvent(ResponseCode::DiskDestroyed); in destroy()
239 notifyEvent(ResponseCode::DiskSizeChanged, StringPrintf("%" PRId64, mSize)); in readMetadata()
240 notifyEvent(ResponseCode::DiskLabelChanged, mLabel); in readMetadata()
241 notifyEvent(ResponseCode::DiskSysPathChanged, mSysPath); in readMetadata()
264 notifyEvent(ResponseCode::DiskScanned); in readPartitions()
330 notifyEvent(ResponseCode::DiskScanned); in readPartitions()
DPrivateVolume.cpp57 notifyEvent(ResponseCode::VolumeFsTypeChanged, mFsType); in readMetadata()
58 notifyEvent(ResponseCode::VolumeFsUuidChanged, mFsUuid); in readMetadata()
59 notifyEvent(ResponseCode::VolumeFsLabelChanged, mFsLabel); in readMetadata()
DPublicVolume.cpp55 notifyEvent(ResponseCode::VolumeFsTypeChanged, mFsType); in readMetadata()
56 notifyEvent(ResponseCode::VolumeFsUuidChanged, mFsUuid); in readMetadata()
57 notifyEvent(ResponseCode::VolumeFsLabelChanged, mFsLabel); in readMetadata()
DResponseCode.h20 class ResponseCode {
DAndroid.mk16 ResponseCode.cpp \
DBenchmark.cpp48 ResponseCode::BenchmarkResult, res.c_str(), false); in notifyResult()
DTrimTask.cpp111 ResponseCode::TrimResult, res.c_str(), false); in notifyResult()
DMoveTask.cpp59 VolumeManager::Instance()->getBroadcaster()->sendBroadcast(ResponseCode::MoveStatus, in notifyProgress()
DVolumeManager.cpp1846 cli->sendMsg(ResponseCode::AsecListResult, in listMountedObbs()
/system/netd/server/
DCommandListener.cpp267 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
276 cli->sendMsg(ResponseCode::OperationFailed, "Failed to open sysfs dir", true); in runCommand()
283 cli->sendMsg(ResponseCode::InterfaceListResult, de->d_name, false); in runCommand()
286 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false); in runCommand()
293 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
307 cli->sendMsg(ResponseCode::OperationFailed, "Interface not found", true); in runCommand()
335 cli->sendMsg(ResponseCode::InterfaceGetCfgResult, msg, false); in runCommand()
346 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
361 cli->sendMsg(ResponseCode::OperationFailed, "Failed to set address", true); in runCommand()
368 cli->sendMsg(ResponseCode::OperationFailed, "Failed to set prefixLength", true); in runCommand()
[all …]
DSoftapController.cpp64 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()
175 return ResponseCode::OperationFailed; in setSoftap()
177 return ResponseCode::SoftapStatusResult; in setSoftap()
191 return ResponseCode::CommandSyntaxError; in fwReloadSoftap()
[all …]
DMDnsSdListener.cpp73 cli->sendMsg(ResponseCode::CommandParameterError, in discover()
86 cli->sendMsg(ResponseCode::CommandParameterError, in discover()
92 cli->sendMsg(ResponseCode::CommandOkay, "Discover operation started", false); in discover()
105 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false); in MDnsSdListenerDiscoverCallback()
115 respCode = ResponseCode::ServiceDiscoveryServiceAdded; in MDnsSdListenerDiscoverCallback()
121 respCode = ResponseCode::ServiceDiscoveryServiceRemoved; in MDnsSdListenerDiscoverCallback()
134 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in stop()
142 cli->sendMsg(ResponseCode::CommandParameterError, "Unknown requestId", false); in stop()
150 cli->sendMsg(ResponseCode::CommandOkay, msg, false); in stop()
166 cli->sendMsg(ResponseCode::CommandParameterError, in serviceRegister()
[all …]
DNetlinkHandler.cpp148 notify(ResponseCode::InterfaceChange, "Iface added %s", name); in notifyInterfaceAdded()
152 notify(ResponseCode::InterfaceChange, "Iface removed %s", name); in notifyInterfaceRemoved()
156 notify(ResponseCode::InterfaceChange, in notifyInterfaceChanged()
161 notify(ResponseCode::InterfaceChange, in notifyInterfaceLinkChanged()
166 notify(ResponseCode::BandwidthControl, "limit alert %s %s", name, iface); in notifyQuotaLimitReached()
174 notify(ResponseCode::InterfaceClassActivity, in notifyInterfaceClassActivity()
177 notify(ResponseCode::InterfaceClassActivity, in notifyInterfaceClassActivity()
180 notify(ResponseCode::InterfaceClassActivity, in notifyInterfaceClassActivity()
187 notify(ResponseCode::InterfaceAddressChange, in notifyAddressChanged()
196 notify(ResponseCode::InterfaceDnsInfo, "DnsInfo servers %s %s %s", in notifyInterfaceDnsServers()
[all …]
DDnsProxyListener.cpp169 mClient->sendBinaryMsg(ResponseCode::DnsProxyOperationFailed, &rv, sizeof(rv)); in run()
171 bool success = !mClient->sendCode(ResponseCode::DnsProxyQueryResult); in run()
204 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand()
286 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand()
361 success = mClient->sendCode(ResponseCode::DnsProxyQueryResult) == 0; in run()
364 success = mClient->sendBinaryMsg(ResponseCode::DnsProxyOperationFailed, NULL, 0) == 0; in run()
393 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand()
411 cli->sendMsg(ResponseCode::OperationFailed, msg, false); in runCommand()
478 success = mClient->sendCode(ResponseCode::DnsProxyQueryResult) == 0; in run()
481 success = mClient->sendBinaryMsg(ResponseCode::DnsProxyOperationFailed, NULL, 0) == 0; in run()
DResponseCode.h20 class ResponseCode {
DBandwidthController.cpp1211 cli->sendMsg(ResponseCode::TetheringStatsResult, msg, false); in parseForwardChainStats()
1214 cli->sendMsg(ResponseCode::TetheringStatsListResult, msg, false); in parseForwardChainStats()
1228 cli->sendMsg(ResponseCode::CommandOkay, "Tethering stats list completed", false); in parseForwardChainStats()
/system/security/keystore/
Dkeystore.cpp603 ResponseCode writeBlob(const char* filename, AES_KEY *aes_key, State state, Entropy* entropy) { in writeBlob()
666 ResponseCode readBlob(const char* filename, AES_KEY *aes_key, State state) { in readBlob()
799 ResponseCode initialize(const android::String8& pw, Entropy* entropy) { in initialize()
803 ResponseCode response = writeMasterKey(pw, entropy); in initialize()
811 ResponseCode copyMasterKey(UserState* src) { in copyMasterKey()
823 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey()
832 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey()
857 ResponseCode response = masterKeyBlob.readBlob(mMasterKeyFile, &passwordAesKey, in readMasterKey()
1027 ResponseCode initialize() { in initialize()
1040 ResponseCode initializeUser(const android::String8& pw, uid_t userId) { in initializeUser()
[all …]
/system/security/keystore/include/keystore/
Dkeystore.h29 enum ResponseCode { enum
/system/core/fingerprintd/
DFingerprintDaemonProxy.cpp105 if (ret != ResponseCode::NO_ERROR) { in notifyKeystore()
/system/core/gatekeeperd/
Dgatekeeperd.cpp250 if (ret != ResponseCode::NO_ERROR) { in verifyChallenge()