/system/core/libutils/include/utils/ |
D | String8.h | 39 class String8 50 String8(); 51 explicit String8(StaticLinkage); 52 String8(const String8& o); 53 explicit String8(const char* o); 54 explicit String8(const char* o, size_t numChars); 56 explicit String8(const String16& o); 57 explicit String8(const char16_t* o); 58 explicit String8(const char16_t* o, size_t numChars); 59 explicit String8(const char32_t* o); [all …]
|
D | PropertyMap.h | 60 void addProperty(const String8& key, const String8& value); 63 bool hasProperty(const String8& key) const; 69 bool tryGetProperty(const String8& key, String8& outValue) const; 70 bool tryGetProperty(const String8& key, bool& outValue) const; 71 bool tryGetProperty(const String8& key, int32_t& outValue) const; 72 bool tryGetProperty(const String8& key, float& outValue) const; 78 inline const KeyedVector<String8, String8>& getProperties() const { return mProperties; } in getProperties() 81 static status_t load(const String8& filename, PropertyMap** outMap); 97 status_t parseModifier(const String8& token, int32_t* outMetaState); 101 KeyedVector<String8, String8> mProperties;
|
D | Tokenizer.h | 31 Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, 43 static status_t open(const String8& filename, Tokenizer** outTokenizer); 51 static status_t fromContents(const String8& filename, 67 inline String8 getFilename() const { return mFilename; } in getFilename() 78 String8 getLocation() const; 89 String8 peekRemainderOfLine() const; 104 String8 nextToken(const char* delimiters); 121 String8 mFilename;
|
D | CallStack.h | 73 String8 toString(const char* prefix = nullptr) const; 138 static String8 ALWAYS_INLINE stackToString(const char* prefix = nullptr, 143 return String8::format("%s<CallStack package not linked>", (prefix ? prefix : "")); 147 static String8 ALWAYS_INLINE stackToString(const char* prefix = nullptr, 149 return String8::format("%s<CallStack package not linked>", (prefix ? prefix : "")); 158 static String8 CALLSTACK_WEAK stackToStringInternal(const char* prefix, const CallStack* stack); 164 Vector<String8> mFrameLines;
|
D | Printer.h | 85 class String8; variable 93 String8Printer(String8* target, const char* prefix = nullptr); 99 String8* mTarget;
|
D | ProcessCallStack.h | 52 String8 toString(const char* prefix = nullptr) const; 68 String8 threadName;
|
/system/core/libutils/ |
D | String8.cpp | 123 String8::String8() in String8() function in android::String8 128 String8::String8(StaticLinkage) in String8() function in android::String8 141 String8::String8(const String8& o) in String8() function in android::String8 147 String8::String8(const char* o) in String8() function in android::String8 155 String8::String8(const char* o, size_t len) in String8() function in android::String8 163 String8::String8(const String16& o) in String8() function in android::String8 168 String8::String8(const char16_t* o) in String8() function in android::String8 173 String8::String8(const char16_t* o, size_t len) in String8() function in android::String8 178 String8::String8(const char32_t* o) in String8() function in android::String8 183 String8::String8(const char32_t* o, size_t len) in String8() function in android::String8 [all …]
|
D | String8_test.cpp | 36 String8 tmp("Hello, world!"); in TEST_F() 42 String8 src1("Hello, "); in TEST_F() 46 String8 dst1 = src1 + ccsrc2; in TEST_F() 52 String8 ssrc2("world!"); in TEST_F() 53 String8 dst2 = src1 + ssrc2; in TEST_F() 60 String8 src1("My voice"); in TEST_F() 63 String8 src2(" is my passport."); in TEST_F() 78 EXPECT_EQ(NO_MEMORY, String8("").setTo(in, SIZE_MAX)); in TEST_F() 86 String8 string8(string16); in TEST_F() 95 String8 string8(string32); in TEST_F()
|
D | PropertyMap.cpp | 46 void PropertyMap::addProperty(const String8& key, const String8& value) { in addProperty() 50 bool PropertyMap::hasProperty(const String8& key) const { in hasProperty() 54 bool PropertyMap::tryGetProperty(const String8& key, String8& outValue) const { in tryGetProperty() 64 bool PropertyMap::tryGetProperty(const String8& key, bool& outValue) const { in tryGetProperty() 74 bool PropertyMap::tryGetProperty(const String8& key, int32_t& outValue) const { in tryGetProperty() 75 String8 stringValue; in tryGetProperty() 91 bool PropertyMap::tryGetProperty(const String8& key, float& outValue) const { in tryGetProperty() 92 String8 stringValue; in tryGetProperty() 114 status_t PropertyMap::load(const String8& filename, PropertyMap** outMap) { in load() 169 String8 keyToken = mTokenizer->nextToken(WHITESPACE_OR_PROPERTY_DELIMITER); in parse() [all …]
|
D | Tokenizer.cpp | 34 Tokenizer::Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, in Tokenizer() 48 status_t Tokenizer::open(const String8& filename, Tokenizer** outTokenizer) { in open() 99 status_t Tokenizer::fromContents(const String8& filename, in fromContents() 106 String8 Tokenizer::getLocation() const { in getLocation() 107 String8 result; in getLocation() 112 String8 Tokenizer::peekRemainderOfLine() const { in peekRemainderOfLine() 122 return String8(mCurrent, eol - mCurrent); in peekRemainderOfLine() 125 String8 Tokenizer::nextToken(const char* delimiters) { in nextToken() 138 return String8(tokenStart, mCurrent - tokenStart); in nextToken()
|
D | ProcessCallStack.cpp | 77 static String8 getThreadName(pid_t tid) { in getThreadName() 93 return String8::format("[err-unknown-tid-%d]", tid); in getThreadName() 99 return String8(procName); in getThreadName() 102 static String8 getTimeString(struct tm tm) { in getTimeString() 107 return String8(timestr); in getTimeString() 214 const String8& threadName = threadInfo.threadName; in printInternal() 236 String8 ProcessCallStack::toString(const char* prefix) const { in toString() 238 String8 dest; in toString()
|
D | CallStack.cpp | 49 mFrameLines.push_back(String8(backtrace->FormatFrameData(i).c_str())); in update() 63 String8 CallStack::toString(const char* prefix) const { in toString() 64 String8 str; in toString() 94 String8 CallStack::stackToStringInternal(const char* prefix, const CallStack* stack) { in stackToStringInternal()
|
/system/core/healthd/include/healthd/ |
D | healthd.h | 60 android::String8 batteryStatusPath; 61 android::String8 batteryHealthPath; 62 android::String8 batteryPresentPath; 63 android::String8 batteryCapacityPath; 64 android::String8 batteryVoltagePath; 65 android::String8 batteryTemperaturePath; 66 android::String8 batteryTechnologyPath; 67 android::String8 batteryCurrentNowPath; 68 android::String8 batteryCurrentAvgPath; 69 android::String8 batteryChargeCounterPath; [all …]
|
D | BatteryMonitor.h | 49 Vector<String8> mChargerNames; 57 int readFromFile(const String8& path, std::string* buf); 58 PowerSupplyType readPowerSupplyType(const String8& path); 59 bool getBooleanField(const String8& path); 60 int getIntField(const String8& path);
|
/system/update_engine/client_library/ |
D | client_binder.cc | 31 using android::String8; 79 StringToUpdateStatus(String8{status.current_operation_}.string(), in GetStatus() 81 *out_new_version = String8{status.new_version_}.string(); in GetStatus() 96 *out_cohort_hint = String8{out_as_string16}.string(); in GetCohortHint() 128 *rollback_partition = String8{out_as_string16}.string(); in GetRollbackPartition() 138 *prev_version = String8{out_as_string16}.string(); in GetPrevVersion() 159 StringToUpdateStatus(String8{status.current_operation_}.string(), in HandleStatusUpdate() 166 String8{status.new_version_}.string(), in HandleStatusUpdate() 228 *out_channel = String8{out_as_string16}.string(); in GetTargetChannel() 238 *out_channel = String8{out_as_string16}.string(); in GetChannel()
|
/system/bt/service/common/android/bluetooth/ |
D | scan_filter.cc | 26 using android::String8; 36 parcel->writeString16(String16(String8(device_name_.c_str()))); in writeToParcel() 39 status = parcel->writeString16(String16(String8(device_address_.c_str()))); in writeToParcel() 73 device_name_ = std::string(String8(name).string()); in readFromParcel() 78 device_address_ = std::string(String8(addr).string()); in readFromParcel()
|
D | bluetooth_avrcp_media_attr.cc | 24 using android::String8; 59 title_ = String8(title).string(); in readFromParcel() 64 artist_ = String8(artist).string(); in readFromParcel() 69 album_ = String8(album).string(); in readFromParcel() 74 genre_ = String8(genre).string(); in readFromParcel()
|
D | scan_result.cc | 26 using android::String8; 36 parcel->writeString16(String16(String8(device_address_.c_str()))); in writeToParcel() 50 device_address_ = std::string(String8(addr).string()); in readFromParcel()
|
D | bluetooth_remote_device_props.cc | 26 using android::String8; 63 name_ = String8(name).string(); in readFromParcel() 68 address_ = String8(address).string(); in readFromParcel()
|
D | bluetooth_avrcp_string_value.cc | 24 using android::String8; 48 value_ = String8(value).string(); in readFromParcel()
|
/system/security/keystore/ |
D | user_state.h | 63 ResponseCode initialize(const android::String8& pw); 67 ResponseCode writeMasterKey(const android::String8& pw); 68 ResponseCode readMasterKey(const android::String8& pw); 87 void generateKeyFromPassword(std::vector<uint8_t>& key, const android::String8& pw,
|
/system/bt/binder/android/bluetooth/ |
D | bluetooth_device.cc | 25 using android::String8; 41 RawAddress::FromString(String8(tmp).string(), address); in readFromParcel()
|
/system/apex/apexd/ |
D | apexservice.cpp | 98 String8(tmp.c_str())); in CheckDebuggable() 135 String8(res.ErrorMessage().c_str())); in stagePackages() 149 String8(res.ErrorMessage().c_str())); in unstagePackages() 202 String8(ret.ErrorMessage().c_str())); in markStagedSessionSuccessful() 339 String8(res.ErrorMessage().c_str())); in activatePackage() 361 String8(res.ErrorMessage().c_str())); in deactivatePackage() 435 String8(res.ErrorMessage().c_str())); in preinstallPackages() 454 String8(res.ErrorMessage().c_str())); in postinstallPackages() 462 String8(res.ErrorMessage().c_str())); in abortActiveSession() 477 String8(res.ErrorMessage().c_str())); in rollbackActiveSession() [all …]
|
/system/bt/service/ipc/binder/ |
D | ipc_handler_binder.cc | 31 using android::String8; 51 String16(String8(kServiceName.c_str())), bt_server); in Run()
|
D | bluetooth_avrcp_target_binder_server.cc | 63 using android::String8; 125 String8(addr).string(), play_status, song_len, song_pos)); in GetPlayStatusResponse() 133 avrcp_target->ListPlayerAppAttrResponse(String8(addr).string(), attrs)); in ListPlayerAppAttrResponse() 146 TRY_RET_FUNC(avrcp_target->GetPlayerAppValueResponse(String8(addr).string(), in GetPlayerAppValueResponse() 161 String8(addr).string(), non_binder)); in GetPlayerAppAttrTextResponse() 175 String8(addr).string(), non_binder)); in GetPlayerAppValueTextResponse() 189 avrcp_target->GetElementAttrResponse(String8(addr).string(), non_binder)); in GetElementAttrResponse() 195 TRY_RET_FUNC(avrcp_target->SetPlayerAppValueResponse(String8(addr).string(), in SetPlayerAppValueResponse()
|