Home
last modified time | relevance | path

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

12345678910>>...74

/hardware/google/aemu/base/include/aemu/base/files/
DPathUtils.h93 std::optional<std::string> mStringCopy;
129 static std::string toExecutableName(const char* baseName, HostType hostType);
131 static std::string toExecutableName(const char* baseName) { in toExecutableName()
157 static std::string removeTrailingDirSeparator(const char* path,
161 static std::string removeTrailingDirSeparator(const char* path) { in removeTrailingDirSeparator()
166 static std::string addTrailingDirSeparator(const std::string& path,
168 static std::string addTrailingDirSeparator(const char* path,
172 static std::string addTrailingDirSeparator(const std::string& path) { in addTrailingDirSeparator()
184 static size_t rootPrefixSize(const std::string& path, HostType hostType);
189 return rootPrefixSize(path ? std::string(path) : std::string(""), hostType); in rootPrefixSize()
[all …]
DIniFile.h36 using MapType = std::unordered_map<std::string, std::string>;
42 using value_type = std::string;
68 const std::string& getBackingFile() const { return mBackingFilePath; } in getBackingFile()
98 static std::string makeValidKey(std::string_view str);
99 static std::string makeValidValue(std::string_view str);
114 std::string getString(const std::string& key,
116 int getInt(const std::string& key, int defaultValue) const;
117 int64_t getInt64(const std::string& key, int64_t defaultValue) const;
118 double getDouble(const std::string& key, double defaultValue) const;
122 bool getBool(const std::string& key, bool defaultValue) const;
[all …]
/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/
DPolicyConfig.h44 PolicyConfig(const std::string& configPath, const std::string& configFileName) in PolicyConfig()
52 std::string getError() const;
53 const std::string& getFilePath() const { return mFilePath; } in getFilePath()
54 const xsd::Module* getModuleFromName(const std::string& name) const;
56 const std::set<std::string>& getModulesWithDevicesNames() const { in getModulesWithDevicesNames()
60 const std::string& moduleName, const std::string& mixPortName) const { in getDeviceAddressOfSinkDeviceAttachedToMixPort()
66 const std::string& moduleName, const std::string& mixPortName) const { in getDeviceAddressOfSourceDeviceAttachedToMixPort()
71 std::string getAttachedSinkDeviceForMixPort(const std::string& moduleName, in getAttachedSinkDeviceForMixPort()
72 const std::string& mixPortName) const { in getAttachedSinkDeviceForMixPort()
76 std::string getAttachedSourceDeviceForMixPort(const std::string& moduleName, in getAttachedSourceDeviceForMixPort()
[all …]
/hardware/google/aemu/base/include/aemu/base/perflogger/
DBenchmark.h28 using Metadata = std::map<std::string, std::string>;
31 const std::string& benchmarkName,
32 const std::string& projectName,
33 const std::string& description,
37 const std::string& customOutputDir,
38 const std::string& benchmarkName,
39 const std::string& projectName,
40 const std::string& description,
45 base::Optional<std::string> getCustomOutputDir() const;
46 std::string getName() const;
[all …]
/hardware/qcom/data/ipacfg-mgr/msm8998/hal/inc/
DPrefixParser.h44 using ::std::string;
51 bool add(vector<string> /* in */);
52 bool add(string /* in */);
53 bool addV4(vector<string> /* in */);
54 bool addV4(string /* in */);
55 bool addV6(vector<string> /* in */);
56 bool addV6(string /* in */);
60 string getLastErrAsStr();
62 bool add(string /* in */, IP_FAM /* famHint */);
63 bool add(vector<string> /* in */, IP_FAM /* famHint */);
[all …]
DLocalLogBuffer.h40 using ::std::string;
49 FunctionLog(string /* funcName */);
51 void addArg(string /* kw */, string /* arg */);
52 void addArg(string /* kw */, vector<string> /* args */);
53 void addArg(string /* kw */, uint64_t /* arg */);
54 void setResult(bool /* success */, string /* msg */);
57 string toString();
60 const string mName;
65 LocalLogBuffer(string /* name */, int /* maxLogs */);
71 const string mName;
/hardware/qcom/sm8150/data/ipacfg-mgr/hal/inc/
DPrefixParser.h44 using ::std::string;
51 bool add(vector<string> /* in */);
52 bool add(string /* in */);
53 bool addV4(vector<string> /* in */);
54 bool addV4(string /* in */);
55 bool addV6(vector<string> /* in */);
56 bool addV6(string /* in */);
61 string getLastErrAsStr();
63 bool add(string /* in */, IP_FAM /* famHint */);
64 bool add(vector<string> /* in */, IP_FAM /* famHint */);
[all …]
DLocalLogBuffer.h40 using ::std::string;
49 FunctionLog(string /* funcName */);
51 void addArg(string /* kw */, string /* arg */);
52 void addArg(string /* kw */, vector<string> /* args */);
53 void addArg(string /* kw */, uint64_t /* arg */);
54 void setResult(bool /* success */, string /* msg */);
57 string toString();
60 const string mName;
65 LocalLogBuffer(string /* name */, int /* maxLogs */);
70 const string mName;
/hardware/interfaces/keymaster/4.0/vts/functional/
DKeymasterHidlTest.h40 using ::std::string;
51 explicit HidlBuf(const std::string& other) : HidlBuf() { *this = other; } in HidlBuf()
75 HidlBuf& operator=(const string& other) {
81 string to_string() const { return string(reinterpret_cast<const char*>(data()), size()); } in to_string()
86 class KeymasterHidlTest : public ::testing::TestWithParam<std::string> {
106 const string& key_material, HidlBuf* key_blob,
109 const string& key_material);
111 ErrorCode ImportWrappedKey(string wrapped_key, string wrapping_key,
112 const AuthorizationSet& wrapping_key_desc, string masking_key,
142 const string& input, AuthorizationSet* out_params, string* output,
[all …]
/hardware/ti/am57x/bootctrl/
Dbootloader_message.h190 std::string get_bootloader_message_blk_device(std::string* err);
193 bool read_bootloader_message(bootloader_message* boot, std::string* err);
196 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device,
197 std::string* err);
200 bool read_bootloader_control_from(bootloader_control* boot_ctrl, const std::string& misc_blk_device,
201 std::string* err);
204 bool write_bootloader_message(const bootloader_message& boot, std::string* err);
208 const std::string& misc_blk_device, std::string* err);
212 bool write_bootloader_message(const std::vector<std::string>& options, std::string* err);
215 bool write_bootloader_control_to(const bootloader_control* boot_ctrl, const std::string& misc_blk_d…
[all …]
/hardware/interfaces/security/keymint/aidl/vts/functional/
DKeyMintAidlTestBase.h52 using ::std::string;
57 const string FEATURE_KEYSTORE_APP_ATTEST_KEY = "android.hardware.keystore.app_attest_key";
58 const string FEATURE_STRONGBOX_KEYSTORE = "android.hardware.strongbox_keystore";
60 class KeyMintAidlTestBase : public ::testing::TestWithParam<string> {
72 static std::string keyblob_dir;
125 const string& key_material, vector<uint8_t>* key_blob,
128 const string& key_material);
130 ErrorCode ImportWrappedKey(string wrapped_key, string wrapping_key,
131 const AuthorizationSet& wrapping_key_desc, string masking_key,
134 ErrorCode ImportWrappedKey(string wrapped_key, string wrapping_key, in ImportWrappedKey()
[all …]
/hardware/interfaces/tetheroffload/aidl/vts/functional/
DVtsHalTetheroffloadTargetTest.cpp48 const std::string TEST_IFACE = "rmnet_data0";
96 bool interfaceIsUp(const std::string name) { in interfaceIsUp()
135 class TetheroffloadAidlTestBase : public testing::TestWithParam<std::string> {
259 const std::string iface(TEST_IFACE); in TEST_P()
260 const std::string v4Addr("192.0.0.2"); in TEST_P()
261 const std::string v4Gw("192.0.0.1"); in TEST_P()
262 const std::vector<std::string> v6Gws{std::string("fe80::db8:1"), std::string("fe80::db8:2")}; in TEST_P()
278 const std::vector<std::string> prefixes{std::string("2001:db8::/64")}; in TEST_P()
285 const std::string upstream(TEST_IFACE); in TEST_P()
296 const std::string upstream(TEST_IFACE); in TEST_P()
[all …]
/hardware/google/pixel/rebalance_interrupts/
Drebalance_interrupts.cpp67 using std::string;
73 string policy0_cores_unparsed; in Policy0AffectedCpus()
76 string policy0_trimmed = android::base::Trim(policy0_cores_unparsed); in Policy0AffectedCpus()
77 vector<string> cpus_as_string = android::base::Split(policy0_trimmed, " "); in Policy0AffectedCpus()
90 vector<string> Policy0CpuMasks() { in Policy0CpuMasks()
92 vector<string> cpu_masks; in Policy0CpuMasks()
100 map<string, list<string>>& action_to_irqs) { in AddEntryToIrqmap() argument
101 const string irq_base(SYSFS_IRQDIR "/"); in AddEntryToIrqmap()
102 string irq_actions_path = irq_base + irq + "/actions"; in AddEntryToIrqmap()
104 string irq_actions; in AddEntryToIrqmap()
[all …]
/hardware/interfaces/tetheroffload/aidl/default/
DOffload.h33 ndk::ScopedAStatus addDownstream(const std::string& in_iface,
34 const std::string& in_prefix) override;
35 ndk::ScopedAStatus getForwardedStats(const std::string& in_upstream,
40 ndk::ScopedAStatus removeDownstream(const std::string& in_iface,
41 const std::string& in_prefix) override;
42 ndk::ScopedAStatus setDataWarningAndLimit(const std::string& in_upstream,
45 ndk::ScopedAStatus setLocalPrefixes(const std::vector<std::string>& in_prefixes) override;
46 ndk::ScopedAStatus setUpstreamParameters(const std::string& in_iface,
47 const std::string& in_v4Addr,
48 const std::string& in_v4Gw,
[all …]
/hardware/interfaces/audio/core/all-versions/vts/functional/
DPolicyConfig.h35 PolicyConfig(const std::string& configPath, const std::string& configFileName) in PolicyConfig()
49 std::string getError() const { in getError()
51 return std::string{"Could not find "} + mInitialFilePath + in getError()
57 const std::string& getFilePath() const { in getFilePath()
60 sp<const android::HwModule> getModuleFromName(const std::string& name) const { in getModuleFromName()
64 const std::set<std::string>& getModulesWithDevicesNames() const { in getModulesWithDevicesNames()
67 std::string getAttachedSinkDeviceForMixPort(const std::string& moduleName, in getAttachedSinkDeviceForMixPort()
68 const std::string& mixPortName) const { in getAttachedSinkDeviceForMixPort()
72 std::string getAttachedSourceDeviceForMixPort(const std::string& moduleName, in getAttachedSourceDeviceForMixPort()
73 const std::string& mixPortName) const { in getAttachedSourceDeviceForMixPort()
[all …]
/hardware/google/pixel/powerstats/include/dataproviders/
DIioEnergyMeterDataSelector.h36 IioEnergyMeterDataSelector(const std::unordered_map<std::string, std::string> &devicePaths);
39 void parseConfigData(const std::string data,
40 std::unordered_map<std::string, std::list<std::string>> *deviceConfigs);
42 const std::unordered_map<std::string, std::list<std::string>> &deviceConfigs);
46 const std::unordered_map<std::string, std::string> kDevicePaths;
47 const std::string kSelectionNode = "/enabled_rails";
48 const std::string kSelectionComplete = "CONFIG_COMPLETE";
51 const std::vector<const std::string> kConfigPaths = {
DPowerStatsEnergyConsumer.h49 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name,
50 std::set<std::string> channelNames);
52 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name,
53 std::string powerEntityName, std::map<std::string, int32_t> stateCoeffs);
56 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name,
57 std::set<std::string> channelNames, std::string powerEntityName,
58 std::map<std::string, int32_t> stateCoeffs);
61 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name,
62 std::set<std::string> channelNames, std::unordered_map<int32_t, std::string> paths,
63 std::map<std::string, int32_t> stateCoeffs);
[all …]
/hardware/qcom/sm7250/display/sde-drm/
Ddrm_crtc.cpp50 using std::string;
75 string enum_name(prop->enums[i].name); in PopulateSecurityLevels()
90 string enum_name(prop->enums[i].name); in PopulateCWbCaptureModes()
105 string enum_name(prop->enums[i].name); in PopulateIdlePCStates()
266 string property_name(info->name); in ParseProperties()
313 string line = {}; in ParseCapabilities()
314 string max_blendstages = "max_blendstages="; in ParseCapabilities()
315 string qseed_type = "qseed_type="; in ParseCapabilities()
316 string has_src_split = "has_src_split="; in ParseCapabilities()
317 string sdma_rev = "smart_dma_rev="; in ParseCapabilities()
[all …]
/hardware/interfaces/automotive/vehicle/aidl/impl/default_config/JsonConfigLoader/include/
DJsonConfigLoader.h41 virtual android::base::Result<int> parseValue(const std::string& name) const = 0;
53 android::base::Result<std::string> parseStringValue(const std::string& fieldName,
57 android::base::Result<std::vector<T>> parseArray(const std::string& fieldName,
61 android::base::Result<T> parseValue(const std::string& fieldName,
66 static android::base::Result<T> convertValueToType(const std::string& fieldName,
69 std::optional<std::pair<std::string, std::string>> maybeGetTypeAndValueName(
70 const std::string& jsonFieldValue) const;
73 const std::pair<std::string, std::string>& typeValueName) const;
75 const ConstantParserInterface* getParser(const std::string& type) const { in getParser()
84 inline static const std::string DELIMITER = "::";
[all …]
/hardware/google/av/media/eco/include/eco/
DECOData.h77 std::variant<int32_t, int64_t, size_t, float, double, std::string, int8_t>;
78 using ECODataKeyValuePair = std::pair<std::string, ECODataValueType>;
98 ECODataStatus set(const std::string& key, const ECODataValueType& value);
99 ECODataStatus find(const std::string& key, ECODataValueType* out) const;
102 ECODataStatus setString(const std::string& key, const std::string& value);
103 ECODataStatus findString(const std::string& key, std::string* out) const;
106 ECODataStatus setInt32(const std::string& key, int32_t value);
107 ECODataStatus findInt32(const std::string& key, int32_t* out) const;
110 ECODataStatus setInt64(const std::string& key, int64_t value);
111 ECODataStatus findInt64(const std::string& key, int64_t* out) const;
[all …]
/hardware/google/pixel/powerstats/dataproviders/
DIioEnergyMeterDataSelector.cpp32 const std::string data, in parseConfigData()
33 std::unordered_map<std::string, std::list<std::string>> *deviceConfigs) { in parseConfigData() argument
34 std::string deviceName; /* Initialized empty */ in parseConfigData()
35 std::list<std::string> deviceConfig; in parseConfigData()
39 std::string line; in parseConfigData()
42 if (line.find_first_not_of("\t ") == std::string::npos) { in parseConfigData()
47 std::vector<std::string> words = ::android::base::Split(line, "]["); in parseConfigData()
71 const std::unordered_map<std::string, std::list<std::string>> &deviceConfigs) { in applyConfigToDevices() argument
73 std::string devicePath = devicePathPair.first; in applyConfigToDevices()
74 std::string deviceName = devicePathPair.second; in applyConfigToDevices()
[all …]
/hardware/nxp/secure_element/snxxx/libese-spi/p73/utils/
Dconfig.h47 std::string getString() const;
51 bool parseFromString(std::string in);
55 std::string value_string_;
62 void parseFromFile(const std::string& file_name);
63 void parseFromString(const std::string& config);
65 bool hasKey(const std::string& key);
66 std::string getString(const std::string& key);
67 unsigned getUnsigned(const std::string& key);
68 std::vector<uint8_t> getBytes(const std::string& key);
73 ConfigValue& getValue(const std::string& key);
[all …]
/hardware/nxp/secure_element/pn8x/libese-spi/p73/utils/
Dconfig.h28 std::string getString() const;
32 bool parseFromString(std::string in);
36 std::string value_string_;
43 void parseFromFile(const std::string& file_name);
44 void parseFromString(const std::string& config);
46 bool hasKey(const std::string& key);
47 std::string getString(const std::string& key);
48 unsigned getUnsigned(const std::string& key);
49 std::vector<uint8_t> getBytes(const std::string& key);
54 ConfigValue& getValue(const std::string& key);
[all …]
/hardware/st/secure_element/ese-spi-driver/utils-lib/
Dconfig.h27 std::string getString() const;
31 bool parseFromString(std::string in);
35 std::string value_string_;
42 void parseFromFile(const std::string& file_name);
43 void parseFromString(const std::string& config);
45 bool hasKey(const std::string& key);
46 std::string getString(const std::string& key);
47 unsigned getUnsigned(const std::string& key);
48 std::vector<uint8_t> getBytes(const std::string& key);
53 ConfigValue& getValue(const std::string& key);
[all …]
/hardware/interfaces/wifi/aidl/default/tests/
Dmock_wifi_legacy_hal.h38 MOCK_METHOD2(setDfsFlag, wifi_error(const std::string&, bool));
40 wifi_error(const std::string&, const on_radio_mode_change_callback&));
42 std::pair<wifi_error, std::string>(const std::string& iface_name));
44 std::pair<wifi_error, std::string>(const std::string& iface_name));
47 wifi_error(const std::string& iface_name, wifi_power_scenario scenario));
48 MOCK_METHOD1(resetTxPowerScenario, wifi_error(const std::string& iface_name));
50 wifi_error(const std::string&, const NanCallbackHandlers&));
51 MOCK_METHOD2(nanDisableRequest, wifi_error(const std::string&, transaction_id));
53 wifi_error(const std::string&, transaction_id, const std::string&));
55 wifi_error(const std::string& ifname, wifi_interface_type iftype));
[all …]

12345678910>>...74