Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 2471) sorted by relevance

12345678910>>...99

/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/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/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/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/tools/hidl/utils/include/hidl-util/
DFQName.h27 __attribute__((warn_unused_result)) static bool parse(const std::string& s, FQName* into);
31 FQName(const std::string& package, const std::string& version, const std::string& name = "",
32 const std::string& valueName = "");
39 __attribute__((warn_unused_result)) bool setTo(const std::string& s);
40 __attribute__((warn_unused_result)) bool setTo(const std::string& package, size_t majorVer,
41 size_t minorVer, const std::string& name = "",
42 const std::string& valueName = "");
45 const std::string &defaultPackage,
46 const std::string &defaultVersion);
48 const std::string& package() const;
[all …]
/system/core/fastboot/
Dfastboot_driver.h58 std::function<void(const std::string&)> prolog = [](const std::string&) {};
60 std::function<void(const std::string&)> info = [](const std::string&) {};
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);
81 RetCode Download(int fd, size_t size, std::string* response = nullptr,
82 std::vector<std::string>* info = nullptr);
[all …]
/system/bt/osi/include/
Dconfig.h29 std::string key;
30 std::string value;
34 std::string name;
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);
43 std::list<section_t>::iterator Find(const std::string& section);
44 bool Has(const std::string& section);
58 std::string checksum_read(const char* filename);
69 bool config_has_section(const config_t& config, const std::string& section);
[all …]
/system/bt/btif/include/
Dbtif_config.h32 static const std::string BT_CONFIG_KEY_SDP_DI_MANUFACTURER =
34 static const std::string BT_CONFIG_KEY_SDP_DI_MODEL = "SdpDiModel";
35 static const std::string BT_CONFIG_KEY_SDP_DI_HW_VERSION =
37 static const std::string BT_CONFIG_KEY_SDP_DI_VENDOR_ID_SRC =
40 static const std::string BT_CONFIG_KEY_REMOTE_VER_MFCT = "Manufacturer";
41 static const std::string BT_CONFIG_KEY_REMOTE_VER_VER = "LmpVer";
42 static const std::string BT_CONFIG_KEY_REMOTE_VER_SUBVER = "LmpSubVer";
44 bool btif_config_exist(const std::string& section, const std::string& key);
45 bool btif_config_get_int(const std::string& section, const std::string& key,
47 bool btif_config_set_int(const std::string& section, const std::string& key,
[all …]
Dbtif_config_cache.h34 std::vector<std::string> GetPersistentSectionNames();
36 bool HasSection(const std::string& section_name);
37 bool HasUnpairedSection(const std::string& section_name);
38 bool HasPersistentSection(const std::string& section_name);
39 bool HasKey(const std::string& section_name, const std::string& key);
40 bool RemoveKey(const std::string& section_name, const std::string& key);
41 void RemovePersistentSectionsWithKey(const std::string& key);
44 void SetString(std::string section_name, std::string key, std::string value);
45 std::optional<std::string> GetString(const std::string& section_name,
46 const std::string& key);
[all …]
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dimage_manager.h43 static std::unique_ptr<IImageManager> Open(const std::string& dir_prefix,
57 const std::string& name, uint64_t size, int flags,
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;
90 virtual bool MapImageWithDeviceMapper(const IPartitionOpener& opener, const std::string& name,
91 std::string* dev) = 0;
[all …]
/system/bt/main/shim/
Dconfig.h30 static bool HasSection(const std::string& section);
31 static bool HasProperty(const std::string& section,
32 const std::string& property);
33 static bool GetInt(const std::string& section, const std::string& key,
35 static bool SetInt(const std::string& section, const std::string& key,
37 static bool GetUint64(const std::string& section, const std::string& key,
39 static bool SetUint64(const std::string& section, const std::string& key,
41 static bool GetStr(const std::string& section, const std::string& key,
43 static std::optional<std::string> GetStr(const std::string& section,
44 const std::string& key);
[all …]
/system/update_engine/
Domaha_request_params.h73 std::string name;
84 inline std::string os_platform() const { return os_platform_; } in os_platform()
85 inline std::string os_version() const { return os_version_; } in os_version()
86 inline std::string os_sp() const { return os_sp_; } in os_sp()
87 inline std::string os_board() const { return image_props_.board; } in os_board()
88 inline std::string os_build_fingerprint() const { in os_build_fingerprint()
91 inline std::string os_build_type() const { return image_props_.build_type; } in os_build_type()
92 inline std::string board_app_id() const { return image_props_.product_id; } in board_app_id()
93 inline std::string canary_app_id() const { in canary_app_id()
96 inline std::string system_app_id() const { return image_props_.system_id; } in system_app_id()
[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,
44 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images);
48 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images);
51 const std::string& blk_device, android::dm::DmTable* table);
59 … const std::string& ab_suffix, const std::string& ab_other_suffix);
62 std::string AvbPartitionToDevicePatition(const std::string& avb_partition_name,
63 const std::string& ab_suffix,
[all …]
/system/libvintf/include/vintf/
DFileSystem.h40 virtual status_t fetch(const std::string& path, std::string* fetched,
41 std::string* error) const = 0;
44 virtual status_t listFiles(const std::string& path, std::vector<std::string>* out,
45 std::string* error) const = 0;
53 status_t fetch(const std::string&, std::string*, std::string*) const;
54 status_t listFiles(const std::string&, std::vector<std::string>*, std::string*) const;
60 status_t fetch(const std::string&, std::string*, std::string*) const;
61 status_t listFiles(const std::string&, std::vector<std::string>*, std::string*) const;
67 FileSystemUnderPath(const std::string& rootdir);
68 virtual status_t fetch(const std::string& path, std::string* fetched,
[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;
48 const std::string& file_path) const override;
49 bool FileIsReadable(const std::string& path) const override;
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;
56 void SetFileContents(const std::string& filename,
57 const std::string& contents);
[all …]
/system/core/init/
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);
57 void ImportKernelCmdline(const std::function<void(const std::string&, const std::string&)>&);
58 bool make_dir(const std::string& path, mode_t mode);
60 Result<std::string> ExpandProps(const std::string& src);
[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;
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);
57 Result<void> ParseGroup(std::vector<std::string>&& args);
[all …]
/system/update_engine/common/
Dprefs.h43 virtual bool GetKey(const std::string& key, std::string* value) const = 0;
47 virtual bool GetSubKeys(const std::string& ns,
48 std::vector<std::string>* keys) const = 0;
52 virtual bool SetKey(const std::string& key, const std::string& value) = 0;
55 virtual bool KeyExists(const std::string& key) const = 0;
59 virtual bool DeleteKey(const std::string& key) = 0;
68 bool GetString(const std::string& key, std::string* value) const override;
69 bool SetString(const std::string& key, const std::string& value) override;
70 bool GetInt64(const std::string& key, int64_t* value) const override;
71 bool SetInt64(const std::string& key, const int64_t value) override;
[all …]
/system/tools/aidl/
Daidl_to_ndk.h31 std::string NdkHeaderFile(const AidlDefinedType& defined_type, cpp::ClassNames name,
34 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value);
37 std::string NdkFullClassName(const AidlDefinedType& type, cpp::ClassNames name);
41 std::string NdkNameOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl, StorageMode mode);
49 const string parcel;
50 const string var;
57 std::string NdkArgList(
59 std::function<std::string(const std::string& type, const std::string& name, bool isOut)>
62 inline std::string FormatArgForDecl(const std::string& type, const std::string& name, in FormatArgForDecl()
67 inline std::string FormatArgNameUnused(const std::string& type, const std::string& name, in FormatArgNameUnused()
[all …]
/system/core/property_service/libpropertyinfoserializer/
Dtrie_builder.h30 PropertyEntryBuilder(const std::string& name, const std::string* context, const std::string* type) in PropertyEntryBuilder()
32 std::string name;
33 const std::string* context;
34 const std::string* type;
39 TrieBuilderNode(const std::string& name) : property_entry_(name, nullptr, nullptr) {} in TrieBuilderNode()
41 TrieBuilderNode* FindChild(const std::string& name) { in FindChild()
48 const TrieBuilderNode* FindChild(const std::string& name) const { in FindChild()
55 TrieBuilderNode* AddChild(const std::string& name) { return &children_.emplace_back(name); } in AddChild()
57 bool AddPrefixContext(const std::string& prefix, const std::string* context, in AddPrefixContext()
58 const std::string* type) { in AddPrefixContext()
[all …]
/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h38 const std::string& name() const { return name_; } in name()
39 std::string version() const { in version()
56 std::string name_;
69 virtual std::string name() const = 0;
81 std::string Serialize() const;
88 virtual std::string GetParameterString() const = 0;
100 std::string name() const override { return "zero"; } in name()
101 std::string GetParameterString() const override;
106 DmTargetLinear(uint64_t start, uint64_t length, const std::string& block_device, in DmTargetLinear()
110 std::string name() const override { return "linear"; } in name()
[all …]
/system/bt/service/ipc/
Dlinux_ipc_host.h56 bool OnSetAdapterName(const std::string& name);
59 bool OnCreateService(const std::string& service_uuid);
62 bool OnDestroyService(const std::string& service_uuid);
65 bool OnAddCharacteristic(const std::string& service_uuid,
66 const std::string& characteristic_uuid,
67 const std::string& control_uuid,
68 const std::string& options);
71 bool OnSetCharacteristicValue(const std::string& service_uuid,
72 const std::string& characteristic_uuid,
73 const std::string& value);
[all …]
/system/libbase/
Dlogging_splitters_test.cpp28 void TestNewlineSplitter(const std::string& input, in TestNewlineSplitter()
29 const std::vector<std::string>& expected_output) { in TestNewlineSplitter()
30 std::vector<std::string> output; in TestNewlineSplitter()
35 output.push_back(std::string(msg, length)); in TestNewlineSplitter()
44 TestNewlineSplitter("", std::vector<std::string>{""}); in TEST()
48 TestNewlineSplitter("normal string", std::vector<std::string>{"normal string"}); in TEST()
52 TestNewlineSplitter("normal string\n", std::vector<std::string>{"normal string", ""}); in TEST()
57 std::vector<std::string>{"normal string", "second string", "thirdstring"}); in TEST()
63 std::vector<std::string>{"normal string", "second string", "thirdstring", ""}); in TEST()
69 std::vector<std::string>{"normal string", "", "", "second string", "", "thirdstring", ""}); in TEST()
[all …]
/system/bt/gd/storage/
Dconfig_cache.h69 virtual bool HasSection(const std::string& section) const;
70 virtual bool HasProperty(const std::string& section, const std::string& property) const;
72 …virtual std::optional<std::string> GetProperty(const std::string& section, const std::string& prop…
74 virtual std::vector<std::string> GetPersistentSections() const;
76 virtual bool IsPersistentSection(const std::string& section) const;
79 const std::string& section, const std::unordered_set<std::string_view>& property_names) const;
81 virtual bool IsPersistentProperty(const std::string& property) const;
83 virtual std::string SerializeToLegacyFormat() const;
86 std::string section;
87 std::string property;
[all …]

12345678910>>...99