Home
last modified time | relevance | path

Searched refs:String8 (Results 1 – 25 of 76) sorted by relevance

1234

/system/core/libutils/include/utils/
DString8.h40 class String8
43 String8();
44 String8(const String8& o);
45 explicit String8(const char* o);
46 explicit String8(const char* o, size_t numChars);
48 explicit String8(const String16& o);
49 explicit String8(const char16_t* o);
50 explicit String8(const char16_t* o, size_t numChars);
51 explicit String8(const char32_t* o);
52 explicit String8(const char32_t* o, size_t numChars);
[all …]
DTokenizer.h31 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;
DCallStack.h73 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;
DPrinter.h85 class String8; variable
93 String8Printer(String8* target, const char* prefix = nullptr);
99 String8* mTarget;
DProcessCallStack.h52 String8 toString(const char* prefix = nullptr) const;
68 String8 threadName;
/system/core/libutils/
DString8_fuzz.cpp29 void fuzzFormat(FuzzedDataProvider* dataProvider, android::String8* str1, bool shouldAppend);
30 std::vector<std::function<void(FuzzedDataProvider*, android::String8*, android::String8*)>>
33 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anondec5fe570102()
36 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anondec5fe570202()
39 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anondec5fe570302()
44 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anondec5fe570402()
47 [](FuzzedDataProvider*, android::String8* str1, android::String8* str2) -> void { in __anondec5fe570502()
50 [](FuzzedDataProvider*, android::String8* str1, android::String8* str2) -> void { in __anondec5fe570602()
51 const android::String8& constRef(*str2); in __anondec5fe570602()
56 [](FuzzedDataProvider*, android::String8* str1, android::String8* str2) -> void { in __anondec5fe570702()
[all …]
DString8.cpp125 String8::String8() in String8() function in android::String8
130 String8::String8(const String8& o) in String8() function in android::String8
136 String8::String8(const char* o) in String8() function in android::String8
144 String8::String8(const char* o, size_t len) in String8() function in android::String8
152 String8::String8(const String16& o) in String8() function in android::String8
157 String8::String8(const char16_t* o) in String8() function in android::String8
162 String8::String8(const char16_t* o, size_t len) in String8() function in android::String8
167 String8::String8(const char32_t* o) in String8() function in android::String8
170 String8::String8(const char32_t* o, size_t len) in String8() function in android::String8
175 String8::~String8() in ~String8()
[all …]
DString8_test.cpp37 String8 tmp("Hello, world!"); in TEST_F()
43 String8 src1("Hello, "); in TEST_F()
47 String8 dst1 = src1 + ccsrc2; in TEST_F()
53 String8 ssrc2("world!"); in TEST_F()
54 String8 dst2 = src1 + ssrc2; in TEST_F()
61 String8 src1("My voice"); in TEST_F()
64 String8 src2(" is my passport."); in TEST_F()
79 EXPECT_EQ(NO_MEMORY, String8("").setTo(in, SIZE_MAX)); in TEST_F()
87 String8 string8(string16); in TEST_F()
96 String8 string8(string32); in TEST_F()
[all …]
DTokenizer.cpp34 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()
DProcessCallStack.cpp77 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()
DCallStack.cpp49 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/
Dhealthd.h60 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 …]
DBatteryMonitor.h74 Vector<String8> mChargerNames;
80 int readFromFile(const String8& path, std::string* buf);
81 PowerSupplyType readPowerSupplyType(const String8& path);
82 bool getBooleanField(const String8& path);
83 int getIntField(const String8& path);
/system/bt/service/common/android/bluetooth/
Dscan_filter.cc26 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()
64 device_name_ = std::string(String8(name).string()); in readFromParcel()
69 device_address_ = std::string(String8(addr).string()); in readFromParcel()
Dbluetooth_avrcp_media_attr.cc24 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()
Dscan_result.cc26 using android::String8;
36 parcel->writeString16(String16(String8(device_address_.c_str()))); in writeToParcel()
50 device_address_ = std::string(String8(addr).string()); in readFromParcel()
Dbluetooth_remote_device_props.cc26 using android::String8;
63 name_ = String8(name).string(); in readFromParcel()
68 address_ = String8(address).string(); in readFromParcel()
Dbluetooth_avrcp_string_value.cc24 using android::String8;
48 value_ = String8(value).string(); in readFromParcel()
/system/apex/apexd/
Dapexservice.cpp61 String8(name.c_str())); in CheckCallerIsRoot()
130 String8(tmp.c_str())); in CheckDebuggable()
153 String8(res.error().message().c_str())); in stagePackages()
167 String8(res.error().message().c_str())); in unstagePackages()
184 String8(packages.error().message().c_str())); in submitStagedSession()
206 String8(success.error().message().c_str())); in markStagedSessionReady()
221 String8(ret.error().message().c_str())); in markStagedSessionSuccessful()
258 String8(res.error().message().c_str())); in reserveSpaceForCompressedApex()
393 String8(res.error().message().c_str())); in activatePackage()
414 String8(res.error().message().c_str())); in deactivatePackage()
[all …]
/system/security/keystore/
Duser_state.h61 ResponseCode initialize(const android::String8& pw);
65 ResponseCode writeMasterKey(const android::String8& pw);
66 ResponseCode readMasterKey(const android::String8& pw);
84 void generateKeyFromPassword(std::vector<uint8_t>& key, const android::String8& pw,
/system/update_engine/aosp/
Dbinder_service_android_common.h30 1, android::String8{error->GetMessage().c_str()}); in ErrorPtrToStatus()
38 out.emplace_back(android::String8{e}.string()); in ToVecString()
/system/bt/binder/android/bluetooth/
Dbluetooth_device.cc25 using android::String8;
41 RawAddress::FromString(String8(tmp).string(), address); in readFromParcel()
/system/bt/service/ipc/binder/
Dipc_handler_binder.cc31 using android::String8;
51 String16(String8(kServiceName.c_str())), bt_server); in Run()
Dbluetooth_avrcp_target_binder_server.cc63 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()
Dbluetooth_low_energy_binder_server.cc23 using android::String8;
81 client->Connect(std::string(String8(address).string()), is_direct); in Connect()
98 *_aidl_return = client->Disconnect(std::string(String8(address).string())); in Disconnect()
116 *_aidl_return = client->SetMtu(std::string(String8(address).string()), mtu); in SetMtu()

1234