Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 522) sorted by relevance

12345678910>>...21

/system/media/audio_utils/
Dprimitives.c30 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_q4_27() argument
32 for (; count > 0; --count) { in memcpy_to_i16_from_q4_27()
37 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_u8() argument
39 dst += count; in memcpy_to_i16_from_u8()
40 src += count; in memcpy_to_i16_from_u8()
41 for (; count > 0; --count) { in memcpy_to_i16_from_u8()
46 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) in memcpy_to_u8_from_i16() argument
48 for (; count > 0; --count) { in memcpy_to_u8_from_i16()
53 void memcpy_to_u8_from_p24(uint8_t *dst, const uint8_t *src, size_t count) in memcpy_to_u8_from_p24() argument
55 for (; count > 0; --count) { in memcpy_to_u8_from_p24()
[all …]
Dformat.c22 const void *src, audio_format_t src_format, size_t count) in memcpy_by_audio_format() argument
35 memcpy(dst, src, count * audio_bytes_per_sample(dst_format)); in memcpy_by_audio_format()
46 memcpy_to_i16_from_float((int16_t*)dst, (float*)src, count); in memcpy_by_audio_format()
49 memcpy_to_i16_from_u8((int16_t*)dst, (uint8_t*)src, count); in memcpy_by_audio_format()
52 memcpy_to_i16_from_p24((int16_t*)dst, (uint8_t*)src, count); in memcpy_by_audio_format()
55 memcpy_to_i16_from_i32((int16_t*)dst, (int32_t*)src, count); in memcpy_by_audio_format()
58 memcpy_to_i16_from_q8_23((int16_t*)dst, (int32_t*)src, count); in memcpy_by_audio_format()
67 memcpy_to_float_from_i16((float*)dst, (int16_t*)src, count); in memcpy_by_audio_format()
70 memcpy_to_float_from_u8((float*)dst, (uint8_t*)src, count); in memcpy_by_audio_format()
73 memcpy_to_float_from_p24((float*)dst, (uint8_t*)src, count); in memcpy_by_audio_format()
[all …]
Dfifo.cpp178 ssize_t audio_utils_fifo_writer::write(const void *buffer, size_t count, in write() argument
183 ssize_t availToWrite = obtain(iovec, count, timeout); in write()
198 ssize_t audio_utils_fifo_writer::obtain(audio_utils_iovec iovec[2], size_t count, in obtain() argument
220 if (count == 0 || availToWrite > 0 || timeout == NULL || in obtain()
283 if (availToWrite > count) { in obtain()
284 availToWrite = count; in obtain()
303 void audio_utils_fifo_writer::release(size_t count) in release() argument
307 if (count > 0) { in release()
308 if (count > mObtained) { in release()
309 ALOGE("%s(count=%zu) > mObtained=%u", __func__, count, mObtained); in release()
[all …]
/system/bt/gd/common/
Dobserver_registry_test.cc38 void Increment(int* count) { in Increment() argument
39 (*count)++; in Increment()
42 void IncrementBy(int* count, int n) { in IncrementBy() argument
43 (*count) += n; in IncrementBy()
47 int count = 0; in TEST_F() local
48 auto wrapped_callback = registry_->Register(Bind(&Increment, Unretained(&count))); in TEST_F()
50 EXPECT_EQ(count, 1); in TEST_F()
52 EXPECT_EQ(count, 2); in TEST_F()
54 EXPECT_EQ(count, 3); in TEST_F()
59 int count = 0; in TEST_F() local
[all …]
/system/core/libcutils/arch-arm64/
Dandroid_memset.S42 #define count x2 macro
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, #1, 1f
128 sub count, count, tmp2
[all …]
/system/media/audio_utils/benchmarks/
Dprimitives_benchmark.cpp26 const size_t count = state.range(0); in BM_MemcpyToFloatFromFloatWithClamping() local
30 std::vector<float> src(count); in BM_MemcpyToFloatFromFloatWithClamping()
31 std::vector<float> dst(count); in BM_MemcpyToFloatFromFloatWithClamping()
32 std::vector<float> expected(count); in BM_MemcpyToFloatFromFloatWithClamping()
35 std::minstd_rand gen(count); in BM_MemcpyToFloatFromFloatWithClamping()
37 for (size_t i = 0; i < count; i++) { in BM_MemcpyToFloatFromFloatWithClamping()
46 memcpy_to_float_from_float_with_clamping(dst.data(), src.data(), count, 1.413); in BM_MemcpyToFloatFromFloatWithClamping()
59 const size_t count = state.range(0); in BM_MemcpyFloat() local
61 std::vector<float> src(count); in BM_MemcpyFloat()
62 std::vector<float> dst(count); in BM_MemcpyFloat()
[all …]
/system/media/audio_utils/include/audio_utils/
Dprimitives.h68 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count);
80 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count);
93 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count);
106 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count);
119 void memcpy_to_u8_from_p24(uint8_t *dst, const uint8_t *src, size_t count);
132 void memcpy_to_u8_from_i32(uint8_t *dst, const int32_t *src, size_t count);
145 void memcpy_to_u8_from_q8_23(uint8_t *dst, const int32_t *src, size_t count);
158 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count);
173 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count);
188 void memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count);
[all …]
/system/bt/gd/packet/
Draw_builder_unittest.cc30 vector<uint8_t> count = { variable
55 std::vector<uint8_t> count_subset(count.begin() + 0x16, count.end()); in TEST()
58 ASSERT_EQ(count.size(), count_builder->size()); in TEST()
65 ASSERT_EQ(count, packet); in TEST()
69 std::vector<uint8_t> count_first(count.begin(), count.begin() + 0x8); in TEST()
76 std::vector<uint8_t> count_last(count.begin() + 0x18, count.end()); in TEST()
79 ASSERT_EQ(count.size(), count_builder->size()); in TEST()
86 ASSERT_EQ(count, packet); in TEST()
90 const size_t kMaxBytes = count.size(); in TEST()
92 ASSERT_TRUE(count_builder->AddOctets(count)); in TEST()
[all …]
/system/extras/simpleperf/
DIOEventLoop_test.cpp31 int count = 0; in TEST() local
38 if (++count == 100) { in TEST()
59 ASSERT_EQ(100, count); in TEST()
70 int count = 0; in TEST() local
77 if (++count == 100) { in TEST()
99 ASSERT_EQ(100, count); in TEST()
104 int count = 0; in TEST() local
106 if (++count == 100) { in TEST()
121 ASSERT_EQ(100, count); in TEST()
128 int count = 0; in TestPeriodicEvents() local
[all …]
/system/core/libutils/
DBitSet_test.cpp43 EXPECT_EQ(tmp.count(), 2u); in TEST_F()
49 EXPECT_EQ(b1.count(), 2u); in TEST_F()
51 EXPECT_TRUE(b2.hasBit(4) && b2.count() == 1u); in TEST_F()
65 EXPECT_EQ(b1.count(), 3u); in TEST_F()
78 EXPECT_EQ(tmp.count(), 1u); in TEST_F()
84 EXPECT_EQ(b1.count(), 1u); in TEST_F()
85 EXPECT_EQ(b2.count(), 3u); in TEST_F()
93 EXPECT_EQ(b1.count(), 2u); in TEST_F()
97 EXPECT_EQ(b1.count(), 3u); in TEST_F()
106 EXPECT_EQ(b1.count(), 1u); in TEST_F()
[all …]
/system/extras/libperfmgr/tests/
DFileNodeTest.cc32 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count();
116 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
122 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
135 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
141 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
147 EXPECT_NEAR(std::chrono::milliseconds(300).count(), expire_time.count(), in TEST()
165 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
171 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
177 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
197 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
[all …]
DPropertyNodeTest.cc33 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count();
125 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
131 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
137 EXPECT_NEAR(std::chrono::milliseconds(300).count(), expire_time.count(), in TEST()
155 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
161 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
167 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
185 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
191 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
197 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
[all …]
DRequestGroupTest.cc29 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count();
49 EXPECT_NEAR((duration - sleep_time).count(), expire_time.count(), in TEST()
64 EXPECT_NEAR(expect.count(), expire_time.count(), kTIMING_TOLERANCE_MS); in TEST()
66 EXPECT_LE(365 * 24 * 60 * 60 * 1000, expire_time.count()); in TEST()
95 EXPECT_NEAR(duration.count(), expire_time.count(), kTIMING_TOLERANCE_MS); in TEST()
103 EXPECT_NEAR(duration.count(), expire_time.count(), kTIMING_TOLERANCE_MS); in TEST()
111 EXPECT_NEAR(duration.count(), expire_time.count(), kTIMING_TOLERANCE_MS); in TEST()
125 EXPECT_NEAR(std::min(duration_interact, duration_launch).count(), in TEST()
126 expire_time.count(), kTIMING_TOLERANCE_MS); in TEST()
158 EXPECT_NEAR(duration_launch.count(), expire_time.count(), in TEST()
/system/core/libsysutils/src/
DServiceManager.cpp62 int count = SLEEP_MAX_USEC; in start() local
63 while(count > 0) { in start()
65 count -= SLEEP_MIN_USEC; in start()
69 if (count <= 0) { in start()
92 int count = SLEEP_MAX_USEC; in stop() local
93 while(count > 0) { in stop()
95 count -= SLEEP_MIN_USEC; in stop()
100 if (count <= 0) { in stop()
/system/extras/libfec/
Dfec_process.cpp23 size_t count; member
36 p->offset + p->count); in __process()
38 p->rc = p->func(p->f, p->buf, p->count, p->offset, &p->errors); in __process()
43 ssize_t process(fec_handle *f, uint8_t *buf, size_t count, uint64_t offset, in process() argument
50 if (count == 0) { in process()
63 size_t blocks = fec_div_round_up(count, FEC_BLOCKSIZE); in process()
66 size_t max_threads = fec_div_round_up(count, count_per_thread); in process()
72 size_t left = count; in process()
77 count_per_thread, count); in process()
90 info[i].count = (size_t)(end - pos); in process()
[all …]
Dfec_read.cpp234 static ssize_t ecc_read(fec_handle *f, uint8_t *dest, size_t count, in ecc_read() argument
240 check(offset + count <= f->data_size); in ecc_read()
243 debug("[%" PRIu64 ", %" PRIu64 ")", offset, offset + count); in ecc_read()
254 size_t left = count; in ecc_read()
279 return count; in ecc_read()
285 static ssize_t verity_read(fec_handle *f, uint8_t *dest, size_t count, in verity_read() argument
291 check(offset + count <= f->data_size); in verity_read()
295 debug("[%" PRIu64 ", %" PRIu64 ")", offset, offset + count); in verity_read()
306 size_t left = count; in verity_read()
346 offset, offset + count, curr); in verity_read()
[all …]
/system/media/radio/src/
Dradio_metadata.c62 uint32_t index_offset = metadata->size_int - metadata->count - 1; in check_size()
67 LOG_ALWAYS_FATAL_IF(metadata->size_int < (metadata->count + 1), in check_size()
73 req_size_int = data_offset + metadata->count + 1 + 1 + size_int; in check_size()
94 memmove((uint32_t *)metadata + new_size_int - (metadata->count + 1), in check_size()
95 (uint32_t *)metadata + metadata->size_int - (metadata->count + 1), in check_size()
96 (metadata->count + 1) * sizeof(uint32_t)); in check_size()
125 index_offset = metadata->size_int - metadata->count - 1; in add_metadata()
136 metadata->count++; in add_metadata()
152 if (index >= metadata->count) { in get_entry_at_index()
166 LOG_ALWAYS_FATAL_IF(metadata->size_int < (metadata->count + 1), in get_entry_at_index()
[all …]
/system/chre/util/include/chre/util/
Dmemory_impl.h30 inline void destroy(ElementType *first, size_t count) { in destroy() argument
31 for (size_t i = 0; i < count; i++) { in destroy()
58 inline void uninitializedMoveOrCopy(ElementType *source, size_t count, in uninitializedMoveOrCopy() argument
60 std::memcpy(dest, source, count * sizeof(ElementType)); in uninitializedMoveOrCopy()
66 inline void uninitializedMoveOrCopy(ElementType *source, size_t count, in uninitializedMoveOrCopy() argument
69 for (size_t i = 0; i < count; i++) { in uninitializedMoveOrCopy()
77 inline void uninitializedMoveOrCopy(ElementType *source, size_t count, in uninitializedMoveOrCopy() argument
80 for (size_t i = 0; i < count; i++) { in uninitializedMoveOrCopy()
88 ElementType *source, size_t count, ElementType *dest, std::false_type) { in uninitializedMoveOrCopy() argument
96 source, count, dest, std::false_type(), in uninitializedMoveOrCopy()
[all …]
/system/core/fs_mgr/libstorage_literals/storage_literals/
Dstorage_literals.h26 explicit constexpr Size(uint64_t count) : value_(count) {} in Size()
29 constexpr uint64_t count() const { return value_; } in count() function
60 return Dest(src.count() >> (Dest::power - Src::power)); in size_cast()
63 return Dest(src.count() << (Src::power - Dest::power)); in size_cast()
65 return Dest(src.count()); in size_cast()
72 static_assert(size_cast<KiB>(1_B).count() == 0);
73 static_assert(size_cast<KiB>(1024_B).count() == 1);
74 static_assert(size_cast<KiB>(1_MiB).count() == 1024);
/system/update_engine/scripts/update_payload/
Dhistogram.py57 self.max_key_len = max([len(str(key)) for key, count in self.data])
58 self.total = sum([count for key, count in self.data])
85 hist = [(namer(key), count) for key, count in count_dict.items()]
114 for key, count in self.data:
116 bar_len = count * self.scale // self.total
122 self.formatter(count))
123 percent_str = format_utils.NumToPercent(count, self.total)
/system/extras/libfec/test/
Dtest_read.cpp53 ssize_t count; in main() local
56 count = input.read(buffer.get(), bufsize); in main()
58 if (count == -1) { in main()
60 } else if (count > 0) { in main()
61 output.write(reinterpret_cast<const char *>(buffer.get()), count); in main()
68 } while (count > 0); in main()
/system/core/logcat/tests/
Dlogcat_test.cpp98 int count = 0; in TEST() local
107 ++count; in TEST()
115 EXPECT_EQ(count, 4); in TEST()
138 int count = 0; in TEST() local
141 if (strncmp(begin, buffer, sizeof(begin) - 1)) ++count; in TEST()
148 EXPECT_GE(count, 3); in TEST()
149 EXPECT_LE(count, 9); in TEST()
150 EXPECT_EQ(count % 3, 0); in TEST()
155 static size_t inject(ssize_t count) { in inject() argument
156 if (count <= 0) return 0; in inject()
[all …]
/system/update_engine/payload_consumer/
Dfake_file_descriptor.cc21 ssize_t FakeFileDescriptor::Read(void* buf, size_t count) { in Read() argument
23 read_ops_.emplace_back(offset_, count); in Read()
26 if (offset_ >= static_cast<uint64_t>(size_) || count == 0) in Read()
41 count = std::min(static_cast<uint64_t>(count), first_failure - offset_); in Read()
43 for (size_t i = 0; i < count; ++i) { in Read()
52 return count; in Read()
Dfile_writer.cc31 bool DirectFileWriter::Write(const void* bytes, size_t count) { in Write() argument
36 while (bytes_written < count) { in Write()
37 ssize_t rc = write(fd_, char_bytes + bytes_written, count - bytes_written); in Write()
42 CHECK_EQ(bytes_written, count); in Write()
43 return bytes_written == count; in Write()
/system/core/libpixelflinger/tests/arch-arm64/col32cb16blend/
Dcol32cb16blend_test.c46 size_t count; member
63 void scanline_col32cb16blend_arm64(uint16_t *dst, int32_t src, size_t count);
64 void scanline_col32cb16blend_c(uint16_t * dst, int32_t src, size_t count) in scanline_col32cb16blend_c() argument
68 while (count--) in scanline_col32cb16blend_c()
98 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
105 scanline_col32cb16blend_c(dst_c, test.src_color, test.count); in scanline_col32cb16blend_test()
106 scanline_col32cb16blend_arm64(dst_asm, test.src_color, test.count); in scanline_col32cb16blend_test()
114 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()

12345678910>>...21