Searched defs:str (Results 1 - 25 of 235) sorted by path

12345678910

/frameworks/av/camera/
H A DCameraMetadata.cpp722 const char *str = (i < ANDROID_SECTION_COUNT) ? camera_metadata_section_names[i] : local
725 ALOGV("%s: Trying to match against section '%s'", __FUNCTION__, str);
727 if (strstr(name, str) == name) { // name begins with the section name
728 size_t strLength = strlen(str);
734 section = str;
H A DCameraParameters.cpp256 char str[16]; local
257 sprintf(str, "%d", value);
258 set(key, str);
263 char str[16]; // 14 should be enough. We overestimate to be safe. local
264 snprintf(str, sizeof(str), "%g", value);
265 set(key, str);
297 static int parse_pair(const char *str, int *first, int *second, char delim, argument
302 int w = (int)strtol(str, &end, 10);
305 ALOGE("Cannot find delimeter (%c) in str
349 char str[32]; local
379 char str[32]; local
428 char str[32]; local
[all...]
/frameworks/av/cmds/screenrecord/
H A DTextRenderer.cpp156 const char* str = str8.string(); local
157 return computeScaledStringWidth(str, strlen(str));
169 float TextRenderer::computeScaledStringWidth(const char* str,
173 size_t chi = glyphIndex(str[i]);
189 const char* str = str8.string();
190 size_t len = strlen(str); // again, unsure about String8 handling
200 size_t chi = glyphIndex(str[i]);
254 float xpos, float ypos, const String8& str) {
255 ALOGV("drawWrappedString %.3f,%.3f '%s'", xpos, ypos, str
[all...]
H A Dscreenrecord.cpp832 static status_t parseValueWithUnit(const char* str, uint32_t* pValue) { argument
836 value = strtol(str, &endptr, 10);
845 fprintf(stderr, "Unrecognized value: %s\n", str);
/frameworks/av/drm/mediacas/plugins/clearkey/
H A DClearKeyCasPlugin.cpp175 status_t ClearKeyCasPlugin::provision(const String8 &str) { argument
176 ALOGV("provision: provisionString=%s", str.string());
181 status_t err = license_fetcher->Init(str.string());
324 String8 str; local
/frameworks/av/drm/mediacas/plugins/mock/
H A DMockCasPlugin.cpp173 status_t MockCasPlugin::provision(const String8 &str) { argument
174 ALOGV("provision: provisionString=%s", str.string());
/frameworks/av/include/media/
H A DTypeConverter.h101 static void collectionFromString(const std::string &str, typename Traits::Collection &collection, argument
104 char *literal = strdup(str.c_str());
118 static bool toString(const typename Traits::Type &value, std::string &str);
120 static bool fromString(const std::string &str, typename Traits::Type &result);
122 static void collectionFromString(const std::string &str,
127 const std::string &str, const char *del = AudioParameter::valueListSeparator);
130 uint32_t mask, std::string &str, const char *del = AudioParameter::valueListSeparator);
142 inline bool TypeConverter<Traits>::toString(const typename Traits::Type &value, std::string &str) argument
146 str = mTable[i].literal;
152 str
157 fromString(const std::string &str, typename Traits::Type &result) argument
170 collectionFromString(const std::string &str, typename Traits::Collection &collection, const char *del) argument
186 maskFromString(const std::string &str, const char *del) argument
201 maskToString(uint32_t mask, std::string &str, const char *del) argument
[all...]
H A Dconvert.h108 static inline bool fromString(const std::string &str, T &result) argument
115 if (str.find_first_of(std::string("\r\n\t\v ")) != std::string::npos) {
122 if (str.find("-") != std::string::npos
127 std::stringstream ss(str);
131 if (str.substr(0, 2) == "0x") {
146 static inline bool toString(const T &value, std::string &str) argument
156 str = oss.str();
167 static inline bool run(const std::string &str, dstType &result) argument
169 return fromString<dstType>(str, resul
177 run(const srcType &str, std::string &result) argument
234 convertTo(const std::string &str, int16_t &result) argument
266 convertTo(const std::string &str, float &result) argument
296 convertTo(const std::string &str, double &result) argument
328 convertTo(const std::string &str, bool &result) argument
375 convertTo(const std::string &str, std::string &result) argument
[all...]
/frameworks/av/media/libaudioclient/
H A DAudioEffect.cpp447 status_t AudioEffect::stringToGuid(const char *str, effect_uuid_t *guid) argument
449 if (str == NULL || guid == NULL) {
455 if (sscanf(str, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
473 status_t AudioEffect::guidToString(const effect_uuid_t *guid, char *str, size_t maxLen) argument
475 if (guid == NULL || str == NULL) {
479 snprintf(str, maxLen, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
/frameworks/av/media/libeffects/factory/
H A DEffectsFactory.c76 static void dumpEffectDescriptor(effect_descriptor_t *desc, char *str, size_t len, int indent);
77 static int stringToUuid(const char *str, effect_uuid_t *uuid);
78 static int uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen);
247 char str[512]; local
248 dumpEffectDescriptor(pDescriptor, str, sizeof(str), 0 /* indent */);
249 ALOGV("EffectQueryEffect() desc:%s", str);
529 char *str; local
540 str = strstr(lib_path_out, "/lib/soundfx/");
541 if (str
980 dumpEffectDescriptor(effect_descriptor_t *desc, char *str, size_t len, int indent) argument
1006 stringToUuid(const char *str, effect_uuid_t *uuid) argument
1028 uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen) argument
[all...]
/frameworks/av/media/libmedia/
H A DAudioParameter.cpp51 char *str = new char[keyValuePairs.length()+1]; local
55 strcpy(str, keyValuePairs.string());
56 char *pair = strtok_r(str, ";", &last);
78 delete[] str;
88 String8 str = String8(""); local
92 str += mParameters.keyAt(i);
94 str += "=";
95 str += mParameters.valueAt(i);
97 if (i < (size - 1)) str += ";";
99 return str;
120 char str[12]; local
131 char str[23]; local
[all...]
H A DIMediaExtractor.cpp237 String8 str = name; local
238 str.append(" for mime ");
239 str.append(mime);
240 str.append(", source ");
241 str.append(sourceDescription);
242 str.append(String8::format(", pid %d: ", owner));
244 str.append("deleted\n");
246 str.append("active\n");
250 str.appendFormat(" track {%s} ", desc.string());
253 str
[all...]
H A DIMediaMetadataRetriever.cpp185 const char* str = reply.readCString(); local
186 if (str != NULL) {
187 String8 value(str);
H A DMediaResource.cpp52 String8 str; local
53 str.appendFormat("%s/%s:%llu", asString(mType), asString(mSubType), (unsigned long long)mValue);
54 return str;
H A DMediaResourcePolicy.cpp44 String8 str; local
45 str.appendFormat("%s:%s", mType.string(), mValue.string());
46 return str;
H A DStringArray.cpp45 bool StringArray::push_back(const char* str) { argument
63 int len = strlen(str);
65 memcpy(mArray[mCurrent], str, len+1);
103 void StringArray::setEntry(int idx, const char* str) { argument
107 int len = strlen(str);
109 memcpy(mArray[idx], str, len+1);
/frameworks/av/media/libmedia/include/media/
H A DTypeConverter.h101 static void collectionFromString(const std::string &str, typename Traits::Collection &collection, argument
104 char *literal = strdup(str.c_str());
118 static bool toString(const typename Traits::Type &value, std::string &str);
120 static bool fromString(const std::string &str, typename Traits::Type &result);
122 static void collectionFromString(const std::string &str,
127 const std::string &str, const char *del = AudioParameter::valueListSeparator);
130 uint32_t mask, std::string &str, const char *del = AudioParameter::valueListSeparator);
142 inline bool TypeConverter<Traits>::toString(const typename Traits::Type &value, std::string &str) argument
146 str = mTable[i].literal;
152 str
157 fromString(const std::string &str, typename Traits::Type &result) argument
170 collectionFromString(const std::string &str, typename Traits::Collection &collection, const char *del) argument
186 maskFromString(const std::string &str, const char *del) argument
201 maskToString(uint32_t mask, std::string &str, const char *del) argument
[all...]
H A Dconvert.h108 static inline bool fromString(const std::string &str, T &result) argument
115 if (str.find_first_of(std::string("\r\n\t\v ")) != std::string::npos) {
122 if (str.find("-") != std::string::npos
127 std::stringstream ss(str);
131 if (str.substr(0, 2) == "0x") {
146 static inline bool toString(const T &value, std::string &str) argument
156 str = oss.str();
167 static inline bool run(const std::string &str, dstType &result) argument
169 return fromString<dstType>(str, resul
177 run(const srcType &str, std::string &result) argument
234 convertTo(const std::string &str, int16_t &result) argument
266 convertTo(const std::string &str, float &result) argument
296 convertTo(const std::string &str, double &result) argument
328 convertTo(const std::string &str, bool &result) argument
375 convertTo(const std::string &str, std::string &result) argument
[all...]
/frameworks/av/media/libstagefright/
H A DMPEG4Writer.cpp1405 char str[9]; local
1408 snprintf(str, 5, "%c%.2d.", sign, wholePart);
1410 snprintf(str, 5, "%+.2d.", wholePart);
1418 snprintf(&str[4], 5, "%.4d", fractionalPart);
1421 write(str, 1, 8);
1430 char str[10]; local
1433 snprintf(str, 6, "%c%.3d.", sign, wholePart);
1435 snprintf(str, 6, "%+.3d.", wholePart);
1443 snprintf(&str[5], 5, "%.4d", fractionalPart);
1446 write(str,
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_container.h60 char str[H264DEC_TRACE_STR_LEN]; member in struct:__anon734
/frameworks/av/media/libstagefright/foundation/
H A DAStringUtils.cpp30 const char *glob, size_t globLen, const char *str, size_t strLen, bool ignoreCase) {
38 if (strLen < globIx || Compare(str, glob, globIx /* len */, ignoreCase)) {
58 const char *tail = str + strLen - len;
62 while (ix + len <= strLen && Compare(str + ix, pattern, len, ignoreCase)) {
29 MatchesGlob( const char *glob, size_t globLen, const char *str, size_t strLen, bool ignoreCase) argument
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp1308 bool M3UParser::isQuotedString(const AString &str) { argument
1309 if (str.size() < 2
1310 || str.c_str()[0] != '"'
1311 || str.c_str()[str.size() - 1] != '"') {
1318 AString M3UParser::unquoteString(const AString &str) { argument
1319 if (!isQuotedString(str)) {
1320 return str;
1322 return AString(str, 1, str
[all...]
/frameworks/av/media/libstagefright/webm/
H A DWebmElement.cpp181 WebmString::WebmString(uint64_t id, const char *str) argument
182 : WebmElement(id, strlen(str)), mStr(str) {
/frameworks/av/media/mtp/
H A DMtpProperty.h40 char* str; member in struct:android::MtpPropertyValue
/frameworks/av/services/audioflinger/
H A DFastCaptureState.cpp33 const char *str = FastThreadState::commandToString(command); local
34 if (str != NULL) {
35 return str;

Completed in 491 milliseconds

12345678910