Home
last modified time | relevance | path

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

1234567891011

/system/media/audio_utils/
Dprimitives.c35 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_u8() argument
37 dst += count; in memcpy_to_i16_from_u8()
38 src += count; in memcpy_to_i16_from_u8()
39 while (count--) { in memcpy_to_i16_from_u8()
44 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) in memcpy_to_u8_from_i16() argument
46 while (count--) { in memcpy_to_u8_from_i16()
51 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count) in memcpy_to_u8_from_float() argument
53 while (count--) { in memcpy_to_u8_from_float()
58 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_i32() argument
60 while (count--) { in memcpy_to_i16_from_i32()
[all …]
Dformat.c25 const void *src, audio_format_t src_format, size_t count) in memcpy_by_audio_format() argument
36 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 …]
/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/include/audio_utils/
Dprimitives.h64 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count);
77 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count);
90 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count);
103 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count);
118 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count);
133 void memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count);
146 void memcpy_to_float_from_i16(float *dst, const int16_t *src, size_t count);
159 void memcpy_to_float_from_u8(float *dst, const uint8_t *src, size_t count);
173 void memcpy_to_float_from_p24(float *dst, const uint8_t *src, size_t count);
187 void memcpy_to_i16_from_p24(int16_t *dst, const uint8_t *src, size_t count);
[all …]
/system/core/libutils/tests/
DBitSet_test.cpp42 EXPECT_EQ(tmp.count(), 2u); in TEST_F()
48 EXPECT_EQ(b1.count(), 2u); in TEST_F()
50 EXPECT_TRUE(b2.hasBit(4) && b2.count() == 1u); in TEST_F()
64 EXPECT_EQ(b1.count(), 3u); in TEST_F()
77 EXPECT_EQ(tmp.count(), 1u); in TEST_F()
83 EXPECT_EQ(b1.count(), 1u); in TEST_F()
84 EXPECT_EQ(b2.count(), 3u); in TEST_F()
92 EXPECT_EQ(b1.count(), 2u); in TEST_F()
96 EXPECT_EQ(b1.count(), 3u); in TEST_F()
105 EXPECT_EQ(b1.count(), 1u); in TEST_F()
[all …]
/system/core/logcat/tests/
Dlogcat_test.cpp60 int count = 0; in TEST() local
69 ++count; in TEST()
77 EXPECT_EQ(4, count); in TEST()
107 int count = 0; in TEST() local
111 ++count; in TEST()
117 ASSERT_EQ(3, count); in TEST()
159 int count; in TEST() local
170 count = 0; in TEST()
174 ++count; in TEST()
180 } while ((count < 3) && --tries && (sleep(1), true)); in TEST()
[all …]
/system/media/radio/src/
Dradio_metadata.c60 unsigned int index_offset = metadata->size_int - metadata->count - 1; in check_size()
69 req_size_int = data_offset + metadata->count + 1 + 1 + size_int; in check_size()
87 memmove((unsigned int *)metadata + new_size_int - (metadata->count + 1), in check_size()
88 (unsigned int *)metadata + metadata->size_int - (metadata->count + 1), in check_size()
89 (metadata->count + 1) * sizeof(unsigned int)); in check_size()
118 index_offset = metadata->size_int - metadata->count - 1; in add_metadata()
129 metadata->count++; in add_metadata()
142 if (index >= metadata->count) { in get_entry_at_index()
155 max_offset = metadata->size_int - metadata->count - 1 - min_entry_size_int; in get_entry_at_index()
272 for (index = 0; index < src_metadata_buf->count; index++) { in radio_metadata_add_metadata()
[all …]
/system/core/libsysutils/src/
DServiceManager.cpp54 int count = SLEEP_MAX_USEC; in start() local
55 while(count > 0) { in start()
57 count -= SLEEP_MIN_USEC; in start()
61 if (count <= 0) { in start()
83 int count = SLEEP_MAX_USEC; in stop() local
84 while(count > 0) { in stop()
86 count -= SLEEP_MIN_USEC; in stop()
91 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()
70 size_t left = count; in process()
75 count_per_thread, count); in process()
88 info[i].count = (size_t)(end - pos); in process()
94 if (info[i].count > left) { in process()
[all …]
Dfec_read.cpp232 static ssize_t ecc_read(fec_handle *f, uint8_t *dest, size_t count, in ecc_read() argument
238 check(offset + count <= f->data_size); in ecc_read()
241 debug("[%" PRIu64 ", %" PRIu64 ")", offset, offset + count); in ecc_read()
252 size_t left = count; in ecc_read()
277 return count; in ecc_read()
283 static ssize_t verity_read(fec_handle *f, uint8_t *dest, size_t count, in verity_read() argument
289 check(offset + count <= f->data_size); in verity_read()
293 debug("[%" PRIu64 ", %" PRIu64 ")", offset, offset + count); in verity_read()
304 size_t left = count; in verity_read()
345 offset, offset + count, curr); in verity_read()
[all …]
/system/extras/libpagemap/
Dpm_map.c34 uint64_t count; in pm_map_usage_flags() local
66 &count); in pm_map_usage_flags()
69 usage.rss += (count >= 1) ? map->proc->ker->pagesize : (0); in pm_map_usage_flags()
70 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_usage_flags()
71 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); in pm_map_usage_flags()
95 uint64_t count, flags; in pm_map_workingset() local
116 &count); in pm_map_workingset()
121 ws.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); in pm_map_workingset()
122 ws.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_workingset()
123 ws.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); in pm_map_workingset()
/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/libpixelflinger/tests/arch-mips/col32cb16blend/
Dcol32cb16blend_test.c46 size_t count; member
63 void scanline_col32cb16blend_mips(uint16_t *dst, uint32_t src, size_t count);
64 void scanline_col32cb16blend_c(uint16_t * dst, uint32_t src, size_t count) in scanline_col32cb16blend_c() argument
69 while (count--) in scanline_col32cb16blend_c()
99 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
106 scanline_col32cb16blend_c(dst_c, test.src_color, test.count); in scanline_col32cb16blend_test()
107 scanline_col32cb16blend_mips(dst_asm, test.src_color, test.count); in scanline_col32cb16blend_test()
114 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
/system/core/libpixelflinger/tests/arch-mips64/col32cb16blend/
Dcol32cb16blend_test.c46 size_t count; member
63 void scanline_col32cb16blend_mips64(uint16_t *dst, uint32_t src, size_t count);
64 void scanline_col32cb16blend_c(uint16_t * dst, uint32_t src, size_t count) in scanline_col32cb16blend_c() argument
69 while (count--) in scanline_col32cb16blend_c()
99 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
106 scanline_col32cb16blend_c(dst_c, test.src_color, test.count); in scanline_col32cb16blend_test()
107 scanline_col32cb16blend_mips64(dst_asm, test.src_color, test.count); in scanline_col32cb16blend_test()
114 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
/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()
/system/bt/stack/avrc/
Davrc_bld_ct.c202 for(int count = 0; count < num_attrib_id; count ++) in avrc_bld_get_current_player_app_values_cmd() local
204 UINT8_TO_BE_STREAM(p_data,attrib_ids[count]); in avrc_bld_get_current_player_app_values_cmd()
232 for(int count = 0; count < num_attrib_id; count ++) in avrc_bld_set_current_player_app_values_cmd() local
234 UINT8_TO_BE_STREAM(p_data,p_val[count].attr_id); in avrc_bld_set_current_player_app_values_cmd()
235 UINT8_TO_BE_STREAM(p_data,p_val[count].attr_val); in avrc_bld_set_current_player_app_values_cmd()
262 for(int count = 0; count < p_cmd->num_attr; count++) in avrc_bld_get_player_app_setting_attr_text_cmd() local
264 UINT8_TO_BE_STREAM(p_data, p_cmd->attrs[count]); in avrc_bld_get_player_app_setting_attr_text_cmd()
291 for(int count = 0; count < p_cmd->num_val; count++) in avrc_bld_get_player_app_setting_value_text_cmd() local
293 UINT8_TO_BE_STREAM(p_data, p_cmd->vals[count]); in avrc_bld_get_player_app_setting_value_text_cmd()
324 for(int count = 0; count < num_attrib; count ++) in avrc_bld_get_element_attr_cmd() local
[all …]
/system/core/liblog/
Duio.c25 LIBLOG_ABI_PUBLIC int readv(int fd, struct iovec *vecs, int count) in readv() argument
29 for ( ; count > 0; count--, vecs++ ) { in readv()
52 LIBLOG_ABI_PUBLIC int writev(int fd, const struct iovec *vecs, int count) in writev() argument
56 for ( ; count > 0; count--, vecs++ ) { in writev()
Dlog_event_list.c35 unsigned count[ANDROID_MAX_LIST_NEST_DEPTH + 1]; /* Number of elements */ member
119 context->count[context->list_nest_depth]++; in android_log_write_list_begin()
131 context->count[context->list_nest_depth] = 0; in android_log_write_list_begin()
161 context->count[context->list_nest_depth]++; in android_log_write_int32()
197 context->count[context->list_nest_depth]++; in android_log_write_int64()
231 context->count[context->list_nest_depth]++; in android_log_write_string8_len()
265 context->count[context->list_nest_depth]++; in android_log_write_float32()
294 context->count[context->list_nest_depth]; in android_log_write_list_end()
320 context->storage[1] = context->count[0]; in android_log_write_list()
324 if (context->count[0] <= 1) { in android_log_write_list()
[all …]
/system/extras/latencytop/
Dlatencytop.c36 unsigned long count; member
73 int count, erase; in main() local
138 count = 0; in main()
141 while ((iterations == 0) || (count++ < iterations)) { in main()
329 unsigned long count, max, total; in read_latency_file() local
346 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); in read_latency_file()
350 e->count += count; in read_latency_file()
356 e->count = count; in read_latency_file()
372 int i, count; in print_latency_entries() local
375 count = 0; in print_latency_entries()
[all …]
/system/update_engine/payload_consumer/
Dfile_writer.cc31 bool DirectFileWriter::Write(const void* bytes, size_t count) { in Write() argument
36 while (bytes_written < count) { in Write()
38 count - bytes_written); in Write()
43 CHECK_EQ(bytes_written, count); in Write()
44 return bytes_written == count; in Write()
/system/core/libpixelflinger/tests/arch-mips/t32cb16blend/
Dt32cb16blend_test.c45 size_t count; member
65 void scanline_t32cb16blend_c(uint16_t * dst, uint32_t* src, size_t count) in scanline_t32cb16blend_c() argument
67 while (count--) in scanline_t32cb16blend_c()
107 for(j = 0; j < test.count; ++j) in scanline_t32cb16blend_test()
114 scanline_t32cb16blend_c(dst_c,src,test.count); in scanline_t32cb16blend_test()
115 scanline_t32cb16blend_mips(dst_asm,src,test.count); in scanline_t32cb16blend_test()
123 for(j = 0; j < test.count; ++j) in scanline_t32cb16blend_test()
/system/core/libpixelflinger/tests/arch-arm64/t32cb16blend/
Dt32cb16blend_test.c45 size_t count; member
65 void scanline_t32cb16blend_c(uint16_t * dst, uint32_t* src, size_t count) in scanline_t32cb16blend_c() argument
67 while (count--) in scanline_t32cb16blend_c()
107 for(j = 0; j < test.count; ++j) in scanline_t32cb16blend_test()
114 scanline_t32cb16blend_c(dst_c,src,test.count); in scanline_t32cb16blend_test()
115 scanline_t32cb16blend_arm64(dst_asm,src,test.count); in scanline_t32cb16blend_test()
123 for(j = 0; j < test.count; ++j) in scanline_t32cb16blend_test()
/system/extras/tests/net_test/
Dall_tests.sh32 readonly count=$(echo $tests | wc -w)
33 echo "$PREFIX Found $count $(maybePlural $count test tests)."
41 echo "$PREFIX $test ($i/$count)"
/system/core/metricsd/uploader/
Dmetrics_log.cc66 void MetricsLog::IncrementUserCrashCount(unsigned int count) { in IncrementUserCrashCount() argument
70 stability->set_other_user_crash_count(current + count); in IncrementUserCrashCount()
73 void MetricsLog::IncrementKernelCrashCount(unsigned int count) { in IncrementKernelCrashCount() argument
77 stability->set_kernel_crash_count(current + count); in IncrementKernelCrashCount()
80 void MetricsLog::IncrementUncleanShutdownCount(unsigned int count) { in IncrementUncleanShutdownCount() argument
84 stability->set_unclean_system_shutdown_count(current + count); in IncrementUncleanShutdownCount()
/system/keymaster/include/keymaster/
Dserializable.h120 size_t count) { in append_uint32_array_to_buf() argument
122 if (count >= (UINT32_MAX / sizeof(uint32_t)) || in append_uint32_array_to_buf()
123 __pval(buf) + count * sizeof(uint32_t) < __pval(buf)) in append_uint32_array_to_buf()
125 buf = append_uint32_to_buf(buf, end, count); in append_uint32_array_to_buf()
126 for (size_t i = 0; i < count; ++i) in append_uint32_array_to_buf()
180 UniquePtr<T[]>* data, size_t* count) { in copy_uint32_array_from_buf() argument
181 if (!copy_uint32_from_buf(buf_ptr, end, count)) in copy_uint32_array_from_buf()
184 uintptr_t array_end = __pval(*buf_ptr) + *count * sizeof(uint32_t); in copy_uint32_array_from_buf()
185 if (*count >= UINT32_MAX / sizeof(uint32_t) || in copy_uint32_array_from_buf()
189 data->reset(new (std::nothrow) T[*count]); in copy_uint32_array_from_buf()
[all …]

1234567891011