Home
last modified time | relevance | path

Searched refs:chars (Results 1 – 25 of 25) sorted by relevance

/art/test/407-arrays/src/
DMain.java32 static void $opt$testReads(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, in $opt$testReads() argument
41 assertEquals(0, chars[0]); in $opt$testReads()
42 assertEquals(0, chars[index]); in $opt$testReads()
63 static void $opt$testWrites(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, in $opt$testWrites() argument
76 chars[0] = 'c'; in $opt$testWrites()
77 assertEquals('c', chars[0]); in $opt$testWrites()
78 chars[index] = 'd'; in $opt$testWrites()
79 assertEquals('d', chars[index]); in $opt$testWrites()
81 chars[0] = 65535; in $opt$testWrites()
82 assertEquals(65535, chars[0]); in $opt$testWrites()
[all …]
/art/test/570-checker-osr/
Dosr.cc68 ScopedUtfChars chars(env, method_name); in Java_Main_isInOsrCode() local
69 CHECK(chars.c_str() != nullptr); in Java_Main_isInOsrCode()
71 OsrVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_isInOsrCode()
83 ScopedUtfChars chars(env, method_name); in Java_Main_isInInterpreter() local
84 CHECK(chars.c_str() != nullptr); in Java_Main_isInInterpreter()
86 OsrVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_isInInterpreter()
118 ScopedUtfChars chars(env, method_name); in Java_Main_ensureHasProfilingInfo() local
119 CHECK(chars.c_str() != nullptr); in Java_Main_ensureHasProfilingInfo()
121 ProfilingInfoVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_ensureHasProfilingInfo()
158 ScopedUtfChars chars(env, method_name); in Java_Main_ensureHasOsrCode() local
[all …]
/art/test/common/
Druntime_state.cc151 ScopedUtfChars chars(env, method_name); in Java_Main_isAotCompiled() local
152 CHECK(chars.c_str() != nullptr); in Java_Main_isAotCompiled()
154 chars.c_str(), kRuntimePointerSize); in Java_Main_isAotCompiled()
175 ScopedUtfChars chars(env, method_name); in Java_Main_hasJitCompiledEntrypoint() local
176 CHECK(chars.c_str() != nullptr); in Java_Main_hasJitCompiledEntrypoint()
178 chars.c_str(), kRuntimePointerSize); in Java_Main_hasJitCompiledEntrypoint()
192 ScopedUtfChars chars(env, method_name); in Java_Main_hasJitCompiledCode() local
193 CHECK(chars.c_str() != nullptr); in Java_Main_hasJitCompiledCode()
195 chars.c_str(), kRuntimePointerSize); in Java_Main_hasJitCompiledCode()
213 ScopedUtfChars chars(env, method_name); in Java_Main_ensureJitCompiled() local
[all …]
/art/test/ti-agent/
Dti_utf.h162 inline size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count) { in CountUtf8Bytes() argument
164 const uint16_t *end = chars + char_count; in CountUtf8Bytes()
165 while (chars < end) { in CountUtf8Bytes()
166 const uint16_t ch = *chars++; in CountUtf8Bytes()
176 if (chars < end) { in CountUtf8Bytes()
177 const uint16_t ch2 = *chars; in CountUtf8Bytes()
182 chars++; in CountUtf8Bytes()
/art/libdexfile/dex/
Dutf.cc195 uint32_t ComputeModifiedUtf8Hash(const char* chars) { in ComputeModifiedUtf8Hash() argument
197 while (*chars != '\0') { in ComputeModifiedUtf8Hash()
198 hash = hash * 31 + *chars++; in ComputeModifiedUtf8Hash()
239 size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count) { in CountUtf8Bytes() argument
241 const uint16_t *end = chars + char_count; in CountUtf8Bytes()
242 while (chars < end) { in CountUtf8Bytes()
243 const uint16_t ch = *chars++; in CountUtf8Bytes()
253 if (chars < end) { in CountUtf8Bytes()
254 const uint16_t ch2 = *chars; in CountUtf8Bytes()
259 chars++; in CountUtf8Bytes()
Dutf.h45 size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count);
80 int32_t ComputeUtf16Hash(const MemoryType* chars, size_t char_count) { in ComputeUtf16Hash() argument
83 hash = hash * 31 + *chars++; in ComputeUtf16Hash()
92 uint32_t ComputeModifiedUtf8Hash(const char* chars);
Dutf_test.cc230 static size_t CountUtf8Bytes_reference(const uint16_t* chars, size_t char_count) { in CountUtf8Bytes_reference() argument
233 const uint16_t ch = *chars++; in CountUtf8Bytes_reference()
238 const uint16_t ch2 = *chars; in CountUtf8Bytes_reference()
243 chars++; in CountUtf8Bytes_reference()
/art/test/003-omnibus-opcodes/src/
DArray.java39 static void checkChars(char[] chars) { in checkChars() argument
40 Main.assertTrue(chars[0] == 40000); in checkChars()
41 Main.assertTrue(chars[1] == 40001); in checkChars()
42 Main.assertTrue(chars[2] == 40002); in checkChars()
43 Main.assertTrue(chars[3] == 40003); in checkChars()
44 Main.assertTrue(chars[4] == 40004); in checkChars()
/art/test/580-checker-string-fact-intrinsics/src-art/
DMain.java61 char[] chars = { 'b', 'a', 'r' }; in testNewStringFromChars() local
62 String s = StringFactory.newStringFromChars(chars); in testNewStringFromChars()
/art/runtime/mirror/
Dstring-inl.h186 int32_t String::FastIndexOf(MemoryType* chars, int32_t ch, int32_t start) { in FastIndexOf() argument
187 const MemoryType* p = chars + start; in FastIndexOf()
188 const MemoryType* end = chars + GetLength(); in FastIndexOf()
191 return (p - 1) - chars; in FastIndexOf()
316 inline bool String::AllASCII(const MemoryType* chars, const int length) { in AllASCII() argument
319 if (!IsASCII(chars[i])) { in AllASCII()
326 inline bool String::DexFileStringAllASCII(const char* chars, const int length) { in DexFileStringAllASCII() argument
329 DCHECK_EQ(AllASCII(reinterpret_cast<const uint8_t*>(chars), length), chars[length] == 0); in DexFileStringAllASCII()
330 return chars[length] == 0; in DexFileStringAllASCII()
Dstring.h170 int32_t FastIndexOf(MemoryType* chars, int32_t ch, int32_t start)
189 static bool AllASCII(const MemoryType* chars, const int length);
191 static bool DexFileStringAllASCII(const char* chars, const int length);
240 static bool AllASCIIExcept(const uint16_t* chars, int32_t length, uint16_t non_ascii);
Dstring.cc86 inline bool String::AllASCIIExcept(const uint16_t* chars, int32_t length, uint16_t non_ascii) { in AllASCIIExcept() argument
89 if (!IsASCII(chars[i]) && chars[i] != non_ascii) { in AllASCIIExcept()
326 const uint16_t* chars = GetValue(); in ToModifiedUtf8() local
327 ConvertUtf16ToModifiedUtf8(&result[0], byte_count, chars, GetLength()); in ToModifiedUtf8()
/art/runtime/native/
Dlibcore_util_CharsetUtils.cc119 ScopedCharArrayRW chars(env, javaChars); in CharsetUtils_asciiBytesToChars() local
120 if (chars.get() == nullptr) { in CharsetUtils_asciiBytesToChars()
125 jchar* dst = &chars[0]; in CharsetUtils_asciiBytesToChars()
139 ScopedCharArrayRW chars(env, javaChars); in CharsetUtils_isoLatin1BytesToChars() local
140 if (chars.get() == nullptr) { in CharsetUtils_isoLatin1BytesToChars()
145 jchar* dst = &chars[0]; in CharsetUtils_isoLatin1BytesToChars()
Ddalvik_system_VMDebug.cc238 ScopedUtfChars chars(env, javaFilename); in VMDebug_dumpHprofData() local
242 filename = chars.c_str(); in VMDebug_dumpHprofData()
566 ScopedUtfChars chars(env, agent); in VMDebug_nativeAttachAgent() local
570 filename = chars.c_str(); in VMDebug_nativeAttachAgent()
/art/runtime/jdwp/
Djdwp_bits.h62 static inline void AppendUtf16BE(std::vector<uint8_t>& bytes, const uint16_t* chars, in AppendUtf16BE() argument
66 Append2BE(bytes, chars[i]); in AppendUtf16BE()
71 const uint8_t* chars, size_t char_count) { in AppendUtf16CompressedBE() argument
74 Append2BE(bytes, static_cast<uint16_t>(chars[i])); in AppendUtf16CompressedBE()
/art/runtime/
Djni_internal_test.cc1515 const char* chars = env_->GetStringUTFChars(s, nullptr); in TEST_F() local
1516 EXPECT_STREQ("\xf0\x90\x90\x80", chars); in TEST_F()
1517 env_->ReleaseStringUTFChars(s, chars); in TEST_F()
1542 chars = env_->GetStringUTFChars(s, nullptr); in TEST_F()
1543 EXPECT_STREQ("\xf0\x90\x90\x80 \xf0\x9f\x8f\xa0", chars); in TEST_F()
1544 env_->ReleaseStringUTFChars(s, chars); in TEST_F()
1555 jchar chars[] = { 'h', 'i' }; in TEST_F() local
1557 s = env_->NewString(chars, 0); in TEST_F()
1561 s = env_->NewString(chars, 2); in TEST_F()
1616 jchar chars[4] = { 'x', 'x', 'x', 'x' }; in TEST_F() local
[all …]
Djni_internal.cc1763 static jstring NewString(JNIEnv* env, const jchar* chars, jsize char_count) { in NewString() argument
1768 if (UNLIKELY(chars == nullptr && char_count > 0)) { in NewString()
1773 mirror::String* result = mirror::String::AllocFromUtf16(soa.Self(), char_count, chars); in NewString()
1812 const jchar* chars = static_cast<jchar*>(s->GetValue()); in GetStringRegion() local
1813 memcpy(buf, chars + start, length * sizeof(jchar)); in GetStringRegion()
1832 const jchar* chars = s->GetValue(); in GetStringUTFRegion() local
1833 size_t bytes = CountUtf8Bytes(chars + start, length); in GetStringUTFRegion()
1834 ConvertUtf16ToModifiedUtf8(buf, bytes, chars + start, length); in GetStringUTFRegion()
1845 jchar* chars = new jchar[s->GetLength()]; in GetStringChars() local
1849 chars[i] = s->CharAt(i); in GetStringChars()
[all …]
Dcheck_jni.cc2394 static jstring NewStringUTF(JNIEnv* env, const char* chars) { in NewStringUTF() argument
2398 JniValueType args[2] = {{.E = env}, {.u = chars}}; in NewStringUTF()
2402 result.s = baseEnv(env)->NewStringUTF(env, chars); in NewStringUTF()
2455 static void ReleaseStringChars(JNIEnv* env, jstring string, const jchar* chars) { in ReleaseStringChars() argument
2456 ReleaseStringCharsInternal(__FUNCTION__, env, string, chars, false, false); in ReleaseStringChars()
2463 static void ReleaseStringCritical(JNIEnv* env, jstring string, const jchar* chars) { in ReleaseStringCritical() argument
2464 ReleaseStringCharsInternal(__FUNCTION__, env, string, chars, false, true); in ReleaseStringCritical()
3479 const void* chars, bool utf, bool critical) { in ReleaseStringCharsInternal() argument
3487 sc.CheckNonNull(chars); in ReleaseStringCharsInternal()
3488 bool force_copy_ok = !soa.ForceCopy() || GuardedCopy::Check(function_name, chars, false); in ReleaseStringCharsInternal()
[all …]
Ddebugger.cc4516 const jchar* chars = (name != nullptr) ? name->GetValue() : nullptr; in DdmSendThreadNotification() local
4525 JDWP::AppendUtf16BE(bytes, chars, char_count); in DdmSendThreadNotification()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatArrayInstance.java65 void initialize(final char[] chars) { in initialize() argument
66 mCharArray = chars; in initialize()
69 return chars.length; in initialize()
73 return Value.pack(chars[index]); in initialize()
DAhatClassInstance.java140 AhatArrayInstance chars = inst.asArrayInstance(); in asString() local
141 int numChars = chars.getLength(); in asString()
144 return chars.asMaybeCompressedString(offset, count, maxChars); in asString()
/art/openjdkjvmti/
Dti_properties.cc201 ScopedUtfChars chars(jni_env, reinterpret_cast<jstring>(prop_res.get())); in GetLibraryPath() local
202 return Copy(env, chars.c_str(), value_ptr); in GetLibraryPath()
/art/test/004-JniTest/
Djni_test.cc612 const char* chars = env->GetStringUTFChars(s, nullptr); in Java_Main_testNewStringObject() local
613 CHECK_EQ(strcmp(test_array, chars), 0); in Java_Main_testNewStringObject()
614 env->ReleaseStringUTFChars(s, chars); in Java_Main_testNewStringObject()
/art/test/956-methodhandles/src/
DMain.java1089 public VariableArityTester(char... chars) { update(chars); } in VariableArityTester() argument
1107 public String update(char... chars) { return lastResult = tally(chars); } in update() argument
1136 public static String tally(char... chars) { return Arrays.toString(chars); } in tally() argument
/art/test/959-invoke-polymorphic-accessors/src/
DMain.java597 char [] chars = { 'a', 'b', 'c' }; in main() local
598 for (char c : chars) { in main()