Home
last modified time | relevance | path

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

12345678910>>...24

/frameworks/base/tools/aapt/
DAaptAssets.h30 bool valid_symbol_name(const String8& str);
72 bool initFromFilterString(const String8& config);
74 int initFromDirName(const Vector<String8>& parts, const int startIndex);
81 String8 toDirName() const;
110 bool initFromDirName(const char* dir, String8* resType);
122 String8 toString() const { return mParams.toString(); } in toString()
123 String8 toDirName(const String8& resType) const;
125 const String8 getVersionString() const { return AaptConfig::getVersion(mParams); } in getVersionString()
150 AaptFile(const String8& sourceFile, const AaptGroupEntry& groupEntry, in AaptFile()
151 const String8& resType) in AaptFile()
[all …]
DAaptXml.cpp26 static String8 getStringAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, in getStringAttributeAtIndex()
27 String8* outError) { in getStringAttributeAtIndex()
33 return String8(); in getStringAttributeAtIndex()
40 return String8(); in getStringAttributeAtIndex()
45 return str ? String8(str, len) : String8(); in getStringAttributeAtIndex()
49 int32_t defValue, String8* outError) { in getIntegerAttributeAtIndex()
79 String8 getAttribute(const ResXMLTree& tree, const char* ns, in getAttribute()
80 const char* attr, String8* outError) { in getAttribute()
83 return String8(); in getAttribute()
88 String8 getAttribute(const ResXMLTree& tree, uint32_t attrRes, String8* outError) { in getAttribute()
[all …]
DAaptUtil.cpp20 using android::String8;
24 Vector<String8> split(const String8& str, const char sep) { in split()
25 Vector<String8> parts; in split()
32 parts.add(String8(p, strlen(p))); in split()
36 parts.add(String8(p, q-p)); in split()
42 Vector<String8> splitAndLowerCase(const String8& str, const char sep) { in splitAndLowerCase()
43 Vector<String8> parts; in splitAndLowerCase()
50 String8 val(p, strlen(p)); in splitAndLowerCase()
56 String8 val(p, q-p); in splitAndLowerCase()
/frameworks/av/include/drm/
DDrmRights.h44 const String8& rightsFilePath, const String8& mimeType,
45 const String8& accountId = String8("_NO_USER"),
46 const String8& subscriptionId = String8(""));
57 const DrmBuffer& rightsData, const String8& mimeType,
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;
[all …]
DDrmConstraints.h40 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()
143 status_t put(const String8* key, const char* value);
[all …]
DDrmInfoRequest.h44 static const String8 ACCOUNT_ID;
48 static const String8 SUBSCRIPTION_ID;
57 DrmInfoRequest(int infoType, const String8& mimeType);
82 const String8& next();
106 String8& next();
126 String8 getMimeType(void) const;
142 status_t put(const String8& key, const String8& value);
150 String8 get(const String8& key) const;
168 String8 mMimeType;
170 typedef KeyedVector<String8, String8> DrmRequestInfoMap;
DDrmInfo.h43 DrmInfo(int infoType, const DrmBuffer& drmBuffer, const String8& mimeType);
68 const String8& next();
92 String8& next();
112 String8 getMimeType(void) const;
135 status_t put(const String8& key, const String8& value);
143 String8 get(const String8& key) const;
164 int indexOfKey(const String8& key) const;
169 String8 mMimeType;
170 KeyedVector<String8, String8> mAttributes;
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/
DJsonWebKeyUnittest.cpp24 using android::String8;
42 String8* converted) { in stringFromVector()
53 void verifyKeys(const KeyMap& keys, const String8* clearKeys) { in verifyKeys()
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()
124 const String8 clearKeys("Good day!"); in TEST_F()
129 const String8 js( in TEST_F()
149 const String8 clearKeys("Good day!"); in TEST_F()
[all …]
DInitDataParserUnittest.cpp33 const String8 kCencType("cenc");
34 const String8 kWebMType("webm");
35 const String8 kBase64Padding("=");
41 const String8& initDataType, in attemptParse()
48 const String8& initDataType, in attemptParseExpectingSuccess()
49 const Vector<String8>& expectedKeys) { in attemptParseExpectingSuccess()
50 const String8 kRequestPrefix("{\"kids\":["); in attemptParseExpectingSuccess()
51 const String8 kRequestSuffix("],\"type\":\"temporary\"}"); in attemptParseExpectingSuccess()
55 String8 requestString(reinterpret_cast<const char*>(request.array()), in attemptParseExpectingSuccess()
64 String8 encodedId(encodedIdAString.c_str()); in attemptParseExpectingSuccess()
[all …]
/frameworks/av/include/media/
DAudioParameter.h30 AudioParameter(const String8& keyValuePairs);
52 String8 toString();
54 status_t add(const String8& key, const String8& value);
55 status_t addInt(const String8& key, const int value);
56 status_t addFloat(const String8& key, const float value);
58 status_t remove(const String8& key);
60 status_t get(const String8& key, String8& value);
61 status_t getInt(const String8& key, int& value);
62 status_t getFloat(const String8& key, float& value);
63 status_t getAt(size_t index, String8& key, String8& value);
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/
DJsonWebKey.h32 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 …]
DJsonWebKey.cpp26 const android::String8 kKeysTag("keys");
27 const android::String8 kKeyTypeTag("kty");
28 const android::String8 kSymmetricKeyValue("oct");
29 const android::String8 kKeyTag("k");
30 const android::String8 kKeyIdTag("kid");
31 const android::String8 kBase64Padding("=");
52 bool JsonWebKey::extractKeysFromJsonWebKeySet(const String8& jsonWebKeySet, in extractKeysFromJsonWebKeySet()
68 String8 encodedKey, encodedKeyId; in extractKeysFromJsonWebKeySet()
101 bool JsonWebKey::decodeBase64String(const String8& encodedText, in decodeBase64String()
114 String8 paddedText(encodedText); in decodeBase64String()
[all …]
/frameworks/av/media/libmedia/
DAudioParameter.cpp36 AudioParameter::AudioParameter(const String8& keyValuePairs) in AudioParameter()
47 String8 key = String8(pair, eqIdx); in AudioParameter()
48 String8 value; in AudioParameter()
50 value = String8(""); in AudioParameter()
52 value = String8(pair + eqIdx + 1); in AudioParameter()
73 String8 AudioParameter::toString() in toString()
75 String8 str = String8(""); in toString()
87 status_t AudioParameter::add(const String8& key, const String8& value) in add()
98 status_t AudioParameter::addInt(const String8& key, const int value) in addInt()
102 String8 str8 = String8(str); in addInt()
[all …]
/frameworks/av/drm/libdrmframework/include/
DDrmManager.h66 status_t loadPlugIns(const String8& plugInDirPath);
73 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action);
75 DrmMetadata* getMetadata(int uniqueId, const String8* path);
77 bool canHandle(int uniqueId, const String8& path, const String8& mimeType);
84 const String8& rightsPath, const String8& contentPath);
86 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
88 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType);
90 int checkRightsStatus(int uniqueId, const String8& path, int action);
98 int uniqueId, const String8& path, int action, const ActionDescription& description);
100 status_t removeRights(int uniqueId, const String8& path);
[all …]
DIDrmManagerService.h36 class String8; variable
97 int uniqueId, const String8* path, const int action) = 0;
99 virtual DrmMetadata* getMetadata(int uniqueId, const String8* path) = 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;
115 virtual int checkRightsStatus(int uniqueId, const String8& path, int action) = 0;
124 int uniqueId, const String8& path,
127 virtual status_t removeRights(int uniqueId, const String8& path) = 0;
[all …]
DDrmManagerService.h30 class String8; variable
60 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action);
62 DrmMetadata* getMetadata(int uniqueId, const String8* path);
64 bool canHandle(int uniqueId, const String8& path, const String8& mimeType);
71 const String8& rightsPath, const String8& contentPath);
73 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
75 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType);
77 int checkRightsStatus(int uniqueId, const String8& path,int action);
84 bool validateAction(int uniqueId, const String8& path,
87 status_t removeRights(int uniqueId, const String8& path);
[all …]
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.h35 bool isContentTypeSupported(const String8 &mimeType);
63 String8 const &mimeType, KeyType keyType,
64 KeyedVector<String8, String8> const &optionalParameters,
65 Vector<uint8_t> &request, String8 &defaultUrl);
77 KeyedVector<String8, String8> &infoMap) const;
79 status_t getProvisionRequest(String8 const &certType,
80 String8 const &certAuthority,
82 String8 &defaultUrl);
95 status_t getPropertyString(String8 const &name, String8 &value ) const;
96 status_t getPropertyByteArray(String8 const &name,
[all …]
DMockDrmCryptoPlugin.cpp51 bool MockDrmFactory::isContentTypeSupported(const String8 &mimeType) in isContentTypeSupported()
112 String8 const &mimeType, KeyType keyType, in getKeyRequest()
113 KeyedVector<String8, String8> const &optionalParameters, in getKeyRequest() argument
114 Vector<uint8_t> &request, String8 &defaultUrl) in getKeyRequest()
134 mByteArrayProperties.add(String8("mock-initdata"), initData); in getKeyRequest()
135 mStringProperties.add(String8("mock-mimetype"), mimeType); in getKeyRequest()
137 String8 keyTypeStr; in getKeyRequest()
139 mStringProperties.add(String8("mock-keytype"), keyTypeStr); in getKeyRequest()
141 String8 params; in getKeyRequest()
147 mStringProperties.add(String8("mock-optparams"), params); in getKeyRequest()
[all …]
/frameworks/base/tools/aapt/tests/
DFileFinder_test.cpp27 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 …]
DCrunchCache_test.cpp29 String8 source("res"); in main()
30 String8 dest("res2"); in main()
33 KeyedVector<String8, time_t> sourceData; in main()
35 sourceData.add(String8("res/drawable/hello.png"),3); in main()
37 sourceData.add(String8("res/drawable/world.png"),5); in main()
39 sourceData.add(String8("res/drawable-cool/hello.png"),3); in main()
41 KeyedVector<String8, time_t> destData; in main()
42 destData.add(String8("res2/drawable/hello.png"),3); in main()
43 destData.add(String8("res2/drawable/world.png"),3); in main()
45 destData.add(String8("res2/drawable/dead.png"),3); in main()
[all …]
/frameworks/av/drm/common/
DDrmConstraints.cpp21 const String8 DrmConstraints::MAX_REPEAT_COUNT("max_repeat_count");
22 const String8 DrmConstraints::REMAINING_REPEAT_COUNT("remaining_repeat_count");
23 const String8 DrmConstraints::LICENSE_START_TIME("license_start_time");
24 const String8 DrmConstraints::LICENSE_EXPIRY_TIME("license_expiry_time");
25 const String8 DrmConstraints::LICENSE_AVAILABLE_TIME("license_available_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()
[all …]
DDrmRights.cpp22 DrmRights::DrmRights(const String8& rightsFilePath, const String8& mimeType, in DrmRights()
23 const String8& accountId, const String8& subscriptionId) : in DrmRights()
29 if (String8("") != rightsFilePath) { in DrmRights()
35 DrmRights::DrmRights(const DrmBuffer& rightsData, const String8& mimeType, in DrmRights()
36 const String8& accountId, const String8& subscriptionId) : in DrmRights()
52 String8 DrmRights::getMimeType(void) const { in getMimeType()
56 String8 DrmRights::getAccountId(void) const { in getAccountId()
60 String8 DrmRights::getSubscriptionId(void) const { in getSubscriptionId()
/frameworks/base/include/androidfw/
DAssetManager.h102 bool addAssetPath(const String8& path, int32_t* cookie);
103 bool addOverlayPath(const String8& path, int32_t* cookie);
124 String8 getAssetPath(const int32_t cookie) const;
227 void getLocales(Vector<String8>* locales) const;
239 String8 path;
241 String8 idmap;
250 String8 createPathNameLocked(const asset_path& path, const char* locale,
252 String8 createPathNameLocked(const asset_path& path, const char* rootDir);
253 String8 createZipSourceNameLocked(const String8& zipFileName,
254 const String8& dirName, const String8& fileName);
[all …]
/frameworks/av/drm/libdrmframework/plugins/common/include/
DDrmEngineBase.h37 DrmConstraints* getConstraints(int uniqueId, const String8* path, int action);
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);
60 int checkRightsStatus(int uniqueId, const String8& path, int action);
68 int uniqueId, const String8& path, int action, const ActionDescription& description);
70 status_t removeRights(int uniqueId, const String8& path);
91 const DrmBuffer& buf, const String8& mimeType);
[all …]
/frameworks/av/media/libmediaplayerservice/
DDrm.h40 virtual bool isCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType);
53 String8 const &mimeType, DrmPlugin::KeyType keyType,
54 KeyedVector<String8, String8> const &optionalParameters,
55 Vector<uint8_t> &request, String8 &defaultUrl);
67 KeyedVector<String8, String8> &infoMap) const;
69 virtual status_t getProvisionRequest(String8 const &certType,
70 String8 const &certAuthority,
72 String8 &defaulUrl);
86 virtual status_t getPropertyString(String8 const &name, String8 &value ) const;
87 virtual status_t getPropertyByteArray(String8 const &name,
[all …]

12345678910>>...24