Home
last modified time | relevance | path

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

12345678910>>...154

/system/core/libmodprobe/include/modprobe/
Dmodprobe.h27 Modprobe(const std::vector<std::string>&, const std::string load_file = "modules.load",
31 bool LoadWithAliases(const std::string& module_name, bool strict,
32 const std::string& parameters = "");
33 bool Remove(const std::string& module_name);
34 std::vector<std::string> ListModules(const std::string& pattern);
35 bool GetAllDependencies(const std::string& module, std::vector<std::string>* pre_dependencies,
36 std::vector<std::string>* dependencies,
37 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/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/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/core/fs_mgr/tools/
Ddmctl.cpp40 using namespace std::literals::string_literals;
41 using namespace std::chrono_literals;
46 std::cerr << "usage: dmctl <command> [command options]" << std::endl; in Usage()
47 std::cerr << " dmctl -f file" << std::endl; in Usage()
48 std::cerr << "commands:" << std::endl; in Usage()
49 std::cerr << " create <dm-name> [-ro] <targets...>" << std::endl; in Usage()
50 std::cerr << " delete <dm-name>" << std::endl; in Usage()
51 std::cerr << " list <devices | targets> [-v]" << std::endl; in Usage()
52 std::cerr << " getpath <dm-name>" << std::endl; in Usage()
53 std::cerr << " getuuid <dm-name>" << std::endl; in Usage()
[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 …]
/system/core/fastboot/
Dfastboot_driver.h59 std::function<void(const std::string&)> prolog = [](const std::string&) {};
60 std::function<void(int)> epilog = [](int) {};
61 std::function<void(const std::string&)> info = [](const std::string&) {};
69 static constexpr uint32_t MAX_DOWNLOAD_SIZE = std::numeric_limits<uint32_t>::max();
76 RetCode Boot(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
77 RetCode Continue(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
78 RetCode CreatePartition(const std::string& partition, const std::string& size);
79 RetCode DeletePartition(const std::string& partition);
80 RetCode Download(const std::string& name, android::base::borrowed_fd fd, size_t size,
81 std::string* response = nullptr, std::vector<std::string>* info = nullptr);
[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 = {
65 std::vector<uint8_t> get_element_attributes_request_full_cover_art = {
80 std::vector<uint8_t> get_elements_attributes_response_full = {
93 std::vector<uint8_t> get_play_status_request = {0x01, 0x48, 0x00, 0x00, 0x19,
[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()
33 std::string errorMessage; in main()
35 std::cerr << "Failed to read interface metadata file: " << path << std::endl in main()
36 << errorMessage << std::endl; in main()
40 std::cout << "#include <aidl/metadata.h>" << std::endl; in main()
41 std::cout << "namespace android {" << std::endl; in main()
42 std::cout << "std::vector<AidlInterfaceMetadata> AidlInterfaceMetadata::all() {" << std::endl; in main()
43 std::cout << "return std::vector<AidlInterfaceMetadata>{" << std::endl; in main()
[all …]
/system/iorap/src/inode2filename/
Dmain.cc31std::cerr << "Usage: " << argv[0] << " <options> <<inode_syntax>> [inode_syntax1 inode_syntax2 ...… in Usage()
32 std::cerr << "" << std::endl; in Usage()
33std::cerr << " Block until all inodes have been read in, then begin searching for filenames for t… in Usage()
34std::cerr << " Results are written immediately as they are available, and once all inodes are fou… in Usage()
35 std::cerr << " the program will terminate." << std::endl; in Usage()
36 std::cerr << "" << std::endl; in Usage()
37 std::cerr << " Inode syntax: ('dev_t@inode' | 'major:minor:inode')" << std::endl; in Usage()
38 std::cerr << "" << std::endl; // CLI-only flags. in Usage()
39 std::cerr << " --help,-h Print this Usage." << std::endl; in Usage()
40 std::cerr << " --verbose,-v Set verbosity (default off)." << std::endl; in Usage()
[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 Version &ver);
[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/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/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/bt/gd/common/
Dstrings.h39 std::string ToHexString(T x) { in ToHexString()
44 std::stringstream tmp; in ToHexString()
45 …tmp << "0x" << std::internal << std::hex << std::setfill('0') << std::setw(sizeof(T) * 2) << (unsi… in ToHexString()
50 inline std::string ToHexString<signed long>(signed long x) {
55 std::stringstream tmp;
56 …tmp << "0x" << std::internal << std::hex << std::setfill('0') << std::setw(sizeof(signed long) * 2)
63 std::string ToHexString(InputIt first, InputIt last) { in ToHexString()
65std::is_same_v<typename std::iterator_traits<InputIt>::value_type, uint8_t>, "Must use uint8_t ite… in ToHexString()
66 std::stringstream ss; in ToHexString()
69 ss << std::hex << std::setw(2) << std::setfill('0') << +(*it); in ToHexString()
[all …]
/system/extras/simpleperf/
Dget_test_data.h26 std::string GetTestData(const std::string& filename);
27 const std::string& GetTestDataDir();
30 static const std::string ELF_FILE = "elf";
31 static const std::string ELF_FILE_BUILD_ID = "0b12a384a9f4a3f3659b7171ca615dbec3a81f71";
32 static const std::string ELF_FILE_WITH_MINI_DEBUG_INFO = "elf_with_mini_debug_info";
36 static const std::string PERF_DATA = "perf.data";
40 static const std::string PERF_DATA_WITH_MULTIPLE_PIDS_AND_TIDS =
44 static const std::string CALLGRAPH_FP_PERF_DATA = "perf_g_fp.data";
46 static const std::string BRANCH_PERF_DATA = "perf_b.data";
49 static const std::string PERF_DATA_WITH_MINI_DEBUG_INFO = "perf_with_mini_debug_info.data";
[all …]
/system/iorap/src/maintenance/
Dmain.cc32 std::cerr << "Usage: " << argv[0] << " <path of sqlite db>" << std::endl; in Usage()
33 std::cerr << "" << std::endl; in Usage()
34 std::cerr << " Compile the perfetto trace for an package and activity." << std::endl; in Usage()
35 std::cerr << " The info of perfetto trace is stored in the sqlite db." << std::endl; in Usage()
36 std::cerr << "" << std::endl; in Usage()
37 std::cerr << " Optional flags:" << std::endl; in Usage()
38 std::cerr << " --package $,-p $ Package name." << std::endl; in Usage()
39 std::cerr << " --version $,-ve $ Package version." << std::endl; in Usage()
40 std::cerr << " --activity $,-a $ Activity name." << std::endl; in Usage()
41std::cerr << " --inode-textcache $,-it $ Resolve inode->filename from textcache." << std::endl; in Usage()
[all …]
/system/vold/
DUtils.h49 std::string GetFuseMountPathForUser(userid_t user_id, const std::string& relative_upper_path);
51 status_t CreateDeviceNode(const std::string& path, dev_t dev);
52 status_t DestroyDeviceNode(const std::string& path);
54 status_t SetDefaultAcl(const std::string& path, mode_t mode, uid_t uid, gid_t gid,
55 std::vector<gid_t> additionalGids);
59 int SetQuotaInherit(const std::string& path);
60 int SetQuotaProjectId(const std::string& path, long projectId);
68 int PrepareAppDirFromRoot(const std::string& path, const std::string& root, int appUid,
72 status_t PrepareDir(const std::string& path, mode_t mode, uid_t uid, gid_t gid,
76 status_t ForceUnmount(const std::string& path);
[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 FromFile(const std::string& file_name);
47 void RegisterSendResponse(const std::function<void(const std::string&)> callback);
52 void Add(const std::vector<std::string>& args);
55 void AddRemote(const std::vector<std::string>& args);
58 void Del(const std::vector<std::string>& args);
61 void AddPhy(const std::vector<std::string>& args);
64 void DelPhy(const std::vector<std::string>& args);
67 void AddDeviceToPhy(const std::vector<std::string>& args);
70 void DelDeviceFromPhy(const std::vector<std::string>& args);
[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()
33 std::string errorMessage; in main()
35 std::cerr << "Failed to read interface inheritance hierarchy file: " << path << std::endl in main()
36 << errorMessage << std::endl; in main()
40 std::cout << "#include <hidl/metadata.h>" << std::endl; in main()
41 std::cout << "namespace android {" << std::endl; in main()
42 std::cout << "std::vector<HidlInterfaceMetadata> HidlInterfaceMetadata::all() {" << std::endl; in main()
43 std::cout << "return std::vector<HidlInterfaceMetadata>{" << std::endl; in main()
[all …]
/system/bt/test/mock/
Dmock_btif_config.h27 extern std::map<std::string, int> mock_function_count_map;
52 std::function<bool(const RawAddress& bda, int* p_device_type)> body{
63 std::function<bool(const RawAddress& bda, tBLE_ADDR_TYPE* p_addr_type)> body{
74 std::function<bool(const std::string& section, const std::string& key)> body{
75 [](const std::string& section, const std::string& key) { return false; }};
76 bool operator()(const std::string& section, const std::string& key) { in operator()
85 std::function<bool(const std::string& section, const std::string& key,
87 body{[](const std::string& section, const std::string& key, int* value) {
90 bool operator()(const std::string& section, const std::string& key, in operator()
100 std::function<bool(const std::string& section, const std::string& key,
[all …]
/system/tools/aidl/tests/
Dfake_io_delegate.h42 std::unique_ptr<std::string> GetFileContents(
43 const std::string& filename,
44 const std::string& append_content_suffix = "") const override;
45 std::unique_ptr<LineReader> GetLineReader(
46 const std::string& file_path) const override;
47 bool FileIsReadable(const std::string& path) const override;
48 std::unique_ptr<CodeWriter> GetCodeWriter(
49 const std::string& file_path) const override;
50 void RemovePath(const std::string& file_path) const override;
51 android::base::Result<std::vector<std::string>> ListFiles(const std::string& dir) const override;
[all …]
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dimage_manager.h43 std::optional<bool> is_recovery;
49 static std::unique_ptr<IImageManager> Open(const std::string& dir_prefix,
50 const std::chrono::milliseconds& timeout_ms,
64 const std::string& name, uint64_t size, int flags,
65 std::function<bool(uint64_t, uint64_t)>&& on_progress = nullptr) = 0;
69 virtual bool DeleteBackingImage(const std::string& name) = 0;
80 virtual bool MapImageDevice(const std::string& name,
81 const std::chrono::milliseconds& timeout_ms, std::string* path) = 0;
84 virtual bool UnmapImageDevice(const std::string& name) = 0;
89 virtual bool BackingImageExists(const std::string& name) = 0;
[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 …]

12345678910>>...154