Searched refs:length (Results 26 - 50 of 116) sorted by relevance

12345

/art/runtime/
H A Ddex_file_verifier_test.cc108 size_t length; local
109 std::unique_ptr<byte[]> dex_bytes(DecodeBase64(base64, &length));
115 if (!file->WriteFully(dex_bytes.get(), length)) {
166 static const DexFile* FixChecksumAndOpen(byte* bytes, size_t length, const char* location, argument
177 if (!file->WriteFully(bytes, length)) {
198 size_t length; local
199 std::unique_ptr<byte[]> dex_bytes(DecodeBase64(kGoodTestDex, &length));
206 std::unique_ptr<const DexFile> file(FixChecksumAndOpen(dex_bytes.get(), length, location,
H A Dclass_linker-inl.h159 inline mirror::ObjectArray<T>* ClassLinker::AllocObjectArray(Thread* self, size_t length) { argument
160 return mirror::ObjectArray<T>::Alloc(self, GetClassRoot(kObjectArrayClass), length);
164 size_t length) {
165 return mirror::ObjectArray<mirror::Class>::Alloc(self, GetClassRoot(kClassArrayClass), length);
169 size_t length) {
171 length);
175 size_t length) {
177 GetClassRoot(kJavaLangReflectArtMethodArrayClass), length);
187 size_t length) {
193 self, GetClassRoot(kJavaLangReflectArtFieldArrayClass), length,
163 AllocClassArray(Thread* self, size_t length) argument
168 AllocStringArray(Thread* self, size_t length) argument
174 AllocArtMethodArray(Thread* self, size_t length) argument
186 AllocArtFieldArray(Thread* self, size_t length) argument
[all...]
H A Dimage.h97 if (oat_filename.length() <= 3) {
100 oat_filename.replace(oat_filename.length() - 3, 3, "oat");
H A Dmonitor_test.cc74 size_t length = 128 * KB / 4; local
75 while (length > 10) {
77 mirror::ObjectArray<mirror::Object>::Alloc(self, ca.Get(), length / 4)));
81 // Try a smaller length
82 length = length / 8;
85 if (length * 8 > mem) {
86 length = mem / 8;
H A Djni_internal.cc246 jsize length, const char* identifier)
251 "%s offset=%d length=%d %s.length=%d",
252 type.c_str(), start, length, identifier, array->GetLength());
255 static void ThrowSIOOBE(ScopedObjectAccess& soa, jsize start, jsize length,
260 "offset=%d length=%d string.length()=%d", start, length,
574 #define CHECK_NON_NULL_MEMCPY_ARGUMENT(length, value) \
575 if (UNLIKELY(length !
1951 GetStringRegion(JNIEnv* env, jstring java_string, jsize start, jsize length, jchar* buf) argument
1965 GetStringUTFRegion(JNIEnv* env, jstring java_string, jsize start, jsize length, char* buf) argument
2094 NewBooleanArray(JNIEnv* env, jsize length) argument
2098 NewByteArray(JNIEnv* env, jsize length) argument
2102 NewCharArray(JNIEnv* env, jsize length) argument
2106 NewDoubleArray(JNIEnv* env, jsize length) argument
2110 NewFloatArray(JNIEnv* env, jsize length) argument
2114 NewIntArray(JNIEnv* env, jsize length) argument
2118 NewLongArray(JNIEnv* env, jsize length) argument
2122 NewObjectArray(JNIEnv* env, jsize length, jclass element_jclass, jobject initial_element) argument
2169 NewShortArray(JNIEnv* env, jsize length) argument
2277 GetBooleanArrayRegion(JNIEnv* env, jbooleanArray array, jsize start, jsize length, jboolean* buf) argument
2283 GetByteArrayRegion(JNIEnv* env, jbyteArray array, jsize start, jsize length, jbyte* buf) argument
2288 GetCharArrayRegion(JNIEnv* env, jcharArray array, jsize start, jsize length, jchar* buf) argument
2293 GetDoubleArrayRegion(JNIEnv* env, jdoubleArray array, jsize start, jsize length, jdouble* buf) argument
2299 GetFloatArrayRegion(JNIEnv* env, jfloatArray array, jsize start, jsize length, jfloat* buf) argument
2305 GetIntArrayRegion(JNIEnv* env, jintArray array, jsize start, jsize length, jint* buf) argument
2310 GetLongArrayRegion(JNIEnv* env, jlongArray array, jsize start, jsize length, jlong* buf) argument
2315 GetShortArrayRegion(JNIEnv* env, jshortArray array, jsize start, jsize length, jshort* buf) argument
2321 SetBooleanArrayRegion(JNIEnv* env, jbooleanArray array, jsize start, jsize length, const jboolean* buf) argument
2327 SetByteArrayRegion(JNIEnv* env, jbyteArray array, jsize start, jsize length, const jbyte* buf) argument
2332 SetCharArrayRegion(JNIEnv* env, jcharArray array, jsize start, jsize length, const jchar* buf) argument
2337 SetDoubleArrayRegion(JNIEnv* env, jdoubleArray array, jsize start, jsize length, const jdouble* buf) argument
2343 SetFloatArrayRegion(JNIEnv* env, jfloatArray array, jsize start, jsize length, const jfloat* buf) argument
2349 SetIntArrayRegion(JNIEnv* env, jintArray array, jsize start, jsize length, const jint* buf) argument
2354 SetLongArrayRegion(JNIEnv* env, jlongArray array, jsize start, jsize length, const jlong* buf) argument
2359 SetShortArrayRegion(JNIEnv* env, jshortArray array, jsize start, jsize length, const jshort* buf) argument
2579 NewPrimitiveArray(JNIEnv* env, jsize length) argument
2679 GetPrimitiveArrayRegion(JNIEnv* env, JArrayT java_array, jsize start, jsize length, ElementT* buf) argument
2699 SetPrimitiveArrayRegion(JNIEnv* env, JArrayT java_array, jsize start, jsize length, const ElementT* buf) argument
[all...]
H A Doat.cc34 estimate += it->first.length() + 1;
35 estimate += it->second.length() + 1;
141 void OatHeader::UpdateChecksum(const void* data, size_t length) { argument
144 adler32_checksum_ = adler32(adler32_checksum_, bytes, length);
480 data_ptr += it->first.length() + 1;
482 data_ptr += it->second.length() + 1;
/art/test/004-ThreadStress/src/
H A DMain.java82 for (int t = 0; t < threadStresses.length; t++) {
89 if (o == operations.length) {
105 for (int t = 0; t < threadStresses.length; t++) {
129 for (int r = 0; r < runners.length; r++) {
166 for (int r = 0; r < runners.length; r++) {
169 for (int r = 0; r < runners.length; r++) {
191 while (nextOperation < operations.length) {
/art/test/004-JniTest/src/
H A DMain.java102 for (int i = 0; i < returns.length; i++) {
117 for (int i = 0; i < returns.length; i++) {
148 for (int i = 0; i < returns.length; i++) {
/art/test/115-native-bridge/src/
H A DNativeBridgeMain.java97 for (int i = 0; i < returns.length; i++) {
112 for (int i = 0; i < returns.length; i++) {
143 for (int i = 0; i < returns.length; i++) {
/art/compiler/utils/
H A Dassembler_test.h194 if (disassembler.length() != 0) {
243 if (resolved_assembler_cmd_.length() != 0) {
248 if (line.length() == 0) {
270 if (resolved_objdump_cmd_.length() != 0) {
275 if (line.length() == 0) {
296 if (resolved_disassemble_cmd_.length() != 0) {
301 if (line.length() == 0) {
343 EXPECT_NE(assembly_text.length(), 0U) << "Empty assembly";
370 LOG(INFO) << "GCC chose a different encoding than ours, but the overall length is the "
387 uintptr_t length; member in struct:art::AssemblerTest::NativeAssemblerResult
[all...]
/art/runtime/jdwp/
H A Djdwp_request.cc55 uint32_t length = Read4BE(); local
57 s.resize(length);
58 memcpy(&s[0], p_, length);
59 p_ += length;
H A Djdwp_priv.h72 ssize_t WritePacket(ExpandBuf* pReply, size_t length) LOCKS_EXCLUDED(socket_lock_);
H A Djdwp_main.cc94 uint32_t length = Get4BE(input_buffer_); local
95 return (input_count_ >= length);
125 * Write a packet of "length" bytes. Grabs a mutex to assure atomicity.
127 ssize_t JdwpNetStateBase::WritePacket(ExpandBuf* pReply, size_t length) { argument
129 DCHECK_LE(length, expandBufGetLength(pReply));
130 return TEMP_FAILURE_RETRY(write(clientSock, expandBufGetBuffer(pReply), length));
/art/test/080-oom-throw/src/
H A DMain.java23 for (int i = 0; i < holder.length; ++i) {
/art/test/045-reflect-array/src/
H A DMain.java45 if (array.length != Array.getLength(intArray) ||
46 array.length != 2)
95 for (int i = 0; i < array.length; i++) {
182 if (array.length != Array.getLength(strArray) ||
183 array.length != 2)
/art/runtime/mirror/
H A Dobject_array-inl.h36 int32_t length, gc::AllocatorType allocator_type) {
37 Array* array = Array::Alloc<true>(self, object_array_class, length,
48 int32_t length) {
49 return Alloc(self, object_array_class, length,
271 const size_t length = static_cast<size_t>(GetLength()); local
272 for (size_t i = 0; i < length; ++i) {
35 Alloc(Thread* self, Class* object_array_class, int32_t length, gc::AllocatorType allocator_type) argument
47 Alloc(Thread* self, Class* object_array_class, int32_t length) argument
H A Darray-inl.h72 self->ThrowOutOfMemoryError(StringPrintf("%s of length %d would overflow",
80 // Used for setting the array length in the allocation code path to ensure it is guarded by a
84 explicit SetLengthVisitor(int32_t length) : length_(length) { argument
102 // Similar to SetLengthVisitor, used for setting the array length to fill the usable size of an
115 int32_t length = (usable_size - header_size_) / component_size_; local
116 DCHECK_GE(length, minimum_length_);
118 byte* new_end = reinterpret_cast<byte*>(array->GetRawData(component_size_, length));
121 array->SetLength(length);
175 inline PrimitiveArray<T>* PrimitiveArray<T>::Alloc(Thread* self, size_t length) { argument
[all...]
H A Dobject_array.h33 static ObjectArray<T>* Alloc(Thread* self, Class* object_array_class, int32_t length,
37 static ObjectArray<T>* Alloc(Thread* self, Class* object_array_class, int32_t length)
H A Darray.h57 void SetLength(int32_t length) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
58 CHECK_GE(length, 0);
61 SetField32<false, false, kVerifyNone>(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); local
115 static PrimitiveArray<T>* Alloc(Thread* self, size_t length)
/art/test/044-proxy/src/
H A DBasicTest.java88 Method meth = methods[methods.length -1];
91 System.out.println("Param annos (" + paramAnnos.length + ") : "
262 for (int i = 0; i < stackTrace.length; i++) {
276 for (int i = 0; i < stackTrace.length; i++) {
288 if (args == null || args.length == 0) {
291 for (int i = 0; i < args.length; i++)
/art/runtime/entrypoints/portable/
H A Dportable_throw_entrypoints.cc28 extern "C" void art_portable_throw_array_bounds_from_code(int32_t index, int32_t length)
30 ThrowArrayIndexOutOfBoundsException(index, length);
/art/runtime/entrypoints/quick/
H A Dquick_throw_entrypoints.cc77 extern "C" void artThrowArrayBoundsFromCode(int index, int length, Thread* self,
81 ThrowArrayIndexOutOfBoundsException(index, length);
/art/test/068-classloader/src/
H A DFancyLoader.java153 fileData = new byte[(int) raf.length()];
168 return defineClass(name, fileData, 0, fileData.length);
/art/test/028-array-write/src/
H A DMain.java80 if ((args.length >= 1) && args[0].equals("--timing")) {
/art/test/053-wait-some/src/
H A DMain.java27 boolean timing = (args.length >= 1) && args[0].equals("--timing");

Completed in 723 milliseconds

12345