/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 …]
|
D | BufferedSinkTest.java | 100 sink.writeUtf8(repeat('a', Segment.SIZE - 1)); 104 assertEquals(asList(Segment.SIZE, 1), data.segmentSizes()); 105 assertEquals(repeat('a', Segment.SIZE - 1), data.readUtf8(Segment.SIZE - 1)); 131 sink.writeUtf8(repeat('a', Segment.SIZE - 4)); 135 assertEquals(asList(Segment.SIZE, 4), data.segmentSizes()); 136 assertEquals(repeat('a', Segment.SIZE - 4), data.readUtf8(Segment.SIZE - 4)); 141 sink.writeUtf8(repeat('a', Segment.SIZE - 3)); 145 assertEquals(asList(Segment.SIZE - 3, 8), data.segmentSizes()); 146 assertEquals(repeat('a', Segment.SIZE - 3), data.readUtf8(Segment.SIZE - 3));
|
/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 "truncate 0" "truncate -s 0 freep $SIZE" "0\n" "" "" 9 testing "truncate 12345" "truncate -s 12345 freep $SIZE" "12345\n" "" "" 10 testing "truncate 1m" "truncate -s 1m freep $SIZE" "1048576\n" "" "" 13 testing "truncate +" "truncate -s 1k freep && truncate -s +1k freep $SIZE" \ 15 testing "truncate -" "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/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/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLMac.java | 157 private static final int SIZE = NativeCrypto.EVP_MD_size(EVP_MD); field in OpenSSLMac.HmacMD5 160 super(EVP_MD, SIZE); in HmacMD5() 166 private static final int SIZE = NativeCrypto.EVP_MD_size(EVP_MD); field in OpenSSLMac.HmacSHA1 169 super(EVP_MD, SIZE); in HmacSHA1() 175 private static final int SIZE = NativeCrypto.EVP_MD_size(EVP_MD); field in OpenSSLMac.HmacSHA224 178 super(EVP_MD, SIZE); in HmacSHA224() 184 private static final int SIZE = NativeCrypto.EVP_MD_size(EVP_MD); field in OpenSSLMac.HmacSHA256 187 super(EVP_MD, SIZE); in HmacSHA256() 193 private static final int SIZE = NativeCrypto.EVP_MD_size(EVP_MD); field in OpenSSLMac.HmacSHA384 196 super(EVP_MD, SIZE); in HmacSHA384() [all …]
|
D | OpenSSLMessageDigestJDK.java | 159 private static final int SIZE = NativeCrypto.EVP_MD_size(EVP_MD); field in OpenSSLMessageDigestJDK.MD5 161 super(EVP_MD, SIZE); in MD5() 167 private static final int SIZE = NativeCrypto.EVP_MD_size(EVP_MD); field in OpenSSLMessageDigestJDK.SHA1 169 super(EVP_MD, SIZE); in SHA1() 175 private static final int SIZE = NativeCrypto.EVP_MD_size(EVP_MD); field in OpenSSLMessageDigestJDK.SHA224 177 super(EVP_MD, SIZE); in SHA224() 183 private static final int SIZE = NativeCrypto.EVP_MD_size(EVP_MD); field in OpenSSLMessageDigestJDK.SHA256 185 super(EVP_MD, SIZE); in SHA256() 191 private static final int SIZE = NativeCrypto.EVP_MD_size(EVP_MD); field in OpenSSLMessageDigestJDK.SHA384 193 super(EVP_MD, SIZE); in SHA384() [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/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 …]
|
D | tex-swizzle.c | 120 #define SIZE 256 in init_tex() macro 122 ubyte tex2d[SIZE][SIZE][4]; in init_tex() 125 for (s = 0; s < SIZE; s++) { in init_tex() 126 for (t = 0; t < SIZE; t++) { in init_tex() 134 texture = graw_util_create_tex2d(&info, SIZE, SIZE, in init_tex() 155 #undef SIZE in init_tex()
|
D | fs-test.c | 287 #define SIZE 16 macro 295 ubyte tex2d[SIZE][SIZE][4]; in init_tex() 298 #if (SIZE != 2) in init_tex() 299 for (s = 0; s < SIZE; s++) { in init_tex() 300 for (t = 0; t < SIZE; t++) { in init_tex() 310 tex2d[t][s][0] = s*255/(SIZE-1); in init_tex() 311 tex2d[t][s][1] = t*255/(SIZE-1); in init_tex() 341 templat.width0 = SIZE; in init_tex() 342 templat.height0 = SIZE; in init_tex() 355 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/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/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 … --dyn-symbols %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefix=INVALID-SYM-SIZE %s 39 INVALID-SYM-SIZE: Invalid symbol size 45 …adobj -s %p/Inputs/invalid-section-size.elf 2>&1 | FileCheck --check-prefix=INVALID-SECTION-SIZE %s 46 INVALID-SECTION-SIZE: Invalid section header entry size (e_shentsize) in ELF header 49 …j -t %p/Inputs/invalid-symbol-table-size.elf 2>&1 | FileCheck --check-prefix=INVALID-SYMTAB-SIZE %s 50 INVALID-SYMTAB-SIZE: Invalid symbol table size 53 …readobj -t %p/Inputs/invalid-xindex-size.elf 2>&1 | FileCheck --check-prefix=INVALID-XINDEX-SIZE %s 54 INVALID-XINDEX-SIZE: Invalid data was encountered while parsing the file.
|
/external/webp/src/enc/ |
D | picture_tools.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 …]
|
/external/eigen/bench/btl/generic_bench/static/ |
D | static_size_generator.hh | 28 template <int SIZE,template<class> class Perf_Analyzer, template<class> class Action, template<clas… 32 tab_sizes.push_back(SIZE); in go() 34 Perf_Analyzer<Action<Interface<REAL_TYPE,SIZE> > > perf_action; in go() 35 tab_mflops.push_back(perf_action.eval_mflops(SIZE)); in go() 37 static_size_generator<SIZE-1,Perf_Analyzer,Action,Interface>::go(tab_sizes,tab_mflops); in go()
|