/system/core/init/ |
D | service.h | 62 ServiceEnvironmentInfo(const std::string& name, const std::string& value); 63 std::string name; 64 std::string value; 69 Service(const std::string& name, const std::vector<std::string>& args); 71 Service(const std::string& name, unsigned flags, uid_t uid, gid_t gid, 72 const std::vector<gid_t>& supp_gids, const CapSet& capabilities, 73 unsigned namespace_flags, const std::string& seclabel, 74 const std::vector<std::string>& args); 77 bool ParseLine(const std::vector<std::string>& args, std::string* err); 78 bool ExecStart(std::unique_ptr<Timer>* exec_waiter); [all …]
|
D | action.h | 31 Command(BuiltinFunction f, const std::vector<std::string>& args, 32 const std::string& filename, int line); 35 std::string BuildCommandString() const; 36 std::string BuildSourceString() const; 40 std::vector<std::string> args_; 41 std::string filename_; 49 bool AddCommand(const std::vector<std::string>& args, 50 const std::string& filename, int line, std::string* err); 52 const std::vector<std::string>& args, 53 const std::string& filename = "", int line = 0); [all …]
|
/system/tools/hidl/utils/include/hidl-util/ |
D | StringHelper.h | 44 static std::string Uppercase(const std::string &in); 46 static std::string Lowercase(const std::string &in); 48 static std::string Capitalize(const std::string &in); 51 static std::string ToCamelCase(const std::string &in); 52 static std::string ToPascalCase(const std::string &in); 53 static std::string ToUpperSnakeCase(const std::string &in); 54 static std::string ToLowerSnakeCase(const std::string &in); 55 static std::string ToCase(Case c, const std::string &in); 57 static bool EndsWith(const std::string &in, const std::string &suffix); 58 static bool StartsWith(const std::string &in, const std::string &prefix); [all …]
|
D | FQName.h | 29 explicit FQName(const std::string &s); 31 FQName(const std::string &package, 32 const std::string &version, 33 const std::string &name, 34 const std::string &valueName = ""); 37 FQName(const std::vector<std::string> &names); 43 bool setTo(const std::string &s); 46 const std::string &defaultPackage, 47 const std::string &defaultVersion); 49 std::string package() const; [all …]
|
/system/bt/vendor_libs/test_vendor_lib/include/ |
D | dual_mode_controller.h | 50 explicit Properties(const std::string& file_name); 55 const std::vector<uint8_t>& GetLocalVersionInformation() const; 58 const std::vector<uint8_t>& GetLocalSupportedCommands() const { in GetLocalSupportedCommands() 93 const std::vector<uint8_t>& GetSupportedCodecs() const { in GetSupportedCodecs() 97 const std::vector<uint32_t>& GetVendorSpecificCodecs() const { in GetVendorSpecificCodecs() 101 const std::string& GetLocalName() const { return local_name_; } in GetLocalName() 130 const std::vector<uint8_t>& GetLeVendorCap() const { in GetLeVendorCap() 147 std::vector<uint8_t> supported_codecs_; 148 std::vector<uint32_t> vendor_specific_codecs_; 149 std::vector<uint8_t> local_supported_commands_; [all …]
|
/system/tpm/attestation/common/ |
D | crypto_utility_impl.h | 38 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 …]
|
D | mock_tpm_utility.h | 36 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 …]
|
D | mock_crypto_utility.h | 33 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 …]
|
D | print_interface_proto.h | 28 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 …]
|
D | crypto_utility.h | 32 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 …]
|
/system/tools/aidl/tests/ |
D | fake_io_delegate.h | 40 std::unique_ptr<std::string> GetFileContents( 41 const std::string& filename, 42 const std::string& append_content_suffix = "") const override; 43 std::unique_ptr<LineReader> GetLineReader( 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; 49 std::unique_ptr<CodeWriter> GetCodeWriter( 50 const std::string& file_path) const override; [all …]
|
/system/vold/ |
D | Utils.h | 46 status_t CreateDeviceNode(const std::string& path, dev_t dev); 47 status_t DestroyDeviceNode(const std::string& path); 50 status_t PrepareDir(const std::string& path, mode_t mode, uid_t uid, gid_t gid); 53 status_t ForceUnmount(const std::string& path); 56 status_t KillProcessesUsingPath(const std::string& path); 59 status_t BindMount(const std::string& source, const std::string& target); 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, 67 std::string& fsUuid, std::string& fsLabel); [all …]
|
/system/libvintf/ |
D | main.cpp | 26 std::cout << "======== Device HAL Manifest =========" << std::endl; in main() 30 std::cout << gHalManifestConverter(*vm); in main() 32 std::cout << "======== Framework HAL Manifest =========" << std::endl; in main() 36 std::cout << gHalManifestConverter(*fm); in main() 38 std::cout << "======== Device Compatibility Matrix =========" << std::endl; in main() 42 std::cout << gCompatibilityMatrixConverter(*vcm); in main() 44 std::cout << "======== Framework Compatibility Matrix =========" << std::endl; in main() 48 std::cout << gCompatibilityMatrixConverter(*fcm); in main() 50 std::cout << "======== Runtime Info =========" << std::endl; in main() 53 if (ki != nullptr) std::cout << dump(*ki); in main() [all …]
|
D | assemble_vintf.cpp | 39 static bool getFlag(const std::string& key, T* value) { in getFlag() 42 std::cerr << "Required " << key << " flag." << std::endl; in getFlag() 47 std::cerr << "Cannot parse " << envValue << "." << std::endl; in getFlag() 53 static std::string read(std::basic_istream<char>& is) { in read() 54 std::stringstream ss; in read() 59 std::basic_ostream<char>& out() const { in out() 60 return mOutFileRef == nullptr ? std::cout : *mOutFileRef; in out() 64 std::string error; in assembleHalManifest() 75 std::cerr << "FATAL ERROR: cannot generate a compatible matrix: " << error in assembleHalManifest() 76 << std::endl; in assembleHalManifest() [all …]
|
/system/tools/aidl/ |
D | aidl_language.h | 18 AidlToken(const std::string& text, const std::string& comments); 20 const std::string& GetText() const { return text_; } in GetText() 21 const std::string& GetComments() const { return comments_; } in GetComments() 24 std::string text_; 25 std::string comments_; 81 AidlType(const std::string& name, unsigned line, 82 const std::string& comments, bool is_array); 85 const std::string& GetName() const { return name_; } in GetName() 88 const std::string& GetComments() const { return comments_; } in GetComments() 90 std::string ToString() const; [all …]
|
D | ast_cpp.h | 54 ClassDecl(const std::string& name, 55 const std::string& parent); 56 ClassDecl(const std::string& name, 57 const std::string& parent, 58 std::vector<std::unique_ptr<Declaration>> public_members, 59 std::vector<std::unique_ptr<Declaration>> private_members); 64 void AddPublic(std::unique_ptr<Declaration> member); 65 void AddPrivate(std::unique_ptr<Declaration> member); 68 std::string name_; 69 std::string parent_; [all …]
|
/system/libvintf/include/vintf/ |
D | parse_string.h | 31 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, const ManifestHal &hal); 38 std::ostream &operator<<(std::ostream &os, const Version &ver); 39 std::ostream &operator<<(std::ostream &os, const VersionRange &vr); 40 std::ostream &operator<<(std::ostream &os, const VndkVersionRange &vr); [all …]
|
D | HalManifest.h | 52 Transport getTransport(const std::string &name, const Version &v, 53 const std::string &interfaceName, const std::string &instanceName) const; 60 std::set<Version> getSupportedVersions(const std::string &name) const; 68 std::set<std::string> getInstances( 69 const std::string &halName, const std::string &interfaceName) const; 72 bool hasInstance(const std::string &halName, 73 const std::string &interfaceName, const std::string &instanceName) const; 80 std::vector<std::string> checkIncompatibility(const CompatibilityMatrix &mat, 90 bool checkCompatibility(const CompatibilityMatrix &mat, std::string *error = nullptr) const; 99 std::set<std::string> getHalNames() const; [all …]
|
/system/tpm/tpm_manager/common/ |
D | print_tpm_manager_proto.h | 16 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/extras/simpleperf/ |
D | get_test_data.h | 24 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 …]
|
D | read_apk.h | 38 EmbeddedElf(std::string filepath, in EmbeddedElf() 39 std::string entry_name, in EmbeddedElf() 50 const std::string &filepath() const { return filepath_; } in filepath() 53 const std::string &entry_name() const { return entry_name_; } in entry_name() 62 std::string filepath_; // containing APK path 63 std::string entry_name_; // name of entry in zip index of embedded elf file 74 static EmbeddedElf* FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset); 75 static std::unique_ptr<EmbeddedElf> FindElfInApkByName(const std::string& apk_path, 76 const std::string& elf_filename); 79 static std::unique_ptr<EmbeddedElf> FindElfInApkByOffsetWithoutCache(const std::string& apk_path, [all …]
|
/system/tools/hidl/ |
D | Hash.cpp | 30 const Hash &Hash::getHash(const std::string &path) { in getHash() 31 static std::map<std::string, Hash> hashes; in getHash() 42 static std::vector<uint8_t> sha256File(const std::string &path) { in sha256File() 43 std::ifstream stream(path); in sha256File() 44 std::stringstream fileStream; in sha256File() 46 std::string fileContent = fileStream.str(); in sha256File() 48 std::vector<uint8_t> ret = std::vector<uint8_t>(SHA256_DIGEST_LENGTH); in sha256File() 56 Hash::Hash(const std::string &path) in Hash() 60 std::string Hash::hexString(const std::vector<uint8_t> &hash) { in hexString() 61 std::ostringstream s; in hexString() [all …]
|
/system/tools/hidl/utils/ |
D | StringHelper.cpp | 28 static const std::regex kStartUppercase("^" UPPERCASE); 29 static const std::regex kStartLowercase("^" LOWERCASE); 30 static const std::regex kStartCapcase("^" CAPCASE); 35 std::string StringHelper::Uppercase(const std::string &in) { in Uppercase() 36 std::string out{in}; in Uppercase() 46 std::string StringHelper::Lowercase(const std::string &in) { in Lowercase() 47 std::string out{in}; in Lowercase() 57 std::string StringHelper::Capitalize(const std::string &in) { in Capitalize() 58 std::string out{in}; in Capitalize() 68 void StringHelper::Tokenize(const std::string &in, in Tokenize() [all …]
|
/system/core/base/include/android-base/ |
D | strings.h | 32 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() 45 std::ostringstream result; in Join() 47 for (auto it = std::next(things.begin()); it != things.end(); ++it) { 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&); [all …]
|
/system/tpm/trunks/ |
D | mock_tpm_utility.h | 37 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 …]
|