Home
last modified time | relevance | path

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

/system/core/include/utils/
DString8.h37 class String8
48 String8();
49 explicit String8(StaticLinkage);
50 String8(const String8& o);
51 explicit String8(const char* o);
52 explicit String8(const char* o, size_t numChars);
54 explicit String8(const String16& o);
55 explicit String8(const char16_t* o);
56 explicit String8(const char16_t* o, size_t numChars);
57 explicit String8(const char32_t* o);
[all …]
DPropertyMap.h60 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;
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;
DPrinter.h85 class String8; variable
93 String8Printer(String8* target, const char* prefix = 0);
99 String8* mTarget;
DCallStack.h58 String8 toString(const char* prefix = 0) const;
67 Vector<String8> mFrameLines;
DProcessCallStack.h52 String8 toString(const char* prefix = 0) const;
68 String8 threadName;
DString16.h37 class String8; variable
60 explicit String16(const String8& o);
/system/core/libutils/
DString8.cpp147 String8::String8() in String8() function in android::String8
152 String8::String8(StaticLinkage) in String8() function in android::String8
165 String8::String8(const String8& o) in String8() function in android::String8
171 String8::String8(const char* o) in String8() function in android::String8
179 String8::String8(const char* o, size_t len) in String8() function in android::String8
187 String8::String8(const String16& o) in String8() function in android::String8
192 String8::String8(const char16_t* o) in String8() function in android::String8
197 String8::String8(const char16_t* o, size_t len) in String8() function in android::String8
202 String8::String8(const char32_t* o) in String8() function in android::String8
207 String8::String8(const char32_t* o, size_t len) in String8() function in android::String8
[all …]
DPropertyMap.cpp50 void PropertyMap::addProperty(const String8& key, const String8& value) { in addProperty()
54 bool PropertyMap::hasProperty(const String8& key) const { in hasProperty()
58 bool PropertyMap::tryGetProperty(const String8& key, String8& outValue) const { in tryGetProperty()
68 bool PropertyMap::tryGetProperty(const String8& key, bool& outValue) const { in tryGetProperty()
78 bool PropertyMap::tryGetProperty(const String8& key, int32_t& outValue) const { in tryGetProperty()
79 String8 stringValue; in tryGetProperty()
95 bool PropertyMap::tryGetProperty(const String8& key, float& outValue) const { in tryGetProperty()
96 String8 stringValue; in tryGetProperty()
118 status_t PropertyMap::load(const String8& filename, PropertyMap** outMap) { in load()
173 String8 keyToken = mTokenizer->nextToken(WHITESPACE_OR_PROPERTY_DELIMITER); in parse()
[all …]
DTokenizer.cpp38 Tokenizer::Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, in Tokenizer()
52 status_t Tokenizer::open(const String8& filename, Tokenizer** outTokenizer) { in open()
103 status_t Tokenizer::fromContents(const String8& filename, in fromContents()
110 String8 Tokenizer::getLocation() const { in getLocation()
111 String8 result; in getLocation()
116 String8 Tokenizer::peekRemainderOfLine() const { in peekRemainderOfLine()
126 return String8(mCurrent, eol - mCurrent); in peekRemainderOfLine()
129 String8 Tokenizer::nextToken(const char* delimiters) { in nextToken()
142 return String8(tokenStart, mCurrent - tokenStart); in nextToken()
DProcessCallStack.cpp79 static String8 getThreadName(pid_t tid) { in getThreadName()
95 return String8::format("[err-unknown-tid-%d]", tid); in getThreadName()
101 return String8(procName); in getThreadName()
104 static String8 getTimeString(struct tm tm) { in getTimeString()
109 return String8(timestr); in getTimeString()
228 const String8& threadName = threadInfo.threadName; in printInternal()
250 String8 ProcessCallStack::toString(const char* prefix) const { in toString()
252 String8 dest; in toString()
DCallStack.cpp48 mFrameLines.push_back(String8(backtrace->FormatFrameData(i).c_str())); in update()
62 String8 CallStack::toString(const char* prefix) const { in toString()
63 String8 str; in toString()
DString16.cpp148 String16::String16(const String8& o) in String16()
278 String8(*this).string(), pos, in insert()
279 len, myLen, String8(chrs, len).string()); in insert()
293 printf("Result (%d chrs): %s\n", size(), String8(*this).string()); in insert()
DPrinter.cpp126 String8Printer::String8Printer(String8* target, const char* prefix) : in String8Printer()
DAndroid.mk32 String8.cpp \
DRefBase.cpp188 String8 text; in printRefs()
291 void printRefsLocked(String8* out, const ref_entry* refs) const in printRefsLocked()
/system/core/healthd/
Dhealthd.h58 android::String8 batteryStatusPath;
59 android::String8 batteryHealthPath;
60 android::String8 batteryPresentPath;
61 android::String8 batteryCapacityPath;
62 android::String8 batteryVoltagePath;
63 android::String8 batteryTemperaturePath;
64 android::String8 batteryTechnologyPath;
65 android::String8 batteryCurrentNowPath;
66 android::String8 batteryCurrentAvgPath;
67 android::String8 batteryChargeCounterPath;
Dhealthd.cpp45 .batteryStatusPath = String8(String8::kEmptyString),
46 .batteryHealthPath = String8(String8::kEmptyString),
47 .batteryPresentPath = String8(String8::kEmptyString),
48 .batteryCapacityPath = String8(String8::kEmptyString),
49 .batteryVoltagePath = String8(String8::kEmptyString),
50 .batteryTemperaturePath = String8(String8::kEmptyString),
51 .batteryTechnologyPath = String8(String8::kEmptyString),
52 .batteryCurrentNowPath = String8(String8::kEmptyString),
53 .batteryCurrentAvgPath = String8(String8::kEmptyString),
54 .batteryChargeCounterPath = String8(String8::kEmptyString),
DBatteryMonitor.h47 Vector<String8> mChargerNames;
56 int readFromFile(const String8& path, char* buf, size_t size);
57 PowerSupplyType readPowerSupplyType(const String8& path);
58 bool getBooleanField(const String8& path);
59 int getIntField(const String8& path);
DBatteryMonitor.cpp102 int BatteryMonitor::readFromFile(const String8& path, char* buf, size_t size) { in readFromFile()
126 BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String8& path) { in readPowerSupplyType()
154 bool BatteryMonitor::getBooleanField(const String8& path) { in getBooleanField()
168 int BatteryMonitor::getIntField(const String8& path) { in getIntField()
214 String8 btech; in update()
223 props.batteryTechnology = String8(buf); in update()
228 String8 path; in update()
420 String8 path; in init()
446 mChargerNames.add(String8(name)); in init()
/system/core/libutils/tests/
DString8_test.cpp36 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()
81 String8 string8(string16); in TEST_F()
90 String8 string8(string32); in TEST_F()
/system/core/logd/
DLogStatistics.cpp186 static void format_line(android::String8 &output, in format_line()
187 android::String8 &name, android::String8 &size, android::String8 &pruned) { in format_line()
215 android::String8 output("size/num"); in format()
288 android::String8 name(""); in format()
298 android::String8 size("Size"); in format()
299 android::String8 pruned("Pruned"); in format()
316 android::String8 name(""); in format()
324 android::String8 size(""); in format()
327 android::String8 pruned(""); in format()
351 android::String8 name(""); in format()
[all …]
DLogWhiteBlackList.cpp179 android::String8 string; in format()
/system/security/keystore/
Dkeystore.cpp446 static size_t encode_key_length(const android::String8& keyName) { in encode_key_length()
457 static int encode_key(char* out, const android::String8& keyName) { in encode_key()
903 ResponseCode initialize(const android::String8& pw, Entropy* entropy) { in initialize()
959 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey()
968 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey()
1065 void generateKeyFromPassword(uint8_t* key, ssize_t keySize, const android::String8& pw, in generateKeyFromPassword()
1176 ResponseCode initializeUser(const android::String8& pw, uid_t userId) { in initializeUser()
1187 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey()
1192 ResponseCode readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey()
1197 android::String8 getKeyName(const android::String8& keyName) { in getKeyName()
[all …]
Dkeystore_cli.cpp178 printf("%s\n", String8(*it).string()); in list()