/system/extras/simpleperf/ |
D | get_test_data.h | 26 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 …]
|
D | cmd_report_sample_test.cpp | 46 static void GetProtobufReport(const std::string& test_data_file, std::string* protobuf_report, in GetProtobufReport() 47 const std::vector<std::string>& extra_args = {}) { in GetProtobufReport() 50 std::vector<std::string> args = {"-i", GetTestData(test_data_file), "-o", tmpfile.path, 60 std::string data; in TEST() 62 ASSERT_NE(data.find("magic: SIMPLEPERF"), std::string::npos); in TEST() 63 ASSERT_NE(data.find("version: 1"), std::string::npos); in TEST() 64 ASSERT_NE(data.find("file:"), std::string::npos); in TEST() 68 std::string data; in TEST() 71 ASSERT_EQ(data.find("unknown"), std::string::npos); in TEST() 75 std::string data; in TEST() [all …]
|
/system/vold/ |
D | Utils.h | 49 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, 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); 79 status_t KillProcessesUsingPath(const std::string& path); [all …]
|
/system/tools/hidl/host_utils/include/hidl-util/ |
D | StringHelper.h | 43 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/libmodprobe/include/modprobe/ |
D | modprobe.h | 27 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/ |
D | variables.h | 24 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/core/fastboot/ |
D | fastboot_driver.h | 59 std::function<void(const std::string&)> prolog = [](const std::string&) {}; 61 std::function<void(const std::string&)> info = [](const std::string&) {}; 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); 82 RetCode Download(android::base::borrowed_fd fd, size_t size, std::string* response = nullptr, 83 std::vector<std::string>* info = nullptr); [all …]
|
/system/bt/stack/include/ |
D | hci_error_code.h | 71 inline std::string hci_error_code_text(const tHCI_ERROR_CODE& error_code) { in hci_error_code_text() 74 return std::string("Success"); in hci_error_code_text() 76 return std::string("Illegal Command"); in hci_error_code_text() 78 return std::string("Unknown Connection"); in hci_error_code_text() 80 return std::string("Hardware Failure"); in hci_error_code_text() 82 return std::string("Page Timeout"); in hci_error_code_text() 84 return std::string("Authentication Failure"); in hci_error_code_text() 86 return std::string("Pin or Key Missing"); in hci_error_code_text() 88 return std::string("Memory Capacity Exceeded"); in hci_error_code_text() 90 return std::string("Connection Timeout"); in hci_error_code_text() [all …]
|
/system/tools/hidl/utils/include/hidl-util/ |
D | FQName.h | 27 __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 = ""); 37 __attribute__((warn_unused_result)) bool setTo(const std::string& s); 38 __attribute__((warn_unused_result)) bool setTo(const std::string& package, size_t majorVer, 39 size_t minorVer, const std::string& name = "", 40 const std::string& valueName = ""); 43 const std::string &defaultPackage, 44 const std::string &defaultVersion); 46 const std::string& package() const; [all …]
|
/system/bt/osi/include/ |
D | config.h | 29 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/libvintf/include/vintf/ |
D | FileSystem.h | 40 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; 52 virtual status_t write(const std::string& path, const std::string& content, 53 std::string* error) const = 0; 55 virtual status_t deleteFile(const std::string& path, std::string* error) const = 0; 63 status_t fetch(const std::string&, std::string*, std::string*) const; 64 status_t listFiles(const std::string&, std::vector<std::string>*, std::string*) const; 70 status_t fetch(const std::string&, std::string*, std::string*) const; [all …]
|
/system/bt/btif/include/ |
D | btif_config.h | 33 static const std::string BT_CONFIG_KEY_SDP_DI_MANUFACTURER = 35 static const std::string BT_CONFIG_KEY_SDP_DI_MODEL = "SdpDiModel"; 36 static const std::string BT_CONFIG_KEY_SDP_DI_HW_VERSION = 38 static const std::string BT_CONFIG_KEY_SDP_DI_VENDOR_ID_SRC = 41 static const std::string BT_CONFIG_KEY_REMOTE_VER_MFCT = "Manufacturer"; 42 static const std::string BT_CONFIG_KEY_REMOTE_VER_VER = "LmpVer"; 43 static const std::string BT_CONFIG_KEY_REMOTE_VER_SUBVER = "LmpSubVer"; 45 bool btif_config_exist(const std::string& section, const std::string& key); 46 bool btif_config_get_int(const std::string& section, const std::string& key, 48 bool btif_config_set_int(const std::string& section, const std::string& key, [all …]
|
D | btif_config_cache.h | 34 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/bt/test/mock/ |
D | mock_btif_config.h | 27 extern std::map<std::string, int> mock_function_count_map; 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, 102 body{[](const std::string& section, const std::string& key, int value) { 105 bool operator()(const std::string& section, const std::string& key, in operator() [all …]
|
D | mock_main_shim_BtifConfigInterface.cc | 22 const std::string& section) { in HasSection() 26 const std::string& section, const std::string& property) { in HasProperty() 29 bool bluetooth::shim::BtifConfigInterface::GetInt(const std::string& section, in GetInt() 30 const std::string& key, in GetInt() 34 bool bluetooth::shim::BtifConfigInterface::SetInt(const std::string& section, in SetInt() 35 const std::string& key, in SetInt() 39 bool bluetooth::shim::BtifConfigInterface::GetUint64(const std::string& section, in GetUint64() 40 const std::string& key, in GetUint64() 44 bool bluetooth::shim::BtifConfigInterface::SetUint64(const std::string& section, in SetUint64() 45 const std::string& key, in SetUint64() [all …]
|
/system/bt/main/shim/ |
D | config.h | 30 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/core/init/ |
D | util.h | 45 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 void ImportBootconfig(const std::function<void(const std::string&, const std::string&)>&); 59 bool make_dir(const std::string& path, mode_t mode); [all …]
|
/system/update_engine/cros/ |
D | omaha_request_params.h | 71 std::string name; 82 inline std::string os_platform() const { return os_platform_; } in os_platform() 83 inline std::string os_version() const { return os_version_; } in os_version() 84 inline std::string os_sp() const { return os_sp_; } in os_sp() 85 inline std::string os_board() const { return image_props_.board; } in os_board() 86 inline std::string os_build_fingerprint() const { in os_build_fingerprint() 89 inline std::string os_build_type() const { return image_props_.build_type; } in os_build_type() 90 inline std::string board_app_id() const { return image_props_.product_id; } in board_app_id() 91 inline std::string canary_app_id() const { in canary_app_id() 94 inline void set_app_id(const std::string& app_id) { in set_app_id() [all …]
|
/system/tools/aidl/tests/ |
D | fake_io_delegate.h | 42 std::unique_ptr<std::string> GetFileContents( 43 const std::string& filename, 44 const std::string& append_content_suffix = "") const override; 46 const std::string& file_path) const override; 47 bool FileIsReadable(const std::string& path) const override; 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; 54 void SetFileContents(const std::string& filename, 55 const std::string& contents); [all …]
|
/system/core/fs_mgr/libfs_avb/ |
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() 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/core/fs_mgr/libfiemap/include/libfiemap/ |
D | image_manager.h | 49 static std::unique_ptr<IImageManager> Open(const std::string& dir_prefix, 64 const std::string& name, uint64_t size, int flags, 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; 92 virtual bool IsImageMapped(const std::string& name) = 0; 97 virtual bool MapImageWithDeviceMapper(const IPartitionOpener& opener, const std::string& name, 98 std::string* dev) = 0; [all …]
|
/system/keymaster/tests/ |
D | android_keymaster_test_utils.h | 45 std::string hex2str(std::string); 93 bool contains(const AuthorizationSet& set, TypedTag<KM_BYTES, Tag> tag, const std::string& val) { in contains() 95 return pos != -1 && std::string(reinterpret_cast<const char*>(set[pos].blob.data), in contains() 100 bool contains(const AuthorizationSet& set, TypedTag<KM_BIGNUM, Tag> tag, const std::string& val) { in contains() 102 return pos != -1 && std::string(reinterpret_cast<const char*>(set[pos].blob.data), in contains() 140 inline std::string make_string(const uint8_t* data, size_t length) { in make_string() 141 return std::string(reinterpret_cast<const char*>(data), length); in make_string() 144 template <size_t N> std::string make_string(const uint8_t (&a)[N]) { in make_string() 165 virtual std::string name() const = 0; 186 keymaster_key_format_t format, const std::string& key_material); [all …]
|
/system/core/property_service/libpropertyinfoserializer/ |
D | trie_builder.h | 30 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/bt/service/ipc/ |
D | linux_ipc_host.h | 56 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/core/fs_mgr/ |
D | fs_mgr_priv_boot_config.h | 25 std::vector<std::pair<std::string, std::string>> fs_mgr_parse_cmdline(const std::string& cmdline); 27 bool fs_mgr_get_boot_config_from_kernel(const std::string& cmdline, const std::string& key, 28 std::string* out_val); 29 bool fs_mgr_get_boot_config_from_kernel_cmdline(const std::string& key, std::string* out_val); 30 bool fs_mgr_get_boot_config(const std::string& key, std::string* out_val); 31 std::vector<std::pair<std::string, std::string>> fs_mgr_parse_proc_bootconfig( 32 const std::string& bootconfig); 33 bool fs_mgr_get_boot_config_from_bootconfig(const std::string& bootconfig, const std::string& key, 34 std::string* out_val); 35 bool fs_mgr_get_boot_config_from_bootconfig_source(const std::string& key, std::string* out_val);
|