Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 2898) sorted by relevance

12345678910>>...116

/system/core/libmodprobe/include/modprobe/
Dmodprobe.h27 Modprobe(const std::vector<std::string>&, const std::string load_file = "modules.load");
30 bool LoadWithAliases(const std::string& module_name, bool strict,
31 const std::string& parameters = "");
32 bool Remove(const std::string& module_name);
33 std::vector<std::string> ListModules(const std::string& pattern);
34 bool GetAllDependencies(const std::string& module, std::vector<std::string>* pre_dependencies,
35 std::vector<std::string>* dependencies,
36 std::vector<std::string>* post_dependencies);
42 std::string MakeCanonical(const std::string& module_path);
43 bool InsmodWithDeps(const std::string& module_name, const std::string& parameters);
[all …]
/system/core/fastboot/device/
Dvariables.h24 bool GetVersion(FastbootDevice* device, const std::vector<std::string>& args, std::string* message);
25 bool GetBootloaderVersion(FastbootDevice* device, const std::vector<std::string>& args,
26 std::string* message);
27 bool GetBasebandVersion(FastbootDevice* device, const std::vector<std::string>& args,
28 std::string* message);
29 bool GetOsVersion(FastbootDevice* device, const std::vector<std::string>& args,
30 std::string* message);
31 bool GetVndkVersion(FastbootDevice* device, const std::vector<std::string>& args,
32 std::string* message);
33 bool GetProduct(FastbootDevice* device, const std::vector<std::string>& args, std::string* message);
[all …]
/system/bt/stack/test/
Dcrypto_toolbox_test.cc66 std::reverse(std::begin(k), std::end(k)); in TEST()
67 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
91 std::reverse(std::begin(k), std::end(k)); in TEST()
92 std::reverse(std::begin(m), std::end(m)); in TEST()
93 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
120 std::reverse(std::begin(k), std::end(k)); in TEST()
121 std::reverse(std::begin(m), std::end(m)); in TEST()
122 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
145 std::reverse(std::begin(k), std::end(k)); in TEST()
146 std::reverse(std::begin(m), std::end(m)); in TEST()
[all …]
/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox_test.cc59 std::reverse(std::begin(k), std::end(k)); in TEST()
60 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
81 std::reverse(std::begin(k), std::end(k)); in TEST()
82 std::reverse(std::begin(m), std::end(m)); in TEST()
83 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
107 std::reverse(std::begin(k), std::end(k)); in TEST()
108 std::reverse(std::begin(m), std::end(m)); in TEST()
109 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
127 std::reverse(std::begin(k), std::end(k)); in TEST()
128 std::reverse(std::begin(m), std::end(m)); in TEST()
[all …]
/system/core/init/
Dservice_parser.h34 const std::optional<InterfaceInheritanceHierarchyMap>& interface_inheritance_hierarchy,
41 Result<void> ParseSection(std::vector<std::string>&& args, const std::string& filename,
43 Result<void> ParseLineSection(std::vector<std::string>&& args, int line) 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 …]
Dutil.h45 extern void (*trigger_shutdown)(const std::string& command);
47 Result<int> CreateSocket(const std::string& name, int type, bool passcred, mode_t perm, uid_t uid,
48 gid_t gid, const std::string& socketcon);
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);
55 bool mkdir_recursive(const std::string& pathname, mode_t mode);
56 int wait_for_file(const char *filename, std::chrono::nanoseconds timeout);
57 void ImportKernelCmdline(const std::function<void(const std::string&, const std::string&)>&);
58 bool make_dir(const std::string& path, mode_t mode);
[all …]
/system/core/fs_mgr/tools/
Ddmctl.cpp40 using namespace std::literals::string_literals;
45 std::cerr << "usage: dmctl <command> [command options]" << std::endl; in Usage()
46 std::cerr << " dmctl -f file" << std::endl; in Usage()
47 std::cerr << "commands:" << std::endl; in Usage()
48 std::cerr << " create <dm-name> [-ro] <targets...>" << std::endl; in Usage()
49 std::cerr << " delete <dm-name>" << std::endl; in Usage()
50 std::cerr << " list <devices | targets> [-v]" << std::endl; in Usage()
51 std::cerr << " getpath <dm-name>" << std::endl; in Usage()
52 std::cerr << " info <dm-name>" << std::endl; in Usage()
53 std::cerr << " status <dm-name>" << std::endl; in Usage()
[all …]
/system/core/fastboot/
Dfastboot_driver.h58 std::function<void(const std::string&)> prolog = [](const std::string&) {};
59 std::function<void(int)> epilog = [](int) {};
60 std::function<void(const std::string&)> info = [](const std::string&) {};
68 static constexpr uint32_t MAX_DOWNLOAD_SIZE = std::numeric_limits<uint32_t>::max();
75 RetCode Boot(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
76 RetCode Continue(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
77 RetCode CreatePartition(const std::string& partition, const std::string& size);
78 RetCode DeletePartition(const std::string& partition);
79 RetCode Download(const std::string& name, int fd, size_t size, std::string* response = nullptr,
80 std::vector<std::string>* info = nullptr);
[all …]
/system/tools/aidl/metadata/
Dparser.cpp24 std::cerr << "Usage: aidl_metadata_parser *.json" << std::endl; in main()
27 const std::string path = argv[1]; in main()
32 std::ifstream stream(path); in main()
34 std::cerr << "Failed to read interface metadata file: " << path << std::endl in main()
35 << reader.getFormattedErrorMessages() << std::endl; in main()
39 std::cout << "#include <aidl/metadata.h>" << std::endl; in main()
40 std::cout << "namespace android {" << std::endl; in main()
41 std::cout << "std::vector<AidlInterfaceMetadata> AidlInterfaceMetadata::all() {" << std::endl; in main()
42 std::cout << "return std::vector<AidlInterfaceMetadata>{" << std::endl; in main()
44 std::cout << "AidlInterfaceMetadata{" << std::endl; in main()
[all …]
/system/bt/packet/tests/avrcp/
Davrcp_test_packets.h25 std::vector<uint8_t> get_capabilities_request = {
29 std::vector<uint8_t> get_capabilities_request_company_id = {
33 std::vector<uint8_t> get_capabilities_request_unknown = {
37 std::vector<uint8_t> get_capabilities_response_company_id = {
42 std::vector<uint8_t> get_capabilities_response_events_supported = {
48 std::vector<uint8_t> get_element_attributes_request_partial = {
55 std::vector<uint8_t> get_element_attributes_request_full = {
69 std::vector<uint8_t> get_elements_attributes_response_full = {
82 std::vector<uint8_t> get_play_status_request = {0x01, 0x48, 0x00, 0x00, 0x19,
86 std::vector<uint8_t> get_play_status_response = {
[all …]
/system/libvintf/include/vintf/
Dparse_string.h31 std::ostream &operator<<(std::ostream &os, HalFormat hf);
32 std::ostream &operator<<(std::ostream &os, Transport tr);
33 std::ostream &operator<<(std::ostream &os, Arch ar);
34 std::ostream &operator<<(std::ostream &os, KernelConfigType il);
35 std::ostream &operator<<(std::ostream &os, Tristate tr);
36 std::ostream &operator<<(std::ostream &os, SchemaType ksv);
37 std::ostream& operator<<(std::ostream& os, XmlSchemaFormat f);
38 std::ostream& operator<<(std::ostream& os, Level l);
39 std::ostream& operator<<(std::ostream& os, KernelSepolicyVersion v);
40 std::ostream &operator<<(std::ostream &os, const ManifestHal &hal);
[all …]
/system/tools/aidl/
Dast_java.h60 std::string ToString();
73 std::string value;
75 explicit LiteralExpression(const std::string& value);
81 std::string value;
83 explicit StringLiteralExpression(const std::string& value);
89 std::vector<std::string> annotations;
90 const std::string type;
91 std::string name;
94 Variable(const std::string& type, const std::string& name);
102 std::variant<std::shared_ptr<Expression>, std::string> receiver;
[all …]
/system/bt/gd/storage/
Dconfig_cache_helper.h45 virtual void SetBool(const std::string& section, const std::string& property, bool value);
46 …virtual std::optional<bool> GetBool(const std::string& section, const std::string& property) const;
47 virtual void SetUint64(const std::string& section, const std::string& property, uint64_t value);
48 …virtual std::optional<uint64_t> GetUint64(const std::string& section, const std::string& property)…
49 virtual void SetUint32(const std::string& section, const std::string& property, uint32_t value);
50 …virtual std::optional<uint32_t> GetUint32(const std::string& section, const std::string& property)…
51 virtual void SetInt64(const std::string& section, const std::string& property, int64_t value);
52 …virtual std::optional<int64_t> GetInt64(const std::string& section, const std::string& property) c…
53 virtual void SetInt(const std::string& section, const std::string& property, int value);
54 virtual std::optional<int> GetInt(const std::string& section, const std::string& property) const;
[all …]
/system/tools/hidl/host_utils/include/hidl-util/
DStringHelper.h43 static std::string Uppercase(const std::string &in);
45 static std::string Lowercase(const std::string &in);
47 static std::string Capitalize(const std::string &in);
50 static std::string ToCamelCase(const std::string &in);
51 static std::string ToPascalCase(const std::string &in);
52 static std::string ToUpperSnakeCase(const std::string &in);
53 static std::string ToLowerSnakeCase(const std::string &in);
54 static std::string ToCase(Case c, const std::string &in);
56 static bool EndsWith(const std::string &in, const std::string &suffix);
57 static bool StartsWith(const std::string &in, const std::string &prefix);
[all …]
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dimage_manager.h43 static std::unique_ptr<IImageManager> Open(const std::string& dir_prefix,
44 const std::chrono::milliseconds& timeout_ms);
57 const std::string& name, uint64_t size, int flags,
58 std::function<bool(uint64_t, uint64_t)>&& on_progress = nullptr) = 0;
62 virtual bool DeleteBackingImage(const std::string& name) = 0;
73 virtual bool MapImageDevice(const std::string& name,
74 const std::chrono::milliseconds& timeout_ms, std::string* path) = 0;
77 virtual bool UnmapImageDevice(const std::string& name) = 0;
82 virtual bool BackingImageExists(const std::string& name) = 0;
85 virtual bool IsImageMapped(const std::string& name) = 0;
[all …]
/system/extras/simpleperf/
Dget_test_data.h24 std::string GetTestData(const std::string& filename);
25 const std::string& GetTestDataDir();
28 static const std::string ELF_FILE = "elf";
29 static const std::string ELF_FILE_BUILD_ID = "0b12a384a9f4a3f3659b7171ca615dbec3a81f71";
30 static const std::string ELF_FILE_WITH_MINI_DEBUG_INFO = "elf_with_mini_debug_info";
34 static const std::string PERF_DATA = "perf.data";
38 static const std::string PERF_DATA_WITH_MULTIPLE_PIDS_AND_TIDS = "perf_with_multiple_pids_and_tids.…
41 static const std::string CALLGRAPH_FP_PERF_DATA = "perf_g_fp.data";
43 static const std::string BRANCH_PERF_DATA = "perf_b.data";
46 static const std::string PERF_DATA_WITH_MINI_DEBUG_INFO = "perf_with_mini_debug_info.data";
[all …]
/system/vold/
DUtils.h45 status_t CreateDeviceNode(const std::string& path, dev_t dev);
46 status_t DestroyDeviceNode(const std::string& path);
49 status_t PrepareDir(const std::string& path, mode_t mode, uid_t uid, gid_t gid);
52 status_t ForceUnmount(const std::string& path);
55 status_t KillProcessesUsingPath(const std::string& path);
58 status_t BindMount(const std::string& source, const std::string& target);
61 status_t Symlink(const std::string& target, const std::string& linkpath);
64 status_t Unlink(const std::string& linkpath);
67 status_t CreateDir(const std::string& dir, mode_t mode);
69 bool FindValue(const std::string& raw, const std::string& key, std::string* value);
[all …]
/system/bt/gd/os/linux_generic/
Dqueue_unittest.cc67 explicit TestEnqueueEnd(Queue<std::string>* queue, Handler* handler) in TestEnqueueEnd()
72 void RegisterEnqueue(std::unordered_map<int, std::promise<int>>* promise_map) { in RegisterEnqueue()
78 std::promise<void> promise; in UnregisterEnqueue()
82 …common::BindOnce(&TestEnqueueEnd::handle_unregister_enqueue, common::Unretained(this), std::move(p… in UnregisterEnqueue()
86 std::unique_ptr<std::string> EnqueueCallbackForTest() { in EnqueueCallbackForTest()
88 std::this_thread::sleep_for(std::chrono::milliseconds(delay_)); in EnqueueCallbackForTest()
92 std::unique_ptr<std::string> data = std::move(buffer_.front()); in EnqueueCallbackForTest()
94 std::string copy = *data; in EnqueueCallbackForTest()
111 std::queue<std::unique_ptr<std::string>> buffer_;
116 Queue<std::string>* queue_;
[all …]
/system/tools/hidl/metadata/
Dparser.cpp24 std::cerr << "Usage: hidl_metadata_parser *.json" << std::endl; in main()
27 const std::string path = argv[1]; in main()
32 std::ifstream stream(path); in main()
34 std::cerr << "Failed to read interface inheritance hierarchy file: " << path << std::endl in main()
35 << reader.getFormattedErrorMessages() << std::endl; in main()
39 std::cout << "#include <hidl/metadata.h>" << std::endl; in main()
40 std::cout << "namespace android {" << std::endl; in main()
41 std::cout << "std::vector<HidlInterfaceMetadata> HidlInterfaceMetadata::all() {" << std::endl; in main()
42 std::cout << "return std::vector<HidlInterfaceMetadata>{" << std::endl; in main()
44 std::cout << "HidlInterfaceMetadata{" << std::endl; in main()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dtest_command_handler.h41 void HandleCommand(const std::string& name, const std::vector<std::string>& args);
44 void RegisterSendResponse(const std::function<void(const std::string&)> callback);
49 void Add(const std::vector<std::string>& args);
52 void AddRemote(const std::vector<std::string>& args);
55 void Del(const std::vector<std::string>& args);
58 void AddPhy(const std::vector<std::string>& args);
61 void DelPhy(const std::vector<std::string>& args);
64 void AddDeviceToPhy(const std::vector<std::string>& args);
67 void DelDeviceFromPhy(const std::vector<std::string>& args);
70 void List(const std::vector<std::string>& args);
[all …]
/system/core/fs_mgr/libfs_avb/
Davb_util.h33 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()
40 std::string GetAvbPropertyDescriptor(const std::string& key,
41 const std::vector<VBMetaData>& vbmeta_images);
43 std::unique_ptr<FsAvbHashDescriptor> GetHashDescriptor(
44 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images);
47 std::unique_ptr<FsAvbHashtreeDescriptor> GetHashtreeDescriptor(
48 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images);
51 const std::string& blk_device, android::dm::DmTable* table);
[all …]
/system/tools/aidl/tests/
Dfake_io_delegate.h44 std::unique_ptr<std::string> GetFileContents(
45 const std::string& filename,
46 const std::string& append_content_suffix = "") const override;
47 std::unique_ptr<LineReader> GetLineReader(
48 const std::string& file_path) const override;
49 bool FileIsReadable(const std::string& path) const override;
50 std::unique_ptr<CodeWriter> GetCodeWriter(
51 const std::string& file_path) const override;
52 void RemovePath(const std::string& file_path) const override;
53 std::vector<std::string> ListFiles(const std::string& dir) const override;
[all …]
/system/libbase/include/android-base/
Dstrings.h32 std::vector<std::string> Split(const std::string& s,
33 const std::string& delimiters);
36 std::string Trim(const std::string& s);
40 std::string Join(const ContainerT& things, SeparatorT separator) { in Join()
45 std::ostringstream result; in Join()
47 for (auto it = std::next(things.begin()); it != things.end(); ++it) { in Join()
54 extern template std::string Join(const std::vector<std::string>&, char);
55 extern template std::string Join(const std::vector<const char*>&, char);
56 extern template std::string Join(const std::vector<std::string>&, const std::string&);
57 extern template std::string Join(const std::vector<const char*>&, const std::string&);
[all …]
/system/incremental_delivery/incfs/
Dpath.h29 void appendNextPath(std::string& res, std::string_view c);
32 std::string fromFd(int fd);
33 bool isAbsolute(std::string_view path);
34 std::string normalize(std::string_view path);
36 std::string_view relativize(std::string_view parent, std::string_view nested);
37 inline std::string_view relativize(const char* parent, const char* nested) { in relativize()
38 return relativize(std::string_view(parent), std::string_view(nested)); in relativize()
40 inline std::string_view relativize(std::string_view parent, const char* nested) { in relativize()
41 return relativize(parent, std::string_view(nested)); in relativize()
43 inline std::string_view relativize(const char* parent, std::string_view nested) { in relativize()
[all …]
/system/bt/osi/include/
Dconfig.h29 std::string key;
30 std::string value;
34 std::string name;
35 std::list<entry_t> entries;
36 void Set(std::string key, std::string value);
37 std::list<entry_t>::iterator Find(const std::string& key);
38 bool Has(const std::string& key);
42 std::list<section_t> sections;
43 std::list<section_t>::iterator Find(const std::string& section);
44 bool Has(const std::string& section);
[all …]

12345678910>>...116