/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | Duration.java | 47 public void parse(String str) throws DateException argument 56 int len = str.length(); 64 c = str.charAt(0); 77 c = str.charAt(index); 80 "Duration.parse(str='" + str + "') expected 'P' at index=" 84 c = str.charAt(index); 91 c = str.charAt(index); 120 "Duration.parse(str='" + str [all...] |
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
H A D | DurationTest.java | 26 private void verifyDuration(String str, argument 31 duration.parse(str); 33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign); 34 assertEquals("Duration weeks is not equal for " + str, weeks, duration.weeks); 35 assertEquals("Duration days is not equal for " + str, days, duration.days); 36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours); 37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes); 38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds);
|
/frameworks/wilhelm/src/ |
H A D | trace.c | 49 const char *str = slesutResultToString(result); local 50 if (NULL != str) { 51 SL_LOGW("Leaving %s (%s)", function, str); 112 const char *str = slesutResultToString(result); local 114 if (NULL != str) { 116 &underscore[1], str); 122 if (NULL != str) { 123 SL_LOGW("Leaving %s (%s)", function, str);
|
/frameworks/av/services/audioflinger/ |
H A D | FastMixerState.cpp | 56 const char *str = FastThreadState::commandToString(command); local 57 if (str != NULL) { 58 return str;
|
/frameworks/base/core/java/android/util/ |
H A D | AtomicFile.java | 100 FileOutputStream str = null; 102 str = new FileOutputStream(mBaseName); 113 str = new FileOutputStream(mBaseName); 118 return str; 127 public void finishWrite(FileOutputStream str) { argument 128 if (str != null) { 129 FileUtils.sync(str); 131 str.close(); 144 public void failWrite(FileOutputStream str) { argument 145 if (str ! [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | AtomicFile.java | 68 FileOutputStream str = null; 70 str = new FileOutputStream(mBaseName); 81 str = new FileOutputStream(mBaseName); 86 return str; 89 public void finishWrite(FileOutputStream str) { argument 90 if (str != null) { 91 FileUtils.sync(str); 93 str.close(); 101 public void failWrite(FileOutputStream str) { argument 102 if (str ! [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A D | MouseUiController.java | 75 public boolean injectString(String str) throws InjectEventSecurityException { argument 76 return mUiController.injectString(str);
|
/frameworks/base/tools/split-select/ |
H A D | Grouper_test.cpp | 58 void addSplit(Vector<SplitDescription>& splits, const char* str); 185 void GrouperTest::addSplit(Vector<SplitDescription>& splits, const char* str) { argument 187 EXPECT_TRUE(SplitDescription::parse(String8(str), &splits.editTop()));
|
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/support/v4/java/android/support/v4/util/ |
H A D | AtomicFile.java | 98 FileOutputStream str = null; 100 str = new FileOutputStream(mBaseName); 107 str = new FileOutputStream(mBaseName); 112 return str; 121 public void finishWrite(FileOutputStream str) { argument 122 if (str != null) { 123 sync(str); 125 str.close(); 138 public void failWrite(FileOutputStream str) { argument 139 if (str ! [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | TextRenderer.cpp | 156 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...] |
/frameworks/av/services/audiopolicy/utilities/convert/ |
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/os/ |
H A D | PatternMatcher.java | 64 public boolean match(String str) { argument 65 return matchPattern(mPattern, str, mType);
|
/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 232 removePrefixForCompare(Locale locale, String str) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_Trace.cpp | 35 char* str = utf8Chars.lockBuffer(size); local 37 char c = str[i]; 39 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/libs/androidfw/tests/ |
H A D | ResTable_test.cpp | 225 void testU16StringToInt(const char16_t* str, uint32_t expectedValue, argument 227 size_t len = std::char_traits<char16_t>::length(str); 231 std::string s = convert.to_bytes(std::u16string(str, len)); 234 ASSERT_EQ(expectSuccess, U16StringToInt(str, len, &out))
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | IntervalStats.java | 141 private String getCachedStringRef(String str) { argument 142 final int index = mStringCache.indexOf(str); 144 mStringCache.add(str); 145 return 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);
|
H A D | CallAudioState.java | 203 private static void listAppend(StringBuffer buffer, String str) { argument 207 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(); 106 const char16_t* str = tree.getAttributeStringValue(idx, &len); local 107 return str ? String8(str, len) : String8(); 119 const char16_t* str = resTable.valueToString(value2, 0, NULL, &len); local 120 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 | 97 EXPECT_EQ(*(ref2->str), u"a"); 111 EXPECT_EQ(*(ref2->str), u"a"); 141 StyleString str { 148 StringPool::StyleRef ref = pool.makeRef(str); 151 EXPECT_EQ(std::u16string(u"android"), *(ref->str)); 165 StyleString str { { u"android" } }; 166 StringPool::StyleRef styleRef = pool.makeRef(str); 195 const char16_t* str = test.stringAt(0, &len); local 197 EXPECT_EQ(u'\u093f', *str); 198 EXPECT_EQ(0u, str[ [all...] |
/frameworks/base/tools/aapt2/test/ |
H A D | Common.h | 65 inline ResourceName parseNameOrDie(const StringPiece16& str) { argument 67 bool result = ResourceUtils::tryParseReference(str, &ref); 72 inline ConfigDescription parseConfigOrDie(const StringPiece& str) { argument 74 bool result = ConfigDescription::parse(str, &config);
|
/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | LDSymbol.h | 68 llvm::StringRef str() const { function in class:mcld::LDSymbol
|