Home
last modified time | relevance | path

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

1234567

/system/core/init/
Dcheck_builtins.h25 Result<void> check_chown(const BuiltinArguments& args);
26 Result<void> check_exec(const BuiltinArguments& args);
27 Result<void> check_exec_background(const BuiltinArguments& args);
28 Result<void> check_exec_reboot_on_failure(const BuiltinArguments& args);
29 Result<void> check_interface_restart(const BuiltinArguments& args);
30 Result<void> check_interface_start(const BuiltinArguments& args);
31 Result<void> check_interface_stop(const BuiltinArguments& args);
32 Result<void> check_load_system_props(const BuiltinArguments& args);
33 Result<void> check_loglevel(const BuiltinArguments& args);
34 Result<void> check_mkdir(const BuiltinArguments& args);
[all …]
Dservice_parser.h41 Result<void> ParseSection(std::vector<std::string>&& args, const std::string& filename,
43 Result<void> ParseLineSection(std::vector<std::string>&& args, int line) override;
44 Result<void> EndSection() override;
48 using OptionParser = Result<void> (ServiceParser::*)(std::vector<std::string>&& args);
51 Result<void> ParseCapabilities(std::vector<std::string>&& args);
52 Result<void> ParseClass(std::vector<std::string>&& args);
53 Result<void> ParseConsole(std::vector<std::string>&& args);
54 Result<void> ParseCritical(std::vector<std::string>&& args);
55 Result<void> ParseDisabled(std::vector<std::string>&& args);
56 Result<void> ParseEnterNamespace(std::vector<std::string>&& args);
[all …]
Dcheck_builtins.cpp53 Result<void> check_chown(const BuiltinArguments& args) { in check_chown()
72 Result<void> check_exec(const BuiltinArguments& args) { in check_exec()
83 Result<void> check_exec_background(const BuiltinArguments& args) { in check_exec_background()
87 Result<void> check_exec_reboot_on_failure(const BuiltinArguments& args) { in check_exec_reboot_on_failure()
96 Result<void> check_interface_restart(const BuiltinArguments& args) { in check_interface_restart()
103 Result<void> check_interface_start(const BuiltinArguments& args) { in check_interface_start()
107 Result<void> check_interface_stop(const BuiltinArguments& args) { in check_interface_stop()
111 Result<void> check_load_system_props(const BuiltinArguments& args) { in check_load_system_props()
115 Result<void> check_loglevel(const BuiltinArguments& args) { in check_loglevel()
126 Result<void> check_mount_all(const BuiltinArguments& args) { in check_mount_all()
[all …]
Dutil.h47 Result<int> CreateSocket(const std::string& name, int type, bool passcred, mode_t perm, uid_t uid,
50 Result<std::string> ReadFile(const std::string& path);
51 Result<void> WriteFile(const std::string& path, const std::string& content);
53 Result<uid_t> DecodeUid(const std::string& name);
60 Result<std::string> ExpandProps(const std::string& src);
70 Result<void> IsLegalPropertyValue(const std::string& name, const std::string& value);
81 Result<MkdirOptions> ParseMkdir(const std::vector<std::string>& args);
90 Result<MountAllOptions> ParseMountAll(const std::vector<std::string>& args);
92 Result<std::pair<int, std::vector<std::string>>> ParseRestorecon(
95 Result<std::string> ParseSwaponAll(const std::vector<std::string>& args);
[all …]
Dservice_parser.cpp53 Result<void> ServiceParser::ParseCapabilities(std::vector<std::string>&& args) { in ParseCapabilities()
81 Result<void> ServiceParser::ParseClass(std::vector<std::string>&& args) { in ParseClass()
86 Result<void> ServiceParser::ParseConsole(std::vector<std::string>&& args) { in ParseConsole()
95 Result<void> ServiceParser::ParseCritical(std::vector<std::string>&& args) { in ParseCritical()
100 Result<void> ServiceParser::ParseDisabled(std::vector<std::string>&& args) { in ParseDisabled()
106 Result<void> ServiceParser::ParseEnterNamespace(std::vector<std::string>&& args) { in ParseEnterNamespace()
120 Result<void> ServiceParser::ParseGroup(std::vector<std::string>&& args) { in ParseGroup()
137 Result<void> ServiceParser::ParsePriority(std::vector<std::string>&& args) { in ParsePriority()
148 Result<void> ServiceParser::ParseInterface(std::vector<std::string>&& args) { in ParseInterface()
183 Result<void> ServiceParser::ParseIoprio(std::vector<std::string>&& args) { in ParseIoprio()
[all …]
Dsecurity.h29 Result<void> MixHwrngIntoLinuxRngAction(const BuiltinArguments&);
30 Result<void> SetMmapRndBitsAction(const BuiltinArguments&);
31 Result<void> SetKptrRestrictAction(const BuiltinArguments&);
32 Result<void> TestPerfEventSelinuxAction(const BuiltinArguments&);
Dbuiltins.cpp143 static Result<void> reboot_into_recovery(const std::vector<std::string>& options) { in reboot_into_recovery()
160 static Result<void> do_class_start(const BuiltinArguments& args) { in do_class_start()
177 static Result<void> do_class_start_post_data(const BuiltinArguments& args) { in do_class_start_post_data()
199 static Result<void> do_class_stop(const BuiltinArguments& args) { in do_class_stop()
204 static Result<void> do_class_reset(const BuiltinArguments& args) { in do_class_reset()
209 static Result<void> do_class_reset_post_data(const BuiltinArguments& args) { in do_class_reset_post_data()
222 static Result<void> do_class_restart(const BuiltinArguments& args) { in do_class_restart()
230 static Result<void> do_domainname(const BuiltinArguments& args) { in do_domainname()
237 static Result<void> do_enable(const BuiltinArguments& args) { in do_enable()
248 static Result<void> do_exec(const BuiltinArguments& args) { in do_exec()
[all …]
Dueventd_parser.cpp32 Result<void> ParsePermissionsLine(std::vector<std::string>&& args, in ParsePermissionsLine()
80 Result<void> ParseFirmwareDirectoriesLine(std::vector<std::string>&& args, in ParseFirmwareDirectoriesLine()
91 Result<void> ParseExternalFirmwareHandlerLine( in ParseExternalFirmwareHandlerLine()
116 Result<void> ParseEnabledDisabledLine(std::vector<std::string>&& args, bool* feature) { in ParseEnabledDisabledLine()
132 Result<void> ParseUeventSocketRcvbufSizeLine(std::vector<std::string>&& args, in ParseUeventSocketRcvbufSizeLine()
151 Result<void> ParseSection(std::vector<std::string>&& args, const std::string& filename,
153 Result<void> ParseLineSection(std::vector<std::string>&& args, int line) override;
154 Result<void> EndSection() override;
157 Result<void> ParseDevName(std::vector<std::string>&& args);
158 Result<void> ParseDirName(std::vector<std::string>&& args);
[all …]
Depoll.h39 Result<void> Open();
40 Result<void> RegisterHandler(int fd, std::function<void()> handler, uint32_t events = EPOLLIN);
41 Result<void> UnregisterHandler(int fd);
42 Result<std::vector<std::function<void()>*>> Wait(
Dinterface_utils.h35 Result<void> CheckInterfaceInheritanceHierarchy(const std::set<std::string>& instances,
37 Result<void> CheckInterfaceInheritanceHierarchy(const std::set<android::FQName>& interfaces,
46 Result<void> IsKnownInterface(const std::string& instance);
47 Result<void> IsKnownInterface(const FQName& intf);
/system/apex/apexd/
Dapexd.h34 android::base::Result<void> resumeRevertIfNeeded();
38 android::base::Result<void> scanPackagesDirAndActivate(
41 android::base::Result<void> preinstallPackages(
43 android::base::Result<void> postinstallPackages(
46 android::base::Result<void> stagePackages(
48 android::base::Result<void> unstagePackages(
51 android::base::Result<std::vector<ApexFile>> submitStagedSession(
55 android::base::Result<void> markStagedSessionReady(const int session_id)
57 android::base::Result<void> markStagedSessionSuccessful(const int session_id)
59 android::base::Result<void> revertActiveSessions(
[all …]
Dapexd_checkpoint_vold.h40 android::base::Result<bool> SupportsFsCheckpoints() override;
42 android::base::Result<bool> NeedsCheckpoint() override;
43 android::base::Result<bool> NeedsRollback() override;
44 android::base::Result<void> StartCheckpoint(int32_t retry) override;
46 android::base::Result<void> AbortChanges(const std::string& msg,
49 static android::base::Result<VoldCheckpointInterface> Create();
Dapexd_checkpoint.h31 virtual android::base::Result<bool> SupportsFsCheckpoints() = 0;
33 virtual android::base::Result<bool> NeedsCheckpoint() = 0;
34 virtual android::base::Result<bool> NeedsRollback() = 0;
35 virtual android::base::Result<void> StartCheckpoint(int32_t numRetries) = 0;
37 virtual android::base::Result<void> AbortChanges(const std::string& msg,
Dapex_preinstalled_data.cpp33 using android::base::Result;
48 Result<std::vector<ApexPreinstalledData>> collectPreinstalleDataFromDir( in collectPreinstalleDataFromDir()
60 Result<std::vector<std::string>> apex_files = FindApexFilesByName(dir); in collectPreinstalleDataFromDir()
66 Result<ApexFile> apex_file = ApexFile::Open(file); in collectPreinstalleDataFromDir()
79 Result<void> updatePreinstalledData( in updatePreinstalledData()
99 Result<void> collectPreinstalledData(const std::vector<std::string>& dirs) { in collectPreinstalledData()
101 Result<std::vector<ApexPreinstalledData>> preinstalledData = in collectPreinstalledData()
107 Result<void> st = updatePreinstalledData(*preinstalledData); in collectPreinstalledData()
115 Result<const std::string> getApexKey(const std::string& name) { in getApexKey()
122 Result<const std::string> getApexPreinstalledPath(const std::string& name) { in getApexPreinstalledPath()
Dapexd.cpp85 using android::base::Result;
153 Result<void> preAllocateLoopDevices() { in preAllocateLoopDevices()
213 Result<void> DeleteVerityDevice(const std::string& name) { in DeleteVerityDevice()
248 Result<void> ret = DeleteVerityDevice(name_); in ~DmVerityDevice()
266 Result<DmVerityDevice> createVerityDevice(const std::string& name, in createVerityDevice()
287 Result<void> RemovePreviouslyActiveApexFiles( in RemovePreviouslyActiveApexFiles()
297 Result<ApexFile> apex_file = ApexFile::Open(path); in RemovePreviouslyActiveApexFiles()
324 Result<void> readVerityDevice(const std::string& verity_device, in readVerityDevice()
348 Result<void> VerifyMountedImage(const ApexFile& apex, in VerifyMountedImage()
360 Result<MountedApexData> MountPackageImpl(const ApexFile& apex, in MountPackageImpl()
[all …]
Dapexd_checkpoint_vold.cpp27 using android::base::Result;
33 Result<VoldCheckpointInterface> VoldCheckpointInterface::Create() { in Create()
64 Result<bool> VoldCheckpointInterface::SupportsFsCheckpoints() { in SupportsFsCheckpoints()
68 Result<bool> VoldCheckpointInterface::NeedsCheckpoint() { in NeedsCheckpoint()
81 Result<bool> VoldCheckpointInterface::NeedsRollback() { in NeedsRollback()
94 Result<void> VoldCheckpointInterface::StartCheckpoint(int32_t numRetries) { in StartCheckpoint()
105 Result<void> VoldCheckpointInterface::AbortChanges(const std::string& msg, in AbortChanges()
Dapex_file.cpp43 using android::base::Result;
57 Result<ApexFile> ApexFile::Open(const std::string& path) { in Open()
110 Result<ApexManifest> manifest = ParseManifest(manifest_content); in Open()
152 Result<std::unique_ptr<AvbFooter>> getAvbFooter(const ApexFile& apex, in getAvbFooter()
184 Result<std::string> getPublicKeyName(const ApexFile& apex, const uint8_t* data, in getPublicKeyName()
202 Result<void> verifyVbMetaSignature(const ApexFile& apex, const uint8_t* data, in verifyVbMetaSignature()
227 Result<std::string> key_name = getPublicKeyName(apex, data, length); in verifyVbMetaSignature()
232 Result<const std::string> public_key = getApexKey(*key_name); in verifyVbMetaSignature()
248 Result<std::unique_ptr<uint8_t[]>> verifyVbMeta(const ApexFile& apex, in verifyVbMeta()
262 Result<void> st = in verifyVbMeta()
[all …]
/system/bpf/libbpf_android/include/bpf/
DBpfMap.h65 base::Result<Key> getFirstKey() const { in getFirstKey()
73 base::Result<Key> getNextKey(const Key& key) const { in getNextKey()
81 base::Result<void> writeValue(const Key& key, const Value& value, uint64_t flags) { in writeValue()
88 base::Result<Value> readValue(const Key key) const { in readValue()
96 base::Result<void> deleteValue(const Key& key) { in deleteValue()
104 base::Result<void> init(const char* path);
108 base::Result<void> iterate(
109 const std::function<base::Result<void>(const Key& key, const BpfMap<Key, Value>& map)>&
114 base::Result<void> iterateWithValue(
115 const std::function<base::Result<void>(const Key& key, const Value& value,
[all …]
/system/libbase/
Dresult_test.cpp32 Result<std::string> result = "success"; in TEST()
43 ASSERT_TRUE(Result<std::string>("success").ok()); in TEST()
44 ASSERT_TRUE(Result<std::string>("success").has_value()); in TEST()
46 EXPECT_EQ("success", *Result<std::string>("success")); in TEST()
47 EXPECT_EQ("success", Result<std::string>("success").value()); in TEST()
49 EXPECT_EQ('s', Result<std::string>("success")->data()[0]); in TEST()
53 Result<void> ok = {}; in TEST()
58 Result<void> fail = Error() << "failure" << 1; in TEST()
65 auto test = [](bool ok) -> Result<void> { in TEST()
78 Result<void> result = Error() << "failure" << 1; in TEST()
[all …]
/system/core/fs_mgr/libvbmeta/
Dbuilder.cpp28 using android::base::Result;
40 Result<void> SuperVBMetaBuilder::Build() { in Build()
42 Result<std::string> content = ReadVBMetaImageFromFile(file_path); in Build()
47 Result<uint8_t> vbmeta_index = AddVBMetaImage(vbmeta_name); in Build()
52 Result<void> rv_export_vbmeta_image = in Build()
61 Result<std::string> SuperVBMetaBuilder::ReadVBMetaImageFromFile(const std::string& file) { in ReadVBMetaImageFromFile()
67 Result<uint64_t> file_size = GetFileSize(source_fd); in ReadVBMetaImageFromFile()
84 Result<uint8_t> SuperVBMetaBuilder::GetEmptySlot() { in GetEmptySlot()
91 Result<uint8_t> SuperVBMetaBuilder::AddVBMetaImage(const std::string& vbmeta_name) { in AddVBMetaImage()
100 Result<uint8_t> new_slot = GetEmptySlot(); in AddVBMetaImage()
[all …]
Dbuilder.h34 android::base::Result<void> Build();
35 android::base::Result<std::string> ReadVBMetaImageFromFile(const std::string& file);
38 android::base::Result<uint8_t> AddVBMetaImage(const std::string& vbmeta_name);
41 android::base::Result<void> ExportVBMetaTableToFile();
42 android::base::Result<void> ExportVBMetaImageToFile(const uint8_t vbmeta_index,
46 android::base::Result<uint8_t> GetEmptySlot();
Dreader.cpp23 using android::base::Result;
28 Result<void> LoadAndVerifySuperVBMetaHeader(const void* buffer, SuperVBMetaHeader* header) { in LoadAndVerifySuperVBMetaHeader()
58 Result<void> ReadVBMetaTable(int fd, uint64_t offset, VBMetaTable* table) { in ReadVBMetaTable()
66 Result<void> rv_header = LoadAndVerifySuperVBMetaHeader(header_buffer.get(), &table->header); in ReadVBMetaTable()
85 Result<void> ReadPrimaryVBMetaTable(int fd, VBMetaTable* table) { in ReadPrimaryVBMetaTable()
90 Result<void> ReadBackupVBMetaTable(int fd, VBMetaTable* table) { in ReadBackupVBMetaTable()
95 Result<std::string> ReadVBMetaImage(int fd, int slot) { in ReadVBMetaImage()
104 Result<void> ValidateVBMetaImage(int super_vbmeta_fd, int vbmeta_index, in ValidateVBMetaImage()
106 Result<std::string> content = ReadVBMetaImage(super_vbmeta_fd, vbmeta_index); in ValidateVBMetaImage()
Dreader.h26 android::base::Result<void> ReadPrimaryVBMetaTable(int fd, VBMetaTable* table);
27 android::base::Result<void> ReadBackupVBMetaTable(int fd, VBMetaTable* table);
28 android::base::Result<std::string> ReadVBMetaImage(int fd, int slot);
30 android::base::Result<void> ValidateVBMetaImage(int super_vbmeta_fd, int vbmeta_index,
/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 …]
/system/core/fs_mgr/
Dfile_wait.cpp82 enum class Result { Success, Timeout, Error }; enum in android::fs_mgr::OneShotInotify
83 Result WaitImpl();
128 Result result = WaitImpl(); in Wait()
129 if (result == Result::Success) return true; in Wait()
130 if (result == Result::Timeout) return false; in Wait()
144 OneShotInotify::Result OneShotInotify::WaitImpl() { in WaitImpl()
147 if (finished_) return Result::Success; in WaitImpl()
148 if (inotify_fd_ < 0) return Result::Error; in WaitImpl()
152 if (remaining_ms <= 0) return Result::Timeout; in WaitImpl()
165 return Result::Error; in WaitImpl()
[all …]

1234567