Home
last modified time | relevance | path

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

12345678910>>...32

/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);
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 …]
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 …]
/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;
/frameworks/av/media/libmediahelper/include/media/
DAudioParameter.h30 AudioParameter(const String8& keyValuePairs);
95 String8 toString() const { return toStringImpl(true); } in toString()
96 String8 keysToString() const { return toStringImpl(false); } in keysToString()
98 status_t add(const String8& key, const String8& value);
99 status_t addInt(const String8& key, const int value);
100 status_t addKey(const String8& key);
101 status_t addFloat(const String8& key, const float value);
103 status_t remove(const String8& key);
105 status_t get(const String8& key, String8& value) const;
106 status_t getInt(const String8& key, int& value) const;
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/default/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 kCencMimeType("video/mp4");
34 const String8 kWebmMimeType("video/webm");
35 const String8 kBase64Padding("=");
41 const String8& mimeType, in attemptParse()
48 const String8& mimeType, 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/base/libs/androidfw/include/androidfw/
DAssetManager.h94 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/av/drm/mediadrm/plugins/clearkey/default/include/
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 …]
DClearKeyDrmProperties.h24 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/av/drm/drmserver/
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);
99 int uniqueId, const String8& path, int action, const ActionDescription& description);
101 status_t removeRights(int uniqueId, const String8& path);
[all …]
/frameworks/av/media/libmediahelper/
DAudioParameter.cpp57 AudioParameter::AudioParameter(const String8& keyValuePairs) in AudioParameter()
68 String8 key = String8(pair, eqIdx); in AudioParameter()
69 String8 value; in AudioParameter()
71 value = String8(""); in AudioParameter()
73 value = String8(pair + eqIdx + 1); in AudioParameter()
94 String8 AudioParameter::toStringImpl(bool useValues) const in toStringImpl()
96 String8 str = String8(""); in toStringImpl()
110 status_t AudioParameter::add(const String8& key, const String8& value) in add()
121 status_t AudioParameter::addKey(const String8& key) in addKey()
123 return add(key, String8()); in addKey()
[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/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.h35 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 …]
DMockDrmCryptoPlugin.cpp51 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/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 …]
/frameworks/av/services/camera/libcameraservice/
DCameraFlashlight.h43 virtual status_t hasFlashUnit(const String8& cameraId,
47 virtual status_t setTorchMode(const String8& cameraId,
67 bool hasFlashUnit(const String8& cameraId);
70 status_t setTorchMode(const String8& cameraId, bool enabled);
76 status_t prepareDeviceOpen(const String8& cameraId);
81 status_t deviceClosed(const String8& cameraId);
86 status_t createFlashlightControl(const String8& cameraId);
89 bool hasFlashUnitLocked(const String8& cameraId);
93 bool isBackwardCompatibleMode(const String8& cameraId);
100 SortedVector<String8> mOpenedCameraIds;
[all …]
/frameworks/av/drm/libdrmframework/
DNoOpDrmManagerClientImpl.cpp39 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/mediadrm/plugins/clearkey/default/
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/drm/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);
69 int uniqueId, const String8& path, int action, const ActionDescription& description);
71 status_t removeRights(int uniqueId, const String8& path);
92 const DrmBuffer& buf, const String8& mimeType);
[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;
125 int uniqueId, const String8& path,
128 virtual status_t removeRights(int uniqueId, const String8& path) = 0;
[all …]
/frameworks/av/drm/mediacas/plugins/clearkey/
DJsonAssetLoader.h38 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);
/frameworks/av/media/libdatasource/
DMediaHTTP.cpp43 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::empty(); in getUri()
162 String8 uri; in getUri()
166 return String8(mLastURI.c_str()); in getUri()
[all …]

12345678910>>...32