/frameworks/av/media/module/foundation/tests/ |
D | Base64_test.cpp | 37 void verifyDecode(const AString* expected, const AString* in) { in verifyDecode() 52 sp<ABuffer> result = decodeBase64(AString(paddedText.c_str())); in verifyDecode() 60 void verifyEncode(const AString* expected, const AString* in) { in verifyEncode() 65 AString out = AString(""); in verifyEncode() 75 const AString base64[] = { in TEST_F() 76 AString("SGVsbG8gRnJpZW5kIQ"), in TEST_F() 77 AString("R29vZCBkYXkh"), in TEST_F() 78 AString("") // string to signal end of array in TEST_F() 81 const AString clearText[] = { in TEST_F() 82 AString("Hello Friend!"), in TEST_F() [all …]
|
/frameworks/av/media/module/foundation/ |
D | AString.cpp | 37 constexpr const char *AString::kEmptyString; 39 AString::AString() in AString() function in android::AString 45 AString::AString(const char *s) in AString() function in android::AString 57 AString::AString(const char *s, size_t size) in AString() function in android::AString 69 AString::AString(const String8 &from) in AString() function in android::AString 76 AString::AString(const AString &from) in AString() function in android::AString 83 AString::AString(const AString &from, size_t offset, size_t n) in AString() function in android::AString 90 AString::~AString() { in ~AString() 94 AString &AString::operator=(const AString &from) { in operator =() 102 size_t AString::size() const { in size() [all …]
|
D | FoundationUtils.cpp | 31 AString uriDebugString(const AString &uri, bool incognito) { in uriDebugString() 33 return AString("<URI suppressed>"); in uriDebugString() 41 AString scheme; in uriDebugString() 57 scheme = AString(uri, 0, i); in uriDebugString() 61 return AString("<no-scheme URI suppressed>"); in uriDebugString() 64 AString MakeUserAgent() { in MakeUserAgent() 65 AString ua; in MakeUserAgent() 80 AString nameForFd(int fd) { in nameForFd() 83 AString result; in nameForFd()
|
D | AAtomizer.cpp | 33 mAtoms.push(List<AString>()); in AAtomizer() 42 List<AString> &entry = mAtoms.editItemAt(index); in atomize() 43 List<AString>::iterator it = entry.begin(); in atomize() 51 entry.push_back(AString(name)); in atomize()
|
/frameworks/av/media/module/foundation/include/media/stagefright/foundation/ |
D | AString.h | 29 struct AString { struct 30 AString(); 31 AString(const char *s); // NOLINT, implicit conversion 32 AString(const char *s, size_t size); 33 AString(const String8 &from); // NOLINT, implicit conversion 34 AString(const AString &from); 35 AString(const AString &from, size_t offset, size_t n); 36 ~AString(); 38 AString &operator=(const AString &from); argument 41 void setTo(const AString &from, size_t offset, size_t n); [all …]
|
D | base64.h | 26 struct AString; 28 sp<ABuffer> decodeBase64(const AString &s); 32 void encodeBase64(const void *data, size_t size, AString *out); 34 void encodeBase64Url(const void *data, size_t size, AString *out);
|
/frameworks/av/media/libstagefright/ |
D | MediaCodecListOverrides.cpp | 35 AString getProfilingVersionString() { in getProfilingVersionString() 50 AString sizeRange; in getMeasureSize() 54 AString minSize; in getMeasureSize() 55 AString maxSize; in getMeasureSize() 59 AString sWidth; in getMeasureSize() 60 AString sHeight; in getMeasureSize() 76 AString bitrateRange; in getMeasureBitrate() 80 AString minBitrate; in getMeasureBitrate() 81 AString maxBitrate; in getMeasureBitrate() 90 bool isEncoder, const AString &mime, const sp<MediaCodecInfo::Capabilities> &caps) { in getMeasureFormat() [all …]
|
D | MediaCodecList.cpp | 69 AString currentVersion = getProfilingVersionString(); in isProfilingNeeded() 295 Vector<AString> aliases; in findCodecByName() 301 for (const AString &alias : aliases) { in findCodecByName() 320 bool MediaCodecList::isSoftwareCodec(const AString &componentName) { in isSoftwareCodec() 327 static int compareSoftwareCodecsFirst(const AString *name1, const AString *name2) { in compareSoftwareCodecsFirst() 351 Vector<AString> *matches) { in findMatchingCodecs() 359 Vector<AString> *matches) { in findMatchingCodecs() 381 AString componentName = info->getCodecName(); in findMatchingCodecs() 455 AString sizeRange; in codecHandlesFormat() 456 AString minSize,maxSize; in codecHandlesFormat() [all …]
|
/frameworks/av/media/libstagefright/httplive/ |
D | M3UParser.h | 46 bool itemAt(size_t index, AString *uri, sp<AMessage> *meta = NULL); 55 bool getTypeURI(size_t index, const char *key, AString *uri) const; 58 AString getFullCipherUri(const AString &partial); 67 AString mURI; 69 AString makeURL(const char *baseURL) const; 74 AString mBaseURI; 90 KeyedVector<AString, sp<MediaGroup> > mMediaGroups; 95 const AString &line, sp<AMessage> *meta, const char *key); 98 const AString &line, sp<AMessage> *meta, const char *key); 101 const AString &line, sp<AMessage> *meta) const; [all …]
|
D | M3UParser.cpp | 61 bool getActiveURI(AString *uri, const char *baseURL) const; 76 AString mName; 77 AString mURI; 78 AString mLanguage; 80 AString makeURL(const char *baseURL) const; 233 bool M3UParser::MediaGroup::getActiveURI(AString *uri, const char *baseURL) const { in getActiveURI() 317 bool M3UParser::itemAt(size_t index, AString *uri, sp<AMessage> *meta) { in itemAt() 419 bool M3UParser::getTypeURI(size_t index, const char *key, AString *uri) const { in getTypeURI() 434 AString groupID; in getTypeURI() 440 AString codecs; in getTypeURI() [all …]
|
D | LiveSession.h | 163 AString mUri, mNewUri; 180 AString uriKey() { in uriKey() 181 AString key(mType); in uriKey() 199 AString mMasterURL; 213 KeyedVector<AString, FetcherInfo> mFetcherInfos; 262 bool UriIsSameAsIndex( const AString &uri, int32_t index, bool newUri); 268 const AString &uri, uint32_t streamMask, 290 void tryToFinishBandwidthSwitch(const AString &oldUri);
|
/frameworks/av/media/libstagefright/rtsp/include/media/stagefright/rtsp/ |
D | ARTSPConnection.h | 30 AString mStatusLine; 31 KeyedVector<AString,AString> mHeaders; 46 const char *url, AString *host, unsigned *port, AString *path, 47 AString *user, AString *pass); 79 static const AString sUserAgent; 84 AString mUser, mPass; 86 AString mNonce; 87 AString mRealm; 111 bool receiveLine(AString *line); 116 void addAuthentication(AString *request); [all …]
|
D | ASessionDescription.h | 30 struct AString; 41 void getFormat(size_t index, AString *value) const; 47 AString *desc, AString *params) const; 58 bool findAttribute(size_t index, const char *key, AString *value) const; 68 static void SDPStringFactory(AString &sdp, const char *ip, bool isAudio, unsigned port, 75 typedef KeyedVector<AString,AString> Attribs; 79 Vector<AString> mFormats;
|
D | MyHandler.h | 84 static bool GetAttribute(const char *s, const char *key, AString *value) { in GetAttribute() 169 AString host, path, user, pass; in mNotify() 211 AString getControlURL() { in getControlURL() 212 AString sessionLevelControlURL; in getControlURL() 220 AString controlURL; in getControlURL() 303 AString cname = "stagefright@"; in addSDES() 312 AString tool = MakeUserAgent(); in addSDES() 345 bool pokeAHole(int rtpSocket, int rtcpSocket, const AString &transport) { in pokeAHole() 350 AString source; in pokeAHole() 351 AString server_port; in pokeAHole() [all …]
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaCodecListOverrides.h | 32 AString getProfilingVersionString(); 34 bool splitString(const AString &s, const AString &delimiter, AString *s1, AString *s2); 44 KeyedVector<AString, CodecSettings> *encoder_results, 45 KeyedVector<AString, CodecSettings> *decoder_results, 51 const KeyedVector<AString, CodecSettings>& encoder_results, 52 const KeyedVector<AString, CodecSettings>& decoder_results);
|
D | FoundationUtils.h | 25 AString MakeUserAgent(); 27 AString uriDebugString(const AString &uri, bool incognito = false); 29 AString nameForFd(int fd);
|
D | MediaCodec.h | 57 struct AString; 132 const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err = NULL, 136 const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err, 140 const sp<ALooper> &looper, const AString &name, status_t *err = NULL, 194 AString *errorDetailMsg = NULL); 201 AString *errorDetailMsg = NULL); 214 AString *errorDetailMsg = NULL); 222 AString *errorDetailMsg = NULL); 229 AString *errorDetailMsg = NULL); 239 AString *errorDetailMsg = NULL); [all …]
|
/frameworks/av/media/libstagefright/tests/ |
D | MediaCodecListOverrides_test.cpp | 67 const AString &key, in addMaxInstancesSetting() 68 const AString &value, in addMaxInstancesSetting() 69 KeyedVector<AString, CodecSettings> *results) { in addMaxInstancesSetting() argument 75 void verifyProfileResults(const KeyedVector<AString, CodecSettings> &results) { in verifyProfileResults() argument 78 const AString &key = results.keyAt(i); in verifyProfileResults() 82 const AString &valueS = settings.valueAt(0); in verifyProfileResults() 93 KeyedVector<AString, CodecSettings> eR; in exportTestResultsToXML() 96 KeyedVector<AString, CodecSettings> dR; in exportTestResultsToXML() 107 AString s = "abc123"; in TEST_F() 108 AString delimiter = " "; in TEST_F() [all …]
|
/frameworks/av/media/libstagefright/tests/mediacodec/ |
D | MediaCodecTest.cpp | 50 AString *errorDetailMsg), 66 AString* errorDetailMsg), 161 const AString &owner, in SetupMediaCodec() 162 const AString &codecName, in SetupMediaCodec() 163 const AString &mediaType, in SetupMediaCodec() 165 std::function<sp<CodecBase>(const AString &name, const char *owner)> getCodecBase) { in SetupMediaCodec() 174 std::function<status_t(const AString &, sp<MediaCodecInfo> *)> getCodecInfo = in SetupMediaCodec() 175 [codecInfos](const AString &name, sp<MediaCodecInfo> *info) -> status_t { in SetupMediaCodec() 206 static const AString kCodecName{"test.codec"}; in TEST() 207 static const AString kCodecOwner{"nobody"}; in TEST() [all …]
|
D | MediaTestHelper.h | 36 const AString &name, 38 std::function<sp<CodecBase>(const AString &, const char *)> getCodecBase, 39 std::function<status_t(const AString &, sp<MediaCodecInfo> *)> getCodecInfo);
|
/frameworks/av/media/libstagefright/rtsp/ |
D | ARTSPConnection.cpp | 46 const AString ARTSPConnection::sUserAgent = 135 const char *url, AString *host, unsigned *port, AString *path, in ParseURL() 136 AString *user, AString *pass) { in ParseURL() 162 AString userPass(*host, 0, atPos); in ParseURL() 230 AString url; in onConnect() 236 AString host, path; in onConnect() 421 AString request; in onSendRequest() 437 AString cseqHeader = "CSeq: "; in onSendRequest() 563 bool ARTSPConnection::receiveLine(AString *line) { in receiveLine() 608 static bool IsRTSPVersion(const AString &s) { in IsRTSPVersion() [all …]
|
D | ASessionDescription.cpp | 55 mFormats.push(AString("[root]")); in parse() 57 AString desc((const char *)data, size); in parse() 67 AString line; in parse() 99 AString key, value; in parse() 134 AString(line, 2, line.size() - 2).c_str()); in parse() 137 mFormats.push(AString(line, 2, line.size() - 2)); in parse() 143 AString key, value; in parse() 153 key = AString(line, 0, equalPos + 1); in parse() 154 value = AString(line, equalPos + 1, line.size() - equalPos - 1); in parse() 180 void ASessionDescription::getFormat(size_t index, AString *value) const { in getFormat() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaCodecInfo.h | 40 typedef KeyedVector<AString, AString> CodecSettings; 194 void getSupportedMediaTypes(Vector<AString> *mediaTypes) const; 208 void getAliases(Vector<AString> *aliases) const; 233 AString mName; 234 AString mOwner; 236 KeyedVector<AString, sp<Capabilities> > mCaps; 237 Vector<AString> mAliases;
|
/frameworks/av/media/libmedia/ |
D | MediaCodecInfo.cpp | 154 void MediaCodecInfo::getAliases(Vector<AString> *aliases) const { in getAliases() 158 void MediaCodecInfo::getSupportedMediaTypes(Vector<AString> *mediaTypes) const { in getSupportedMediaTypes() 184 AString name = AString::FromParcel(parcel); in FromParcel() 185 AString owner = AString::FromParcel(parcel); in FromParcel() 195 AString alias = AString::FromParcel(parcel); in FromParcel() 200 AString mediaType = AString::FromParcel(parcel); in FromParcel() 217 for (const AString &alias : mAliases) { in writeToParcel() 274 mInfo->mCaps.add(AString(mediaType), caps); in addMediaType()
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodec.h | 41 struct AString; 97 AString *errorDetailMsg); 104 AString *errorDetailMsg = NULL); 117 AString *errorDetailMsg); 125 AString *errorDetailMsg); 130 AString *errorDetailMsg); 140 AString *errorDetailMsg); 213 AString mNameAtCreation;
|