Searched defs:count (Results 1 - 25 of 197) sorted by relevance

12345678

/system/extras/libfec/test/
H A Dtest_read.cpp53 ssize_t count; local
56 count = input.read(buffer.get(), bufsize);
58 if (count == -1) {
60 } else if (count > 0) {
61 output.write(reinterpret_cast<const char *>(buffer.get()), count); local
68 } while (count > 0);
/system/update_engine/payload_consumer/
H A Dextent_writer.cc32 bool DirectExtentWriter::Write(const void* bytes, size_t count) { argument
33 if (count == 0)
37 while (count - bytes_written > 0) {
44 static_cast<size_t>(min(static_cast<uint64_t>(count - bytes_written),
H A Dbzip_extent_writer.cc40 bool BzipExtentWriter::Write(const void* bytes, size_t count) { argument
47 const uint8_t* input_end = input + count;
H A Dfile_writer.cc31 bool DirectFileWriter::Write(const void* bytes, size_t count) { argument
36 while (bytes_written < count) {
38 count - bytes_written);
43 CHECK_EQ(bytes_written, count);
44 return bytes_written == count;
/system/core/liblog/tests/
H A Dlog_radio_test.cpp95 int count = 0; local
102 ++count;
111 ASSERT_EQ(8, count);
113 ASSERT_EQ(10, count);
H A Dlog_system_test.cpp95 int count = 0; local
102 ++count;
111 ASSERT_EQ(8, count);
113 ASSERT_EQ(10, count);
H A Dlog_id_test.cpp34 int count = 0; local
42 ++count;
45 ASSERT_EQ(LOG_ID_MAX, count);
H A Dlog_read_test.cpp54 int count = 0; local
69 ++count;
73 EXPECT_EQ(1, count);
/system/core/liblog/
H A Duio.c25 LIBLOG_ABI_PUBLIC int readv(int fd, struct iovec* vecs, int count) { argument
28 for (; count > 0; count--, vecs++) {
49 LIBLOG_ABI_PUBLIC int writev(int fd, const struct iovec* vecs, int count) { argument
52 for (; count > 0; count--, vecs++) {
/system/core/libsysutils/src/
H A DNetlinkListener.cpp49 ssize_t count; local
57 count = TEMP_FAILURE_RETRY(uevent_kernel_recv(socket,
59 if (count < 0) {
65 if (evt->decode(mBuffer, count, mFormat)) {
H A DServiceManager.cpp62 int count = SLEEP_MAX_USEC; local
63 while(count > 0) {
65 count -= SLEEP_MIN_USEC;
69 if (count <= 0) {
92 int count = SLEEP_MAX_USEC; local
93 while(count > 0) {
95 count -= SLEEP_MIN_USEC;
100 if (count <= 0) {
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dqueue.c55 static unsigned long long count; variable
74 if (++count > Bflag) {
91 --count;
/system/chre/util/include/chre/util/
H A Dmemory_impl.h30 inline void destroy(ElementType *first, size_t count) { argument
31 for (size_t i = 0; i < count; i++) {
58 inline void uninitializedMoveOrCopy(ElementType *source, size_t count, argument
60 std::memcpy(dest, source, count * sizeof(ElementType));
66 inline void uninitializedMoveOrCopy(ElementType *source, size_t count, argument
69 for (size_t i = 0; i < count; i++) {
77 inline void uninitializedMoveOrCopy(ElementType *source, size_t count, argument
80 for (size_t i = 0; i < count; i++) {
88 ElementType *source, size_t count, ElementType *dest, std::false_type) {
96 source, count, des
87 uninitializedMoveOrCopy( ElementType *source, size_t count, ElementType *dest, std::false_type) argument
101 uninitializedMoveOrCopy(ElementType *source, size_t count, ElementType *dest) argument
[all...]
/system/core/adb/
H A Dtransport_test.cpp40 int* count = reinterpret_cast<int*>(arg); local
41 ++*count;
49 int count = 0; local
52 disconnect.opaque = &count;
55 ASSERT_EQ(1, count);
59 ASSERT_EQ(1, count);
61 count = 0;
65 ASSERT_EQ(0, count);
/system/extras/ext4_utils/
H A Dsha1.h32 uint32_t count[2]; member in struct:__anon1730
/system/extras/simpleperf/
H A DIOEventLoop_test.cpp29 int count = 0; local
36 if (++count == 100) {
57 ASSERT_EQ(100, count);
68 int count = 0; local
75 if (++count == 100) {
97 ASSERT_EQ(100, count);
102 int count = 0; local
104 if (++count == 100) {
119 ASSERT_EQ(100, count);
126 int count local
151 int count = 0; local
176 int count = 0; local
[all...]
H A Dcmd_stat_test.cpp65 void CreateProcesses(size_t count, argument
69 for (size_t i = 0; i < count; ++i) {
140 size_t count = 0; local
145 ++count ;
147 ASSERT_EQ(count, 3UL);
/system/media/audio_utils/
H A Dfifo_writer32.cpp25 static inline void memcpyWords(int32_t *dst, const int32_t *src, uint32_t count) argument
27 switch (count) {
39 memcpy(dst, src, count * sizeof(int32_t));
58 void audio_utils_fifo_writer32::write(const int32_t *buffer, uint32_t count) argument
62 if (availToWrite > count) {
63 availToWrite = count;
H A Dformat.c26 const void *src, audio_format_t src_format, size_t count)
37 memcpy(dst, src, count * audio_bytes_per_sample(dst_format));
47 memcpy_to_i16_from_float((int16_t*)dst, (float*)src, count);
50 memcpy_to_i16_from_u8((int16_t*)dst, (uint8_t*)src, count);
53 memcpy_to_i16_from_p24((int16_t*)dst, (uint8_t*)src, count);
56 memcpy_to_i16_from_i32((int16_t*)dst, (int32_t*)src, count);
59 memcpy_to_i16_from_q8_23((int16_t*)dst, (int32_t*)src, count);
68 memcpy_to_float_from_i16((float*)dst, (int16_t*)src, count);
71 memcpy_to_float_from_u8((float*)dst, (uint8_t*)src, count);
74 memcpy_to_float_from_p24((float*)dst, (uint8_t*)src, count);
25 memcpy_by_audio_format(void *dst, audio_format_t dst_format, const void *src, audio_format_t src_format, size_t count) argument
[all...]
/system/media/radio/src/
H A Dradio_metadata_hidden.h49 * | count | number of entries
81 uint32_t count; /* number of meta data entries */ member in struct:radio_metadata_buffer
/system/netd/libnetdutils/
H A DSlice.cpp40 int count = 0; local
46 if ((++count % wrap) == 0) {
/system/tpm/tpm_manager/server/
H A Dtpm2_status_test.cc99 int count; local
104 &count, &threshold, &lockout, &seconds_remaining));
119 int count; local
123 EXPECT_TRUE(tpm_status_->GetDictionaryAttackInfo(&count, &threshold, &lockout,
125 EXPECT_EQ(count, lockout_count);
134 int count; local
138 EXPECT_TRUE(tpm_status_->GetDictionaryAttackInfo(&count, &threshold, &lockout,
/system/update_engine/
H A Dfake_file_writer.h44 virtual ssize_t Write(const void* bytes, size_t count) { argument
48 bytes_.insert(bytes_.end(), char_bytes, char_bytes + count);
49 return count;
/system/chre/apps/chqts/src/general_test/
H A Dwwan_cell_info_test.cc90 void WwanCellInfoTest::validateCellInfo(uint8_t count, argument
94 for (int i = 0; (i < count) && valid; ++i) {
/system/core/libcutils/arch-arm64/
H A Dandroid_memset.S42 #define count x2 define
80 cmp count, #64
83 cmp count, #15
86 ands tmp1, count, #0x30
99 and count, count, #15
100 add dst, dst, count
107 tbz count, #3, 1f
110 tbz count, #2, 1f
113 tbz count, #
[all...]

Completed in 484 milliseconds

12345678