Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 822) sorted by relevance

12345678910>>...33

/system/extras/tests/mmc_tracepoints/
Dmmc_trace_sample_data12 … mmcqd/0-82 [000] ...1 49.828932: mmc_blk_rw_start: cmd=25,addr=0x002c6518,size=0x00000010
13 … <...>-1484 [000] ..s4 49.829171: mmc_blk_rw_end: cmd=25,addr=0x002c6518,size=0x00000010
14 … mmcqd/0-82 [000] ...1 49.830095: mmc_blk_rw_start: cmd=25,addr=0x002c6528,size=0x00000008
15 … kworker/0:2-48 [000] ..s4 49.830218: mmc_blk_rw_end: cmd=25,addr=0x002c6528,size=0x00000008
16 … mmcqd/0-82 [000] ...1 52.465957: mmc_blk_rw_start: cmd=18,addr=0x001ad578,size=0x00000020
17 … <idle>-0 [000] ..s3 52.466404: mmc_blk_rw_end: cmd=18,addr=0x001ad578,size=0x00000020
18 … mmcqd/0-82 [000] ...1 52.492868: mmc_blk_rw_start: cmd=18,addr=0x001aecb8,size=0x00000020
19 … <idle>-0 [000] ..s3 52.493157: mmc_blk_rw_end: cmd=18,addr=0x001aecb8,size=0x00000020
20 … mmcqd/0-82 [000] ...1 54.834287: mmc_blk_rw_start: cmd=25,addr=0x005420a8,size=0x00000008
21 … <idle>-0 [000] ..s3 54.834383: mmc_blk_rw_end: cmd=25,addr=0x005420a8,size=0x00000008
[all …]
/system/core/logcat/
Dlogpersist26 size=${size_default}
32 --size=*) size="${1#--size=}" ;;
33 --rotate-count=*) size="${1#--rotate-count=}" ;;
34 -n|--size|--rotate-count) size="${2}" ; shift ;;
52 if [ -z "${size}" -o "${size_default}" = "${size}" ]; then
53 unset size
55 if [ -n "${size}" ] &&
56 ! ( [ 0 -lt "${size}" ] && [ 2048 -ge "${size}" ] ) >/dev/null 2>&1; then
57 echo ERROR: Invalid --size ${size} >&2
70 if [ -n "${size}${buffer}" -o "true" = "${clear}" ]; then
[all …]
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/
Dbitops.h19 #define for_each_set_bit(bit, addr, size) \ argument
20 for ((bit) = find_first_bit((addr), (size)); \
21 (bit) < (size); \
22 (bit) = find_next_bit((addr), (size), (bit) + 1))
25 #define for_each_set_bit_from(bit, addr, size) \ argument
26 for ((bit) = find_next_bit((addr), (size), (bit)); \
27 (bit) < (size); \
28 (bit) = find_next_bit((addr), (size), (bit) + 1))
94 find_first_bit(const unsigned long *addr, unsigned long size) in find_first_bit() argument
100 while (size & ~(BITS_PER_LONG-1)) { in find_first_bit()
[all …]
/system/core/libion/tests/
Dexit_test.cpp32 for (size_t size : allocationSizes) { in TEST_F() local
34 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
38 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F()
50 for (size_t size : allocationSizes) { in TEST_F() local
52 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
56 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, size, 0, heapMask, 0, &handle_fd)); in TEST_F()
68 for (size_t size : allocationSizes) { in TEST_F() local
71 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
75 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, size, 0, heapMask, 0, &handle_fd)); in TEST_F()
80 << " and size " << size in TEST_F()
[all …]
Dmap_test.cpp32 for (size_t size : allocationSizes) { in TEST_F() local
34 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
37 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F()
42 …ASSERT_EQ(0, ion_map(m_ionFd, handle, size, PROT_READ | PROT_WRITE, MAP_SHARED, 0, &ptr, &map_fd)); in TEST_F()
50 memset(ptr, 0xaa, size); in TEST_F()
52 ASSERT_EQ(0, munmap(ptr, size)); in TEST_F()
61 for (size_t size : allocationSizes) { in TEST_F() local
63 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
66 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, size, 0, heapMask, 0, &map_fd)); in TEST_F()
70 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
[all …]
/system/core/libcutils/arch-mips/
Dandroid_memset.c36 void android_memset16(uint16_t* dst, uint16_t value, size_t size) in android_memset16() argument
44 size >>= 1; in android_memset16()
45 if (((uintptr_t)dst & 2) && size) { in android_memset16()
48 size--; in android_memset16()
53 android_memset32((uint32_t*) dst, value32, size<<1); in android_memset16()
54 if (size & 1) { in android_memset16()
55 dst[size-1] = value; /* fill unpaired last elem */ in android_memset16()
63 void android_memset32(uint32_t* dst, uint32_t value, size_t size) in android_memset32() argument
71 size >>= 2; in android_memset32()
72 if (((uintptr_t)dst & 4) && size) { in android_memset32()
[all …]
/system/bt/osi/src/
Dallocator.c28 size_t size = strlen(str) + 1; // + 1 for the null terminator in osi_strdup() local
29 size_t real_size = allocation_tracker_resize_for_canary(size); in osi_strdup()
36 size); in osi_strdup()
40 memcpy(new_string, str, size); in osi_strdup()
45 size_t size = strlen(str); in osi_strndup() local
46 if (len < size) in osi_strndup()
47 size = len; in osi_strndup()
49 size_t real_size = allocation_tracker_resize_for_canary(size + 1); in osi_strndup()
56 size + 1); in osi_strndup()
60 memcpy(new_string, str, size); in osi_strndup()
[all …]
/system/extras/tests/memtest/
Dmemtest.cpp113 size_t size = 0x40000000; in malloc_test() local
114 while (size) { in malloc_test()
115 void* addr = malloc(size); in malloc_test()
117 printf("size = %9zd failed\n", size); in malloc_test()
118 size >>= 1; in malloc_test()
120 total += size; in malloc_test()
122 size, addr, total, total / (1024*1024)); in malloc_test()
126 memset(addr, 0, size); in malloc_test()
128 size = size + (size>>1); in malloc_test()
137 size_t size = i==0 ? 4096 : 48*1024*1024; // 48 MB in madvise_test() local
[all …]
/system/extras/tests/sdcard/
Dsysutil.cpp77 int readStringFromFile(const char *filename, char *const start, size_t size, bool must_exist=true) in readStringFromFile() argument
79 if (NULL == start || size == 0) in readStringFromFile()
99 --size; // reserve space for trailing '\0' in readStringFromFile()
101 while (size > 0 && !error && !eof && attempts < kMaxAttempts) in readStringFromFile()
105 s = read(fd, end, size); in readStringFromFile()
122 size -= s; in readStringFromFile()
161 size_t size = len; in writeStringToFile() local
165 while (size > 0 && !error && attempts < kMaxAttempts) in writeStringToFile()
167 ssize_t s = write(fd, start, size); in writeStringToFile()
180 size -= s; in writeStringToFile()
[all …]
Dstopwatch.cpp36 #define SNPRINTF_OR_RETURN(str, size, format, ...) { \ argument
37 int len = snprintf((str), (size), (format), ## __VA_ARGS__); \
39 if (len > static_cast<int>(size)) { \
43 (size) -= len; (str) += len; \
106 void StopWatch::sprint(char **str, size_t *size) in sprint() argument
118 if (kVerbose) SNPRINTF_OR_RETURN(*str, *size, "# Got %d samples for %s\n", mDataLen, mName); in sprint()
121 SNPRINTF_OR_RETURN(*str, *size, "# StopWatch %s total/cumulative duration %f Samples: %d\n", in sprint()
123 printThroughput(str, size); in sprint()
124 printAverageMinMax(str, size); in sprint()
130 … SNPRINTF_OR_RETURN(*str, *size, "# Name Iterations Duration Min MinIdx Max MaxIdx SizeKbytes\n"); in sprint()
[all …]
/system/core/bootstat/
Devent_log_list_builder_test.cpp35 size_t size; in TEST() local
36 builder.Release(&log, &size); in TEST()
37 EXPECT_EQ(2U, size); in TEST()
40 EXPECT_THAT(std::vector<uint8_t>(log_data, log_data + size), in TEST()
57 size_t size; in TEST() local
58 builder.Release(&log, &size); in TEST()
59 EXPECT_EQ(7U, size); in TEST()
62 EXPECT_THAT(std::vector<uint8_t>(log_data, log_data + size), in TEST()
80 size_t size; in TEST() local
81 builder.Release(&log, &size); in TEST()
[all …]
/system/extras/perfprofd/quipper/
Daddress_mapper.cc16 const uint64_t size, in Map() argument
18 return MapWithID(real_addr, size, kuint64max, 0, remove_existing_mappings); in Map()
22 const uint64_t size, in MapWithID() argument
28 range.size = size; in MapWithID()
32 if (size == 0) { in MapWithID()
38 if (real_addr + size - 1 != kuint64max && in MapWithID()
39 !(real_addr + size > real_addr)) { in MapWithID()
42 << " with size " << std::hex << size << " overflows."; in MapWithID()
58 if (!old_range_found && iter->Covers(range) && iter->size > range.size) { in MapWithID()
78 uint64_t gap_after = (old_range.real_addr + old_range.size) - in MapWithID()
[all …]
Dperf_reader.cc27 size_t size; member
35 size_t size; member
129 sizeof(header.type) + sizeof(header.misc) + sizeof(header.size)); in CheckNoEventHeaderPadding()
150 sizeof(event.header.size) + sizeof(event.pid) + in CheckNoBuildIDEventPadding()
177 if (!event || new_size > event->header.size) { in CreateOrUpdateBuildID()
206 event->header.size = new_size; in CreateOrUpdateBuildID()
212 size_t size, in ReadDataFromBuffer() argument
216 size_t end_offset = *src_offset + size / sizeof(*buffer.ptr); in ReadDataFromBuffer()
217 if (buffer.size < end_offset) { in ReadDataFromBuffer()
219 << ". Requested " << size << " bytes"; in ReadDataFromBuffer()
[all …]
/system/core/include/utils/
DFlattenable.h32 static size_t align(size_t size) { in align() argument
34 return (size + (N-1)) & ~(N-1); in align()
50 static void advance(void*& buffer, size_t& size, size_t offset) { in advance() argument
52 size -= offset; in advance()
55 static void advance(void const*& buffer, size_t& size, size_t offset) { in advance() argument
57 size -= offset; in advance()
62 static void write(void*& buffer, size_t& size, const T& value) { in write() argument
64 advance(buffer, size, sizeof(T)); in write()
69 static void read(void const*& buffer, size_t& size, T& value) { in read() argument
71 advance(buffer, size, sizeof(T)); in read()
[all …]
/system/core/libutils/
DJenkinsHash.cpp37 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) { in JenkinsHashMixBytes() argument
38 if (size > UINT32_MAX) { in JenkinsHashMixBytes()
41 hash = JenkinsHashMix(hash, (uint32_t)size); in JenkinsHashMixBytes()
43 for (i = 0; i < (size & -4); i += 4) { in JenkinsHashMixBytes()
47 if (size & 3) { in JenkinsHashMixBytes()
49 data |= ((size & 3) > 1) ? (bytes[i+1] << 8) : 0; in JenkinsHashMixBytes()
50 data |= ((size & 3) > 2) ? (bytes[i+2] << 16) : 0; in JenkinsHashMixBytes()
56 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size) { in JenkinsHashMixShorts() argument
57 if (size > UINT32_MAX) { in JenkinsHashMixShorts()
60 hash = JenkinsHashMix(hash, (uint32_t)size); in JenkinsHashMixShorts()
[all …]
/system/extras/micro_bench/
Dmicro_bench.cpp121 uint8_t *allocateAlignedMemory(size_t size, int alignment, int or_mask) { in allocateAlignedMemory() argument
122 uint64_t ptr = reinterpret_cast<uint64_t>(malloc(size + 3 * alignment)); in allocateAlignedMemory()
128 void initString(uint8_t *buf, size_t size) { in initString() argument
129 for (size_t i = 0; i < size - 1; i++) { in initString()
132 buf[size-1] = '\0'; in initString()
135 static inline double computeAverage(uint64_t time_ns, size_t size, size_t copies) { in computeAverage() argument
136 return ((size/1024.0) * copies) / ((double)time_ns/NS_PER_SEC); in computeAverage()
151 static inline void printIter(uint64_t time_ns, const char *name, size_t size, size_t copies, double… in printIter() argument
153 name, copies, size, (double)time_ns/NS_PER_SEC, avg/1024.0); in printIter()
156 static inline void printSummary(uint64_t /*time_ns*/, const char *name, size_t size, size_t copies,… in printSummary() argument
[all …]
/system/extras/simpleperf/
Drecord.cpp49 size_t size = n * sizeof(T); in MoveFromBinaryFormat() local
50 memcpy(data_p, p, size); in MoveFromBinaryFormat()
51 p += size; in MoveFromBinaryFormat()
62 size_t size = n * sizeof(T); in MoveToBinaryFormat() local
63 memcpy(p, data_p, size); in MoveToBinaryFormat()
64 p += size; in MoveToBinaryFormat()
147 size_t size = 0; in Size() local
150 size += sizeof(PerfSampleTidType); in Size()
153 size += sizeof(PerfSampleTimeType); in Size()
156 size += sizeof(PerfSampleIdType); in Size()
[all …]
/system/tpm/trunks/
Dhmac_authorization_delegate.cc48 tpm_nonce_.size = 0; in HmacAuthorizationDelegate()
49 caller_nonce_.size = 0; in HmacAuthorizationDelegate()
94 caller_nonce_.size); in GetCommandAuthorization()
96 tpm_nonce_.size); in GetCommandAuthorization()
125 if (auth_response.hmac.size != kHashDigestSize) { in CheckResponseAuthorization()
129 if (auth_response.nonce.size < kNonceMinSize || in CheckResponseAuthorization()
130 auth_response.nonce.size > kNonceMaxSize) { in CheckResponseAuthorization()
156 tpm_nonce_.size); in CheckResponseAuthorization()
158 caller_nonce_.size); in CheckResponseAuthorization()
161 CHECK_EQ(digest.size(), auth_response.hmac.size); in CheckResponseAuthorization()
[all …]
Dhmac_authorization_delegate_test.cc30 EXPECT_EQ(0u, dummy.size()); in TEST()
39 nonce.size = kAesKeySize; in TEST()
40 memset(nonce.buffer, 0, nonce.size); in TEST()
44 EXPECT_EQ(0u, delegate.session_key_.size()); in TEST()
50 EXPECT_EQ(kHashDigestSize, delegate.session_key_.size()); in TEST()
70 nonce.size = kAesKeySize; in TEST()
99 session_nonce_.size = kAesKeySize; in SetUp()
123 EXPECT_EQ(delegate_.caller_nonce_.size, original_nonce.size); in TEST_F()
126 original_nonce.size)); in TEST_F()
136 EXPECT_EQ(delegate_.caller_nonce_.size, original_nonce.size); in TEST_F()
[all …]
/system/keymaster/
Dserializable.cpp38 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) { in copy_from_buf() argument
39 if (__pval(*buf_ptr) + size < __pval(*buf_ptr)) // Pointer wrap check in copy_from_buf()
42 if (end < *buf_ptr + size) in copy_from_buf()
44 memcpy(dest, *buf_ptr, size); in copy_from_buf()
45 *buf_ptr += size; in copy_from_buf()
49 bool copy_size_and_data_from_buf(const uint8_t** buf_ptr, const uint8_t* end, size_t* size, in copy_size_and_data_from_buf() argument
51 if (!copy_uint32_from_buf(buf_ptr, end, size)) in copy_size_and_data_from_buf()
54 if (__pval(*buf_ptr) + *size < __pval(*buf_ptr)) // Pointer wrap check in copy_size_and_data_from_buf()
57 if (*buf_ptr + *size > end) in copy_size_and_data_from_buf()
60 if (*size == 0) { in copy_size_and_data_from_buf()
[all …]
/system/core/fastboot/
Dprotocol.cpp51 static int check_response(Transport* transport, uint32_t size, char* response) { in check_response() argument
90 if (!memcmp(status, "DATA", 4) && size > 0){ in check_response()
92 if (dsize > size) { in check_response()
108 static int _command_start(Transport* transport, const char* cmd, uint32_t size, char* response) { in _command_start() argument
125 return check_response(transport, size, response); in _command_start()
128 static int _command_data(Transport* transport, const void* data, uint32_t size) { in _command_data() argument
129 int r = transport->Write(data, size); in _command_data()
135 if (r != ((int) size)) { in _command_data()
147 static int _command_send(Transport* transport, const char* cmd, const void* data, uint32_t size, in _command_send() argument
149 if (size == 0) { in _command_send()
[all …]
/system/core/libmemunreachable/tests/
DMemUnreachable_test.cpp30 HiddenPointer(size_t size = 256) { in HiddenPointer() argument
31 Set(malloc(size)); in HiddenPointer()
60 ASSERT_EQ(0U, info.leaks.size()); in TEST()
73 ASSERT_EQ(0U, info.leaks.size()); in TEST()
82 ASSERT_EQ(1U, info.leaks.size()); in TEST()
91 ASSERT_EQ(0U, info.leaks.size()); in TEST()
104 ASSERT_EQ(0U, info.leaks.size()); in TEST()
113 ASSERT_EQ(1U, info.leaks.size()); in TEST()
122 ASSERT_EQ(0U, info.leaks.size()); in TEST()
137 ASSERT_EQ(0U, info.leaks.size()); in TEST()
[all …]
/system/extras/tests/pagingtest/
Dpagingtest.c17 int create_tmp_file(char *filename, off_t size) { in create_tmp_file() argument
40 if (ftruncate(fd, size)) { in create_tmp_file()
45 buf = mmap(NULL, size, PROT_WRITE, MAP_SHARED, fd, 0); in create_tmp_file()
51 rc = read(urandom, buf, size); in create_tmp_file()
58 if (rc != size) { in create_tmp_file()
63 if (madvise(buf, size, MADV_DONTNEED)) { in create_tmp_file()
73 rc = posix_fadvise(fd, 0, size, POSIX_FADV_DONTNEED); in create_tmp_file()
79 munmap(buf, size); in create_tmp_file()
84 munmap(buf, size); in create_tmp_file()
95 unsigned char *alloc_mincore_vec(size_t size) { in alloc_mincore_vec() argument
[all …]
/system/update_engine/payload_generator/
Dxz_android.cc37 static SRes ReadStatic(void* p, void* buf, size_t* size) { in ReadStatic()
40 *size = std::min(*size, self->data_.size() - self->pos_); in ReadStatic()
41 memcpy(buf, self->data_.data() + self->pos_, *size); in ReadStatic()
42 self->pos_ += *size; in ReadStatic()
58 static size_t WriteStatic(void* p, const void* buf, size_t size) { in WriteStatic()
62 self->data_->reserve(self->data_->size() + size); in WriteStatic()
63 self->data_->insert(self->data_->end(), buffer, buffer + size); in WriteStatic()
64 return size; in WriteStatic()
107 lzma2Props.lzmaProps.reduceSize = in.size(); in XzCompress()
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/
Dbitops.h33 …for_each_set_bit(bit,addr,size) for((bit) = find_first_bit((addr), (size)); (bit) < (size); (bit) … argument
34 …_set_bit_from(bit,addr,size) for((bit) = find_next_bit((addr), (size), (bit)); (bit) < (size); (bi… argument

12345678910>>...33