Home
last modified time | relevance | path

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

1234

/art/test/045-reflect-array/src/
DMain.java5 import java.lang.reflect.Array;
27 intArray = Array.newInstance(Integer.TYPE, 2); in testSingleInt()
31 Array.setInt(intArray, 1, 6); in testSingleInt()
33 if (Array.getInt(intArray, 0) != 5) in testSingleInt()
42 Array.setInt(intArray, 2, 27); in testSingleInt()
45 if (array.length != Array.getLength(intArray) || in testSingleInt()
54 Array.set(intArray, 0, x123); in testSingleInt()
55 Array.set(intArray, 1, x456); in testSingleInt()
56 if (!Array.get(intArray, 0).equals(x123) || !Array.get(intArray, 1).equals(x456)) { in testSingleInt()
66 intArray = Array.newInstance(Integer.TYPE, 0); in testSingleInt()
[all …]
/art/runtime/mirror/
Darray.cc47 static ObjPtr<Array> RecursiveCreateMultiArray(Thread* self, in RecursiveCreateMultiArray()
57 Handle<Array> new_array(hs.NewHandle( in RecursiveCreateMultiArray()
58 Array::Alloc(self, array_class.Get(), array_length, component_size_shift, allocator_type))); in RecursiveCreateMultiArray()
66 ObjPtr<Array> sub_array = in RecursiveCreateMultiArray()
73 new_array->AsObjectArray<Array>()->Set<false, false>(i, sub_array); in RecursiveCreateMultiArray()
79 ObjPtr<Array> Array::CreateMultiArray(Thread* self, in CreateMultiArray()
115 ObjPtr<Array> new_array = RecursiveCreateMultiArray(self, array_class, 0, dimensions); in CreateMultiArray()
125 ObjPtr<Array> raw_array = Array::Alloc(self, in Alloc()
133 void Array::ThrowArrayIndexOutOfBoundsException(int32_t index) { in ThrowArrayIndexOutOfBoundsException()
137 void Array::ThrowArrayStoreException(ObjPtr<Object> object) { in ThrowArrayStoreException()
[all …]
Darray-alloc-inl.h40 size_t header_size = Array::DataOffset(component_size).SizeValue(); in ComputeArraySize()
73 ObjPtr<Array> array = ObjPtr<Array>::DownCast(obj); in operator()
97 ObjPtr<Array> array = ObjPtr<Array>::DownCast(obj); in operator()
119 inline ObjPtr<Array> Array::Alloc(Thread* self, in Alloc()
143 ObjPtr<Array> result; in Alloc()
146 result = ObjPtr<Array>::DownCast( in Alloc()
153 result = ObjPtr<Array>::DownCast( in Alloc()
Darray.h36 class MANAGED Array : public Object {
47 ALWAYS_INLINE static ObjPtr<Array> Alloc(Thread* self,
55 static ObjPtr<Array> CreateMultiArray(Thread* self,
65 return GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Array, length_)); in GetLength()
72 SetField32<false, false, kVerifyNone>(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); in SetLength()
76 return OFFSET_OF_OBJECT_MEMBER(Array, length_); in LengthOffset()
81 size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); in DataOffset()
95 return OFFSETOF_MEMBER(Array, first_element_); in FirstElementOffset()
128 static ObjPtr<Array> CopyOf(Handle<Array> h_this, Thread* self, int32_t new_length)
146 DISALLOW_IMPLICIT_CONSTRUCTORS(Array);
[all …]
Dobject_array-alloc-inl.h40 ObjPtr<Array> array = Array::Alloc(self, in Alloc()
Dobject_test.cc160 MutableHandle<Array> a = hs.NewHandle( in TEST_F()
161 Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
166 a.Assign(Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
171 a.Assign(Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
181 MutableHandle<Array> a = hs.NewHandle( in TEST_F()
182 Array::Alloc</*kIsInstrumented=*/ true, /*kFillUsable=*/ true>( in TEST_F()
188 a.Assign(Array::Alloc</*kIsInstrumented=*/ true, /*kFillUsable=*/ true>( in TEST_F()
194 a.Assign(Array::Alloc</*kIsInstrumented=*/ true, /*kFillUsable=*/ true>( in TEST_F()
200 a.Assign(Array::Alloc</*kIsInstrumented=*/ true, /*kFillUsable=*/ true>( in TEST_F()
261 hs.NewHandle(ObjPtr<PointerArray>::DownCast<Array>(IntArray::Alloc(soa.Self(), 1))); in TEST_F()
[all …]
Dexecutable.h65 HeapReference<mirror::Array> parameters_;
Darray-inl.h34 inline uint32_t Array::ClassSize(PointerSize pointer_size) { in ClassSize()
40 inline size_t Array::SizeOf() { in SizeOf()
55 inline bool Array::CheckIsValidIndex(int32_t index) { in CheckIsValidIndex()
/art/tools/cpp-define-generator/
Dmirror_array.def22 art::mirror::Array::LengthOffset().Int32Value())
24 art::mirror::Array::DataOffset(sizeof(uint8_t)).Int32Value())
26 art::mirror::Array::DataOffset(sizeof(int8_t)).Int32Value())
28 art::mirror::Array::DataOffset(sizeof(uint16_t)).Int32Value())
30 art::mirror::Array::DataOffset(sizeof(int32_t)).Int32Value())
32 art::mirror::Array::DataOffset(sizeof(uint64_t)).Int32Value())
36 …art::mirror::Array::DataOffset(sizeof(art::mirror::HeapReference<art::mirror::Object>)).Int32Value…
38 art::mirror::Array::DataOffset(sizeof(int16_t)).Int32Value())
40 art::mirror::Array::DataOffset(sizeof(uint64_t)).Int32Value())
/art/test/715-clinit-implicit-parameter-annotations/
Dexpected.txt6 Array : @Main$AnnotationA()
13 Array : @Main$AnnotationA()
20 Array : @Main$AnnotationA()
27 Array : @Main$AnnotationA()
34 Array : @Main$AnnotationA()
43 Array : @Main$AnnotationA()
53 Array : @Main$AnnotationA()
60 Array : @Main$AnnotationB(value=x)
67 Array : @Main$AnnotationA()
75 Array : @Main$AnnotationB(value=foo)
[all …]
/art/test/ti-agent/
Dscoped_primitive_array.h49 Scoped ## NAME ## ArrayRO(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \
65 void reset(PRIMITIVE_TYPE ## Array javaArray) { \
76 PRIMITIVE_TYPE ## Array getJavaArray() const { return mJavaArray; } \
82 PRIMITIVE_TYPE ## Array mJavaArray; \
109 Scoped ## NAME ## ArrayRW(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \
122 void reset(PRIMITIVE_TYPE ## Array javaArray) { \
127 PRIMITIVE_TYPE ## Array getJavaArray() const { return mJavaArray; } \
134 PRIMITIVE_TYPE ## Array mJavaArray; \
/art/runtime/native/
Djava_lang_reflect_Array.cc48 ObjPtr<mirror::Array> new_array = in Array_createMultiArray()
49 mirror::Array::CreateMultiArray(soa.Self(), element_class, dimensions_array); in Array_createMultiArray()
69 ObjPtr<mirror::Array> new_array = mirror::ObjectArray<mirror::Object>::Alloc( in Array_createObjectArray()
78 FAST_NATIVE_METHOD(Array, createMultiArray, "(Ljava/lang/Class;[I)Ljava/lang/Object;"),
79 FAST_NATIVE_METHOD(Array, createObjectArray, "(Ljava/lang/Class;I)Ljava/lang/Object;"),
Djava_lang_System.cc77 ObjPtr<mirror::Array> srcArray = srcObject->AsArray(); in System_arraycopy()
78 ObjPtr<mirror::Array> dstArray = dstObject->AsArray(); in System_arraycopy()
169 inline ObjPtr<T> AsPrimitiveArray(ObjPtr<mirror::Array> array) in AsPrimitiveArray()
181 ObjPtr<mirror::Array> srcArray = srcObject->AsArray(); in System_arraycopyTUnchecked()
182 ObjPtr<mirror::Array> dstArray = dstObject->AsArray(); in System_arraycopyTUnchecked()
/art/test/003-omnibus-opcodes/
Dexpected.txt43 Array check...
44 Array.checkRange32
45 Array.checkRange64
46 Array.checkNegAlloc
/art/test/497-inlining-and-class-loader/
Dclear_dex_cache.cc49 ObjPtr<mirror::Array> decoded_array = soa.Decode<mirror::Array>(array); in Java_Main_cloneResolvedMethods()
74 ObjPtr<mirror::Array> old = soa.Decode<mirror::Array>(old_cache); in Java_Main_restoreResolvedMethods()
/art/runtime/entrypoints/quick/
Dquick_default_externs.h24 class Array; variable
71 extern "C" void art_quick_aput_obj_with_null_and_bound_check(art::mirror::Array*, int32_t,
73 extern "C" void art_quick_aput_obj_with_bound_check(art::mirror::Array*, int32_t,
75 extern "C" void art_quick_aput_obj(art::mirror::Array*, int32_t, art::mirror::Object*);
Dquick_fillarray_entrypoints.cc28 mirror::Array* array, in artHandleFillArrayDataFromCode()
/art/test/099-vmdebug/
Dexpected.txt24 Array counts [2, 1, 0]
25 Array counts assignable [3, 1, 0]
/art/runtime/
Dtransaction.h37 class Array; variable
111 void RecordWriteArray(mirror::Array* array, size_t index, uint64_t value)
214 void Undo(mirror::Array* obj) const REQUIRES_SHARED(Locks::mutator_lock_);
224 void UndoArrayWrite(mirror::Array* array,
314 std::map<mirror::Array*, ArrayLog> array_logs_ GUARDED_BY(log_lock_);
Dtransaction.cc247 void Transaction::RecordWriteArray(mirror::Array* array, size_t index, uint64_t value) { in RecordWriteArray()
385 using ArrayPair = std::pair<mirror::Array*, mirror::Array*>; in VisitArrayLogs()
389 mirror::Array* old_root = it.first; in VisitArrayLogs()
391 mirror::Array* new_root = old_root; in VisitArrayLogs()
400 mirror::Array* old_root = pair.first; in VisitArrayLogs()
401 mirror::Array* new_root = pair.second; in VisitArrayLogs()
476 field_offset.Uint32Value() == mirror::Array::LengthOffset().Uint32Value()) { in Undo()
654 void Transaction::ArrayLog::Undo(mirror::Array* array) const { in Undo()
663 void Transaction::ArrayLog::UndoArrayWrite(mirror::Array* array, in UndoArrayWrite()
/art/test/003-omnibus-opcodes/src/
DMain.java46 Array.run(); in run()
/art/runtime/entrypoints/
Dentrypoint_utils.h35 class Array; variable
93 ALWAYS_INLINE inline ObjPtr<mirror::Array> AllocArrayFromCode(dex::TypeIndex type_idx,
103 inline ObjPtr<mirror::Array> AllocArrayFromCodeResolved(ObjPtr<mirror::Class> klass,
/art/test/004-UnsafeTest/
Dunsafe_test.cc31 return mirror::Array::DataOffset( in Java_Main_vmArrayBaseOffset()
/art/test/944-transform-classloaders/src/art/
DTest944.java208 int array_length = Array.getLength(elementArrayValue); in checkDexFileInClassLoader()
211 Object curElement = Array.get(elementArrayValue, i); in checkDexFileInClassLoader()
/art/test/476-checker-ctor-fence-redun-elim/src/
DMain.java17 import java.lang.reflect.Array;
828 int length = Array.getLength(val); in valueToString()
830 Object arrayElement = Array.get(val, i); in valueToString()

1234