Home
last modified time | relevance | path

Searched refs:SIZE (Results 1 – 25 of 454) sorted by relevance

12345678910>>...19

/external/autotest/client/bin/result_tools/
Dutils_unittest.py22 SIZE = unittest_lib.SIZE variable
24 '': {utils_lib.ORIGINAL_SIZE_BYTES: 4 * SIZE,
26 'file1': {utils_lib.ORIGINAL_SIZE_BYTES: SIZE},
27 'folder1': {utils_lib.ORIGINAL_SIZE_BYTES: 2 * SIZE,
30 utils_lib.ORIGINAL_SIZE_BYTES: SIZE},
32 utils_lib.ORIGINAL_SIZE_BYTES: SIZE},
36 'folder2': {utils_lib.ORIGINAL_SIZE_BYTES: SIZE,
40 SIZE}},
44 '': {utils_lib.ORIGINAL_SIZE_BYTES: 4 * SIZE,
46 'file1': {utils_lib.ORIGINAL_SIZE_BYTES: SIZE},
[all …]
/external/r8/src/main/java/com/android/tools/r8/utils/
DEncodedValueUtils.java24 int bit_size = Long.SIZE + 1 - Long.numberOfLeadingZeros(value ^ (value >> (Long.SIZE - 1))); in putSigned()
25 int size = Math.max((bit_size + Byte.SIZE - 1) / Byte.SIZE, 1); in putSigned()
29 value >>= Byte.SIZE; in putSigned()
36 int bit_size = Long.SIZE + 1 - Long.numberOfLeadingZeros(value ^ (value >> (Long.SIZE - 1))); in encodeSigned()
37 int size = Math.max((bit_size + Byte.SIZE - 1) / Byte.SIZE, 1); in encodeSigned()
41 value >>= Byte.SIZE; in encodeSigned()
60 int bit_size = Long.SIZE - Long.numberOfLeadingZeros(value); in putUnsigned()
61 int size = Math.max((bit_size + Byte.SIZE - 1) / Byte.SIZE, 1); in putUnsigned()
65 value >>= Byte.SIZE; in putUnsigned()
71 int bit_size = Long.SIZE - Long.numberOfLeadingZeros(value); in encodeUnsigned()
[all …]
/external/clang/test/CodeGenCXX/
D2010-07-23-DeclLoc.cpp36 typedef _SIZE SIZE; typedef in SizeAndEndianness
42 template <typename SIZE> class TRange {
44 typename SIZE::ptr_t _location;
45 typename SIZE::size_t _length;
46 …TRange(typename SIZE::ptr_t location, typename SIZE::size_t length) : _location(location), _length… in TRange()
48 template <typename SIZE, typename T> class TRangeValue : public TRange<SIZE> {
51 …TRangeValue(typename SIZE::ptr_t location, typename SIZE::size_t length, T value) : TRange<SIZE>(l… in TRangeValue()
53 template <typename SIZE> class TAddressRelocator {};
56 template <typename SIZE> class TRawSymbolOwnerData
58 TRangeValue< SIZE, uint8_t* > _TEXT_text_section;
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DBufferTest.java64 buffer.writeUtf8(repeat('a', Segment.SIZE * 4)); in completeSegmentByteCountOnBufferWithFullSegments()
65 assertEquals(Segment.SIZE * 4, buffer.completeSegmentByteCount()); in completeSegmentByteCountOnBufferWithFullSegments()
70 buffer.writeUtf8(repeat('a', Segment.SIZE * 4 - 10)); in completeSegmentByteCountOnBufferWithIncompleteTailSegment()
71 assertEquals(Segment.SIZE * 3, buffer.completeSegmentByteCount()); in completeSegmentByteCountOnBufferWithIncompleteTailSegment()
141 int size = (Segment.SIZE / 2) - 1; in moveBytesBetweenBuffersShareSegment()
147 int size = (Segment.SIZE / 2) + 1; in moveBytesBetweenBuffersReassignSegment()
153 int size = 3 * Segment.SIZE + 1; in moveBytesBetweenBuffersMultipleSegments()
155 assertEquals(asList(Segment.SIZE, Segment.SIZE, Segment.SIZE, 1, in moveBytesBetweenBuffersMultipleSegments()
156 Segment.SIZE, Segment.SIZE, Segment.SIZE, 1), segmentSizes); in moveBytesBetweenBuffersMultipleSegments()
175 int writeSize = Segment.SIZE / 2 + 1; in writeSplitSourceBufferLeft()
[all …]
DRealBufferedSourceTest.java36 source.writeUtf8(repeat('b', Segment.SIZE)); in inputStreamTracksSegments()
41 assertEquals(Segment.SIZE + 2, source.size()); in inputStreamTracksSegments()
45 assertEquals(Segment.SIZE - 1, in.available()); in inputStreamTracksSegments()
49 byte[] data = new byte[Segment.SIZE * 2]; in inputStreamTracksSegments()
50 assertEquals(Segment.SIZE - 1, in.read(data, 0, data.length)); in inputStreamTracksSegments()
51 assertEquals(repeat('b', Segment.SIZE - 1), new String(data, 0, Segment.SIZE - 1, UTF_8)); in inputStreamTracksSegments()
119 source.writeUtf8(repeat('a', Segment.SIZE)); in requireReadsOneSegmentAtATime()
120 source.writeUtf8(repeat('b', Segment.SIZE)); in requireReadsOneSegmentAtATime()
125 assertEquals(Segment.SIZE, source.size()); in requireReadsOneSegmentAtATime()
126 assertEquals(Segment.SIZE, bufferedSource.buffer().size()); in requireReadsOneSegmentAtATime()
[all …]
DBufferedSourceTest.java148 sink.writeUtf8(repeat('a', Segment.SIZE - 1)); in readShortSplitAcrossMultipleSegments()
150 source.skip(Segment.SIZE - 1); in readShortSplitAcrossMultipleSegments()
176 sink.writeUtf8(repeat('a', Segment.SIZE - 3)); in readIntSplitAcrossMultipleSegments()
180 source.skip(Segment.SIZE - 3); in readIntSplitAcrossMultipleSegments()
208 sink.writeUtf8(repeat('a', Segment.SIZE - 7)); in readLongSplitAcrossMultipleSegments()
213 source.skip(Segment.SIZE - 7); in readLongSplitAcrossMultipleSegments()
277 data.writeUtf8("Hello").writeUtf8(repeat('e', Segment.SIZE)); in readFullyByteArray()
282 byte[] sink = new byte[Segment.SIZE + 5]; in readFullyByteArray()
350 String string = "abcd" + repeat('e', Segment.SIZE); in readByteArray()
362 sink.writeUtf8("abcd").writeUtf8(repeat('e', Segment.SIZE)); in readByteString()
[all …]
DRealBufferedSinkTest.java46 bufferedSink.writeUtf8(repeat('a', Segment.SIZE - 1)); in bufferedSinkEmitsTailWhenItIsComplete()
49 assertEquals(Segment.SIZE, sink.size()); in bufferedSinkEmitsTailWhenItIsComplete()
56 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 4 - 1)); in bufferedSinkEmitMultipleSegments()
57 assertEquals(Segment.SIZE * 3, sink.size()); in bufferedSinkEmitMultipleSegments()
58 assertEquals(Segment.SIZE - 1, bufferedSink.buffer().size()); in bufferedSinkEmitMultipleSegments()
97 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 3)); in completeSegmentsEmitted()
98 assertEquals(Segment.SIZE * 3, sink.size()); in completeSegmentsEmitted()
104 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 3 - 1)); in incompleteSegmentsNotEmitted()
105 assertEquals(Segment.SIZE * 2, sink.size()); in incompleteSegmentsNotEmitted()
226 Buffer write1 = new Buffer().writeUtf8(TestUtil.repeat('a', Segment.SIZE)); in writeAllWritesOneSegmentAtATime()
[all …]
/external/toybox/tests/
Dtruncate.test7 SIZE='&& stat -c %s freep'
8 testing "0" "truncate -s 0 freep $SIZE" "0\n" "" ""
9 testing "12345" "truncate -s 12345 freep $SIZE" "12345\n" "" ""
10 testing "1m" "truncate -s 1m freep $SIZE" "1048576\n" "" ""
13 testing "+" "truncate -s 1k freep && truncate -s +1k freep $SIZE" \
15 testing "-" "truncate -s 4k freep && truncate -s -1k freep $SIZE" \
18 "truncate -s 5k freep && truncate -s \<4k freep $SIZE" "4096\n" "" ""
20 "truncate -s 4k freep && truncate -s \<6k freep $SIZE" "4096\n" "" ""
22 "truncate -s 3k freep && truncate -s \>4k freep $SIZE" "4096\n" "" ""
24 "truncate -s 4k freep && truncate -s \>2k freep $SIZE" "4096\n" "" ""
[all …]
/external/elfutils/libasm/
Dasm_addint8.c41 #ifndef SIZE
42 # define SIZE 8 macro
54 FCT(SIZE) (AsmScn_t *asmscn, TYPE(SIZE) num) in FCT() argument
68 if (SIZE == 8) in FCT()
70 else if (SIZE == 16) in FCT()
73 else if (SIZE == 32) in FCT()
92 #if SIZE > 8 in FCT()
96 TYPE(SIZE) var = num; in FCT()
99 if (__libasm_ensure_section_space (asmscn, SIZE / 8) != 0) in FCT()
102 #if SIZE > 8 in FCT()
[all …]
Dasm_adduint8.c36 #ifndef SIZE
37 # define SIZE 8 macro
51 UFCT(SIZE) (AsmScn_t *asmscn, UTYPE(SIZE) num) in UFCT() argument
53 return INTUSE(FCT(SIZE)) (asmscn, (TYPE(SIZE)) num); in UFCT()
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap10.c67 #define SIZE (5*1024*1024) macro
126 x = mmap(NULL, SIZE + SIZE - ps, PROT_READ | PROT_WRITE, in mmapzero()
131 x = mmap(NULL, SIZE + SIZE - ps, PROT_READ | PROT_WRITE, in mmapzero()
138 if (madvise(x, SIZE + SIZE - ps, MADV_MERGEABLE) == -1) in mmapzero()
142 x[SIZE] = 0; in mmapzero()
148 if (munmap(x + SIZE + ps, SIZE - ps - ps) == -1) in mmapzero()
159 if (munmap(x + SIZE + ps, SIZE - ps - ps) == -1) in mmapzero()
168 if (munmap(x + SIZE + ps, SIZE - ps - ps) == -1) in mmapzero()
178 if (munmap(x, SIZE + SIZE - ps) == -1) in mmapzero()
/external/linux-kselftest/tools/testing/selftests/powerpc/stringloops/
Dmemcmp.c6 #define SIZE 256 macro
16 for (offset = 0; offset < SIZE; offset++) { in test_one()
17 for (size = 0; size < (SIZE-offset); size++) { in test_one()
47 s1 = memalign(128, SIZE); in testcase()
53 s2 = memalign(128, SIZE); in testcase()
65 for (j = 0; j < SIZE; j++) in testcase()
68 memcpy(s2, s1, SIZE); in testcase()
71 change = random() % SIZE; in testcase()
83 for (j = 0; j < SIZE; j++) in testcase()
86 memcpy(s2, s1, SIZE); in testcase()
[all …]
/external/ltp/testcases/kernel/device-drivers/zram/
Dzram03.c43 #define SIZE (512 * 1024 * 1024L) macro
83 tst_resm(TINFO, "create a zram device with %ld bytes in size.", SIZE); in set_disksize()
84 SAFE_FILE_PRINTF(cleanup, PATH_ZRAM "/disksize", "%ld", SIZE); in set_disksize()
94 s = SAFE_MMAP(cleanup, NULL, SIZE, PROT_READ | PROT_WRITE, in write_device()
98 memset(s, 'a', SIZE - 1); in write_device()
99 s[SIZE - 1] = '\0'; in write_device()
101 SAFE_MUNMAP(cleanup, s, SIZE); in write_device()
113 s = SAFE_MMAP(cleanup, NULL, SIZE, PROT_READ, MAP_PRIVATE, fd, 0); in verify_device()
115 while (s[i] && i < SIZE - 1) { in verify_device()
120 if (i != SIZE - 1) { in verify_device()
[all …]
/external/eigen/bench/
Dsparse_setter.cpp6 #ifndef SIZE
7 #define SIZE 100000 macro
63 int rows = SIZE; in main()
64 int cols = SIZE; in main()
197 SparseMatrix<Scalar> mat(SIZE,SIZE); in setinnerrand_eigen()
211 DynamicSparseMatrix<Scalar> mat(SIZE,SIZE); in setrand_eigen_dynamic()
226 DynamicSparseMatrix<Scalar> mat(SIZE,SIZE); in setrand_eigen_sumeq()
229 DynamicSparseMatrix<Scalar> aux(SIZE,SIZE); in setrand_eigen_sumeq()
244 DynamicSparseMatrix<Scalar> setter(SIZE,SIZE); in setrand_eigen_compact()
258 SparseMatrix<Scalar> mat(SIZE,SIZE); in setrand_eigen_gnu_hash()
[all …]
/external/ltp/testcases/kernel/syscalls/pipe/
Dpipe02.c30 #define SIZE 5 macro
33 static char rdbuf[SIZE];
34 static char wrbuf[SIZE];
40 SAFE_WRITE(1, fd[1], wrbuf, SIZE); in do_child()
44 SAFE_WRITE(1, fd[1], wrbuf, SIZE); in do_child()
54 memset(wrbuf, 'a', SIZE); in verify_pipe()
76 memset(rdbuf, 0, SIZE); in verify_pipe()
78 SAFE_READ(1, fd[0], rdbuf, SIZE); in verify_pipe()
80 if (memcmp(wrbuf, rdbuf, SIZE) != 0) { in verify_pipe()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicDoubleArrayTest.java60 AtomicDoubleArray aa = new AtomicDoubleArray(SIZE); in testConstructor()
61 for (int i = 0; i < SIZE; i++) { in testConstructor()
116 AtomicDoubleArray aa = new AtomicDoubleArray(SIZE); in testIndexing()
117 for (int index : new int[] { -1, SIZE }) { in testIndexing()
181 AtomicDoubleArray aa = new AtomicDoubleArray(SIZE); in testCompareAndSet()
182 for (int i : new int[] { 0, SIZE - 1}) { in testCompareAndSet()
221 AtomicDoubleArray aa = new AtomicDoubleArray(SIZE); in testWeakCompareAndSet()
222 for (int i : new int[] { 0, SIZE - 1}) { in testWeakCompareAndSet()
242 AtomicDoubleArray aa = new AtomicDoubleArray(SIZE); in testGetAndSet()
243 for (int i : new int[] { 0, SIZE - 1}) { in testGetAndSet()
[all …]
/external/valgrind/callgrind/tests/
Dsimwork.c9 #define SIZE 100000 macro
16 for(i = 0; i< SIZE; i++) a[i] = b[i] = 1.0; in init()
22 for(i = 0; i< SIZE; i++) { in do_add()
34 for(i = 0; i< SIZE; i++) sum += c[i]; in do_sum()
54 a = (double*) malloc(SIZE * sizeof(double)); in main()
55 b = (double*) malloc(SIZE * sizeof(double)); in main()
56 c = (double*) malloc(SIZE * sizeof(double)); in main()
/external/ltp/testcases/kernel/fs/fs_di/
Dfs_di72 …-s SIZE in Mb The size of the data file to create. Default=30Mb. A "0" means random sizes from 1…
73 …-S SIZE in Mb Size of usable partition (in MBs) on which the testing is carried out (needs to be…
118 SIZE=30
137 SIZE=$OPTARG
138 if [ $SIZE -eq 0 ]; then
164 echo " Data File Size: $SIZE"
191 SIZE=$RANDOM
193 while [ $SIZE -lt 10 ]
195 SIZE=$RANDOM
199 create_datafile $SIZE $TCtmp/testfile >/dev/null
[all …]
/external/mesa3d/src/gallium/tests/graw/
Dtex-srgb.c148 #define SIZE 64 in init_tex() macro
149 ubyte tex2d[SIZE][SIZE][4]; in init_tex()
152 for (s = 0; s < SIZE; s++) { in init_tex()
153 for (t = 0; t < SIZE; t++) { in init_tex()
155 tex2d[t][s][1] = s * 255 / SIZE; in init_tex()
156 tex2d[t][s][2] = t * 255 / SIZE; in init_tex()
161 texture = graw_util_create_tex2d(&info, SIZE, SIZE, in init_tex()
202 #undef SIZE in init_tex()
Dquad-tex.c119 #define SIZE 16 macro
123 ubyte tex2d[SIZE][SIZE][4]; in init_tex()
126 #if (SIZE != 2) in init_tex()
127 for (s = 0; s < SIZE; s++) { in init_tex()
128 for (t = 0; t < SIZE; t++) { in init_tex()
138 tex2d[t][s][0] = s*255/(SIZE-1); in init_tex()
139 tex2d[t][s][1] = t*255/(SIZE-1); in init_tex()
167 texture = graw_util_create_tex2d(&info, SIZE, SIZE, in init_tex()
Dquad-sample.c160 #define SIZE 16 macro
168 ubyte tex2d[SIZE][SIZE][4]; in init_tex()
171 #if (SIZE != 2) in init_tex()
172 for (s = 0; s < SIZE; s++) { in init_tex()
173 for (t = 0; t < SIZE; t++) { in init_tex()
183 tex2d[t][s][0] = s*255/(SIZE-1); in init_tex()
184 tex2d[t][s][1] = t*255/(SIZE-1); in init_tex()
215 templat.width0 = SIZE; in init_tex()
216 templat.height0 = SIZE; in init_tex()
228 u_box_2d(0,0,SIZE,SIZE, &box); in init_tex()
[all …]
/external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileInfoTest.groovy30 private static final long SIZE = 1234567L
42 assert fileInfoFile.getSize() == SIZE
61 assert fileInfoFile.equals(FileInfo.forFile(NAME, SIZE, LAST_MODIFIED))
62 assert fileInfoFile.equals(FileInfo.forFile(NAME, SIZE, new Date())) // lastModified ignored
64 assert !fileInfoFile.equals(FileInfo.forFile("xyz", SIZE, LAST_MODIFIED))
75 assert fileInfoFile.hashCode() == FileInfo.forFile(NAME, SIZE, LAST_MODIFIED).hashCode()
76 …assert fileInfoFile.hashCode() == FileInfo.forFile(NAME, SIZE, new Date()).hashCode() // lastModi…
78 assert fileInfoFile.hashCode() != FileInfo.forFile("xyz", SIZE, LAST_MODIFIED).hashCode()
90 assert toString.contains(Long.toString(SIZE))
99 fileInfoFile = FileInfo.forFile(NAME, SIZE, LAST_MODIFIED)
/external/llvm/test/Object/
Dinvalid.test37 …lvm-readobj -t %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefix=INVALID-SYM-SIZE %s
38 INVALID-SYM-SIZE: Invalid symbol size
40 …dyn-symbols %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefix=INVALID-DYNSYM-SIZE %s
41 INVALID-DYNSYM-SIZE: Invalid entity size
47 …adobj -s %p/Inputs/invalid-section-size.elf 2>&1 | FileCheck --check-prefix=INVALID-SECTION-SIZE %s
48 INVALID-SECTION-SIZE: Invalid section header entry size (e_shentsize) in ELF header
51 …j -t %p/Inputs/invalid-symbol-table-size.elf 2>&1 | FileCheck --check-prefix=INVALID-SYMTAB-SIZE %s
52 INVALID-SYMTAB-SIZE: Invalid symbol table size
55 …readobj -t %p/Inputs/invalid-xindex-size.elf 2>&1 | FileCheck --check-prefix=INVALID-XINDEX-SIZE %s
56 INVALID-XINDEX-SIZE: Invalid data was encountered while parsing the file.
/external/toybox/scripts/
Dbloatcheck42 SIZE=$(printf "%d" "0x$b")
45 OLD=$(($OLD+$SIZE))
46 SIZE=$((-1*$SIZE))
48 NEW=$(($NEW+$SIZE))
50 DELTA=$(($DELTA+$SIZE))
/external/bison/lib/
Disnan.c48 # define SIZE SIZEOF_LDBL macro
60 # define SIZE SIZEOF_DBL macro
72 # define SIZE SIZEOF_FLT macro
149 return (memcmp (&m.value, &plus_inf, SIZE) != 0 in FUNC()
150 && memcmp (&m.value, &minus_inf, SIZE) != 0); in FUNC()
165 memset (&m1.value, 0, SIZE); in FUNC()
166 memset (&m2.value, 0, SIZE); in FUNC()
169 if (memcmp (&m1.value, &m2.value, SIZE) != 0) in FUNC()

12345678910>>...19