/system/core/libutils/include/utils/ |
D | String8.h | 38 class String8 49 String8(); 50 explicit String8(StaticLinkage); 51 String8(const String8& o); 52 explicit String8(const char* o); 53 explicit String8(const char* o, size_t numChars); 55 explicit String8(const String16& o); 56 explicit String8(const char16_t* o); 57 explicit String8(const char16_t* o, size_t numChars); 58 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 | CallStack.h | 58 String8 toString(const char* prefix = 0) const; 67 Vector<String8> mFrameLines;
|
D | ProcessCallStack.h | 52 String8 toString(const char* prefix = 0) const; 68 String8 threadName;
|
/system/core/libutils/ |
D | String8.cpp | 147 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 …]
|
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 | 50 mFrameLines.push_back(String8(backtrace->FormatFrameData(i).c_str())); in update() 64 String8 CallStack::toString(const char* prefix) const { in toString() 65 String8 str; in toString()
|
/system/core/healthd/ |
D | healthd_common.cpp | 55 .batteryStatusPath = String8(String8::kEmptyString), 56 .batteryHealthPath = String8(String8::kEmptyString), 57 .batteryPresentPath = String8(String8::kEmptyString), 58 .batteryCapacityPath = String8(String8::kEmptyString), 59 .batteryVoltagePath = String8(String8::kEmptyString), 60 .batteryTemperaturePath = String8(String8::kEmptyString), 61 .batteryTechnologyPath = String8(String8::kEmptyString), 62 .batteryCurrentNowPath = String8(String8::kEmptyString), 63 .batteryCurrentAvgPath = String8(String8::kEmptyString), 64 .batteryChargeCounterPath = String8(String8::kEmptyString), [all …]
|
/system/core/healthd/include/healthd/ |
D | healthd.h | 58 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; [all …]
|
D | BatteryMonitor.h | 49 Vector<String8> mChargerNames; 58 int readFromFile(const String8& path, std::string* buf); 59 PowerSupplyType readPowerSupplyType(const String8& path); 60 bool getBooleanField(const String8& path); 61 int getIntField(const String8& path);
|
/system/core/libutils/tests/ |
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()
|
/system/security/keystore/ |
D | keystore.h | 66 ResponseCode initializeUser(const android::String8& pw, uid_t userId); 69 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId); 70 ResponseCode readMasterKey(const android::String8& pw, uid_t userId); 72 android::String8 getKeyName(const android::String8& keyName, const BlobType type); 73 android::String8 getKeyNameForUid(const android::String8& keyName, uid_t uid, 75 android::String8 getKeyNameForUidWithDir(const android::String8& keyName, uid_t uid, 91 ResponseCode list(const android::String8& prefix, android::Vector<android::String16>* matches, 105 ResponseCode getKeyForName(Blob* keyBlob, const android::String8& keyName, const uid_t uid,
|
D | user_state.h | 50 ResponseCode initialize(const android::String8& pw, Entropy* entropy); 54 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy); 55 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy); 69 void generateKeyFromPassword(uint8_t* key, ssize_t keySize, const android::String8& pw,
|
D | keystore.cpp | 72 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() 83 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() 88 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() 100 static size_t encode_key_length(const android::String8& keyName) { in encode_key_length() 111 static int encode_key(char* out, const android::String8& keyName) { in encode_key() 127 android::String8 KeyStore::getKeyName(const android::String8& keyName, const BlobType type) { in getKeyName() 131 return android::String8::format(".chr_%s", encoded.data()); in getKeyName() 133 return android::String8(encoded.data()); in getKeyName() 137 android::String8 KeyStore::getKeyNameForUid( in getKeyNameForUid() 138 const android::String8& keyName, uid_t uid, const BlobType type) { in getKeyNameForUid() [all …]
|
D | key_store_service.cpp | 146 String8 name8(name); in get() 178 String8 name8(name); in insert() 179 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid, ::TYPE_GENERIC)); in insert() 192 String8 name8(name); in del() 194 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid, ::TYPE_ANY)); in del() 201 String8 chrFilename( in del() 212 String8 name8(name); in exist() 213 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid, ::TYPE_ANY)); in exist() 227 const String8 prefix8(prefix); in list() 228 String8 filename(mKeyStore->getKeyNameForUid(prefix8, targetUid, TYPE_ANY)); in list() [all …]
|
/system/media/brillo/audio/audioservice/ |
D | brillo_audio_service_impl.cpp | 29 EREMOTEIO, android::String8("The audio device handler died.")); in GetDevices() 37 android::String8("Invalid flag.")); in GetDevices() 46 EREMOTEIO, android::String8("The audio device handler died.")); in SetDevice() 79 EREMOTEIO, android::String8("The audio volume handler died.")); in GetMaxVolumeSteps() 90 EREMOTEIO, android::String8("The audio volume handler died.")); in SetMaxVolumeSteps() 105 EREMOTEIO, android::String8("The audio volume handler died.")); in SetVolumeIndex() 122 EREMOTEIO, android::String8("The audio volume handler died.")); in GetVolumeIndex() 134 EREMOTEIO, android::String8("The audio volume handler died.")); in IncrementVolume() 144 EREMOTEIO, android::String8("The audio volume handler died.")); in GetVolumeControlStream() 154 EREMOTEIO, android::String8("The audio volume handler died.")); in SetVolumeControlStream() [all …]
|
/system/update_engine/client_library/ |
D | client_binder.cc | 30 using android::String8; 69 StringToUpdateStatus(String8{status.current_operation_}.string(), in GetStatus() 71 *out_new_version = String8{status.new_version_}.string(); in GetStatus() 86 *out_cohort_hint = String8{out_as_string16}.string(); in GetCohortHint() 118 *rollback_partition = String8{out_as_string16}.string(); in GetRollbackPartition() 128 *prev_version = String8{out_as_string16}.string(); in GetPrevVersion() 153 StringToUpdateStatus(String8{current_operation}.string(), &update_status); in HandleStatusUpdate() 157 String8{new_version}.string(), new_size); in HandleStatusUpdate() 215 *out_channel = String8{out_as_string16}.string(); in GetTargetChannel() 225 *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 | 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()
|
/system/netd/server/ |
D | NetdNativeService.cpp | 59 return binder::Status::fromExceptionCode(binder::Status::EX_SECURITY, String8(err.c_str())); in checkPermission() 79 String8("Not available in production builds.") \ 114 const String8 msg(dump_permission.toString8()); in dump() 140 android::String8 name = android::String8(chainName); in firewallReplaceUidChain() 174 String8::format("RouteController error: %s", strerror(-err))); in networkRejectNonSecureVpn() 187 String8("Could not open SOCK_DIAG socket")); in socketDestroy() 196 String8::format("destroySockets: %s", strerror(-err))); in socketDestroy() 210 String8::format("ResolverController error: %s", strerror(-err))); in setResolverConfiguration() 224 String8::format("ResolverController error: %s", strerror(-err))); in getResolverInfo() 244 String8::format("InterfaceController error: %s", strerror(-err))); in interfaceAddAddress() [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()
|