Searched refs:read (Results 1 - 25 of 76) sorted by path

1234

/art/adbconnection/
H A Dadbconnection.cc113 TEMP_FAILURE_RETRY(read(fd_, &data_, sizeof(data_)));
599 PLOG(ERROR) << "Failed to read message from agent control socket! Retrying";
712 LOG(ERROR) << "Unable to peek into adb socket. Loading agent to handle this. Only read " << res;
740 // Actually read the data.
787 // Check to make sure we are able to read the whole handshake.
807 PLOG(ERROR) << "Failed to read handshake!";
/art/compiler/optimizing/
H A Dside_effects_test.cc5 * you may not read this file except in compliance with the License.
45 void testWriteAndReadSanity(SideEffects write, SideEffects read) { argument
47 EXPECT_FALSE(read.DoesNothing());
51 EXPECT_FALSE(read.DoesAnyWrite());
52 EXPECT_TRUE(read.DoesAnyRead());
58 EXPECT_FALSE(all.MayDependOn(read));
59 EXPECT_TRUE(read.MayDependOn(all));
65 EXPECT_FALSE(none.MayDependOn(read));
66 EXPECT_FALSE(read.MayDependOn(none));
69 void testWriteAndReadDependence(SideEffects write, SideEffects read) { argument
77 testNoWriteAndReadDependence(SideEffects write, SideEffects read) argument
[all...]
/art/compiler/utils/
H A Dassembler_test_base.h432 obj.read(reinterpret_cast<char*>(&(*res->code)[0]), res->length);
/art/dex2oat/
H A Ddex2oat_image_test.cc221 while (TEMP_FAILURE_RETRY(bytes_read = read(link[0], buffer, 128)) > 0) {
H A Ddex2oat_test.cc264 while (TEMP_FAILURE_RETRY(bytes_read = read(link[0], buffer, 128)) > 0) {
/art/dt_fd_forward/
H A Ddt_fd_forward.cc149 int res = TEMP_FAILURE_RETRY(read(read_fd_, bdata + nbytes, ndata - nbytes));
151 DT_IO_ERROR("Failed read()");
173 // Check if the read would cause an EOF.
177 DT_IO_ERROR("Failed poll on read fd.");
223 int unused = TEMP_FAILURE_RETRY(read(wakeup_fd_, &val, sizeof(val)));
237 TEMP_FAILURE_RETRY(read(fd_, &data_, sizeof(data_)));
379 DT_IO_ERROR("Failed to read handshake");
442 // A helper class to read and parse the JDWP packet.
453 int32_t len = ReadInt32(); // read len
502 transport_->DT_IO_ERROR("Failed to read, concurren
[all...]
/art/libartbase/base/
H A Dfile_magic.cc47 int n = TEMP_FAILURE_RETRY(read(fd, magic, sizeof(*magic)));
/art/libartbase/base/unix_file/
H A Dfd_file.cc149 // We are not concerned with read-only files. In that case, proper flushing and closing is
253 return read(fd, buf, count);
/art/oatdump/
H A Doatdump_test.h206 TEMP_FAILURE_RETRY(read(pipe_fd, &line[line_len], kLineMax - line_len));
/art/openjdkjvm/
H A DOpenjdkJvm.cc104 /* posix read() */
106 return TEMP_FAILURE_RETRY(read(fd, buf, nbytes));
/art/patchoat/
H A Dpatchoat_test.cc202 while (TEMP_FAILURE_RETRY(bytes_read = read(link[0], buffer, 128)) > 0) {
234 *error_msg = StringPrintf("Failed to read source image file %s", src_image_filename.c_str());
247 StringPrintf("Failed to read destination image file %s", dest_image_filename.c_str());
288 *error_msg = "Failed to read";
300 *error_msg = StringPrintf("Failed to read %s: %s", filename1.c_str(), read_error_msg.c_str());
305 *error_msg = StringPrintf("Failed to read %s: %s", filename2.c_str(), read_error_msg.c_str());
/art/runtime/arch/arm/
H A Dquick_entrypoints_arm.S71 // Note: We could avoid saving R8 in the case of Baker read
101 // read barriers, as it is overwritten by REFRESH_MARKING_REGISTER
119 // Note: We could avoid saving R8 in the case of Baker read
165 // read barriers, as it is overwritten by REFRESH_MARKING_REGISTER
692 @ unlocked case - r1: original lock word that's zero except for the read barrier bits.
693 orr r2, r1, r2 @ r2 holds thread id with count of 0 with preserved read barrier bits
698 .Lnot_unlocked: @ r1: original lock word, r2: thread_id with count of 0 and zero read barrier bits
711 strex r3, r2, [r0, #MIRROR_OBJECT_LOCK_WORD_OFFSET] @ strex necessary for read barrier bits
747 ldrex r1, [r0, #MIRROR_OBJECT_LOCK_WORD_OFFSET] @ Need to use atomic instructions for read barrier
768 strex r2, r3, [r0, #MIRROR_OBJECT_LOCK_WORD_OFFSET] @ strex necessary for read barrie
[all...]
/art/runtime/arch/mips/
H A Dquick_entrypoints_mips.S1309 # Unlocked case - $t1: original lock word that's zero except for the read barrier bits.
1310 or $t2, $t1, $t0 # $t2 holds thread id with count of 0 with preserved read barrier bits
1317 # $t1: original lock word, $t0: thread_id with count of 0 and zero read barrier bits
1364 ll $t1, MIRROR_OBJECT_LOCK_WORD_OFFSET($a0) # Need to use atomic read-modify-write for read barrier
1468 * Macro to insert read barrier, only used in art_quick_aput_obj.
1470 * TODO: When read barrier has a fast path, add heap unpoisoning support for the fast path.
2128 lw $t8, ART_METHOD_DECLARING_CLASS_OFFSET($t8) # $t8 = declaring class (no read barrier).
2129 lw $t8, MIRROR_CLASS_DEX_CACHE_OFFSET($t8) # $t8 = dex cache (without read barrier).
/art/runtime/arch/mips64/
H A Dquick_entrypoints_mips64.S1256 # Unlocked case - $t1: original lock word that's zero except for the read barrier bits.
1257 or $t2, $t1, $t0 # $t2 holds thread id with count of 0 with preserved read barrier bits
1263 # $t1: original lock word, $t0: thread_id with count of 0 and zero read barrier bits
1309 ll $t1, MIRROR_OBJECT_LOCK_WORD_OFFSET($a0) # Need to use atomic read-modify-write for read barrier
1408 * Macro to insert read barrier, only used in art_quick_aput_obj.
1410 * TODO: When read barrier has a fast path, add heap unpoisoning support for the fast path.
2027 lwu $t1, ART_METHOD_DECLARING_CLASS_OFFSET($t1) # $t1 = declaring class (no read barrier).
2028 lwu $t1, MIRROR_CLASS_DEX_CACHE_OFFSET($t1) # $t1 = dex cache (without read barrier).
/art/runtime/base/
H A Dfile_utils.cc75 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[0], buf.size()));
97 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[filled_to], kBufSize - filled_to));
/art/runtime/jdwp/
H A Djdwp_adb.cc45 * a given JDWP debugger, that can be used to read the usual
347 /* read some more, looping until we have data */
390 * so we can't rely on that to wake us up (it works for read()
421 * Remote side most likely went away, so our next read
427 readCount = read(clientSock, input_buffer_ + input_count_, sizeof(input_buffer_) - input_count_);
429 /* read failed */
H A Djdwp_socket.cc184 /* "shutdown" dislodges blocking read() and accept() calls */
384 /* read some more, looping until we have data */
427 * so we can't rely on that to wake us up (it works for read()
470 read(clientSock, input_buffer_ + input_count_, sizeof(input_buffer_) - input_count_);
472 /* read failed */
/art/runtime/jit/
H A Dprofile_compilation_info.cc751 *(error) = "Could not read "#dest; \
878 // Tests for EOF by trying to read 1 byte from the descriptor.
882 // 1 if the descriptor has more content to read
885 return TEMP_FAILURE_RETRY(read(fd, buffer, 1));
965 *error = "Cannot read the number of dex files";
969 *error = "Cannot read the size of uncompressed data";
973 *error = "Cannot read the size of compressed data";
1225 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, buffer, byte_count));;
1310 *error += "Unable to read compressed profile data";
1336 // First, read th
[all...]
/art/runtime/
H A Dmonitor_android.cc49 read(fd, procName, sizeof(procName) - 1);
H A Dnative_stack_dump.cc177 int bytes_read = TEMP_FAILURE_RETRY(read(in, buffer, kMaxBuffer - 1));
396 os << prefix << "(couldn't read " << kernel_stack_filename << ")\n";
H A Dzip_archive.cc167 while (read(zip_fd, &buf, 1) > 0 && i < count) {
H A Dzip_archive_test.cc57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize));
/art/test/656-annotation-lookup-generic-jni/src-art/
H A DMain.java36 inputStream.read(dexFileContents, 0, dexFileSize);
/art/test/674-hiddenapi/src-art/
H A DMain.java131 // Helper to read dex file into memory.
140 is.read(buffer.array(), offset, size - offset);
/art/test/909-attach-agent/src-art/
H A DMain.java98 int r = bis.read(buf, 0, buf.length);

Completed in 279 milliseconds

1234