Home
last modified time | relevance | path

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

12345678910>>...66

/system/vold/
DUtils.h44 status_t CreateDeviceNode(const std::string& path, dev_t dev);
45 status_t DestroyDeviceNode(const std::string& path);
48 status_t PrepareDir(const std::string& path, mode_t mode, uid_t uid, gid_t gid);
51 status_t ForceUnmount(const std::string& path);
54 status_t KillProcessesUsingPath(const std::string& path);
57 status_t BindMount(const std::string& source, const std::string& target);
59 bool FindValue(const std::string& raw, const std::string& key, std::string* value);
62 status_t ReadMetadata(const std::string& path, std::string* fsType,
63 std::string* fsUuid, std::string* fsLabel);
66 status_t ReadMetadataUntrusted(const std::string& path, std::string* fsType,
[all …]
/system/tools/hidl/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 …]
DFQName.h27 __attribute__((warn_unused_result)) static bool parse(const std::string& s, FQName* into);
32 explicit FQName(const std::string &s);
34 FQName(const std::string& package, const std::string& version, const std::string& name = "",
35 const std::string& valueName = "");
43 __attribute__((warn_unused_result)) bool setTo(const std::string& s);
46 const std::string &defaultPackage,
47 const std::string &defaultVersion);
49 const std::string& package() const;
51 std::string atVersion() const;
53 std::string version() const;
[all …]
/system/tpm/attestation/common/
Dcrypto_utility_impl.h38 bool GetRandom(size_t num_bytes, std::string* random_data) const override;
39 bool CreateSealedKey(std::string* aes_key, std::string* sealed_key) override;
40 bool EncryptData(const std::string& data,
41 const std::string& aes_key,
42 const std::string& sealed_key,
43 std::string* encrypted_data) override;
44 bool UnsealKey(const std::string& encrypted_data,
45 std::string* aes_key,
46 std::string* sealed_key) override;
47 bool DecryptData(const std::string& encrypted_data,
[all …]
Dmock_tpm_utility.h36 static std::string Transform(const std::string& method,
37 const std::string& input);
41 bool(const std::string&,
42 const std::string&,
43 const std::string&,
44 const std::string&,
45 const std::string&,
46 std::string*));
50 const std::string&,
51 const std::string&,
[all …]
Dmock_crypto_utility.h33 MOCK_CONST_METHOD2(GetRandom, bool(size_t, std::string*));
36 bool(std::string* aes_key, std::string* sealed_key));
39 bool(const std::string& data,
40 const std::string& aes_key,
41 const std::string& sealed_key,
42 std::string* encrypted_data));
45 bool(const std::string& encrypted_data,
46 std::string* aes_key,
47 std::string* sealed_key));
50 bool(const std::string& encrypted_data,
[all …]
Dprint_interface_proto.h28 std::string GetProtoDebugStringWithIndent(AttestationStatus value,
30 std::string GetProtoDebugString(AttestationStatus value);
31 std::string GetProtoDebugStringWithIndent(
34 std::string GetProtoDebugString(const CreateGoogleAttestedKeyRequest& value);
35 std::string GetProtoDebugStringWithIndent(
38 std::string GetProtoDebugString(const CreateGoogleAttestedKeyReply& value);
39 std::string GetProtoDebugStringWithIndent(const GetKeyInfoRequest& value,
41 std::string GetProtoDebugString(const GetKeyInfoRequest& value);
42 std::string GetProtoDebugStringWithIndent(const GetKeyInfoReply& value,
44 std::string GetProtoDebugString(const GetKeyInfoReply& value);
[all …]
Dcrypto_utility.h32 virtual bool GetRandom(size_t num_bytes, std::string* random_data) const = 0;
36 virtual bool CreateSealedKey(std::string* aes_key,
37 std::string* sealed_key) = 0;
43 virtual bool EncryptData(const std::string& data,
44 const std::string& aes_key,
45 const std::string& sealed_key,
46 std::string* encrypted_data) = 0;
52 virtual bool UnsealKey(const std::string& encrypted_data,
53 std::string* aes_key,
54 std::string* sealed_key) = 0;
[all …]
Dtpm_utility.h42 virtual bool ActivateIdentity(const std::string& delegate_blob,
43 const std::string& delegate_secret,
44 const std::string& identity_key_blob,
45 const std::string& asym_ca_contents,
46 const std::string& sym_ca_attestation,
47 std::string* credential) = 0;
59 const std::string& identity_key_blob,
60 const std::string& external_data,
61 std::string* key_blob,
62 std::string* public_key,
[all …]
Dtpm_utility_v1.h42 bool ActivateIdentity(const std::string& delegate_blob,
43 const std::string& delegate_secret,
44 const std::string& identity_key_blob,
45 const std::string& asym_ca_contents,
46 const std::string& sym_ca_attestation,
47 std::string* credential) override;
50 const std::string& identity_key_blob,
51 const std::string& external_data,
52 std::string* key_blob,
53 std::string* public_key,
[all …]
Dcrypto_utility_impl_test.cc48 std::string HexDecode(const std::string hex) { in HexDecode()
51 return std::string(reinterpret_cast<char*>(output.data()), output.size()); in HexDecode()
71 std::string random1; in TEST_F()
73 std::string random2; in TEST_F()
80 std::string buffer; in TEST_F()
85 std::string key; in TEST_F()
86 std::string sealed_key; in TEST_F()
88 std::string data("test"); in TEST_F()
89 std::string encrypted_data; in TEST_F()
103 std::string key; in TEST_F()
[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_WITH_MINI_DEBUG_INFO = "elf_with_mini_debug_info";
33 static const std::string PERF_DATA = "perf.data";
37 static const std::string PERF_DATA_WITH_MULTIPLE_PIDS_AND_TIDS = "perf_with_multiple_pids_and_tids.…
40 static const std::string CALLGRAPH_FP_PERF_DATA = "perf_g_fp.data";
42 static const std::string BRANCH_PERF_DATA = "perf_b.data";
45 static const std::string PERF_DATA_WITH_MINI_DEBUG_INFO = "perf_with_mini_debug_info.data";
62 static const std::string APK_FILE = "data/app/com.example.hellojni-1/base.apk";
[all …]
/system/tpm/tpm_manager/common/
Dprint_tpm_manager_proto.h16 std::string GetProtoDebugStringWithIndent(TpmManagerStatus value,
18 std::string GetProtoDebugString(TpmManagerStatus value);
19 std::string GetProtoDebugStringWithIndent(NvramResult value, int indent_size);
20 std::string GetProtoDebugString(NvramResult value);
21 std::string GetProtoDebugStringWithIndent(NvramSpaceAttribute value,
23 std::string GetProtoDebugString(NvramSpaceAttribute value);
24 std::string GetProtoDebugStringWithIndent(NvramSpacePolicy value,
26 std::string GetProtoDebugString(NvramSpacePolicy value);
27 std::string GetProtoDebugStringWithIndent(const NvramPolicyRecord& value,
29 std::string GetProtoDebugString(const NvramPolicyRecord& value);
[all …]
/system/update_engine/
Domaha_request_params.h58 const std::string& in_os_platform, in OmahaRequestParams()
59 const std::string& in_os_version, in OmahaRequestParams()
60 const std::string& in_os_sp, in OmahaRequestParams()
61 const std::string& in_os_board, in OmahaRequestParams()
62 const std::string& in_app_id, in OmahaRequestParams()
63 const std::string& in_app_version, in OmahaRequestParams()
64 const std::string& in_app_lang, in OmahaRequestParams()
65 const std::string& in_target_channel, in OmahaRequestParams()
66 const std::string& in_hwid, in OmahaRequestParams()
67 const std::string& in_fw_version, in OmahaRequestParams()
[all …]
/system/tpm/trunks/
Dmock_tpm_utility.h37 MOCK_METHOD1(AllocatePCR, TPM_RC(const std::string&));
39 TPM_RC(const std::string&,
40 const std::string&,
41 const std::string&));
42 MOCK_METHOD2(StirRandom, TPM_RC(const std::string&, AuthorizationDelegate*));
44 TPM_RC(size_t, AuthorizationDelegate*, std::string*));
46 TPM_RC(int, const std::string&, AuthorizationDelegate*));
47 MOCK_METHOD2(ReadPCR, TPM_RC(int, std::string*));
52 const std::string&,
54 std::string*));
[all …]
Dtpm_generated.h1659 std::string* buffer);
1661 TRUNKS_EXPORT TPM_RC Parse_uint8_t(std::string* buffer,
1663 std::string* value_bytes);
1665 TRUNKS_EXPORT TPM_RC Serialize_int8_t(const int8_t& value, std::string* buffer);
1667 TRUNKS_EXPORT TPM_RC Parse_int8_t(std::string* buffer,
1669 std::string* value_bytes);
1671 TRUNKS_EXPORT TPM_RC Serialize_int(const int& value, std::string* buffer);
1673 TRUNKS_EXPORT TPM_RC Parse_int(std::string* buffer,
1675 std::string* value_bytes);
1678 std::string* buffer);
[all …]
/system/tools/aidl/tests/
Dfake_io_delegate.h40 std::unique_ptr<std::string> GetFileContents(
41 const std::string& filename,
42 const std::string& append_content_suffix = "") const override;
44 const std::string& file_path) const override;
45 bool FileIsReadable(const std::string& path) const override;
47 const std::string& base_dir,
48 const std::vector<std::string>& nested_subdirs) const override;
50 const std::string& file_path) const override;
51 void RemovePath(const std::string& file_path) const override;
54 void SetFileContents(const std::string& filename,
[all …]
/system/bt/osi/include/
Dconfig.h29 std::string key;
30 std::string value;
34 std::string name;
61 bool config_has_section(const config_t& config, const std::string& section);
65 bool config_has_key(const config_t& config, const std::string& section,
66 const std::string& key);
71 int config_get_int(const config_t& config, const std::string& section,
72 const std::string& key, int def_value);
77 uint64_t config_get_uint64(const config_t& config, const std::string& section,
78 const std::string& key, uint64_t def_value);
[all …]
/system/core/base/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()
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&);
61 bool StartsWith(const std::string& s, const char* prefix);
62 bool StartsWithIgnoreCase(const std::string& s, const char* prefix);
[all …]
/system/tpm/attestation/server/
Dpkcs11_key_store.h51 bool Read(const std::string& username,
52 const std::string& key_name,
53 std::string* key_data) override;
54 bool Write(const std::string& username,
55 const std::string& key_name,
56 const std::string& key_data) override;
57 bool Delete(const std::string& username,
58 const std::string& key_name) override;
59 bool DeleteByPrefix(const std::string& username,
60 const std::string& key_prefix) override;
[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/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/bt/btif/include/
Dbtif_config.h33 bool btif_config_exist(const std::string& section, const std::string& key);
34 bool btif_config_get_int(const std::string& section, const std::string& key,
36 bool btif_config_set_int(const std::string& section, const std::string& key,
38 bool btif_config_get_uint64(const std::string& section, const std::string& key,
40 bool btif_config_set_uint64(const std::string& section, const std::string& key,
42 bool btif_config_get_str(const std::string& section, const std::string& key,
44 bool btif_config_set_str(const std::string& section, const std::string& key,
45 const std::string& value);
46 bool btif_config_get_bin(const std::string& section, const std::string& key,
48 bool btif_config_set_bin(const std::string& section, const std::string& key,
[all …]
/system/libvintf/include/vintf/
DVintfObject.h109 static int32_t CheckCompatibility(const std::vector<std::string>& packageInfo,
110 std::string* error = nullptr,
123 using ListInstances = std::function<std::vector<std::pair<std::string, Version>>(
124 const std::string& package, Version version, const std::string& interface,
125 const std::vector<std::string>& hintInstances)>;
139 std::string* error = nullptr);
149 static int32_t CheckDeprecation(std::string* error = nullptr);
154 std::string* error = nullptr);
156 std::string* error = nullptr);
157 static status_t FetchDeviceHalManifest(HalManifest* out, std::string* error = nullptr);
[all …]
/system/tools/hidl/
DVectorType.h34 std::string templatedTypeName() const override;
41 std::string getCppType(
45 std::string getJavaType(bool forInitializer) const override;
47 std::string getVtsType() const override;
48 std::string getVtsValueName() const override;
52 const std::string &name,
53 const std::string &parcelObj,
61 const std::string &name,
62 const std::string &sanitizedName,
64 const std::string &parcelObj,
[all …]

12345678910>>...66