/system/vold/ |
D | Utils.h | 43 status_t CreateDeviceNode(const std::string& path, dev_t dev); 44 status_t DestroyDeviceNode(const std::string& path); 47 status_t PrepareDir(const std::string& path, mode_t mode, uid_t uid, gid_t gid); 50 status_t ForceUnmount(const std::string& path); 53 status_t BindMount(const std::string& source, const std::string& target); 56 status_t ReadMetadata(const std::string& path, std::string& fsType, 57 std::string& fsUuid, std::string& fsLabel); 60 status_t ReadMetadataUntrusted(const std::string& path, std::string& fsType, 61 std::string& fsUuid, std::string& fsLabel); 64 status_t ForkExecvp(const std::vector<std::string>& args); [all …]
|
D | Disk.h | 40 Disk(const std::string& eventPath, dev_t device, const std::string& nickname, int flags); 57 const std::string& getId() { return mId; } in getId() 58 const std::string& getEventPath() { return mEventPath; } in getEventPath() 59 const std::string& getSysPath() { return mSysPath; } in getSysPath() 60 const std::string& getDevPath() { return mDevPath; } in getDevPath() 63 const std::string& getLabel() { return mLabel; } in getLabel() 66 std::shared_ptr<VolumeBase> findVolume(const std::string& id); 68 void listVolumes(VolumeBase::Type type, std::list<std::string>& list); 83 void notifyEvent(int msg, const std::string& value); 87 std::string mId; [all …]
|
D | VolumeBase.h | 77 const std::string& getId() { return mId; } in getId() 78 const std::string& getDiskId() { return mDiskId; } in getDiskId() 79 const std::string& getPartGuid() { return mPartGuid; } in getPartGuid() 84 const std::string& getPath() { return mPath; } in getPath() 85 const std::string& getInternalPath() { return mInternalPath; } in getInternalPath() 87 status_t setDiskId(const std::string& diskId); 88 status_t setPartGuid(const std::string& partGuid); 96 std::shared_ptr<VolumeBase> findVolume(const std::string& id); 102 status_t format(const std::string& fsType); 111 virtual status_t doFormat(const std::string& fsType); [all …]
|
D | Utils.cpp | 60 status_t CreateDeviceNode(const std::string& path, dev_t dev) { in CreateDeviceNode() 88 status_t DestroyDeviceNode(const std::string& path) { in DestroyDeviceNode() 97 status_t PrepareDir(const std::string& path, mode_t mode, uid_t uid, gid_t gid) { in PrepareDir() 121 status_t ForceUnmount(const std::string& path) { in ForceUnmount() 155 status_t BindMount(const std::string& source, const std::string& target) { in BindMount() 163 static status_t readMetadata(const std::string& path, std::string& fsType, in readMetadata() 164 std::string& fsUuid, std::string& fsLabel, bool untrusted) { in readMetadata() 169 std::vector<std::string> cmd; in readMetadata() 181 std::vector<std::string> output; in readMetadata() 211 status_t ReadMetadata(const std::string& path, std::string& fsType, in ReadMetadata() [all …]
|
D | PrivateVolume.h | 40 PrivateVolume(dev_t device, const std::string& keyRaw); 48 status_t doFormat(const std::string& fsType) override; 56 std::string mRawDevPath; 58 std::string mDmDevPath; 60 std::string mPath; 63 std::string mKeyRaw; 66 std::string mFsType; 68 std::string mFsUuid; 70 std::string mFsLabel;
|
D | PublicVolume.h | 50 status_t doFormat(const std::string& fsType) override; 59 std::string mDevPath; 61 std::string mRawPath; 63 std::string mFuseDefault; 64 std::string mFuseRead; 65 std::string mFuseWrite; 71 std::string mFsType; 73 std::string mFsUuid; 75 std::string mFsLabel;
|
D | EmulatedVolume.h | 40 EmulatedVolume(const std::string& rawPath); 41 EmulatedVolume(const std::string& rawPath, dev_t device, const std::string& fsUuid); 49 std::string mRawPath; 50 std::string mLabel; 52 std::string mFuseDefault; 53 std::string mFuseRead; 54 std::string mFuseWrite;
|
D | Ext4Crypt.cpp | 33 std::string master_key; 34 std::string password; 37 std::map<std::string, keys> s_key_store; 84 && props.Set<std::string>(tag::crypto_type_name, in put_crypt_ftr_and_key() 85 … std::string(reinterpret_cast<const char*>(crypt_ftr.crypto_type_name))) in put_crypt_ftr_and_key() 86 && props.Set<std::string>(tag::master_key, in put_crypt_ftr_and_key() 87 std::string((const char*) crypt_ftr.master_key, in put_crypt_ftr_and_key() 89 && props.Set<std::string>(tag::salt, in put_crypt_ftr_and_key() 90 std::string((const char*) crypt_ftr.salt, in put_crypt_ftr_and_key() 96 && props.Set<std::string>(tag::keymaster_blob, in put_crypt_ftr_and_key() [all …]
|
/system/keymaster/ |
D | android_keymaster_test_utils.h | 43 std::string hex2str(std::string); 93 bool contains(const AuthorizationSet& set, TypedTag<KM_BYTES, Tag> tag, const std::string& val) { in contains() 96 std::string(reinterpret_cast<const char*>(set[pos].blob.data), in contains() 101 bool contains(const AuthorizationSet& set, TypedTag<KM_BIGNUM, Tag> tag, const std::string& val) { in contains() 104 std::string(reinterpret_cast<const char*>(set[pos].blob.data), in contains() 142 inline std::string make_string(const uint8_t* data, size_t length) { in make_string() 143 return std::string(reinterpret_cast<const char*>(data), length); in make_string() 146 template <size_t N> std::string make_string(const uint8_t(&a)[N]) { in make_string() 179 keymaster_key_format_t format, const std::string& key_material); 181 keymaster_error_t ExportKey(keymaster_key_format_t format, std::string* export_data); [all …]
|
D | android_keymaster_test_utils.cpp | 28 using std::string; 117 string hex2str(string a) { in hex2str() 118 string b; in hex2str() 183 const string& key_material) { in ImportKey() 237 keymaster_error_t Keymaster1Test::UpdateOperation(const string& message, string* output, in UpdateOperation() 252 const string& message, in UpdateOperation() 253 AuthorizationSet* output_params, string* output, in UpdateOperation() 270 keymaster_error_t Keymaster1Test::FinishOperation(string* output) { in FinishOperation() 274 keymaster_error_t Keymaster1Test::FinishOperation(const string& signature, string* output) { in FinishOperation() 281 const string& signature, in FinishOperation() [all …]
|
D | android_keymaster_test.cpp | 33 using std::string; 525 string message = "12345678901234567890123456789012"; in TEST_P() 526 string signature; in TEST_P() 539 string message(1024, 'a'); in TEST_P() 540 string signature; in TEST_P() 552 string message = "12345678901234567890123456789012"; in TEST_P() 553 string signature; in TEST_P() 566 string message(1024, 'a'); in TEST_P() 567 string signature; in TEST_P() 579 string message(53, 'a'); in TEST_P() [all …]
|
/system/bt/btcore/src/ |
D | uuid.c | 31 char string[0]; member 54 return (const char *)uuid_string->string; in uuid_string_data() 134 char *string = uuid_string->string; in uuid_to_string() local 137 string += sprintf(string, "%02x", uuid->uu[i]); in uuid_to_string() 139 string += sprintf(string, "-"); in uuid_to_string() 141 string += sprintf(string, "%02x", uuid->uu[i]); in uuid_to_string() 143 string += sprintf(string, "-"); in uuid_to_string() 145 string += sprintf(string, "%02x", uuid->uu[i]); in uuid_to_string() 147 string += sprintf(string, "-"); in uuid_to_string() 149 string += sprintf(string, "%02x", uuid->uu[i]); in uuid_to_string() [all …]
|
D | bdaddr.c | 47 const char *bdaddr_to_string(const bt_bdaddr_t *addr, char *string, size_t size) { in bdaddr_to_string() argument 49 assert(string != NULL); in bdaddr_to_string() 55 sprintf(string, "%02x:%02x:%02x:%02x:%02x:%02x", in bdaddr_to_string() 58 return string; in bdaddr_to_string() 61 bool string_is_bdaddr(const char *string) { in string_is_bdaddr() argument 62 assert(string != NULL); in string_is_bdaddr() 64 size_t len = strlen(string); in string_is_bdaddr() 70 if (((i + 1) % 3) == 0 && string[i] != ':') in string_is_bdaddr() 74 if (((i + 1) % 3) != 0 && !isxdigit(string[i])) in string_is_bdaddr() 80 bool string_to_bdaddr(const char *string, bt_bdaddr_t *addr) { in string_to_bdaddr() argument [all …]
|
/system/core/adb/ |
D | adb_client.h | 12 int adb_connect(const std::string& service, std::string* error); 13 int _adb_connect(const std::string& service, std::string* error); 18 int adb_command(const std::string& service, std::string* error); 22 bool adb_query(const std::string& service, std::string* result, std::string* error); 51 bool adb_status(int fd, std::string* error);
|
/system/extras/simpleperf/ |
D | command.h | 27 Command(const std::string& name, const std::string& short_help_string, in Command() 28 const std::string& long_help_string) in Command() 37 const std::string& Name() const { in Name() 41 const std::string& ShortHelpString() const { in ShortHelpString() 45 const std::string LongHelpString() const { in LongHelpString() 49 virtual bool Run(const std::vector<std::string>& args) = 0; 51 static Command* FindCommandByName(const std::string& cmd_name); 55 const std::string name_; 56 const std::string short_help_string_; 57 const std::string long_help_string_;
|
/system/core/base/ |
D | strings.cpp | 31 std::vector<std::string> Split(const std::string& s, in Split() 32 const std::string& delimiters) { in Split() 35 std::vector<std::string> result; in Split() 48 std::string Trim(const std::string& s) { in Trim() 49 std::string result; in Trim() 83 std::string Join(const std::vector<StringT>& strings, char separator) { in Join() 88 std::string result(strings[0]); in Join() 97 template std::string Join<std::string>(const std::vector<std::string>& strings, 99 template std::string Join<const char*>(const std::vector<const char*>& strings, 102 bool StartsWith(const std::string& s, const char* prefix) { in StartsWith() [all …]
|
/system/extras/perfprofd/tests/ |
D | perfprofd_test.cc | 49 static std::string test_dir; 50 static std::string dest_dir; 58 static std::string encoded_file_path(int seq) in encoded_file_path() 90 std::string cmd("rm -rf "); in create_dest_dir() 94 std::string cmd("mkdir -p "); in create_dest_dir() 103 std::string s(executable_path); in setup_dirs() 121 static std::string squeezeWhite(const std::string &str, in squeezeWhite() 126 std::string result(str); in squeezeWhite() 154 void addToConfig(const std::string &line) in addToConfig() 162 std::string semaphore(test_dir); in remove_semaphore_file() [all …]
|
/system/core/libutils/ |
D | Printer.cpp | 75 void LogPrinter::printLine(const char* string) { in printLine() argument 76 if (string == NULL) { in printLine() 81 if (mIgnoreBlankLines || (*string)) { in printLine() 83 printRaw(string); in printLine() 90 void LogPrinter::printRaw(const char* string) { in printRaw() argument 91 __android_log_print(mPriority, mLogTag, "%s%s", mPrefix, string); in printRaw() 109 void FdPrinter::printLine(const char* string) { in printLine() argument 110 if (string == NULL) { in printLine() 119 dprintf(mFd, mFormatString, mPrefix, string); in printLine() 135 void String8Printer::printLine(const char* string) { in printLine() argument [all …]
|
D | PropertyMap.cpp | 85 int value = strtol(stringValue.string(), & end, 10); in tryGetProperty() 88 key.string(), stringValue.string()); in tryGetProperty() 102 float value = strtof(stringValue.string(), & end); in tryGetProperty() 105 key.string(), stringValue.string()); in tryGetProperty() 124 ALOGE("Error %d opening property file %s.", status, filename.string()); in load() 139 tokenizer->getFilename().string(), tokenizer->getLineNumber(), in load() 166 ALOGD("Parsing %s: '%s'.", mTokenizer->getLocation().string(), in parse() 167 mTokenizer->peekRemainderOfLine().string()); in parse() 175 ALOGE("%s: Expected non-empty property key.", mTokenizer->getLocation().string()); in parse() 183 mTokenizer->getLocation().string()); in parse() [all …]
|
/system/core/libutils/tests/ |
D | String8_test.cpp | 37 EXPECT_STREQ(tmp.string(), "Hello, world!"); in TEST_F() 46 EXPECT_STREQ(dst1.string(), "Hello, world!"); in TEST_F() 47 EXPECT_STREQ(src1.string(), "Hello, "); in TEST_F() 53 EXPECT_STREQ(dst2.string(), "Hello, world!"); in TEST_F() 54 EXPECT_STREQ(src1.string(), "Hello, "); in TEST_F() 55 EXPECT_STREQ(ssrc2.string(), "world!"); in TEST_F() 64 EXPECT_STREQ(src1.string(), "My voice is my passport."); in TEST_F() 65 EXPECT_STREQ(src2.string(), " is my passport."); in TEST_F() 70 EXPECT_STREQ(src1.string(), "My voice is my passport. Verify me."); in TEST_F() 71 EXPECT_STREQ(src2.string(), " is my passport."); in TEST_F()
|
/system/extras/perfprofd/quipper/base/ |
D | logging.cc | 48 template std::string* MakeCheckOpString<int, int>( 50 template std::string* MakeCheckOpString<unsigned long, unsigned long>( 52 template std::string* MakeCheckOpString<unsigned long, unsigned int>( 54 template std::string* MakeCheckOpString<unsigned int, unsigned long>( 56 template std::string* MakeCheckOpString<std::string, std::string>( 57 const std::string&, const std::string&, const char* name); 65 LogMessage::LogMessage(const char* file, int line, std::string* result) in LogMessage() 73 std::string* result) in LogMessage() 82 std::string str_newline(stream_.str()); in ~LogMessage()
|
/system/core/base/include/base/ |
D | strings.h | 31 std::vector<std::string> Split(const std::string& s, 32 const std::string& delimiters); 35 std::string Trim(const std::string& s); 39 std::string Join(const std::vector<StringT>& strings, char separator); 42 bool StartsWith(const std::string& s, const char* prefix); 45 bool EndsWith(const std::string& s, const char* suffix);
|
D | file.h | 26 bool ReadFdToString(int fd, std::string* content); 27 bool ReadFileToString(const std::string& path, std::string* content); 29 bool WriteStringToFile(const std::string& content, const std::string& path); 30 bool WriteStringToFd(const std::string& content, int fd); 33 bool WriteStringToFile(const std::string& content, const std::string& path,
|
/system/extras/perfprofd/quipper/ |
D | perf_utils.h | 39 bool FileToBuffer(const string& filename, std::vector<char>* contents); 42 bool BufferToFile(const string& filename, const CharContainer& contents) { in BufferToFile() 59 uint64_t Md5Prefix(const string& input); 63 string HexToString(const u8* array, size_t length); 68 bool StringToHex(const string& str, u8* array, size_t length); 90 size_t GetUint64AlignedStringLength(const string& str); 93 bool FileExists(const string& filename); 97 bool ReadFileToData(const string& filename, std::vector<char>* data); 101 bool WriteDataToFile(const std::vector<char>& data, const string& filename); 105 bool RunCommandAndGetStdout(const string& command, std::vector<char>* output); [all …]
|
/system/vold/fs/ |
D | Ext4.h | 30 status_t Check(const std::string& source, const std::string& target); 31 status_t Mount(const std::string& source, const std::string& target, bool ro, 33 status_t Format(const std::string& source, unsigned int numSectors, 34 const std::string& target); 35 status_t Resize(const std::string& source, unsigned int numSectors);
|