Home
last modified time | relevance | path

Searched refs:cstr (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libmediahelper/include/media/
DTypeConverter.h90 for (const char *cstr = strtok(literal, del); cstr != NULL; cstr = strtok(NULL, del)) { variable
92 if (utilities::convertTo<std::string, typename Traits::Type >(cstr, value)) {
161 for (const char *cstr = strtok(literal, del); cstr != NULL; cstr = strtok(NULL, del)) { in collectionFromString() local
163 if (fromString(cstr, value)) { in collectionFromString()
175 for (const char *cstr = strtok(literal, del); cstr != NULL; cstr = strtok(NULL, del)) { in maskFromString() local
177 if (fromString(cstr, type)) { in maskFromString()
/frameworks/base/cmds/incident_helper/src/parsers/
DSystemPropertiesParser.cpp31 char cstr[len + 1]; in convertToFieldName() local
32 strcpy(cstr, name.c_str()); in convertToFieldName()
34 if (!isValidChar(cstr[i])) { in convertToFieldName()
35 cstr[i] = '_'; in convertToFieldName()
38 return string(cstr); in convertToFieldName()
/frameworks/base/core/jni/
Dandroid_os_HidlMemory.cpp43 jstring stringToJava(JNIEnv* env, const std::string& cstr) { in stringToJava() argument
44 return env->NewStringUTF(cstr.c_str()); in stringToJava()
/frameworks/av/media/codec2/tests/
DC2ComponentInterface_test.cpp40 template <class T> std::unique_ptr<T> alloc_unique_cstr(const char *cstr) { in alloc_unique_cstr() argument
41 size_t len = strlen(cstr); in alloc_unique_cstr()
43 memcpy(ptr->m.value, cstr, len); in alloc_unique_cstr()
/frameworks/base/services/core/jni/BroadcastRadio/
Dconvert.cpp279 auto cstr = env->GetStringUTFChars(jStr.get(), nullptr); in StringFromJava() local
280 std::string str(cstr); in StringFromJava()
281 env->ReleaseStringUTFChars(jStr.get(), cstr); in StringFromJava()