Searched defs:chars (Results 1 - 8 of 8) sorted by relevance
/art/runtime/jdwp/ |
H A D | jdwp_bits.h | 62 static inline void AppendUtf16BE(std::vector<uint8_t>& bytes, const uint16_t* chars, size_t char_count) { argument 65 Append2BE(bytes, chars[i]);
|
/art/test/003-omnibus-opcodes/src/ |
H A D | Array.java | 39 static void checkChars(char[] chars) { argument 40 Main.assertTrue(chars[0] == 40000); 41 Main.assertTrue(chars[1] == 40001); 42 Main.assertTrue(chars[2] == 40002); 43 Main.assertTrue(chars[3] == 40003); 44 Main.assertTrue(chars[4] == 40004);
|
/art/runtime/ |
H A D | utf.cc | 70 int32_t ComputeUtf16Hash(const mirror::CharArray* chars, int32_t offset, argument 74 hash = hash * 31 + chars->Get(offset + i); 79 int32_t ComputeUtf16Hash(const uint16_t* chars, size_t char_count) { argument 82 hash = hash * 31 + *chars++; 139 size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count) { argument 142 uint16_t ch = *chars++;
|
H A D | jni_internal_test.cc | 1206 jchar chars[] = { 'h', 'i' }; local 1208 s = env_->NewString(chars, 0); 1212 s = env_->NewString(chars, 2); 1248 jchar chars[4] = { 'x', 'x', 'x', 'x' }; local 1249 env_->GetStringRegion(s, 1, 2, &chars[1]); 1250 EXPECT_EQ('x', chars[0]); 1251 EXPECT_EQ('e', chars[1]); 1252 EXPECT_EQ('l', chars[2]); 1253 EXPECT_EQ('x', chars[3]); 1299 const jchar* chars local 1323 const jchar* chars = env_->GetStringCritical(s, NULL); local [all...] |
H A D | check_jni.cc | 1507 static void ReleaseStringChars(JNIEnv* env, jstring string, const jchar* chars) { argument 1508 CHECK_JNI_ENTRY(kFlag_Default | kFlag_ExcepOkay, "Esp", env, string, chars); 1509 sc.CheckNonNull(chars); 1511 GuardedCopy::Check(__FUNCTION__, chars, false); 1512 chars = reinterpret_cast<const jchar*>(GuardedCopy::Destroy(const_cast<jchar*>(chars))); 1514 baseEnv(env)->ReleaseStringChars(env, string, chars);
|
H A D | jni_internal.cc | 1943 static jstring NewString(JNIEnv* env, const jchar* chars, jsize char_count) { argument 1944 if (UNLIKELY(chars == NULL && char_count > 0)) { \ 1948 String* result = String::AllocFromUtf16(soa.Self(), char_count, chars); 1982 const jchar* chars = s->GetCharArray()->GetData() + s->GetOffset(); local 1983 memcpy(buf, chars + start, length * sizeof(jchar)); 1996 const jchar* chars = s->GetCharArray()->GetData() + s->GetOffset(); local 1997 ConvertUtf16ToModifiedUtf8(buf, chars + start, length); 2005 const CharArray* chars = s->GetCharArray(); local 2006 PinPrimitiveArray(soa, chars); 2010 return chars 2023 ReleaseStringCritical(JNIEnv* env, jstring java_string, const jchar* chars) argument 2039 const uint16_t* chars = s->GetCharArray()->GetData() + s->GetOffset(); local 2045 ReleaseStringUTFChars(JNIEnv* env, jstring, const char* chars) argument [all...] |
H A D | debugger.cc | 3021 const jchar* chars = (name.get() != NULL) ? name->GetCharArray()->GetData() : NULL; local 3025 JDWP::AppendUtf16BE(bytes, chars, char_count);
|
/art/runtime/mirror/ |
H A D | string.cc | 50 const uint16_t* chars = GetCharArray()->GetData() + GetOffset(); local 51 const uint16_t* p = chars + start; 52 const uint16_t* end = chars + count; 55 return (p - 1) - chars; 239 const uint16_t* chars = GetCharArray()->GetData() + GetOffset(); local 242 ConvertUtf16ToModifiedUtf8(&result[0], chars, GetLength());
|
Completed in 176 milliseconds