Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 25 of 58) sorted by relevance

123

/system/core/init/
Dservice.h78 Result<Success> ParseLine(std::vector<std::string>&& args);
79 Result<Success> ExecStart();
80 Result<Success> Start();
81 Result<Success> StartIfNotDisabled();
82 Result<Success> StartIfPostData();
83 Result<Success> Enable();
132 using OptionParser = Result<Success> (Service::*)(std::vector<std::string>&& args);
135 Result<Success> SetUpMountNamespace() const;
136 Result<Success> SetUpPidNamespace() const;
137 Result<Success> EnterNamespaces() const;
[all …]
Dresult_test.cpp31 Result<std::string> result = "success"; in TEST()
42 ASSERT_TRUE(Result<std::string>("success")); in TEST()
43 ASSERT_TRUE(Result<std::string>("success").has_value()); in TEST()
45 EXPECT_EQ("success", *Result<std::string>("success")); in TEST()
46 EXPECT_EQ("success", Result<std::string>("success").value()); in TEST()
48 EXPECT_EQ('s', Result<std::string>("success")->data()[0]); in TEST()
52 Result<Success> result = Success(); in TEST()
64 auto MakeRvalueSuccessResult = []() -> Result<Success> { return Success(); }; in TEST()
73 Result<Success> result = Error() << "failure" << 1; in TEST()
82 Result<Success> result = Error(); in TEST()
[all …]
Dbuiltins.cpp90 static Result<Success> reboot_into_recovery(const std::vector<std::string>& options) { in reboot_into_recovery()
107 static Result<Success> do_class_start(const BuiltinArguments& args) { in do_class_start()
124 static Result<Success> do_class_start_post_data(const BuiltinArguments& args) { in do_class_start_post_data()
139 static Result<Success> do_class_stop(const BuiltinArguments& args) { in do_class_stop()
144 static Result<Success> do_class_reset(const BuiltinArguments& args) { in do_class_reset()
149 static Result<Success> do_class_reset_post_data(const BuiltinArguments& args) { in do_class_reset_post_data()
157 static Result<Success> do_class_restart(const BuiltinArguments& args) { in do_class_restart()
165 static Result<Success> do_domainname(const BuiltinArguments& args) { in do_domainname()
172 static Result<Success> do_enable(const BuiltinArguments& args) { in do_enable()
183 static Result<Success> do_exec(const BuiltinArguments& args) { in do_exec()
[all …]
Dueventd_parser.cpp32 Result<Success> ParsePermissionsLine(std::vector<std::string>&& args, in ParsePermissionsLine()
80 Result<Success> ParseFirmwareDirectoriesLine(std::vector<std::string>&& args, in ParseFirmwareDirectoriesLine()
91 Result<Success> ParseModaliasHandlingLine(std::vector<std::string>&& args, in ParseModaliasHandlingLine()
108 Result<Success> ParseUeventSocketRcvbufSizeLine(std::vector<std::string>&& args, in ParseUeventSocketRcvbufSizeLine()
127 Result<Success> ParseSection(std::vector<std::string>&& args, const std::string& filename,
129 Result<Success> ParseLineSection(std::vector<std::string>&& args, int line) override;
130 Result<Success> EndSection() override;
133 Result<Success> ParseDevName(std::vector<std::string>&& args);
134 Result<Success> ParseDirName(std::vector<std::string>&& args);
140 Result<Success> SubsystemParser::ParseSection(std::vector<std::string>&& args, in ParseSection()
[all …]
Depoll.h39 Result<Success> Open();
40 Result<Success> RegisterHandler(int fd, std::function<void()> handler,
42 Result<Success> UnregisterHandler(int fd);
43 Result<Success> Wait(std::optional<std::chrono::milliseconds> timeout);
Dsecurity.h29 Result<Success> MixHwrngIntoLinuxRngAction(const BuiltinArguments&);
30 Result<Success> SetMmapRndBitsAction(const BuiltinArguments&);
31 Result<Success> SetKptrRestrictAction(const BuiltinArguments&);
Depoll.cpp31 Result<Success> Epoll::Open() { in Open()
41 Result<Success> Epoll::RegisterHandler(int fd, std::function<void()> handler, uint32_t events) { in RegisterHandler()
55 Result<Success> result = ErrnoError() << "epoll_ctl failed to add fd"; in RegisterHandler()
62 Result<Success> Epoll::UnregisterHandler(int fd) { in UnregisterHandler()
72 Result<Success> Epoll::Wait(std::optional<std::chrono::milliseconds> timeout) { in Wait()
Dmodalias_handler.h38 Result<Success> InsmodWithDeps(const std::string& module_name, const std::string& args);
39 Result<Success> Insmod(const std::string& path_name, const std::string& args);
41 Result<Success> ParseDepCallback(std::vector<std::string>&& args);
42 Result<Success> ParseAliasCallback(std::vector<std::string>&& args);
Dservice.cpp73 static Result<std::string> ComputeContextFromExecutable(const std::string& service_path) { in ComputeContextFromExecutable()
109 Result<Success> Service::SetUpMountNamespace() const { in SetUpMountNamespace()
144 Result<Success> Service::SetUpPidNamespace() const { in SetUpPidNamespace()
177 Result<Success> Service::EnterNamespaces() const { in EnterNamespaces()
417 Result<Success> Service::ParseCapabilities(std::vector<std::string>&& args) { in ParseCapabilities()
446 Result<Success> Service::ParseClass(std::vector<std::string>&& args) { in ParseClass()
451 Result<Success> Service::ParseConsole(std::vector<std::string>&& args) { in ParseConsole()
457 Result<Success> Service::ParseCritical(std::vector<std::string>&& args) { in ParseCritical()
462 Result<Success> Service::ParseDisabled(std::vector<std::string>&& args) { in ParseDisabled()
468 Result<Success> Service::ParseEnterNamespace(std::vector<std::string>&& args) { in ParseEnterNamespace()
[all …]
Dparser.h54 virtual Result<Success> ParseSection(std::vector<std::string>&& args,
56 virtual Result<Success> ParseLineSection(std::vector<std::string>&&, int) { return Success(); }; in ParseLineSection()
57 virtual Result<Success> EndSection() { return Success(); }; in EndSection()
70 using LineCallback = std::function<Result<Success>(std::vector<std::string>&&)>;
Daction_parser.h35 Result<Success> ParseSection(std::vector<std::string>&& args, const std::string& filename,
37 Result<Success> ParseLineSection(std::vector<std::string>&& args, int line) override;
38 Result<Success> EndSection() override;
Dresult.h154 class [[nodiscard]] Result {
156 Result() {} in Result() function
159 typename = std::enable_if_t<!(std::is_same_v<std::decay_t<U>, Result<T>> &&
161 Result(U&& result, V&&... results) in Result() function
165 Result(Error&& error) : contents_(std::in_place_index_t<1>(), error.str(), error.get_errno()) {} in Result() function
166 Result(const ResultError& result_error) in Result() function
169 Result(ResultError&& result_error) in Result() function
Dsubcontext.h45 Result<Success> Execute(const std::vector<std::string>& args);
46 Result<std::vector<std::string>> ExpandArgs(const std::vector<std::string>& args);
55 Result<SubcontextReply> TransmitMessage(const SubcontextCommand& subcontext_command);
Dpersistent_properties.h32 Result<PersistentProperties> LoadPersistentPropertyFile();
33 Result<Success> WritePersistentPropertyFile(const PersistentProperties& persistent_properties);
Dhost_import_parser.cpp26 Result<Success> HostImportParser::ParseSection(std::vector<std::string>&& args, const std::string&, in ParseSection()
35 Result<Success> HostImportParser::ParseLineSection(std::vector<std::string>&&, int) { in ParseLineSection()
Daction_parser.cpp58 Result<Success> ParsePropertyTrigger(const std::string& trigger, Subcontext* subcontext, in ParsePropertyTrigger()
80 Result<Success> ParseTriggers(const std::vector<std::string>& args, Subcontext* subcontext, in ParseTriggers()
116 Result<Success> ActionParser::ParseSection(std::vector<std::string>&& args, in ParseSection()
148 Result<Success> ActionParser::ParseLineSection(std::vector<std::string>&& args, int line) { in ParseLineSection()
152 Result<Success> ActionParser::EndSection() { in EndSection()
Dhost_import_parser.h30 Result<Success> ParseSection(std::vector<std::string>&& args, const std::string&, int) override;
31 Result<Success> ParseLineSection(std::vector<std::string>&&, int) override;
Dutil.h44 Result<std::string> ReadFile(const std::string& path);
45 Result<Success> WriteFile(const std::string& path, const std::string& content);
47 Result<uid_t> DecodeUid(const std::string& name);
/system/chre/host/hal_generic/
Dgeneric_context_hub.cc38 using ::android::hardware::contexthub::V1_0::Result;
169 Return<Result> GenericContextHub::registerCallback( in registerCallback()
171 Result result; in registerCallback()
190 result = Result::OK; in registerCallback()
192 result = Result::BAD_PARAMS; in registerCallback()
198 Return<Result> GenericContextHub::sendMessageToHub(uint32_t hubId, in sendMessageToHub()
200 Result result; in sendMessageToHub()
204 result = Result::BAD_PARAMS; in sendMessageToHub()
212 result = Result::UNKNOWN_FAILURE; in sendMessageToHub()
214 result = Result::OK; in sendMessageToHub()
[all …]
Dgeneric_context_hub.h46 using ::android::hardware::contexthub::V1_0::Result;
61 Return<Result> registerCallback(uint32_t hubId, const sp<IContexthubCallback>& cb) override;
62 Return<Result> sendMessageToHub(uint32_t hubId, const ContextHubMsg& msg) override;
63 …Return<Result> loadNanoApp(uint32_t hubId, const NanoAppBinary& appBinary, uint32_t transactionId)…
64 Return<Result> unloadNanoApp(uint32_t hubId, uint64_t appId, uint32_t transactionId) override;
65 Return<Result> enableNanoApp(uint32_t hubId, uint64_t appId, uint32_t transactionId) override;
66 Return<Result> disableNanoApp(uint32_t hubId, uint64_t appId, uint32_t transactionId) override;
67 Return<Result> queryApps(uint32_t hubId) override;
177 Result sendFragmentedLoadNanoAppRequest(
/system/netd/resolv/
DDnsTlsQueryMap.h45 typedef DnsTlsServer::Result Result; typedef
48 QueryFuture(Query query, std::future<Result> result) in QueryFuture()
52 std::future<Result> result;
87 std::promise<Result> result;
DDnsTlsTransport.h50 typedef DnsTlsServer::Result Result; typedef
53 std::future<Result> query(const netdutils::Slice query) EXCLUDES(mLock);
/system/core/healthd/
DHealthServiceHealthd.cpp31 using android::hardware::health::V1_0::Result;
46 Result result = Result::NOT_SUPPORTED; in healthd_board_get_energy_counter()
47 gHealth_1_0->energyCounter([energy, &result](Result ret, int64_t energyOut) { in healthd_board_get_energy_counter()
52 return result == Result::SUCCESS ? OK : NAME_NOT_FOUND; in healthd_board_get_energy_counter()
/system/core/fastboot/device/
Dvariables.cpp38 using ::android::hardware::fastboot::V1_0::Result;
88 Result ret; in GetVariant()
89 auto ret_val = fastboot_hal->getVariant([&](std::string device_variant, Result result) { in GetVariant()
103 using android::hardware::health::V2_0::Result; in GetBatteryVoltageHelper()
110 Result ret; in GetBatteryVoltageHelper()
111 auto ret_val = health_hal->getHealthInfo([&](Result result, HealthInfo info) { in GetBatteryVoltageHelper()
115 if (!ret_val.isOk() || (ret != Result::SUCCESS)) { in GetBatteryVoltageHelper()
136 Result ret; in GetBatterySoCOk()
138 [&](int32_t voltage_threshold, Result result) { in GetBatterySoCOk()
159 Result ret; in GetOffModeChargeState()
[all …]
/system/security/keystore/include/keystore/
Dkeystore_promises.h30 template <typename BnInterface, typename Result>
31 class CallbackPromise : public BnInterface, public std::promise<Result> {
33 ::android::binder::Status onFinished(const Result& result) override { in onFinished()

123