Home
last modified time | relevance | path

Searched refs:written (Results 1 – 25 of 158) sorted by relevance

1234567

/system/memory/lmkd/
Dliblmkd_utils.cpp83 int written; in create_memcg() local
102 written = snprintf(buf, sizeof(buf), "%u", pid); in create_memcg()
103 if (__predict_false(written >= (int)sizeof(buf))) { in create_memcg()
104 written = sizeof(buf) - 1; in create_memcg()
106 written = TEMP_FAILURE_RETRY(write(tasks_file, buf, written)); in create_memcg()
109 return (written < 0) ? -3 : 0; in create_memcg()
/system/update_engine/
Dtest_http_server.cc169 ssize_t written = write(fd, data, remaining_size); in WriteString() local
170 if (written < 0) { in WriteString()
175 data += written; in WriteString()
176 remaining_size -= written; in WriteString()
187 ssize_t written = 0, ret; in WriteHeaders() local
195 written += ret; in WriteHeaders()
210 written += ret; in WriteHeaders()
217 written += ret; in WriteHeaders()
219 return written; in WriteHeaders()
302 size_t written = 0; in HandleGet() local
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dserver_port_factory.cc135 int written = write(fd, size_buf, 4); in SendResponse() local
136 ASSERT_LOG(written == 4, "What happened? written = %d errno = %d", written, errno); in SendResponse()
137 written = write(fd, response.c_str(), size); in SendResponse()
138 …ASSERT_LOG(written == static_cast<int>(size), "What happened? written = %d errno = %d", written, e… in SendResponse()
/system/update_engine/payload_consumer/
Dfile_descriptor.cc51 ssize_t written = 0; in Write() local
57 return (written ? written : ret); in Write()
58 written += ret; in Write()
62 return written; in Write()
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dtest_channel_transport.cc150 int written = write(fd, size_buf, 4); in SendResponse() local
151 ASSERT_LOG(written == 4, "What happened? written = %d errno = %d", written, errno); in SendResponse()
152 written = write(fd, response.c_str(), size); in SendResponse()
153 …ASSERT_LOG(written == static_cast<int>(size), "What happened? written = %d errno = %d", written, e… in SendResponse()
/system/tools/aidl/
Dast_java_unittest.cpp59 std::string written; in TEST() local
60 ce.Write(CodeWriter::ForString(&written).get()); in TEST()
61 EXPECT_EQ(literal, written); in TEST()
Dast_cpp_unittest.cpp266 std::string written; in TEST_F() local
267 decl.Write(CodeWriter::ForString(&written).get()); in TEST_F()
268 EXPECT_EQ(literal, written); in TEST_F()
/system/libvintf/analyze_matrix/
Danalyze_matrix.cpp88 bool written = false; in main() local
96 written = true; in main()
112 written = true; in main()
115 if (!written) { in main()
/system/core/adb/client/
Dmain.cpp187 DWORD written = 0; in adb_server_main() local
188 if (!WriteFile(ack_reply_handle, ack, bytes_to_write, &written, NULL)) { in adb_server_main()
192 if (written != bytes_to_write) { in adb_server_main()
194 << written << " bytes"; in adb_server_main()
Dusb_windows.cpp332 unsigned long written = 0; in usb_write() local
343 if (!AdbWriteEndpointSync(handle->adb_write_pipe, (void*)data, (unsigned long)len, &written, in usb_write()
352 D("usb_write got: %ld, expected: %d", written, len); in usb_write()
353 if (written != (unsigned long)len) { in usb_write()
356 D("AdbWriteEndpointSync was supposed to write %d, but only wrote %ld", len, written); in usb_write()
372 return written; in usb_write()
/system/core/libsysutils/src/
DSocketClient.cpp218 size_t written = rc; in sendDataLockedv() local
219 while ((current < iovcnt) && (written >= iov[current].iov_len)) { in sendDataLockedv()
220 written -= iov[current].iov_len; in sendDataLockedv()
226 iov[current].iov_base = (char *)iov[current].iov_base + written; in sendDataLockedv()
227 iov[current].iov_len -= written; in sendDataLockedv()
/system/core/fastboot/
Dusb_windows.cpp158 unsigned long written = 0; in Write() local
168 &written, time_out); in Write()
178 count += written; in Write()
179 len -= written; in Write()
180 data = (const char *)data + written; in Write()
/system/core/fs_mgr/libsnapshot/
Dpower_test.cpp190 uint64_t written = 0; in Create() local
191 while (written < s.st_size) { in Create()
192 uint64_t remaining = s.st_size - written; in Create()
202 written += bytes; in Create()
291 uint64_t written = 0; in SetupImages() local
292 while (written < s1.st_size) { in SetupImages()
293 uint64_t remaining = s1.st_size - written; in SetupImages()
303 written += bytes; in SetupImages()
/system/core/logd/
Dlogd_test.cpp501 bool content_wrap = false, content_timeout = false, written = false; in timeout_negative() local
522 written = write(fd, ask.c_str(), len) == (ssize_t)len; in timeout_negative()
523 if (!written) { in timeout_negative()
568 EXPECT_TRUE(written); in timeout_negative()
606 bool content_wrap = false, content_timeout = false, written = false; in TEST() local
637 written = write(fd, ask.c_str(), len) == (ssize_t)len; in TEST()
638 if (!written) { in TEST()
711 EXPECT_TRUE(written); in TEST()
717 _exit(!written + content_wrap + alarm_wrap + !content_timeout + in TEST()
/system/vold/
Dsecdiscard.cpp183 auto written = write(fd, buf, wlen); in overwrite_with_zeros() local
184 if (written < 1) { in overwrite_with_zeros()
188 length -= written; in overwrite_with_zeros()
/system/sepolicy/prebuilts/api/26.0/public/
Dvdc.te17 # vdc information is written to shell owned bugreport files
Dproperty.te62 # control rules written.
/system/sepolicy/prebuilts/api/27.0/public/
Dvdc.te17 # vdc information is written to shell owned bugreport files
Dproperty.te62 # control rules written.
/system/bt/stack/a2dp/
Da2dp_aac_encoder.cc642 int written = 0; in a2dp_aac_encode_frames() local
676 written = aac_out_args.numOutBytes; in a2dp_aac_encode_frames()
677 count += written; in a2dp_aac_encode_frames()
678 p_buf->len += written; in a2dp_aac_encode_frames()
692 } while ((written == 0) && nb_frame); in a2dp_aac_encode_frames()
Da2dp_vendor_ldac_encoder.cc632 int written = 0; in a2dp_ldac_encode_frames() local
659 packet + count, (int*)&written, (int*)&out_frames); in a2dp_ldac_encode_frames()
673 count += written; in a2dp_ldac_encode_frames()
674 p_buf->len += written; in a2dp_ldac_encode_frames()
687 } while ((written == 0) && nb_frame); in a2dp_ldac_encode_frames()
/system/sepolicy/public/
Dproperty.te56 # Properties which can't be written outside system
108 # Properties which can be written only by vendor_init
273 # control rules written.
/system/extras/alloc-stress/
Dalloc-stress.cpp165 int written = write(sock, lmk_procprio_cmd, sizeof(lmk_procprio_cmd)); in write_oomadj_to_lmkd() local
166 cout << "Wrote " << written << " bytes to lmkd control socket." << endl; in write_oomadj_to_lmkd()
/system/core/fs_mgr/libfiemap/
Dsplit_fiemap_writer.cpp79 auto on_progress = [&](uint64_t written, uint64_t) -> bool { in Create() argument
80 uint64_t actual_written = total_bytes_written + written; in Create()
/system/chre/external/kiss_fft/
DLICENSE9 …o endorse or promote products derived from this software without specific prior written permission.

1234567