/aosp12/system/core/libutils/include/utils/ |
H A D | String8.h | 40 class String8 44 String8(const String8& o); 172 String8 walkPath(String8* outRemains = nullptr) const; 251 inline const String8 String8::empty() { in empty() 264 inline std::string String8::std_string(const String8& str) in std_string() 289 inline String8& String8::operator=(const String8& other) 295 inline String8& String8::operator=(const char* other) 301 inline String8& String8::operator+=(const String8& other) 307 inline String8 String8::operator+(const String8& other) const 314 inline String8& String8::operator+=(const char* other) [all …]
|
/aosp12/frameworks/base/tools/aapt/ |
H A D | AaptAssets.h | 121 String8 toDirName(const String8& resType) const; 194 String8 mPath; 211 AaptGroup(const String8& leaf, const String8& path) in AaptGroup() 231 String8 mLeaf; 232 String8 mPath; 244 AaptDir(const String8& leaf, const String8& path) in AaptDir() 298 String8 mLeaf; 299 String8 mPath; 357 String8 stringVal; 380 status_t addStringSymbol(const String8& name, const String8& value, in addStringSymbol() [all …]
|
H A D | AaptXml.cpp | 27 String8* outError) { in getStringAttributeAtIndex() 33 return String8(); in getStringAttributeAtIndex() 40 return String8(); in getStringAttributeAtIndex() 45 return str ? String8(str, len) : String8(); in getStringAttributeAtIndex() 83 return String8(); in getAttribute() 91 return String8(); in getAttribute() 100 return String8(); in getResolvedAttribute() 108 return String8(); in getResolvedAttribute() 115 return str ? String8(str, len) : String8(); in getResolvedAttribute() 124 return String8(); in getResolvedAttribute() [all …]
|
H A D | Command.cpp | 233 uint32_t attrRes, const String8& attrLabel, String8* outError) in printResolvedResourceAttribute() 300 String8 getComponentName(String8 &pkgName, String8 &componentName) { in getComponentName() 356 const String8& requiredFeature = String8::empty(), in printUsesPermission() 357 const String8& requiredNotFeature = String8::empty()) { in printUsesPermission() 414 String8 error; in getNfcAidCategories() 480 String8 name; 517 String8 label; 532 String8 name8(name); in hasFeature() 542 String8 name8(name); in addImpliedFeature() 1083 String8 pkg; in doDump() [all …]
|
/aosp12/system/core/libutils/ |
H A D | String8.cpp | 125 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 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 167 String8::String8(const char32_t* o) in String8() function in android::String8 175 String8::~String8() in ~String8() 208 void String8::setTo(const String8& other) in setTo() 466 String8 String8::getPathDir(void) const in getPathDir() 478 String8 String8::walkPath(String8* outRemains) const in walkPath() [all …]
|
H A D | String8_fuzz.cpp | 30 std::vector<std::function<void(FuzzedDataProvider*, android::String8*, android::String8*)>> 33 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anon90faaa7c0102() 36 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anon90faaa7c0202() 39 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anon90faaa7c0302() 44 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anon90faaa7c0402() 71 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anon90faaa7c0a02() 74 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anon90faaa7c0b02() 77 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anon90faaa7c0c02() 80 [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void { in __anon90faaa7c0d02() 220 android::String8 str_one_utf8 = android::String8(vec.data()); in LLVMFuzzerTestOneInput() [all …]
|
/aosp12/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/ |
H A D | JsonWebKeyUnittest.cpp | 24 using android::String8; 58 String8 keyString; in verifyKeys() 66 const String8 js( in TEST_F() 82 const String8 js( in TEST_F() 104 const String8 js( in TEST_F() 129 const String8 js( in TEST_F() 154 const String8 js( in TEST_F() 192 const String8 js; in TEST_F() 246 { String8("Hello Friend!"), String8("Good day!") }; in TEST_F() 277 { String8("Hello Friend!"), String8("Good day!") }; in TEST_F() [all …]
|
/aosp12/frameworks/av/include/drm/ |
H A D | DrmRights.h | 44 const String8& rightsFilePath, const String8& mimeType, 45 const String8& accountId = String8("_NO_USER"), 46 const String8& subscriptionId = String8("")); 58 const String8& accountId = String8("_NO_USER"), 59 const String8& subscriptionId = String8("")); 79 String8 getMimeType(void) const; 86 String8 getAccountId(void) const; 93 String8 getSubscriptionId(void) const; 97 String8 mMimeType; 98 String8 mAccountId; [all …]
|
H A D | DrmConstraints.h | 40 static const String8 MAX_REPEAT_COUNT; 44 static const String8 REMAINING_REPEAT_COUNT; 49 static const String8 LICENSE_START_TIME; 54 static const String8 LICENSE_EXPIRY_TIME; 59 static const String8 LICENSE_AVAILABLE_TIME; 64 static const String8 EXTENDED_METADATA; 83 const String8& next(); 106 String8 next(); 119 String8 key = keyIt.next(); in ~DrmConstraints() 151 String8 get(const String8& key) const; [all …]
|
/aosp12/frameworks/av/media/libmediahelper/include/media/ |
H A D | AudioParameter.h | 30 AudioParameter(const String8& keyValuePairs); 113 status_t add(const String8& key, const String8& value); 114 status_t addInt(const String8& key, const int value); 115 status_t addKey(const String8& key); 118 status_t remove(const String8& key); 120 status_t get(const String8& key, String8& value) const; 123 status_t getAt(size_t index, String8& key) const; 124 status_t getAt(size_t index, String8& key, String8& value) const; 129 String8 mKeyValuePairs; 130 KeyedVector <String8, String8> mParameters; [all …]
|
/aosp12/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | AssetManager.h | 131 String8 getAssetPath(const int32_t cookie) const; 222 String8 path; 225 String8 idmap; 235 String8 createZipSourceNameLocked(const String8& zipFileName, 236 const String8& dirName, const String8& fileName); 284 SharedZip(int fd, const String8& path); 287 String8 mPath; 316 ZipFileRO* getZip(const String8& path); 327 static String8 getPathName(const char* path); 337 int getIndex(const String8& zip) const; [all …]
|
/aosp12/frameworks/av/drm/mediadrm/plugins/mock/ |
H A D | MockDrmCryptoPlugin.cpp | 140 String8 keyTypeStr; in getKeyRequest() 144 String8 params; in getKeyRequest() 255 KeyedVector<String8, String8> &infoMap) const in queryKeyStatus() argument 266 infoMap.add(String8("purchaseDuration"), String8("1000")); in queryKeyStatus() 267 infoMap.add(String8("licenseDuration"), String8("100")); in queryKeyStatus() 386 status_t MockDrmPlugin::getPropertyString(String8 const &name, String8 &value) const in getPropertyString() 762 String8 result("{ "); in arrayToString() 770 String8 MockDrmPlugin::stringMapToString(const KeyedVector<String8, String8>& map) const in stringMapToString() argument 772 String8 result("{ "); in stringMapToString() 816 String8 result("{ "); in arrayToString() [all …]
|
H A D | MockDrmCryptoPlugin.h | 35 bool isContentTypeSupported(const String8 &mimeType); 65 KeyedVector<String8, String8> const &optionalParameters, 79 KeyedVector<String8, String8> &infoMap) const; 84 String8 &defaultUrl); 95 status_t getPropertyString(String8 const &name, String8 &value ) const; 96 status_t getPropertyByteArray(String8 const &name, 99 status_t setPropertyString(String8 const &name, 100 String8 const &value ); 134 String8 const &algorithm, 142 String8 stringMapToString(const KeyedVector<String8, String8>& map) const; [all …]
|
/aosp12/frameworks/av/drm/drmserver/ |
H A D | DrmManager.h | 104 status_t loadPlugIns(const String8& plugInDirPath); 115 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 122 const String8& rightsPath, const String8& contentPath); 124 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd); 126 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 157 const String8& mimeType); 178 String8 getSupportedPlugInId(int uniqueId, const String8& path, const String8& mimeType); 180 String8 getSupportedPlugInId(const String8& mimeType); 182 String8 getSupportedPlugInIdFromPath(int uniqueId, const String8& path); 191 const String8& plugInId, const String8& mimeType = String8("")); [all …]
|
/aosp12/frameworks/av/media/libmediahelper/ |
H A D | AudioParameter.cpp | 76 String8 key = String8(pair, eqIdx); in AudioParameter() 77 String8 value; in AudioParameter() 104 String8 str = String8(""); in toStringImpl() 118 status_t AudioParameter::add(const String8& key, const String8& value) in add() 131 return add(key, String8()); in addKey() 138 String8 str8 = String8(str); in addInt() 149 String8 str8 = String8(str); in addFloat() 166 status_t AudioParameter::get(const String8& key, String8& value) const in get() 178 String8 str8; in getInt() 194 String8 str8; in getFloat() [all …]
|
/aosp12/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/ |
H A D | JsonWebKey.h | 32 using android::String8; 40 bool extractKeysFromJsonWebKeySet(const String8& jsonWebKeySet, 45 Vector<String8> mJsonObjects; 46 Vector<String8> mTokens; 48 bool decodeBase64String(const String8& encodedText, 50 bool findKey(const String8& jsonObject, String8* keyId, 51 String8* encodedKey); 52 void findValue(const String8 &key, String8* value); 53 bool isJsonWebKeySet(const String8& jsonObject) const; 54 bool parseJsonObject(const String8& jsonObject, Vector<String8>* tokens); [all …]
|
/aosp12/system/core/healthd/include/healthd/ |
H A D | healthd.h | 60 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; 70 android::String8 batteryFullChargePath; [all …]
|
/aosp12/frameworks/base/tools/aapt/tests/ |
H A D | FileFinder_test.cpp | 27 String8 path("ApiDemos"); in main() 30 KeyedVector<String8,time_t> testStorage; in main() 33 Vector< pair<String8,time_t> > data; in main() 34 data.push( pair<String8,time_t>(String8("hello.png"),3) ); in main() 35 data.push( pair<String8,time_t>(String8("world.PNG"),3) ); in main() 36 data.push( pair<String8,time_t>(String8("foo.pNg"),3) ); in main() 38 data.push( pair<String8,time_t>(String8("hello.jpg"),3) ); in main() 39 data.push( pair<String8,time_t>(String8(".hidden.png"),3)); in main() 44 Vector<String8> exts; in main() 45 exts.push(String8(".png")); in main() [all …]
|
/aosp12/hardware/google/graphics/common/libhwc2.1/libhwchelper/ |
H A D | ExynosHWCHelper.h | 129 String8 name; 143 1, 1, 24, RGB|BIT8|COMP_ANY, false, String8("RGB_888"), 0}, 145 1, 1, 16, RGB, false, String8("RGB_565"), 0}, 147 1, 1, 16, RGB|AFBC, false, String8("RGB_565_AFBC"), 0}, 163 3, 3, 12, YUV420|BIT8, false, String8("EXYNOS_YV12_M"), 0}, 181 2, 1, 12, YUV420|BIT8, false, String8("YCrCb_420_SP"), 0}, 183 3, 1, 12, YUV420|BIT8, false, String8("YV12"), 0}, 252 0, 0, 0, TYPE_UNDEF, false, String8("ImplDef"), 0} 434 void dumpExynosImage(String8& result, exynos_image &img); 437 String8 getFormatStr(int format, uint32_t compressType); [all …]
|
/aosp12/frameworks/av/drm/common/ |
H A D | DrmConstraints.cpp | 21 const String8 DrmConstraints::MAX_REPEAT_COUNT("max_repeat_count"); 23 const String8 DrmConstraints::LICENSE_START_TIME("license_start_time"); 26 const String8 DrmConstraints::EXTENDED_METADATA("extended_metadata"); 32 status_t DrmConstraints::put(const String8* key, const char* value) { in put() 43 String8 DrmConstraints::get(const String8& key) const { in get() 45 return String8(getValue(&key)); in get() 47 return String8(""); in get() 50 const char* DrmConstraints::getValue(const String8* key) const { in getValue() 65 const String8& DrmConstraints::KeyIterator::next() { in next() 108 String8 DrmConstraints::Iterator::next() { in next() [all …]
|
/aosp12/frameworks/av/drm/mediadrm/plugins/clearkey/default/ |
H A D | JsonWebKey.cpp | 26 const android::String8 kKeysTag("keys"); 29 const android::String8 kKeyTag("k"); 68 String8 encodedKey, encodedKeyId; in extractKeysFromJsonWebKeySet() 114 String8 paddedText(encodedText); in decodeBase64String() 132 bool JsonWebKey::findKey(const String8& jsonObject, String8* keyId, in findKey() 133 String8* encodedKey) { in findKey() 135 String8 key, value; in findKey() 154 void JsonWebKey::findValue(const String8 &key, String8* value) { in findValue() 184 Vector<String8>* tokens) { in parseJsonObject() 208 String8 token; in parseJsonObject() [all …]
|
/aosp12/frameworks/av/drm/common/include/ |
H A D | IDrmManagerService.h | 36 class String8; variable 97 int uniqueId, const String8* path, const int action) = 0; 101 virtual bool canHandle(int uniqueId, const String8& path, const String8& mimeType) = 0; 108 const String8& rightsPath, const String8& contentPath) = 0; 110 virtual String8 getOriginalMimeType(int uniqueId, const String8& path, int fd) = 0; 113 int uniqueId, const String8& path, const String8& mimeType) = 0; 125 int uniqueId, const String8& path, 191 virtual bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 198 const String8& rightsPath, const String8& contentPath); 200 virtual String8 getOriginalMimeType(int uniqueId, const String8& path, int fd); [all …]
|
H A D | DrmEngineBase.h | 39 DrmMetadata* getMetadata(int uniqueId, const String8* path); 47 bool canHandle(int uniqueId, const String8& path); 52 const String8& rightsPath, const String8& contentPath); 56 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd); 58 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 71 status_t removeRights(int uniqueId, const String8& path); 92 const DrmBuffer& buf, const String8& mimeType); 209 const String8& rightspath, const String8& contentPath) = 0; 231 virtual String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd) = 0; 245 int uniqueId, const String8& path, const String8& mimeType) = 0; [all …]
|
/aosp12/frameworks/av/drm/libdrmframework/ |
H A D | NoOpDrmManagerClientImpl.cpp | 39 const String8* /* path */, in getConstraints() argument 46 const String8* /* path */) { in getMetadata() argument 52 const String8& /* path */, in canHandle() argument 53 const String8& /* mimeType */) { in canHandle() 72 const String8& /* rightsPath */, in saveRights() argument 79 const String8& /* path */, in getOriginalMimeType() argument 81 return String8(); in getOriginalMimeType() 86 const String8& /* path */, in getDrmObjectType() argument 93 const String8& /* path */, in checkRightsStatus() argument 116 const String8& /* path */, in validateAction() argument [all …]
|
/aosp12/frameworks/native/include/input/ |
H A D | PropertyMap.h | 61 void addProperty(const String8& key, const String8& value); 64 bool hasProperty(const String8& key) const; 70 bool tryGetProperty(const String8& key, String8& outValue) const; 71 bool tryGetProperty(const String8& key, bool& outValue) const; 72 bool tryGetProperty(const String8& key, int32_t& outValue) const; 73 bool tryGetProperty(const String8& key, float& outValue) const; 79 inline const KeyedVector<String8, String8>& getProperties() const { return mProperties; } in getProperties() 98 status_t parseModifier(const String8& token, int32_t* outMetaState); 102 KeyedVector<String8, String8> mProperties;
|