Home
last modified time | relevance | path

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

12

/system/core/include/utils/
DString8.h36 class String8
47 String8();
48 explicit String8(StaticLinkage);
49 String8(const String8& o);
50 explicit String8(const char* o);
51 explicit String8(const char* o, size_t numChars);
53 explicit String8(const String16& o);
54 explicit String8(const char16_t* o);
55 explicit String8(const char16_t* o, size_t numChars);
56 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;
/system/core/libutils/
DString8.cpp148 String8::String8() in String8() function in android::String8
153 String8::String8(StaticLinkage) in String8() function in android::String8
166 String8::String8(const String8& o) in String8() function in android::String8
172 String8::String8(const char* o) in String8() function in android::String8
180 String8::String8(const char* o, size_t len) in String8() function in android::String8
188 String8::String8(const String16& o) in String8() function in android::String8
193 String8::String8(const char16_t* o) in String8() function in android::String8
198 String8::String8(const char16_t* o, size_t len) in String8() function in android::String8
203 String8::String8(const char32_t* o) in String8() function in android::String8
208 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.cpp80 static String8 getThreadName(pid_t tid) { in getThreadName()
96 return String8::format("[err-unknown-tid-%d]", tid); in getThreadName()
102 return String8(procName); in getThreadName()
105 static String8 getTimeString(struct tm tm) { in getTimeString()
110 return String8(timestr); in getTimeString()
227 const String8& threadName = threadInfo.threadName; in printInternal()
249 String8 ProcessCallStack::toString(const char* prefix) const { in toString()
251 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()
/system/core/healthd/include/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;
[all …]
DBatteryMonitor.h49 Vector<String8> mChargerNames;
58 int readFromFile(const String8& path, char* buf, size_t size);
59 PowerSupplyType readPowerSupplyType(const String8& path);
60 bool getBooleanField(const String8& path);
61 int getIntField(const String8& path);
/system/core/healthd/
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),
[all …]
/system/core/libutils/tests/
DString8_test.cpp35 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()
77 EXPECT_EQ(NO_MEMORY, String8("").setTo(in, SIZE_MAX)); in TEST_F()
/system/security/keystore/
Dkeystore.h50 ResponseCode initializeUser(const android::String8& pw, uid_t userId);
53 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId);
54 ResponseCode readMasterKey(const android::String8& pw, uid_t userId);
56 android::String8 getKeyName(const android::String8& keyName);
57 android::String8 getKeyNameForUid(const android::String8& keyName, uid_t uid);
58 android::String8 getKeyNameForUidWithDir(const android::String8& keyName, uid_t uid);
73 ResponseCode list(const android::String8& prefix, android::Vector<android::String16>* matches,
87 ResponseCode getKeyForName(Blob* keyBlob, const android::String8& keyName, const uid_t uid,
Duser_state.h50 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,
Dkeystore.cpp63 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser()
74 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey()
79 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey()
91 static size_t encode_key_length(const android::String8& keyName) { in encode_key_length()
102 static int encode_key(char* out, const android::String8& keyName) { in encode_key()
118 android::String8 KeyStore::getKeyName(const android::String8& keyName) { in getKeyName()
121 return android::String8(encoded); in getKeyName()
124 android::String8 KeyStore::getKeyNameForUid(const android::String8& keyName, uid_t uid) { in getKeyNameForUid()
127 return android::String8::format("%u_%s", uid, encoded); in getKeyNameForUid()
130 android::String8 KeyStore::getKeyNameForUidWithDir(const android::String8& keyName, uid_t uid) { in getKeyNameForUidWithDir()
[all …]
Dkey_store_service.cpp73 String8 name8(name); in get()
99 String8 name8(name); in insert()
100 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid)); in insert()
113 String8 name8(name); in del()
114 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid)); in del()
124 String8 name8(name); in exist()
125 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid)); in exist()
138 const String8 prefix8(prefix); in list()
139 String8 filename(mKeyStore->getKeyNameForUid(prefix8, targetUid)); in list()
162 const String8 password8(password); in onUserPasswordChanged()
[all …]
/system/update_engine/client_library/
Dclient_binder.cc30 using android::String8;
69 StringToUpdateStatus(String8{status.current_operation_}.string(), in GetStatus()
71 *out_new_version = String8{status.new_version_}.string(); in GetStatus()
104 *rollback_partition = String8{out_as_string16}.string(); in GetRollbackPartition()
114 *prev_version = String8{out_as_string16}.string(); in GetPrevVersion()
139 StringToUpdateStatus(String8{current_operation}.string(), &update_status); in HandleStatusUpdate()
143 String8{new_version}.string(), new_size); in HandleStatusUpdate()
204 *out_channel = String8{out_as_string16}.string(); in GetTargetChannel()
214 *out_channel = String8{out_as_string16}.string(); in GetChannel()
/system/netd/server/
DNetdNativeService.cpp56 return binder::Status::fromExceptionCode(binder::Status::EX_SECURITY, String8(err.c_str())); in checkPermission()
90 const String8 msg(dump_permission.toString8()); in dump()
116 android::String8 name = android::String8(chainName); in firewallReplaceUidChain()
150 String8::format("RouteController error: %s", strerror(-err))); in networkRejectNonSecureVpn()
163 String8("Could not open SOCK_DIAG socket")); in socketDestroy()
171 String8::format("destroySockets: %s", strerror(-err))); in socketDestroy()
185 String8::format("ResolverController error: %s", strerror(-err))); in setResolverConfiguration()
199 String8::format("ResolverController error: %s", strerror(-err))); in getResolverInfo()
/system/nativepower/daemon/
Dpower_manager_stub.cc79 CHECK(wake_lock_manager_->AddRequest(lock, String8(tag).string(), in acquireWakeLock()
80 String8(packageName).string(), in acquireWakeLock()
91 CHECK(wake_lock_manager_->AddRequest(lock, String8(tag).string(), in acquireWakeLockWithUid()
92 String8(packageName).string(), in acquireWakeLockWithUid()
125 reboot_reasons_.push_back(String8(reason).string()); in reboot()
132 shutdown_reasons_.push_back(String8(reason).string()); in shutdown()
Dpower_manager.cc127 const std::string reason_str(String8(reason).string()); in reboot()
145 const std::string reason_str(String8(reason).string()); in shutdown()
169 return wake_lock_manager_->AddRequest(lock, String8(tag).string(), in AddWakeLockRequest()
170 String8(packageName).string(), uid); in AddWakeLockRequest()
/system/core/metricsd/uploader/
Dbn_metricsd_impl.cc41 android::String8(name).string(), min, max, nbuckets, in recordHistogram()
56 android::String8(name).string(), 1, max, max + 1, in recordLinearHistogram()
69 android::String8(name).string(), in recordSparseHistogram()
/system/update_engine/
Dbinder_service_android.cc31 1, android::String8{error->GetMessage().c_str()}); in ErrorPtrToStatus()
88 const std::string payload_url{android::String8{url}.string()}; in applyPayload()
92 str_headers.emplace_back(android::String8{header}.string()); in applyPayload()

12