Home
last modified time | relevance | path

Searched refs:AString (Results 1 – 25 of 171) sorted by relevance

1234567

/frameworks/av/media/libstagefright/foundation/tests/
DBase64_test.cpp37 void verifyDecode(const AString* expected, const AString* in) { in verifyDecode()
52 sp<ABuffer> result = decodeBase64(AString(paddedText.string())); 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/libstagefright/foundation/
DAString.cpp37 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 …]
DFoundationUtils.cpp31 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()
DAAtomizer.cpp33 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/libstagefright/foundation/include/media/stagefright/foundation/
DAString.h29 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 …]
Dbase64.h26 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/
DMediaCodecListOverrides.cpp36 AString getProfilingVersionString() { in getProfilingVersionString()
51 AString sizeRange; in getMeasureSize()
55 AString minSize; in getMeasureSize()
56 AString maxSize; in getMeasureSize()
60 AString sWidth; in getMeasureSize()
61 AString sHeight; in getMeasureSize()
77 AString bitrateRange; in getMeasureBitrate()
81 AString minBitrate; in getMeasureBitrate()
82 AString maxBitrate; in getMeasureBitrate()
91 bool isEncoder, const AString &mime, const sp<MediaCodecInfo::Capabilities> &caps) { in getMeasureFormat()
[all …]
DMediaCodecListOverrides.h32 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);
DMediaCodecList.cpp69 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()
443 AString sizeRange; in codecHandlesFormat()
444 AString minSize,maxSize; in codecHandlesFormat()
[all …]
/frameworks/av/media/libstagefright/httplive/
DM3UParser.h46 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 …]
DM3UParser.cpp61 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 …]
DLiveSession.h163 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/
DARTSPConnection.h30 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 …]
DASessionDescription.h30 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;
DARTSPConnection.cpp46 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 …]
DASessionDescription.cpp55 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 …]
DMyTransmitter.h53 static bool GetAttribute(const char *s, const char *key, AString *value) { in GetAttribute()
155 AString sdp; in issueAnnounce()
220 AString request; in issueAnnounce()
239 void H(const AString &s, AString *out) { in H()
272 AString value = response->mHeaders.valueAt(i); in authenticate()
293 AString *request, const char *method, const char *url) { in addAuthentication()
305 AString A1; in addAuthentication()
312 AString A2; in addAuthentication()
317 AString HA1, HA2; in addAuthentication()
321 AString tmp; in addAuthentication()
[all …]
DMyHandler.h84 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/tests/
DMediaCodecListOverrides_test.cpp68 const AString &key, in addMaxInstancesSetting()
69 const AString &value, in addMaxInstancesSetting()
70 KeyedVector<AString, CodecSettings> *results) { in addMaxInstancesSetting() argument
76 void verifyProfileResults(const KeyedVector<AString, CodecSettings> &results) { in verifyProfileResults() argument
79 const AString &key = results.keyAt(i); in verifyProfileResults()
83 const AString &valueS = settings.valueAt(0); in verifyProfileResults()
94 KeyedVector<AString, CodecSettings> eR; in exportTestResultsToXML()
97 KeyedVector<AString, CodecSettings> dR; in exportTestResultsToXML()
108 AString s = "abc123"; in TEST_F()
109 AString delimiter = " "; in TEST_F()
[all …]
/frameworks/av/media/libstagefright/tests/mediacodec/
DMediaCodecTest.cpp50 AString *errorDetailMsg),
158 const AString &owner, in SetupMediaCodec()
159 const AString &codecName, in SetupMediaCodec()
160 const AString &mediaType, in SetupMediaCodec()
162 std::function<sp<CodecBase>(const AString &name, const char *owner)> getCodecBase) { in SetupMediaCodec()
171 std::function<status_t(const AString &, sp<MediaCodecInfo> *)> getCodecInfo = in SetupMediaCodec()
172 [codecInfos](const AString &name, sp<MediaCodecInfo> *info) -> status_t { in SetupMediaCodec()
203 static const AString kCodecName{"test.codec"}; in TEST()
204 static const AString kCodecOwner{"nobody"}; in TEST()
205 static const AString kMediaType{"video/x-test"}; in TEST()
[all …]
DMediaTestHelper.h36 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/include/media/stagefright/
DFoundationUtils.h25 AString MakeUserAgent();
27 AString uriDebugString(const AString &uri, bool incognito = false);
29 AString nameForFd(int fd);
DMediaCodec.h49 struct AString;
105 const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err = NULL,
109 const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err,
113 const sp<ALooper> &looper, const AString &name, status_t *err = NULL,
167 AString *errorDetailMsg = NULL);
180 AString *errorDetailMsg = NULL);
188 AString *errorDetailMsg = NULL);
203 AString *errorDetailMsg = NULL);
249 status_t getName(AString *componentName) const;
409 AString mComponentName;
[all …]
/frameworks/av/media/libmedia/include/media/
DMediaCodecInfo.h40 typedef KeyedVector<AString, AString> CodecSettings;
193 void getSupportedMediaTypes(Vector<AString> *mediaTypes) const;
207 void getAliases(Vector<AString> *aliases) const;
232 AString mName;
233 AString mOwner;
235 KeyedVector<AString, sp<Capabilities> > mCaps;
236 Vector<AString> mAliases;
/frameworks/av/media/libmedia/
DMediaCodecInfo.cpp153 void MediaCodecInfo::getAliases(Vector<AString> *aliases) const { in getAliases()
157 void MediaCodecInfo::getSupportedMediaTypes(Vector<AString> *mediaTypes) const { in getSupportedMediaTypes()
183 AString name = AString::FromParcel(parcel); in FromParcel()
184 AString owner = AString::FromParcel(parcel); in FromParcel()
194 AString alias = AString::FromParcel(parcel); in FromParcel()
199 AString mediaType = AString::FromParcel(parcel); in FromParcel()
216 for (const AString &alias : mAliases) { in writeToParcel()
273 mInfo->mCaps.add(AString(mediaType), caps); in addMediaType()

1234567