/system/core/include/utils/ |
D | String8.h | 37 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 …]
|
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 | Printer.h | 85 class String8; variable 93 String8Printer(String8* target, const char* prefix = 0); 99 String8* mTarget;
|
D | ProcessCallStack.h | 52 String8 toString(const char* prefix = 0) const; 68 String8 threadName;
|
D | CallStack.h | 80 String8 toString(const char* prefix = 0) const;
|
D | String16.h | 37 class String8; variable 60 explicit String16(const String8& o);
|
/system/core/libutils/ |
D | String8.cpp | 140 String8::String8() in String8() function in android::String8 145 String8::String8(StaticLinkage) in String8() function in android::String8 158 String8::String8(const String8& o) in String8() function in android::String8 164 String8::String8(const char* o) in String8() function in android::String8 172 String8::String8(const char* o, size_t len) in String8() function in android::String8 180 String8::String8(const String16& o) in String8() function in android::String8 185 String8::String8(const char16_t* o) in String8() function in android::String8 190 String8::String8(const char16_t* o, size_t len) in String8() function in android::String8 195 String8::String8(const char32_t* o) in String8() function in android::String8 200 String8::String8(const char32_t* o, size_t len) in String8() function in android::String8 [all …]
|
D | PropertyMap.cpp | 50 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 …]
|
D | Tokenizer.cpp | 38 Tokenizer::Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, in Tokenizer() 54 status_t Tokenizer::open(const String8& filename, Tokenizer** outTokenizer) { in open() 105 status_t Tokenizer::fromContents(const String8& filename, in fromContents() 112 String8 Tokenizer::getLocation() const { in getLocation() 113 String8 result; in getLocation() 118 String8 Tokenizer::peekRemainderOfLine() const { in peekRemainderOfLine() 128 return String8(mCurrent, eol - mCurrent); in peekRemainderOfLine() 131 String8 Tokenizer::nextToken(const char* delimiters) { in nextToken() 144 return String8(tokenStart, mCurrent - tokenStart); in nextToken()
|
D | ProcessCallStack.cpp | 79 static String8 getThreadName(pid_t tid) { in getThreadName() 96 return String8(procName); in getThreadName() 99 static String8 getTimeString(struct tm tm) { in getTimeString() 104 return String8(timestr); in getTimeString() 225 const String8& threadName = threadInfo.threadName; in printInternal() 247 String8 ProcessCallStack::toString(const char* prefix) const { in toString() 249 String8 dest; in toString()
|
D | CallStack.cpp | 122 String8 CallStack::toString(const char* prefix) const { in toString() 123 String8 str; in toString()
|
D | String16.cpp | 151 String16::String16(const String8& o) in String16() 281 String8(*this).string(), pos, in insert() 282 len, myLen, String8(chrs, len).string()); in insert() 296 printf("Result (%d chrs): %s\n", size(), String8(*this).string()); in insert()
|
D | Printer.cpp | 130 String8Printer::String8Printer(String8* target, const char* prefix) : in String8Printer()
|
D | Android.mk | 36 String8.cpp \
|
D | RefBase.cpp | 184 String8 text; in printRefs() 287 void printRefsLocked(String8* out, const ref_entry* refs) const in printRefsLocked()
|
/system/core/healthd/ |
D | healthd.h | 56 android::String8 batteryStatusPath; 57 android::String8 batteryHealthPath; 58 android::String8 batteryPresentPath; 59 android::String8 batteryCapacityPath; 60 android::String8 batteryVoltagePath; 61 android::String8 batteryTemperaturePath; 62 android::String8 batteryTechnologyPath; 63 android::String8 batteryCurrentNowPath; 64 android::String8 batteryChargeCounterPath;
|
D | healthd.cpp | 44 .batteryStatusPath = String8(String8::kEmptyString), 45 .batteryHealthPath = String8(String8::kEmptyString), 46 .batteryPresentPath = String8(String8::kEmptyString), 47 .batteryCapacityPath = String8(String8::kEmptyString), 48 .batteryVoltagePath = String8(String8::kEmptyString), 49 .batteryTemperaturePath = String8(String8::kEmptyString), 50 .batteryTechnologyPath = String8(String8::kEmptyString), 51 .batteryCurrentNowPath = String8(String8::kEmptyString), 52 .batteryChargeCounterPath = String8(String8::kEmptyString),
|
D | BatteryMonitor.h | 47 Vector<String8> mChargerNames; 53 int readFromFile(const String8& path, char* buf, size_t size); 54 PowerSupplyType readPowerSupplyType(const String8& path); 55 bool getBooleanField(const String8& path); 56 int getIntField(const String8& path);
|
D | BatteryMonitor.cpp | 95 int BatteryMonitor::readFromFile(const String8& path, char* buf, size_t size) { in readFromFile() 119 BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String8& path) { in readPowerSupplyType() 147 bool BatteryMonitor::getBooleanField(const String8& path) { in getBooleanField() 161 int BatteryMonitor::getIntField(const String8& path) { in getIntField() 202 String8 btech; in update() 211 props.batteryTechnology = String8(buf); in update() 216 String8 path; in update() 276 String8 path; in init() 302 mChargerNames.add(String8(name)); in init()
|
/system/core/libutils/tests/ |
D | String8_test.cpp | 35 String8 tmp("Hello, world!"); in TEST_F() 41 String8 src1("Hello, "); in TEST_F() 45 String8 dst1 = src1 + ccsrc2; in TEST_F() 51 String8 ssrc2("world!"); in TEST_F() 52 String8 dst2 = src1 + ssrc2; in TEST_F() 59 String8 src1("My voice"); in TEST_F() 62 String8 src2(" is my passport."); in TEST_F()
|
/system/security/keystore/ |
D | keystore.cpp | 248 static size_t encode_key_length(const android::String8& keyName) { in encode_key_length() 259 static int encode_key(char* out, const android::String8& keyName) { in encode_key() 683 ResponseCode initialize(const android::String8& pw, Entropy* entropy) { in initialize() 695 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey() 704 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey() 814 void generateKeyFromPassword(uint8_t* key, ssize_t keySize, const android::String8& pw, in generateKeyFromPassword() 910 ResponseCode initializeUser(const android::String8& pw, uid_t uid) { in initializeUser() 915 ResponseCode writeMasterKey(const android::String8& pw, uid_t uid) { in writeMasterKey() 921 ResponseCode readMasterKey(const android::String8& pw, uid_t uid) { in readMasterKey() 927 android::String8 getKeyName(const android::String8& keyName) { in getKeyName() [all …]
|
D | keystore_cli.cpp | 160 printf("%s\n", String8(*it).string()); in saw()
|