/frameworks/base/libs/androidfw/include_pathutils/androidfw/ |
D | PathUtils.h | 34 String8 getPathLeaf(const String8& str); 46 String8 getPathDir(const String8& str); 61 String8 getPathExtension(const String8& str); 71 String8 getBasePath(const String8& str); 83 String8& appendPath(String8& str, const char* leaf); 84 inline String8& appendPath(String8& str, const String8& leaf) { in appendPath() 93 inline String8 appendPathCopy(String8 str, const char* leaf) { return appendPath(str, leaf); } in appendPathCopy() 94 inline String8 appendPathCopy(String8 str, const String8& leaf) { in appendPathCopy()
|
/frameworks/av/include/drm/ |
D | DrmRights.h | 44 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 …]
|
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() 143 status_t put(const String8* key, const char* value); [all …]
|
D | DrmInfoRequest.h | 44 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;
|
/frameworks/base/tools/aapt/ |
D | AaptAssets.h | 30 bool valid_symbol_name(const String8& str); 72 bool initFromFilterString(const String8& config); 74 int initFromDirName(const Vector<String8>& parts, const int startIndex); 108 bool initFromDirName(const char* dir, String8* resType); 120 String8 toString() const { return mParams.toString(); } in toString() 121 String8 toDirName(const String8& resType) const; 123 const String8 getVersionString() const { return AaptConfig::getVersion(mParams); } in getVersionString() 148 AaptFile(const String8& sourceFile, const AaptGroupEntry& groupEntry, in AaptFile() 149 const String8& resType) in AaptFile() 164 const String8& getPath() const { return mPath; } in getPath() [all …]
|
D | AaptXml.cpp | 26 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 …]
|
/frameworks/av/media/libmediahelper/include/media/ |
D | AudioParameter.h | 30 AudioParameter(const String8& keyValuePairs); 154 String8 toString() const { return toStringImpl(true); } in toString() 155 String8 keysToString() const { return toStringImpl(false); } in keysToString() 157 status_t add(const String8& key, const String8& value); 158 status_t addInt(const String8& key, const int value); 159 status_t addKey(const String8& key); 160 status_t addFloat(const String8& key, const float value); 162 status_t remove(const String8& key); 164 status_t get(const String8& key, int& value) const { in get() 167 status_t get(const String8& key, float& value) const { in get() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/ |
D | JsonWebKeyUnittest.cpp | 24 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 …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/ |
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 …]
|
D | ClearKeyDrmProperties.h | 24 static const android::String8 kVendorKey("vendor"); 25 static const android::String8 kVendorValue("Google"); 26 static const android::String8 kVersionKey("version"); 27 static const android::String8 kVersionValue("1.0"); 28 static const android::String8 kPluginDescriptionKey("description"); 29 static const android::String8 kPluginDescriptionValue("ClearKey CDM"); 30 static const android::String8 kAlgorithmsKey("algorithms"); 31 static const android::String8 kAlgorithmsValue(""); 32 static const android::String8 kListenerTestSupportKey("listenerTestSupport"); 33 static const android::String8 kListenerTestSupportValue("true"); [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager.h | 94 bool addAssetPath(const String8& path, int32_t* cookie, 96 bool addOverlayPath(const String8& path, int32_t* cookie); 109 bool addAssetFd(int fd, const String8& debugPathName, int32_t* cookie, 131 String8 getAssetPath(const int32_t cookie) const; 206 void getLocales(Vector<String8>* locales, bool includeSystemLocales=true) const; 222 String8 path; 225 String8 idmap; 234 String8 createPathNameLocked(const asset_path& path, const char* rootDir); 235 String8 createZipSourceNameLocked(const String8& zipFileName, 236 const String8& dirName, const String8& fileName); [all …]
|
/frameworks/base/libs/androidfw/ |
D | PathUtils.cpp | 23 String8 getPathLeaf(const String8& str) { in getPathLeaf() 31 return String8(cp+1); in getPathLeaf() 34 String8 getPathDir(const String8& str8) { in getPathDir() 40 return String8(); in getPathDir() 42 return String8(str, cp - str); in getPathDir() 45 static char* findExtension(const String8& str8) { in findExtension() 66 String8 getPathExtension(const String8& str) { in getPathExtension() 71 return String8(ext); in getPathExtension() 73 return String8(); in getPathExtension() 76 String8 getBasePath(const String8& str8) { in getBasePath() [all …]
|
/frameworks/av/drm/drmserver/ |
D | DrmManager.h | 104 status_t loadPlugIns(const String8& plugInDirPath); 111 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action); 113 DrmMetadata* getMetadata(int uniqueId, const String8* path); 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); 128 int checkRightsStatus(int uniqueId, const String8& path, int action); 137 int uniqueId, const String8& path, int action, const ActionDescription& description); 139 status_t removeRights(int uniqueId, const String8& path); [all …]
|
/frameworks/base/tools/aapt/tests/ |
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 …]
|
D | CrunchCache_test.cpp | 29 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/ |
D | DrmConstraints.cpp | 21 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 …]
|
D | DrmRights.cpp | 22 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/av/drm/mediadrm/plugins/mock/ |
D | MockDrmCryptoPlugin.h | 35 bool isContentTypeSupported(const String8 &mimeType); 64 String8 const &mimeType, KeyType keyType, 65 KeyedVector<String8, String8> const &optionalParameters, 66 Vector<uint8_t> &request, String8 &defaultUrl, 79 KeyedVector<String8, String8> &infoMap) const; 81 status_t getProvisionRequest(String8 const &certType, 82 String8 const &certAuthority, 84 String8 &defaultUrl); 95 status_t getPropertyString(String8 const &name, String8 &value ) const; 96 status_t getPropertyByteArray(String8 const &name, [all …]
|
D | MockDrmCryptoPlugin.cpp | 51 bool MockDrmFactory::isContentTypeSupported(const String8 &mimeType) in isContentTypeSupported() 114 String8 const &mimeType, KeyType keyType, in getKeyRequest() 115 KeyedVector<String8, String8> const &optionalParameters, in getKeyRequest() argument 116 Vector<uint8_t> &request, String8 &defaultUrl, in getKeyRequest() 137 mByteArrayProperties.add(String8("mock-initdata"), initData); in getKeyRequest() 138 mStringProperties.add(String8("mock-mimetype"), mimeType); in getKeyRequest() 140 String8 keyTypeStr; in getKeyRequest() 142 mStringProperties.add(String8("mock-keytype"), keyTypeStr); in getKeyRequest() 144 String8 params; in getKeyRequest() 150 mStringProperties.add(String8("mock-optparams"), params); in getKeyRequest() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/ |
D | JsonWebKey.cpp | 26 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/drm/libdrmframework/ |
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 73 const String8& /* contentPath */) { in saveRights() 77 String8 NoOpDrmManagerClientImpl::getOriginalMimeType( in getOriginalMimeType() 79 const String8& /* path */, in getOriginalMimeType() argument 81 return String8(); in getOriginalMimeType() 86 const String8& /* path */, in getDrmObjectType() argument [all …]
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
D | JsonAssetLoader.h | 38 const String8& jsonAssetString, Asset *asset); 42 Vector<String8> mJsonObjects; 43 Vector<String8> mTokens; 46 const String8& encodedText); 47 bool findKey(const String8& jsonObject, Asset *asset); 49 const String8 &key, String8* value); 51 const String8& jsonObject, Vector<String8>* tokens); 53 const String8& jsonString, Vector<String8>* jsonObjects);
|
D | JsonAssetLoader.cpp | 32 const String8 kIdTag("id"); 33 const String8 kNameTag("name"); 34 const String8 kLowerCaseOgranizationNameTag("lowercase_organization_name"); 35 const String8 kEncryptionKeyTag("encryption_key"); 36 const String8 kCasTypeTag("cas_type"); 37 const String8 kBase64Padding("="); 53 const String8& jsonAssetString, Asset *asset) { in extractAssetFromString() 72 sp<ABuffer> JsonAssetLoader::decodeBase64String(const String8& encodedText) { in decodeBase64String() 76 String8 paddedText(encodedText); in decodeBase64String() 86 bool JsonAssetLoader::findKey(const String8& jsonObject, Asset *asset) { in findKey() [all …]
|
/frameworks/av/media/libmediahelper/ |
D | AudioParameter.cpp | 95 AudioParameter::AudioParameter(const String8& keyValuePairs) in AudioParameter() 106 String8 key = String8(pair, eqIdx); in AudioParameter() 107 String8 value; in AudioParameter() 109 value = String8(""); in AudioParameter() 111 value = String8(pair + eqIdx + 1); in AudioParameter() 132 String8 AudioParameter::toStringImpl(bool useValues) const in toStringImpl() 134 String8 str = String8(""); in toStringImpl() 148 status_t AudioParameter::add(const String8& key, const String8& value) in add() 159 status_t AudioParameter::addKey(const String8& key) in addKey() 161 return add(key, String8()); in addKey() [all …]
|
/frameworks/av/media/libdatasource/ |
D | MediaHTTP.cpp | 43 const KeyedVector<String8, String8> *headers, in connect() argument 49 KeyedVector<String8, String8> extHeaders; in connect() 54 if (extHeaders.indexOfKey(String8("User-Agent")) < 0) { in connect() 55 extHeaders.add(String8("User-Agent"), String8(MakeUserAgent().c_str())); in connect() 71 mName = String8::format("MediaHTTP(%s)", sanitized.c_str()); in connect() 82 mName = String8("MediaHTTP(<disconnected>)"); in disconnect() 157 String8 MediaHTTP::getUri() { in getUri() 159 return String8(); in getUri() 162 String8 uri; in getUri() 166 return String8(mLastURI.c_str()); in getUri() [all …]
|