Home
last modified time | relevance | path

Searched refs:charArray (Results 1 – 2 of 2) sorted by relevance

/art/test/045-reflect-array/src/
DMain.java73 Object charArray = Array.newInstance(Character.TYPE, 7); in testSingleChar() local
75 char[] array = (char[]) charArray; in testSingleChar()
83 Array.setChar(charArray, 1, '1'); in testSingleChar()
84 Array.setChar(charArray, 4, '4'); in testSingleChar()
86 Array.setShort(charArray, 3, (short) 'Y'); in testSingleChar()
90 Array.setInt(charArray, 5, 'Z'); in testSingleChar()
96 if (Array.getInt(charArray, i) - '0' != i) { in testSingleChar()
101 if (Array.getInt(charArray, 4) != '4') { in testSingleChar()
108 Array.getByte(charArray, 2); in testSingleChar()
112 Array.setChar(charArray, 3, (char) 0xffff); in testSingleChar()
[all …]
/art/runtime/
Dtransaction_test.cc328 mirror::CharArray* charArray = charArrayField->GetObject(h_klass.Get())->AsCharArray(); in TEST_F() local
329 ASSERT_TRUE(charArray != nullptr); in TEST_F()
330 ASSERT_EQ(charArray->GetLength(), 1); in TEST_F()
331 ASSERT_EQ(charArray->GetWithoutChecks(0), 0u); in TEST_F()
390 charArray->SetWithoutChecks<true>(0, 1u); in TEST_F()
403 EXPECT_EQ(charArray->GetWithoutChecks(0), 0u); in TEST_F()