Home
last modified time | relevance | path

Searched refs:ssize_t (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/system/core/libutils/include/utils/
DVectorImpl.h66 ssize_t setCapacity(size_t size);
67 ssize_t resize(size_t size);
70 ssize_t insertVectorAt(const VectorImpl& vector, size_t index);
71 ssize_t appendVector(const VectorImpl& vector);
72 ssize_t insertArrayAt(const void* array, size_t index, size_t length);
73 ssize_t appendArray(const void* array, size_t length);
76 ssize_t insertAt(size_t where, size_t numItems = 1);
77 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1);
81 ssize_t add();
82 ssize_t add(const void* item);
[all …]
DKeyedVector.h61 inline ssize_t setCapacity(size_t size) { return mVector.setCapacity(size); } in setCapacity()
72 ssize_t indexOfKey(const KEY& key) const;
86 ssize_t add(const KEY& key, const VALUE& item);
87 ssize_t replaceValueFor(const KEY& key, const VALUE& item);
88 ssize_t replaceValueAt(size_t index, const VALUE& item);
94 ssize_t removeItem(const KEY& key);
95 ssize_t removeItemsAt(size_t index, size_t count = 1);
131 ssize_t KeyedVector<KEY,VALUE>::indexOfKey(const KEY& key) const { in indexOfKey()
137 ssize_t i = this->indexOfKey(key); in valueFor()
159 ssize_t i = this->indexOfKey(key); in editValueFor()
[all …]
DVector.h93 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } in setCapacity()
99 inline ssize_t resize(size_t size) { return VectorImpl::resize(size); } in resize()
135 ssize_t insertVectorAt(const Vector<TYPE>& vector, size_t index);
138 ssize_t appendVector(const Vector<TYPE>& vector);
142 ssize_t insertArrayAt(const TYPE* array, size_t index, size_t length);
145 ssize_t appendArray(const TYPE* array, size_t length);
152 inline ssize_t insertAt(size_t index, size_t numItems = 1);
154 ssize_t insertAt(const TYPE& prototype_item, size_t index, size_t numItems = 1);
162 inline ssize_t add();
164 ssize_t add(const TYPE& item);
[all …]
DSortedVector.h72 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } in setCapacity()
86 ssize_t indexOf(const TYPE& item) const;
108 ssize_t add(const TYPE& item);
116 ssize_t merge(const Vector<TYPE>& vector);
117 ssize_t merge(const SortedVector<TYPE>& vector);
120 ssize_t remove(const TYPE&);
123 inline ssize_t removeItemsAt(size_t index, size_t count = 1);
125 inline ssize_t removeAt(size_t index) { return removeItemsAt(index); } in removeAt()
140 ssize_t index = removeItemsAt(pos-array()); in erase()
220 ssize_t SortedVector<TYPE>::add(const TYPE& item) { in add()
[all …]
/system/memory/libmemtrack/include/memtrack/
Dmemtrack.h77 ssize_t memtrack_proc_graphics_total(struct memtrack_proc *p);
90 ssize_t memtrack_proc_graphics_pss(struct memtrack_proc *p);
100 ssize_t memtrack_proc_gl_total(struct memtrack_proc *p);
110 ssize_t memtrack_proc_gl_pss(struct memtrack_proc *p);
120 ssize_t memtrack_proc_other_total(struct memtrack_proc *p);
130 ssize_t memtrack_proc_other_pss(struct memtrack_proc *p);
/system/core/libutils/
DVectorImpl.cpp114 ssize_t VectorImpl::insertVectorAt(const VectorImpl& vector, size_t index) in insertVectorAt()
119 ssize_t VectorImpl::appendVector(const VectorImpl& vector) in appendVector()
124 ssize_t VectorImpl::insertArrayAt(const void* array, size_t index, size_t length) in insertArrayAt()
132 return where ? index : (ssize_t)NO_MEMORY; in insertArrayAt()
135 ssize_t VectorImpl::appendArray(const void* array, size_t length) in appendArray()
140 ssize_t VectorImpl::insertAt(size_t index, size_t numItems) in insertAt()
145 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) in insertAt()
157 return where ? index : (ssize_t)NO_MEMORY; in insertAt()
175 const ssize_t count = size(); in sort()
179 ssize_t i = 1; in sort()
[all …]
/system/media/audio_utils/include/audio_utils/
Dfifo.h286 virtual ssize_t obtain(audio_utils_iovec iovec[2], size_t count = SIZE_MAX,
310 virtual ssize_t available() = 0;
395 ssize_t write(const void *buffer, size_t count, const struct timespec *timeout = NULL);
398 virtual ssize_t obtain(audio_utils_iovec iovec[2], size_t count = SIZE_MAX,
401 virtual ssize_t available();
522 ssize_t read(void *buffer, size_t count, const struct timespec *timeout = NULL,
526 virtual ssize_t obtain(audio_utils_iovec iovec[2], size_t count = SIZE_MAX,
529 virtual ssize_t available();
541 ssize_t obtain(audio_utils_iovec iovec[2], size_t count, const struct timespec *timeout,
558 ssize_t available(size_t *lost);
[all …]
/system/logging/logd/
DLogKlog.cpp52 static char* is_prio(char* s, ssize_t len) { in is_prio()
65 static char* is_timestamp(char* s, ssize_t len) { in is_timestamp()
99 char* android::log_strntok_r(char* s, ssize_t& len, char*& last, in log_strntok_r()
100 ssize_t& sublen) { in log_strntok_r()
136 ssize_t adjust; in log_strntok_r()
228 ssize_t len = 0; in onDataAvailable()
231 ssize_t retval = 0; in onDataAvailable()
232 if (len < (ssize_t)(sizeof(buffer) - 1)) { in onDataAvailable()
246 ssize_t sublen; in onDataAvailable()
265 const char* real_string, ssize_t len) { in calculateCorrection()
[all …]
DLogKlog.h41 int log(const char* buf, ssize_t len);
46 log_time sniffTime(const char*& buf, ssize_t len, bool reverse);
47 pid_t sniffPid(const char*& buf, ssize_t len);
48 void calculateCorrection(const log_time& monotonic, const char* real_string, ssize_t len);
DLogUtils.h43 char* log_strntok_r(char* s, ssize_t& len, char*& saveptr, ssize_t& sublen);
46 static inline const char* strnstr(const char* s, ssize_t len, in strnstr()
54 if (len <= (ssize_t)needleLen) return nullptr; in strnstr()
/system/core/fastboot/
Dudp.cpp109 ssize_t Read(void* data, size_t length) override;
110 ssize_t Write(const void* data, size_t length) override;
125 ssize_t SendData(Id id, const uint8_t* tx_data, size_t tx_length, uint8_t* rx_data,
130 ssize_t SendSinglePacketHelper(Header* header, const uint8_t* tx_data, size_t tx_length,
161 ssize_t rx_bytes = SendData(kIdDeviceQuery, nullptr, 0, rx_data, sizeof(rx_data), in InitializeProtocol()
207 ssize_t UdpTransport::SendData(Id id, const uint8_t* tx_data, size_t tx_length, uint8_t* rx_data, in SendData()
216 ssize_t ret = 0; in SendData()
229 ssize_t bytes = SendSinglePacketHelper(&header, tx_data, packet_data_length, rx_data, in SendData()
253 ssize_t UdpTransport::SendSinglePacketHelper( in SendSinglePacketHelper()
256 ssize_t total_data_bytes = 0; in SendSinglePacketHelper()
[all …]
Dsocket.cpp55 ssize_t Socket::ReceiveAll(void* data, size_t length, int timeout_ms) { in ReceiveAll()
59 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms); in ReceiveAll()
122 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
144 static_cast<ssize_t>(length); in Send()
154 sock_, buffers.data(), buffers.size())) == static_cast<ssize_t>(total_length); in Send()
157 ssize_t UdpSocket::Receive(void* data, size_t length, int timeout_ms) { in Receive()
180 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
190 ssize_t sent = in Send()
204 ssize_t sent = TEMP_FAILURE_RETRY( in Send()
236 ssize_t TcpSocket::Receive(void* data, size_t length, int timeout_ms) { in Receive()
/system/core/trusty/storage/lib/
Dstorage.c57 static ssize_t check_response(struct storage_msg *msg, ssize_t res) in check_response()
104 static ssize_t send_reqv(storage_session_t session, in send_reqv()
108 ssize_t rc; in send_reqv()
152 ssize_t rc = send_reqv(session, tx, 3, rx, 2); in storage_open_file()
173 ssize_t rc = send_reqv(_to_session(fh), tx, 2, rx, 1); in storage_close_file()
187 ssize_t rc = send_reqv(session, tx, 3, rx, 1); in storage_delete_file()
198 ssize_t rc = send_reqv(_to_session(fh), tx, 2, rx, 2); in _read_chunk()
202 ssize_t storage_read(file_handle_t fh, storage_off_t off, void *buf, size_t size) in storage_read()
233 ssize_t rc = send_reqv(_to_session(fh), tx, 3, rx, 1); in _write_req()
238 ssize_t storage_write(file_handle_t fh, storage_off_t off, in storage_write()
[all …]
/system/libbase/include/android-base/
Dcmsg.h54 ssize_t SendFileDescriptorVector(borrowed_fd sock, const void* data, size_t len,
61 ssize_t ReceiveFileDescriptorVector(borrowed_fd sock, void* data, size_t len, size_t max_fds,
67 ssize_t SendFileDescriptors(borrowed_fd sock, const void* data, size_t len, Args&&... sent_fds) { in SendFileDescriptors()
82 ssize_t ReceiveFileDescriptors(borrowed_fd sock, void* data, size_t len, Args&&... received_fds) { in ReceiveFileDescriptors()
87 ssize_t rc = ReceiveFileDescriptorVector(sock, data, len, fds.size(), &result); in ReceiveFileDescriptors()
/system/core/libcutils/include/cutils/
Duevent.h28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
/system/core/libcutils/include_outside_system/cutils/
Duevent.h28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
/system/memory/libmemunreachable/
DBinder.cpp30 ssize_t __attribute__((weak)) getBinderKernelReferences(size_t, uintptr_t*);
31 ssize_t __attribute__((weak)) getHWBinderKernelReferences(size_t, uintptr_t*);
38 std::function<ssize_t(size_t, uintptr_t*)> fn) { in BinderReferencesToVector()
48 ssize_t ret = fn(refs.size(), refs.data()); in BinderReferencesToVector()
/system/memory/libmemtrack/
Dmemtrack.cpp141 static ssize_t memtrack_proc_sum(memtrack_proc *p, in memtrack_proc_sum()
144 ssize_t sum = 0; in memtrack_proc_sum()
159 ssize_t memtrack_proc_graphics_total(memtrack_proc *p) in memtrack_proc_graphics_total()
165 ssize_t memtrack_proc_graphics_pss(memtrack_proc *p) in memtrack_proc_graphics_pss()
172 ssize_t memtrack_proc_gl_total(memtrack_proc *p) in memtrack_proc_gl_total()
178 ssize_t memtrack_proc_gl_pss(memtrack_proc *p) in memtrack_proc_gl_pss()
185 ssize_t memtrack_proc_other_total(memtrack_proc *p) in memtrack_proc_other_total()
192 ssize_t memtrack_proc_other_pss(memtrack_proc *p) in memtrack_proc_other_pss()
/system/core/trusty/apploader/
Dapploader.cpp136 ssize_t num_read = TEMP_FAILURE_RETRY( in read_file()
166 static ssize_t send_load_message(int tipc_fd, int package_fd, off64_t package_size) { in send_load_message()
181 static ssize_t read_response(int tipc_fd) { in read_response()
183 ssize_t rc = read(tipc_fd, &resp, sizeof(resp)); in read_response()
237 return static_cast<ssize_t>(resp.error); in read_response()
240 static ssize_t send_app_package(const char* package_file_name) { in send_app_package()
241 ssize_t rc = 0; in send_app_package()
/system/core/fs_mgr/tools/
Ddmuserd.cpp80 ssize_t write_all(int fd, void* buf, size_t len) { in write_all()
82 ssize_t total = 0; in write_all()
83 ssize_t once; in write_all()
85 while (total < static_cast<ssize_t>(len)) { in write_all()
98 ssize_t read_all(int fd, void* buf, size_t len) { in read_all()
100 ssize_t total = 0; in read_all()
101 ssize_t once; in read_all()
103 while (total < static_cast<ssize_t>(len)) { in read_all()
/system/update_engine/payload_consumer/
Dfile_descriptor.h63 virtual ssize_t Read(void* buf, size_t count) = 0;
68 virtual ssize_t Write(const void* buf, size_t count) = 0;
126 ssize_t Read(void* buf, size_t count) override;
127 ssize_t Write(const void* buf, size_t count) override;
/system/update_engine/
Dtest_http_server.cc85 ssize_t r = read(fd, buf, sizeof(buf)); in ParseRequest()
163 ssize_t WriteString(int fd, const string& str) { in WriteString()
169 ssize_t written = write(fd, data, remaining_size); in WriteString()
183 ssize_t WriteHeaders(int fd, in WriteHeaders()
187 ssize_t written = 0, ret{}; in WriteHeaders()
255 ssize_t ret = WriteString(fd, partial); in WritePayload()
262 ssize_t ret = WriteString(fd, line); in WritePayload()
270 ssize_t ret = WriteString(fd, partial); in WritePayload()
296 ssize_t HandleGet(int fd, in HandleGet()
302 ssize_t ret{}; in HandleGet()
[all …]
/system/core/fs_mgr/libsnapshot/
Dsnapshot_reader.h33 ssize_t Write(const void* buf, size_t count) override;
41 ssize_t Read(void* buf, size_t count) override;
59 ssize_t Read(void* buf, size_t count) override;
68 ssize_t ReadBlock(uint64_t chunk, IByteSink* sink, size_t start_offset,
/system/core/libcutils/
Duevent.cpp35 ssize_t uevent_kernel_multicast_recv(int socket, void* buffer, size_t length) { in uevent_kernel_multicast_recv()
49 ssize_t uevent_kernel_multicast_uid_recv(int socket, void* buffer, size_t length, uid_t* uid) { in uevent_kernel_multicast_uid_recv()
53 ssize_t uevent_kernel_recv(int socket, void* buffer, size_t length, bool require_group, uid_t* uid)… in uevent_kernel_recv()
63 ssize_t n = TEMP_FAILURE_RETRY(recvmsg(socket, &hdr, 0)); in uevent_kernel_recv()
/system/media/audio_utils/tests/
Dfifo_threads.cpp44 ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout); in input_routine()
51 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout); in input_routine()
79 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout); in output_routine()
85 ssize_t actual2 = context->mOutputWriter->write(buffer, actual, NULL /*timeout*/); in output_routine()
143 ssize_t actual = outputReader.read(buffer, sizeof(buffer), NULL /*timeout*/); in main()

12345678910>>...13