/aosp14/system/core/fs_mgr/tools/ |
H A D | dmctl.cpp | 49 std::cerr << "commands:" << std::endl; in Usage() 61 std::cerr << " help" << std::endl; in Usage() 62 std::cerr << std::endl; in Usage() 64 std::cerr << std::endl; in Usage() 455 std::cout << std::left << std::setw(spacing) << "device" in InfoCmdHandler() 457 std::cout << std::left << std::setw(spacing) << "active" in InfoCmdHandler() 459 std::cout << std::left << std::setw(spacing) << "access" in InfoCmdHandler() 466 std::cout << std::endl; in InfoCmdHandler() 467 std::cout << std::left << std::setw(spacing) << "activeTable" in InfoCmdHandler() 471 std::cout << std::left << std::setw(spacing) << "bufferFull" in InfoCmdHandler() [all …]
|
/aosp14/system/core/fastboot/device/ |
H A D | variables.h | 24 bool GetVersion(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 29 bool GetOsVersion(FastbootDevice* device, const std::vector<std::string>& args, 33 bool GetProduct(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 34 bool GetSerial(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 35 bool GetSecure(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 38 bool GetSlotCount(FastbootDevice* device, const std::vector<std::string>& args, 48 bool GetHasSlot(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 61 bool GetVariant(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 72 bool GetCpuAbi(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 92 std::vector<std::vector<std::string>> GetAllPartitionArgsWithSlot(FastbootDevice* device); [all …]
|
H A D | variables.cpp | 50 bool GetVersion(FastbootDevice* /* device */, const std::vector<std::string>& /* args */, in GetVersion() 98 bool GetVariant(FastbootDevice* device, const std::vector<std::string>& /* args */, in GetVariant() 206 bool GetSlotSuccessful(FastbootDevice* device, const std::vector<std::string>& args, in GetSlotSuccessful() 266 bool GetHasSlot(FastbootDevice* device, const std::vector<std::string>& args, in GetHasSlot() 286 bool GetPartitionSize(FastbootDevice* device, const std::vector<std::string>& args, in GetPartitionSize() 388 std::vector<std::vector<std::string>> GetAllPartitionArgsWithSlot(FastbootDevice* device) { in GetAllPartitionArgsWithSlot() 389 std::vector<std::vector<std::string>> args; in GetAllPartitionArgsWithSlot() 392 args.emplace_back(std::initializer_list<std::string>{partition}); in GetAllPartitionArgsWithSlot() 397 std::vector<std::vector<std::string>> GetAllPartitionArgsNoSlot(FastbootDevice* device) { in GetAllPartitionArgsNoSlot() 415 std::vector<std::vector<std::string>> args; in GetAllPartitionArgsNoSlot() [all …]
|
H A D | commands.h | 35 using CommandHandler = std::function<bool(FastbootDevice*, const std::vector<std::string>&)>; 37 bool DownloadHandler(FastbootDevice* device, const std::vector<std::string>& args); 38 bool SetActiveHandler(FastbootDevice* device, const std::vector<std::string>& args); 39 bool ShutDownHandler(FastbootDevice* device, const std::vector<std::string>& args); 40 bool RebootHandler(FastbootDevice* device, const std::vector<std::string>& args); 44 bool GetVarHandler(FastbootDevice* device, const std::vector<std::string>& args); 45 bool EraseHandler(FastbootDevice* device, const std::vector<std::string>& args); 46 bool FlashHandler(FastbootDevice* device, const std::vector<std::string>& args); 51 bool OemCmdHandler(FastbootDevice* device, const std::vector<std::string>& args); 52 bool GsiHandler(FastbootDevice* device, const std::vector<std::string>& args); [all …]
|
/aosp14/system/core/libmodprobe/include/modprobe/ |
H A D | modprobe.h | 30 Modprobe(const std::vector<std::string>&, const std::string load_file = "modules.load", 38 std::vector<std::string> ListModules(const std::string& pattern); 50 std::vector<std::string> GetDependencies(const std::string& module); 64 void ParseCfg(const std::string& cfg, std::function<bool(const std::vector<std::string>&)> f); 66 std::vector<std::pair<std::string, std::string>> module_aliases_; 67 std::unordered_map<std::string, std::vector<std::string>> module_deps_; 68 std::vector<std::pair<std::string, std::string>> module_pre_softdep_; 69 std::vector<std::pair<std::string, std::string>> module_post_softdep_; 70 std::vector<std::string> module_load_; 71 std::unordered_map<std::string, std::string> module_options_; [all …]
|
/aosp14/system/core/fastboot/ |
H A D | fastboot_driver.h | 51 std::function<void(const std::string&)> prolog = [](const std::string&) {}; 53 std::function<void(const std::string&)> info = [](const std::string&) {}; 54 std::function<void(const std::string&)> text = [](const std::string&) {}; 69 RetCode Boot(std::string* response = nullptr, std::vector<std::string>* info = nullptr); 70 RetCode Continue(std::string* response = nullptr, std::vector<std::string>* info = nullptr); 79 std::string* response = nullptr, std::vector<std::string>* info = nullptr); 116 RetCode Partitions(std::vector<std::tuple<std::string, uint64_t>>* partitions); 143 std::string ErrnoStr(const std::string& msg); 163 std::function<void(const std::string&)> prolog_; 165 std::function<void(const std::string&)> info_; [all …]
|
H A D | fastboot.h | 76 std::string nickname; 77 std::string img_name; 78 std::string sig_name; 79 std::string part_name; 85 using ImageEntry = std::pair<const Image*, std::string>; 116 void FlashImages(const std::vector<std::pair<const Image*, std::string>>& images); 128 void do_for_partitions(const std::string& part, const std::string& slot, 130 std::string find_item(const std::string& item); 136 bool CheckFastbootInfoRequirements(const std::vector<std::string>& command); 146 std::vector<std::unique_ptr<Task>> ParseFastbootInfo(const FlashingPlan* fp, [all …]
|
H A D | fastboot_driver.cpp | 73 RetCode FastBootDriver::Boot(std::string* response, std::vector<std::string>* info) { in Boot() 77 RetCode FastBootDriver::Continue(std::string* response, std::vector<std::string>* info) { in Continue() 91 std::vector<std::string>* info) { in Erase() 96 std::vector<std::string>* info) { in Flash() 110 RetCode FastBootDriver::Reboot(std::string* response, std::vector<std::string>* info) { in Reboot() 166 RetCode FastBootDriver::Partitions(std::vector<std::tuple<std::string, uint64_t>>* partitions) { in Partitions() 167 std::vector<std::string> all; in Partitions() 220 std::string* response, std::vector<std::string>* info) { in Download() 311 const std::string& cmd, std::string* response, std::vector<std::string>* info, in RunAndReadBuffer() 428 std::string* response, std::vector<std::string>* info, in RawCommand() [all …]
|
/aosp14/system/core/init/ |
H A D | service_parser.h | 39 Result<void> ParseSection(std::vector<std::string>&& args, const std::string& filename, 50 Result<void> ParseClass(std::vector<std::string>&& args); 51 Result<void> ParseConsole(std::vector<std::string>&& args); 52 Result<void> ParseCritical(std::vector<std::string>&& args); 53 Result<void> ParseDisabled(std::vector<std::string>&& args); 55 Result<void> ParseGroup(std::vector<std::string>&& args); 59 Result<void> ParseIoprio(std::vector<std::string>&& args); 61 Result<void> ParseOneshot(std::vector<std::string>&& args); 75 Result<void> ParseSetenv(std::vector<std::string>&& args); 82 Result<void> ParseFile(std::vector<std::string>&& args); [all …]
|
H A D | util.h | 50 Result<std::string> ReadFile(const std::string& path); 57 void ImportKernelCmdline(const std::function<void(const std::string&, const std::string&)>&); 58 void ImportBootconfig(const std::function<void(const std::string&, const std::string&)>&); 61 Result<std::string> ExpandProps(const std::string& src); 72 std::string CleanDirPath(const std::string& path); 86 std::vector<std::string> rc_paths; 94 Result<std::pair<int, std::vector<std::string>>> ParseRestorecon( 95 const std::vector<std::string>& args); 97 Result<std::string> ParseSwaponAll(const std::vector<std::string>& args); 99 Result<std::string> ParseUmountAll(const std::vector<std::string>& args); [all …]
|
H A D | service.h | 72 const std::string& filename, const std::vector<std::string>& args); 77 const std::vector<std::string>& args); 82 const std::vector<std::string>& args); 165 std::set<std::string> classnames_; 184 std::vector<std::pair<std::string, std::string>> environment_vars_; 186 std::vector<std::pair<std::string, std::string>> once_environment_vars_; 191 std::vector<std::string> writepid_files_; 193 std::vector<std::string> task_profiles_; 218 std::optional<std::chrono::seconds> timeout_period_; 222 const std::vector<std::string> args_; [all …]
|
H A D | ueventd_parser.cpp | 33 Result<void> ParsePermissionsLine(std::vector<std::string>&& args, in ParsePermissionsLine() 90 Result<void> ParseFirmwareDirectoriesLine(std::vector<std::string>&& args, in ParseFirmwareDirectoriesLine() 96 std::move(std::next(args.begin()), args.end(), std::back_inserter(*firmware_directories)); in ParseFirmwareDirectoriesLine() 102 std::vector<std::string>&& args, in ParseExternalFirmwareHandlerLine() 160 std::move(std::next(args.begin()), args.end(), std::back_inserter(*parallel_restorecon_dirs)); in ParseParallelRestoreconDirsLine() 184 Result<void> ParseSection(std::vector<std::string>&& args, const std::string& filename, 190 Result<void> ParseDevName(std::vector<std::string>&& args); 191 Result<void> ParseDirName(std::vector<std::string>&& args); 197 Result<void> SubsystemParser::ParseSection(std::vector<std::string>&& args, in ParseSection() 247 return std::invoke(*parser, this, std::move(args)); in ParseLineSection() [all …]
|
H A D | devices.h | 53 std::string name_; 88 Subsystem(std::string name) : name_(std::move(name)) {} in Subsystem() 89 Subsystem(std::string name, DevnameSource source, std::string dir_name) in Subsystem() 105 std::string name_; 117 std::set<std::string> boot_devices, bool skip_restorecon); 123 std::vector<std::string> GetBlockDeviceSymlinks(const Uevent& uevent) const; 129 static std::string GetPartitionNameForDevice(const std::string& device); 134 const std::string& path, const std::vector<std::string>& links) const; 136 const std::vector<std::string>& links) const; 138 int minor, const std::vector<std::string>& links) const; [all …]
|
/aosp14/system/core/fs_mgr/libfiemap/include/libfiemap/ |
H A D | image_manager.h | 49 static std::unique_ptr<IImageManager> Open(const std::string& dir_prefix, 111 virtual bool MapAllImages(const std::function<bool(std::set<std::string>)>& init) = 0; 121 virtual std::vector<std::string> GetAllBackingImages() = 0; 146 static std::unique_ptr<ImageManager> Open(const std::string& dir_prefix, 164 bool MapAllImages(const std::function<bool(std::set<std::string>)>& init) override; 167 std::vector<std::string> GetAllBackingImages(); 184 std::string GetImageHeaderPath(const std::string& name); 185 std::string GetStatusFilePath(const std::string& image_name); 188 bool MapWithLoopDeviceList(const std::vector<std::string>& device_list, const std::string& name, 223 std::string name_; [all …]
|
/aosp14/system/core/fs_mgr/libdm/include/libdm/ |
H A D | dm.h | 57 std::optional<std::string> ExtractBlockDeviceName(const std::string& path); 66 std::string data; 82 virtual bool GetDeviceString(const std::string& name, std::string* dev) = 0; 140 std::optional<Info> GetDetailedInfo(const std::string& name) const; 232 bool GetDmDevicePathByName(const std::string& name, std::string* path); 239 bool GetDmDeviceUuidByName(const std::string& name, std::string* path); 246 bool GetDeviceUniquePath(const std::string& name, std::string* path); 253 bool GetDeviceString(const std::string& name, std::string* dev) override; 281 std::optional<std::string> GetDmDeviceNameByPath(const std::string& path); 287 std::optional<std::string> GetParentBlockDeviceByPath(const std::string& path); [all …]
|
/aosp14/frameworks/base/services/incremental/ |
H A D | path.h | 41 std::optional<std::string> mCopy; 44 void append_next_path(std::string& res, std::string_view c); 70 std::string_view relativize(std::string_view parent, std::string_view nested); 81 std::string_view relativize(std::string&& parent, std::string_view nested) = delete; 82 std::string_view relativize(std::string_view parent, std::string&& nested) = delete; 85 std::string normalize(std::string_view path); 86 std::string_view dirname(std::string_view path); 87 std::string_view basename(std::string_view path); 88 std::optional<bool> isEmptyDir(std::string_view dir); 92 std::string join(std::string&& first, std::string_view second, Paths&&... paths) { in join() [all …]
|
/aosp14/frameworks/base/cmds/incident_helper/src/ |
H A D | ih_util.h | 29 typedef std::vector<std::string> header_t; 30 typedef std::vector<std::string> record_t; 31 typedef std::string (*trans_func) (const std::string&); 44 std::string trim(const std::string& s, const std::string& charset); 73 record_t parseRecordByColumns(const std::string& line, const std::vector<int>& indices, const std::… 96 std::string behead(std::string* line, const char cut); 121 std::string mStatus; 154 std::map<std::string, uint64_t> mFields; 155 std::map<std::string, std::map<std::string, int>> mEnums; 156 std::map<std::string, int> mEnumValuesByName; [all …]
|
/aosp14/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | AssetsProvider.h | 43 std::unique_ptr<Asset> Open(const std::string& path, 54 WARN_UNUSED virtual std::optional<std::string_view> GetPath() const = 0; 96 WARN_UNUSED std::optional<std::string_view> GetPath() const override; 148 WARN_UNUSED std::optional<std::string_view> GetPath() const override; 154 std::unique_ptr<Asset> OpenInternal(const std::string& path, 160 std::string dir_; 173 WARN_UNUSED std::optional<std::string_view> GetPath() const override; 188 std::optional<std::string_view> path_; 195 static std::unique_ptr<AssetsProvider> Create(std::string path); 210 explicit EmptyAssetsProvider(std::optional<std::string>&& path); [all …]
|
/aosp14/system/core/fs_mgr/libfs_avb/ |
H A D | avb_util.h | 33 std::string partition_name; 34 std::string public_key_blob; 36 ChainInfo(const std::string& chain_partition_name, const std::string& chain_public_key_blob) in ChainInfo() 42 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images); 56 std::string AvbPartitionToDevicePatition(const std::string& avb_partition_name, 69 std::unique_ptr<VBMetaData> VerifyVBMetaData(int fd, const std::string& partition_name, 81 const std::vector<std::string>& expected_key_paths); 91 const std::string& image_path, const std::string& partition_name, 100 const std::string& partition_name, const std::string& ab_suffix, 101 const std::string& ab_other_suffix, const std::string& expected_public_key_blob, [all …]
|
/aosp14/system/core/property_service/libpropertyinfoserializer/ |
H A D | trie_builder.h | 30 PropertyEntryBuilder(const std::string& name, const std::string* context, const std::string* type) in PropertyEntryBuilder() 32 std::string name; 34 const std::string* type; 57 bool AddPrefixContext(const std::string& prefix, const std::string* context, in AddPrefixContext() 102 bool AddToTrie(const std::string& name, const std::string& context, const std::string& type, 106 const std::set<std::string>& contexts() const { return contexts_; } in contexts() 107 const std::set<std::string>& types() const { return types_; } in types() 110 bool AddToTrie(const std::string& name, const std::string* context, const std::string* type, 112 const std::string* StringPointerFromContainer(const std::string& string, 116 std::set<std::string> contexts_; [all …]
|
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
H A D | snapshot.h | 223 const std::optional<std::string>& source_device) = 0; 367 const std::optional<std::string>& source_device) override; 533 std::optional<std::string> MapCowImage(const std::string& name, 556 bool ListSnapshots(LockedFile* lock, std::vector<std::string>* snapshots, 573 std::map<std::string, bool>* out); 663 std::string GetSnapshotStatusFilePath(const std::string& name); 697 LockedFile* lock, const std::optional<std::string>& source_device, 701 LockedFile* lock, const std::optional<std::string>& source_device, 745 std::map<std::string, SnapshotStatus>* all_snapshot_status); 752 const std::map<std::string, SnapshotStatus>& all_snapshot_status); [all …]
|
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
H A D | snapuserd_core.h | 92 std::mutex m_lock; 101 ReadAhead(const std::string& cow_device, const std::string& backing_device, 145 std::string misc_name_; 190 std::mutex m_lock_; 207 Worker(const std::string& cow_device, const std::string& backing_device, 208 const std::string& control_device, const std::string& misc_name, 303 SnapshotHandler(std::string misc_name, std::string cow_device, std::string backing_device, 414 std::vector<std::pair<sector_t, const CowOperation*>> chunk_vec_; 416 std::mutex lock_; 422 std::vector<std::unique_ptr<Worker>> worker_threads_; [all …]
|
H A D | snapuserd_server.h | 78 std::thread thread_; 100 std::mutex lock_; 102 using HandlerList = std::vector<std::shared_ptr<HandlerThread>>; 104 std::queue<std::shared_ptr<HandlerThread>> merge_handlers_; 117 void Parsemsg(std::string const& msg, const char delim, std::vector<std::string>& out); 131 double GetMergePercentage(std::lock_guard<std::mutex>* proof_of_lock); 132 void TerminateMergeThreads(std::lock_guard<std::mutex>* proof_of_lock); 134 bool UpdateVerification(std::lock_guard<std::mutex>* proof_of_lock); 146 std::shared_ptr<HandlerThread> AddHandler(const std::string& misc_name, 151 bool StartMerge(std::lock_guard<std::mutex>* proof_of_lock, [all …]
|
/aosp14/system/core/fastboot/fuzzy_fastboot/ |
H A D | extensions.h | 41 static const std::unordered_map<std::string, Expect> CMD_EXPECTS = { 47 static const std::unordered_map<Expect, std::string> EXPECTS_STR = { 56 std::regex regex; 94 std::unordered_set<std::string> children; 99 std::string name; 101 std::string arg; 104 std::regex regex; 120 std::unordered_map<std::string, GetVar> getvars; 121 std::unordered_map<std::string, PartitionInfo> partitions; 122 std::unordered_map<std::string, PackedInfo> packed; [all …]
|
/aosp14/frameworks/base/tools/aapt2/cmd/ |
H A D | Link.h | 41 std::vector<std::string> include_paths; 42 std::vector<std::string> overlay_files; 43 std::vector<std::string> assets_dirs; 53 std::set<std::string> extra_java_packages; 61 std::vector<std::string> javadoc_annotations; 62 std::optional<std::string> private_symbols; 84 std::unordered_set<std::string> products; 94 std::vector<std::string> split_paths; 97 std::vector<std::string> exclude_configs_; 337 std::vector<std::string> configs_; [all …]
|