/external/okhttp/okio/okio/src/test/java/okio/ |
D | BufferTest.java | 64 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 …]
|
D | RealBufferedSourceTest.java | 36 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 …]
|
D | BufferedSourceTest.java | 148 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 …]
|
D | RealBufferedSinkTest.java | 46 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/clang/test/CodeGenCXX/ |
D | 2010-07-23-DeclLoc.cpp | 36 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/toybox/tests/ |
D | truncate.test | 7 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/ |
D | asm_addint8.c | 41 #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 …]
|
D | asm_adduint8.c | 36 #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/ |
D | mmap10.c | 67 #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/ |
D | memcmp.c | 6 #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/ |
D | zram03.c | 43 #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/ |
D | sparse_setter.cpp | 6 #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/ |
D | pipe02.c | 30 #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/ |
D | AtomicDoubleArrayTest.java | 60 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/ |
D | simwork.c | 9 #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/ |
D | fs_di | 72 …-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/ |
D | quad-tex.c | 117 #define SIZE 16 macro 121 ubyte tex2d[SIZE][SIZE][4]; in init_tex() 124 #if (SIZE != 2) in init_tex() 125 for (s = 0; s < SIZE; s++) { in init_tex() 126 for (t = 0; t < SIZE; t++) { in init_tex() 136 tex2d[t][s][0] = s*255/(SIZE-1); in init_tex() 137 tex2d[t][s][1] = t*255/(SIZE-1); in init_tex() 165 texture = graw_util_create_tex2d(&info, SIZE, SIZE, in init_tex()
|
D | tex-srgb.c | 146 #define SIZE 64 in init_tex() macro 147 ubyte tex2d[SIZE][SIZE][4]; in init_tex() 150 for (s = 0; s < SIZE; s++) { in init_tex() 151 for (t = 0; t < SIZE; t++) { in init_tex() 153 tex2d[t][s][1] = s * 255 / SIZE; in init_tex() 154 tex2d[t][s][2] = t * 255 / SIZE; in init_tex() 159 texture = graw_util_create_tex2d(&info, SIZE, SIZE, in init_tex() 199 #undef SIZE in init_tex()
|
D | quad-sample.c | 161 #define SIZE 16 macro 169 ubyte tex2d[SIZE][SIZE][4]; in init_tex() 172 #if (SIZE != 2) in init_tex() 173 for (s = 0; s < SIZE; s++) { in init_tex() 174 for (t = 0; t < SIZE; t++) { in init_tex() 184 tex2d[t][s][0] = s*255/(SIZE-1); in init_tex() 185 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/ |
D | FileInfoTest.groovy | 30 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/ |
D | invalid.test | 37 …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/ |
D | bloatcheck | 42 SIZE=$(printf "%d" "0x$b") 45 OLD=$(($OLD+$SIZE)) 46 SIZE=$((-1*$SIZE)) 48 NEW=$(($NEW+$SIZE)) 50 DELTA=$(($DELTA+$SIZE))
|
/external/bison/lib/ |
D | isnan.c | 48 # 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()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/ |
D | hugetlb_vs_thp_test.c | 8 #define SIZE (16 * 1024 * 1024) macro 17 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 27 if (munmap(addr, SIZE)) { in test_body() 33 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 56 munmap(addr, SIZE); in test_body()
|
/external/webp/src/enc/ |
D | picture_tools_enc.c | 26 #define SIZE 8 macro 27 #define SIZE2 (SIZE / 2) 73 w = pic->width / SIZE; in WebPCleanupTransparentArea() 74 h = pic->height / SIZE; in WebPCleanupTransparentArea() 82 const int off = (y * pic->argb_stride + x) * SIZE; in WebPCleanupTransparentArea() 83 if (is_transparent_argb_area(pic->argb + off, pic->argb_stride, SIZE)) { in WebPCleanupTransparentArea() 88 flatten_argb(pic->argb + off, argb_value, pic->argb_stride, SIZE); in WebPCleanupTransparentArea() 101 const int off_a = (y * pic->a_stride + x) * SIZE; in WebPCleanupTransparentArea() 102 const int off_y = (y * pic->y_stride + x) * SIZE; in WebPCleanupTransparentArea() 104 if (is_transparent_area(a_ptr + off_a, pic->a_stride, SIZE)) { in WebPCleanupTransparentArea() [all …]
|