/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
H A D | InitDataParser.cpp | 42 std::vector<uint8_t> StrToVector(const std::string& str) { argument 43 std::vector<uint8_t> vec(str.begin(), str.end());
|
/frameworks/av/include/media/ |
H A D | convert.h | 108 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/libeffects/factory/ |
H A D | EffectsFactoryState.c | 73 int stringToUuid(const char *str, effect_uuid_t *uuid) argument 77 if (sscanf(str, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x", 95 int uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen) argument 98 snprintf(str, maxLen, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x", 114 void dumpEffectDescriptor(effect_descriptor_t *desc, char *str, size_t len, int indent) { argument 122 str[0] = 0; 125 strlcat(str, s, len); 129 strlcat(str, ss, len); 133 strlcat(str, ss, len); 137 strlcat(str, [all...] |
/frameworks/av/media/libmedia/include/media/ |
H A D | convert.h | 108 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/base/core/java/android/util/ |
H A D | AtomicFile.java | 126 FileOutputStream str = null; 128 str = new FileOutputStream(mBaseName); 139 str = new FileOutputStream(mBaseName); 144 return str; 153 public void finishWrite(FileOutputStream str) { argument 154 if (str != null) { 155 FileUtils.sync(str); 157 str.close(); 174 public void failWrite(FileOutputStream str) { argument 175 if (str ! [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | LocaleHelper.java | 63 * @param str the string to sentence-case. 67 public static String toSentenceCase(String str, Locale locale) { argument 68 if (str.isEmpty()) { 69 return str; 71 final int firstCodePointLen = str.offsetByCodePoints(0, 1); 72 return str.substring(0, firstCodePointLen).toUpperCase(locale) 73 + str.substring(firstCodePointLen); 83 * @param str the string to normalize 87 public static String normalizeForSearch(String str, Locale locale) { argument 92 return str 241 removePrefixForCompare(Locale locale, String str) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_Trace.cpp | 34 char* str = utf8Chars.lockBuffer(size); local 36 char c = str[i]; 38 str[i] = ' ';
|
H A D | android_util_StringBlock.cpp | 89 const char16_t* str = osb->stringAt(idx, &len); local 90 if (str == NULL) { 95 return env->NewString((const jchar*)str, len);
|
/frameworks/base/media/jni/ |
H A D | android_media_Media2HTTPConnection.cpp | 157 const char *str = env->GetStringUTFChars(jmime, 0); local 158 if (str != NULL) { 159 *mimeType = String8(str); 163 env->ReleaseStringUTFChars(jmime, str); 176 const char *str = env->GetStringUTFChars(juri, 0); local 177 *uri = String8(str); 178 env->ReleaseStringUTFChars(juri, str);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/ |
H A D | VersionInfo.java | 114 public InvalidVersionException(String str, boolean tooNew) { argument 115 super(str);
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | AudioState.java | 122 private static void listAppend(StringBuffer buffer, String str) { argument 126 buffer.append(str);
|
/frameworks/base/tools/aapt/ |
H A D | AaptXml.cpp | 44 const char16_t* str = tree.getAttributeStringValue(attrIndex, &len); local 45 return str ? String8(str, len) : String8(); 114 const char16_t* str = tree.getAttributeStringValue(idx, &len); local 115 return str ? String8(str, len) : String8(); 135 const char16_t* str = resTable.valueToString(&value, static_cast<size_t>(block), NULL, &len); local 136 return str ? String8(str, len) : String8();
|
H A D | ResourceIdCache.cpp | 40 const char16_t* str = hashableString.string(); local 41 while (int c = *str++) hash = hashround(hash, c);
|
/frameworks/base/tools/aapt2/ |
H A D | StringPool_test.cpp | 179 StyleString str{{"android"}}; 227 const char16_t* str = test.stringAt(0, &len); local 229 EXPECT_THAT(str, Pointee(Eq(u'\u093f'))); 230 EXPECT_THAT(str[1], Eq(0u));
|
/frameworks/base/tools/aapt2/test/ |
H A D | Builders.h | 50 const android::StringPiece& str); 52 const android::StringPiece& str); 54 const ConfigDescription& config, const android::StringPiece& str); 99 ValueBuilder& SetComment(const android::StringPiece& str) { argument 100 value_->SetComment(str); 131 StyleBuilder& SetParent(const android::StringPiece& str); 132 StyleBuilder& AddItem(const android::StringPiece& str, std::unique_ptr<Item> value); 133 StyleBuilder& AddItem(const android::StringPiece& str, const ResourceId& id, 146 StyleableBuilder& AddItem(const android::StringPiece& str, const Maybe<ResourceId>& id = {}); 155 std::unique_ptr<xml::XmlResource> BuildXmlDom(const android::StringPiece& str); [all...] |
/frameworks/base/tools/split-select/ |
H A D | SplitDescription.cpp | 80 String8 str(config.toString()); 81 str.append(extension); 82 return str; 131 bool SplitDescription::parse(const String8& str, SplitDescription* outSplit) { argument 132 ssize_t index = str.find(":"); 137 configStr.setTo(str.string(), index); 138 extensionStr.setTo(str.string() + index + 1); 140 configStr.setTo(str);
|
/frameworks/base/tools/streaming_proto/ |
H A D | string_utils.cpp | 11 to_camel_case(const string& str) argument 14 const int N = str.size(); 18 char c = str[i]; 40 make_constant_name(const string& str) argument 43 const int N = str.size(); 46 char c = str[i]; 64 file_base_name(const string& str) argument 66 size_t start = str.rfind('/'); 72 size_t end = str.find('.', start); 74 end = str 80 replace_string(const string& str, const char replace, const char with) argument 93 split(const string& str, const char delimiter) argument 112 stripPrefix(const string& str, const string& prefix) argument [all...] |
/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | LDSymbol.h | 68 llvm::StringRef str() const { function in class:mcld::LDSymbol
|
/frameworks/compile/mclinker/lib/LD/ |
H A D | DebugString.cpp | 52 const char* str = strings.data(); local 53 const char* str_end = str + pSection.size(); 54 while (str < str_end) { 55 size_t len = string_length(str); 56 m_StringTable.insertString(llvm::StringRef(str, len)); 57 str = str + len + 1; 79 const char* str = d_str.data() + offset; local 83 m_StringTable.getOutputOffset(llvm::StringRef(str, string_length(str)))); [all...] |
H A D | Diagnostic.cpp | 133 const std::string& str = getArgStdStr(arg_no); local 134 pOutStr.append(str.begin(), str.end()); 144 const char* str = getArgCStr(arg_no); local 145 if (str == NULL) 146 str = "(null)"; 147 pOutStr.append(str);
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | Convolve3x3.java | 40 private float[] updateMatrix(float str) { argument 42 float cf1 = blend(1.f / 9.f, 0.f, str); 43 float cf2 = blend(1.f / 9.f, -1.f, str); 44 float cf3 = blend(1.f / 9.f, 5.f, str);
|
H A D | Convolve5x5.java | 40 private float[] updateMatrix(float str) { argument 43 float cf1 = blend(f125, -1.f, str); 44 float cf2 = blend(f125, -3.f, str); 45 float cf3 = blend(f125, -4.f, str); 46 float cf4 = blend(f125, 6.f, str); 47 float cf5 = blend(f125, 20.f, str); 48 float cf6 = blend(f125, 0.f, str);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | Convolve3x3.java | 47 private float[] updateMatrix(float str) { argument 49 float cf1 = blend(1.f / 9.f, 0.f, str); 50 float cf2 = blend(1.f / 9.f, -1.f, str); 51 float cf3 = blend(1.f / 9.f, 5.f, str);
|
H A D | Convolve5x5.java | 47 private float[] updateMatrix(float str) { argument 50 float cf1 = blend(f125, -1.f, str); 51 float cf2 = blend(f125, -3.f, str); 52 float cf3 = blend(f125, -4.f, str); 53 float cf4 = blend(f125, 6.f, str); 54 float cf5 = blend(f125, 20.f, str); 55 float cf6 = blend(f125, 0.f, str);
|
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestEffectCapabilities.cpp | 46 void guidToString(const SLInterfaceID guid, char *str) { argument 47 if ((NULL == guid) || (NULL == str)) { 50 snprintf(str, GUID_DISPLAY_LENGTH, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
|