/external/autotest/client/bin/result_tools/ |
D | utils_unittest.py | 25 SIZE = unittest_lib.SIZE variable 32 '': {utils_lib.ORIGINAL_SIZE_BYTES: 4 * SIZE, 34 {'file1': {utils_lib.ORIGINAL_SIZE_BYTES: SIZE}}, 35 {'folder1': {utils_lib.ORIGINAL_SIZE_BYTES: 2 * SIZE, 38 utils_lib.ORIGINAL_SIZE_BYTES: SIZE}}, 40 utils_lib.ORIGINAL_SIZE_BYTES: SIZE}}, 44 {'folder2': {utils_lib.ORIGINAL_SIZE_BYTES: SIZE, 48 SIZE}}], 52 '': {utils_lib.ORIGINAL_SIZE_BYTES: 6 * SIZE, 53 utils_lib.TRIMMED_SIZE_BYTES: 5 * SIZE, [all …]
|
/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/opencensus-java/api/src/main/java/io/opencensus/trace/ |
D | TraceId.java | 39 public static final int SIZE = 16; field in TraceId 48 public static final TraceId INVALID = new TraceId(new byte[SIZE]); 75 buffer.length == SIZE, "Invalid size: expected %s, got %s", SIZE, buffer.length); in fromBytes() 76 byte[] bytesCopied = Arrays.copyOf(buffer, SIZE); in fromBytes() 94 byte[] bytes = new byte[SIZE]; in fromBytes() 95 System.arraycopy(src, srcOffset, bytes, 0, SIZE); in fromBytes() 123 byte[] bytes = new byte[SIZE]; in generateRandomId() 137 return Arrays.copyOf(bytes, SIZE); in getBytes() 158 System.arraycopy(bytes, 0, dest, destOffset, SIZE); in copyBytesTo() 193 for (int i = 0; i < Long.SIZE / Byte.SIZE; i++) { in getLowerLong() [all …]
|
D | SpanId.java | 38 public static final int SIZE = 8; field in SpanId 40 private static final int HEX_SIZE = 2 * SIZE; 47 public static final SpanId INVALID = new SpanId(new byte[SIZE]); 74 buffer.length == SIZE, "Invalid size: expected %s, got %s", SIZE, buffer.length); in fromBytes() 75 byte[] bytesCopied = Arrays.copyOf(buffer, SIZE); in fromBytes() 93 byte[] bytes = new byte[SIZE]; in fromBytes() 94 System.arraycopy(src, srcOffset, bytes, 0, SIZE); in fromBytes() 122 byte[] bytes = new byte[SIZE]; in generateRandomId() 136 return Arrays.copyOf(bytes, SIZE); in getBytes() 157 System.arraycopy(bytes, 0, dest, destOffset, SIZE); in copyBytesTo() [all …]
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | Zip64ExtendedInformationExtraFieldTest.java | 30 private static final ZipEightByteInteger SIZE = field in Zip64ExtendedInformationExtraFieldTest 43 new Zip64ExtendedInformationExtraField(SIZE, CSIZE); in testWriteCDOnlySizes() 53 new Zip64ExtendedInformationExtraField(SIZE, CSIZE, OFF, null); in testWriteCDSizeAndOffset() 64 new Zip64ExtendedInformationExtraField(SIZE, CSIZE, OFF, DISK); in testWriteCDSizeOffsetAndDisk() 76 new Zip64ExtendedInformationExtraField(SIZE, CSIZE, null, DISK); in testWriteCDSizeAndDisk() 89 System.arraycopy(SIZE.getBytes(), 0, b, 0, 8); in testReadLFHSizesOnly() 92 assertEquals(SIZE, f.getSize()); in testReadLFHSizesOnly() 103 System.arraycopy(SIZE.getBytes(), 0, b, 0, 8); in testReadLFHSizesAndOffset() 107 assertEquals(SIZE, f.getSize()); in testReadLFHSizesAndOffset() 118 System.arraycopy(SIZE.getBytes(), 0, b, 0, 8); in testReadLFHSizesOffsetAndDisk() [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/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/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/webp/src/enc/ |
D | picture_tools_enc.c | 22 #define SIZE 8 macro 23 #define SIZE2 (SIZE / 2) 89 w = pic->width / SIZE; in WebPCleanupTransparentArea() 90 h = pic->height / SIZE; in WebPCleanupTransparentArea() 98 const int off = (y * pic->argb_stride + x) * SIZE; in WebPCleanupTransparentArea() 99 if (IsTransparentARGBArea(pic->argb + off, pic->argb_stride, SIZE)) { in WebPCleanupTransparentArea() 104 FlattenARGB(pic->argb + off, argb_value, pic->argb_stride, SIZE); in WebPCleanupTransparentArea() 124 for (y = 0; y + SIZE <= height; y += SIZE) { in WebPCleanupTransparentArea() 126 for (x = 0; x + SIZE <= width; x += SIZE) { in WebPCleanupTransparentArea() 128 SIZE, SIZE)) { in WebPCleanupTransparentArea() [all …]
|
/external/ltp/testcases/kernel/device-drivers/zram/ |
D | zram03.c | 46 #define SIZE (512 * 1024 * 1024L) macro 86 tst_resm(TINFO, "create a zram device with %ld bytes in size.", SIZE); in set_disksize() 87 SAFE_FILE_PRINTF(cleanup, PATH_ZRAM "/disksize", "%ld", SIZE); in set_disksize() 97 s = SAFE_MMAP(cleanup, NULL, SIZE, PROT_READ | PROT_WRITE, in write_device() 101 memset(s, 'a', SIZE - 1); in write_device() 102 s[SIZE - 1] = '\0'; in write_device() 104 SAFE_MUNMAP(cleanup, s, SIZE); in write_device() 116 s = SAFE_MMAP(cleanup, NULL, SIZE, PROT_READ, MAP_PRIVATE, fd, 0); in verify_device() 118 while (s[i] && i < SIZE - 1) { in verify_device() 123 if (i != SIZE - 1) { in verify_device() [all …]
|
/external/linux-kselftest/tools/testing/selftests/powerpc/stringloops/ |
D | strlen.c | 8 #define SIZE 256 macro 19 for (offset = 0; offset < SIZE; offset++) { in test_one() 29 for (i = offset; i < SIZE; i++) in test_one() 56 s = memalign(128, SIZE); in testcase() 64 memset(s, 0, SIZE); in testcase() 65 for (i = 0; i < SIZE; i++) { in testcase() 78 for (j = 0; j < SIZE; j++) { in testcase() 87 s[SIZE - 1 - j] = 0; in testcase() 92 for (i = 0; i < SIZE; i++) { in testcase()
|
/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 | tex-srgb.c | 148 #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()
|
D | quad-tex.c | 119 #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()
|
D | quad-sample.c | 160 #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/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/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)
|