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

123456789

/frameworks/av/camera/
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.cpp826 static status_t parseValueWithUnit(const char* str, uint32_t* pValue) { argument
830 value = strtol(str, &endptr, 10);
839 fprintf(stderr, "Unrecognized value: %s\n", str);
/frameworks/av/media/libeffects/factory/
H A DEffectsFactory.c71 static void dumpEffectDescriptor(effect_descriptor_t *desc, char *str, size_t len, int indent);
72 static int stringToUuid(const char *str, effect_uuid_t *uuid);
73 static int uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen);
242 char str[512]; local
243 dumpEffectDescriptor(pDescriptor, str, sizeof(str), 0 /* indent */);
244 ALOGV("EffectQueryEffect() desc:%s", str);
516 char *str; local
526 str = strstr(path, "/lib/");
527 if (str
917 dumpEffectDescriptor(effect_descriptor_t *desc, char *str, size_t len, int indent) argument
943 stringToUuid(const char *str, effect_uuid_t *uuid) argument
965 uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen) argument
[all...]
/frameworks/av/media/libmedia/
H A DAudioEffect.cpp446 status_t AudioEffect::stringToGuid(const char *str, effect_uuid_t *guid) argument
448 if (str == NULL || guid == NULL) {
454 if (sscanf(str, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
472 status_t AudioEffect::guidToString(const effect_uuid_t *guid, char *str, size_t maxLen) argument
474 if (guid == NULL || str == NULL) {
478 snprintf(str, maxLen, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
H A DAudioParameter.cpp38 char *str = new char[keyValuePairs.length()+1]; local
42 strcpy(str, keyValuePairs.string());
43 char *pair = strtok_r(str, ";", &last);
65 delete[] str;
75 String8 str = String8(""); local
79 str += mParameters.keyAt(i);
80 str += "=";
81 str += mParameters.valueAt(i);
82 if (i < (size - 1)) str += ";";
84 return str;
100 char str[12]; local
111 char str[23]; local
[all...]
H A DIMediaExtractor.cpp195 String8 str = name; local
196 str.append(" for mime ");
197 str.append(mime);
198 str.append(", source ");
199 str.append(sourceDescription);
200 str.append(String8::format(", pid %d: ", owner));
202 str.append("deleted\n");
204 str.append("active\n");
208 str.appendFormat(" track {%s} ", desc.string());
211 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/libstagefright/
H A DMPEG4Writer.cpp1308 char str[9]; local
1311 snprintf(str, 5, "%c%.2d.", sign, wholePart);
1313 snprintf(str, 5, "%+.2d.", wholePart);
1321 snprintf(&str[4], 5, "%.4d", fractionalPart);
1324 write(str, 1, 8);
1333 char str[10]; local
1336 snprintf(str, 6, "%c%.3d.", sign, wholePart);
1338 snprintf(str, 6, "%+.3d.", wholePart);
1346 snprintf(&str[5], 5, "%.4d", fractionalPart);
1349 write(str,
[all...]
/frameworks/av/media/libstagefright/codecs/avc/common/src/
H A Ddeblock.cpp303 void* str; local
330 str = (void*)Strength; //de-ref type-punned pointer fix
331 if (*((uint32*)str)) // only if one of the 4 Strength bytes is != 0
437 str = (void*)Strength; //de-ref type-punned pointer fix
438 if (*((uint32*)str)) // only if one of the 4 Strength bytes is != 0
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_container.h60 char str[H264DEC_TRACE_STR_LEN]; member in struct:__anon636
/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;
H A DFastMixerState.cpp56 const char *str = FastThreadState::commandToString(command); local
57 if (str != NULL) {
58 return str;
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DTypeConverter.h86 static void collectionFromString(const std::string &str, typename Traits::Collection &collection, argument
89 char *literal = strdup(str.c_str());
103 static bool toString(const typename Traits::Type &value, std::string &str);
105 static bool fromString(const std::string &str, typename Traits::Type &result);
107 static void collectionFromString(const std::string &str,
111 static uint32_t maskFromString(const std::string &str, const char *del = "|");
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DTypeConverter.cpp235 bool TypeConverter<Traits>::toString(const typename Traits::Type &value, std::string &str) argument
239 str = mTable[i].literal;
247 bool TypeConverter<Traits>::fromString(const std::string &str, typename Traits::Type &result) argument
250 if (strcmp(mTable[i].literal, str.c_str()) == 0) {
260 void TypeConverter<Traits>::collectionFromString(const std::string &str, argument
264 char *literal = strdup(str.c_str());
276 uint32_t TypeConverter<Traits>::maskFromString(const std::string &str, const char *del) argument
278 char *literal = strdup(str.c_str());
/frameworks/av/services/audiopolicy/utilities/convert/
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/soundtrigger/
H A DSoundTrigger.cpp241 status_t SoundTrigger::stringToGuid(const char *str, sound_trigger_uuid_t *guid) argument
243 if (str == NULL || guid == NULL) {
249 if (sscanf(str, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
267 status_t SoundTrigger::guidToString(const sound_trigger_uuid_t *guid, char *str, size_t maxLen) argument
269 if (guid == NULL || str == NULL) {
273 snprintf(str, maxLen, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp401 // characters in str is a hex number in [0, 255], which are converted to
407 static bool parseColor(const char str[7], float color[3]) { argument
413 char c = str[2*i + j];

Completed in 543 milliseconds

123456789