Searched defs:str (Results 151 - 175 of 217) sorted by relevance

123456789

/frameworks/native/libs/input/
H A DVelocityTracker.cpp68 String8 str; local
69 str.append("[");
71 str.appendFormat(" %f", *(a++));
73 str.append(",");
76 str.append(" ]");
77 return str;
81 String8 str; local
82 str.append("[");
85 str.append(",");
87 str
[all...]
H A DKeyCharacterMap.cpp1145 const char* str = token.string(); local
1146 const char* start = str;
1147 for (const char* cur = str; ; cur++) {
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DRenderEngine.cpp180 RenderEngine::GlesVersion RenderEngine::parseGlesVersion(const char* str) { argument
182 if (sscanf(str, "OpenGL ES-CM %d.%d", &major, &minor) != 2) {
183 if (sscanf(str, "OpenGL ES %d.%d", &major, &minor) != 2) {
184 ALOGW("Unable to parse GL_VERSION string: \"%s\"", str);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiConfigStore.java179 private static String encodeSSID(String str) { argument
180 return Utils.toHex(removeDoubleQuotes(str).getBytes(StandardCharsets.UTF_8));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DGsmCdmaConnection.java369 public void proceedAfterWildChar(String str) { argument
381 StringBuilder buf = new StringBuilder(str);
H A DConnection.java524 public abstract void proceedAfterWildChar(String str); argument
878 StringBuilder str = new StringBuilder(128);
880 str.append(" callId: " + getTelecomCallId());
882 str.append("addr: " + getAddress())
889 str.append(" incoming: " + isIncoming())
892 return str.toString();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DApnContext.java395 public void requestLog(String str) { argument
398 l.log(str);
492 String str = "ApnContext.restartOnError(" + errorCode + ") found " + retriesLeft +
494 if (DBG) log(str);
495 requestLog(str);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsPhoneConnection.java341 public void proceedAfterWildChar(String str) { argument
353 StringBuilder buf = new StringBuilder(str);
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduComposer.java304 protected void appendTextString(String str) { argument
312 appendTextString(str.getBytes());
445 protected void appendQuotedString(String str) { argument
452 appendQuotedString(str.getBytes());
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardBuilder.java2082 private String encodeQuotedPrintable(final String str) { argument
2083 if (TextUtils.isEmpty(str)) {
2093 strArray = str.getBytes(mCharset);
2097 strArray = str.getBytes();
/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/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];
/frameworks/base/core/java/android/widget/
H A DTimePickerClockDelegate.java645 static private int lastIndexOfAny(String str, char[] any) { argument
648 for (int i = str.length() - 1; i >= 0; i--) {
649 char c = str.charAt(i);
/frameworks/base/core/java/com/google/android/util/
H A DAbstractMessageParser.java1330 protected static String reverse(String str) { argument
1332 for (int i = str.length() - 1; i >= 0; --i) {
1333 buf.append(str.charAt(i));
1369 public static void addToTrie(TrieNode root, String str, String value) { argument
1371 while (index < str.length()) {
1372 root = root.getOrCreateChild(str.charAt(index++));
1381 private static boolean matches(TrieNode root, String str) { argument
1383 while (index < str.length()) {
1384 root = root.getChild(str.charAt(index++));
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp836 const jchar* str = env->GetStringCritical(params, 0); local
839 params8 = String8(reinterpret_cast<const char16_t*>(str),
841 env->ReleaseStringCritical(params, str);
H A Dandroid_hardware_camera2_CameraMetadata.cpp811 const char *str = (i < ANDROID_SECTION_COUNT) ? camera_metadata_section_names[i] : local
814 ALOGV("%s: Trying to match against section '%s'", __FUNCTION__, str);
816 if (strstr(key, str) == key) { // key begins with the section name
817 size_t strLength = strlen(str);
825 section = str;
/frameworks/base/libs/hwui/
H A DProgramCache.cpp796 const char* str = shader.string(); local
798 String8 line(str, index - lastIndex);
802 str += (index - lastIndex);
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDatabase.cpp452 const char* str = (stringValue ? env->GetStringUTFChars(stringValue, NULL) : NULL); local
454 packet.putString(str);
455 env->ReleaseStringUTFChars(stringValue, str);
633 jchar* str = env->GetCharArrayElements(mStringBuffer, 0); local
634 packet.putString(str);
635 env->ReleaseCharArrayElements(mStringBuffer, str, 0);
843 jchar* str = env->GetCharArrayElements(mStringBuffer, 0); local
844 MtpString temp(reinterpret_cast<char16_t*>(str));
846 env->ReleaseCharArrayElements(mStringBuffer, str, 0);
973 jchar* str local
1196 jchar* str = env->GetCharArrayElements(mStringBuffer, 0); local
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DAllocation.java3297 * @param str string to create the allocation from
3303 String str,
3308 allocArray = str.getBytes("UTF-8");
3302 createFromString(RenderScript rs, String str, int usage) argument
/frameworks/base/services/core/java/com/android/server/
H A DTextServicesManagerService.java1083 private void putString(final String key, final String str) { argument
1085 mCopyOnWriteDataStore.put(key, str);
1087 Settings.Secure.putStringForUser(mResolver, key, str, mCurrentUserId);
/frameworks/base/tools/aapt2/
H A DResourceParser.cpp54 static uint32_t parseFormatAttribute(const StringPiece16& str) { argument
56 for (StringPiece16 part : util::tokenize(str, u'|')) {
155 spanStack.back().lastChar = builder.str().size();
188 if (builder.str().size() > std::numeric_limits<uint32_t>::max()) {
190 << "style string '" << builder.str() << "' is too long");
193 spanStack.push_back(Span{ spanName, static_cast<uint32_t>(builder.str().size()) });
204 outStyleString->str = builder.str();
517 mTable->stringPool.makeRef(styleString.str, StringPool::Context{ 1, mConfig }));
926 static Maybe<Reference> parseXmlAttributeName(StringPiece16 str) { argument
[all...]
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
H A DViewDataBinding.java1056 * @param str The tag string.
1059 private static int parseTagInt(String str, int startIndex) { argument
1060 final int end = str.length();
1064 char c = str.charAt(i);
/frameworks/native/cmds/atrace/
H A Datrace.cpp264 static bool _writeStr(const char* filename, const char* str, int flags) argument
274 ssize_t len = strlen(str);
275 if (write(fd, str, len) != len) {
287 static bool writeStr(const char* filename, const char* str) argument
289 return _writeStr(filename, str, O_WRONLY);
293 static bool appendStr(const char* filename, const char* str) argument
295 return _writeStr(filename, str, O_APPEND|O_WRONLY);
409 char str[32] = "1"; local
414 snprintf(str, 32, "%d", size);
415 return writeStr(k_traceBufferSizePath, str);
[all...]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DEventRecurrence.java316 String str = day2String(this.byday[i]);
317 s.append(str);
673 * @param str The string to parse.
679 public static int parseIntRange(String str, int minVal, int maxVal, boolean allowZero) { argument
681 if (str.charAt(0) == '+') {
683 str = str.substring(1);
685 int val = Integer.parseInt(str);
687 throw new InvalidFormatException("Integer value out of range: " + str);
691 throw new InvalidFormatException("Invalid integer value: " + str);
830 parseWday(String str, int[] byday, int[] bydayNum, int index) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmMmiCode.java1462 private String formatLtr(String str) { argument
1464 return str == null ? str : fmt.unicodeWrap(str, TextDirectionHeuristics.LTR, true);

Completed in 643 milliseconds

123456789