/external/marisa-trie/tests/ |
D | vector-test.cc | 21 ASSERT(count.lo8() == 0); in TestPopCount() 22 ASSERT(count.lo16() == 0); in TestPopCount() 23 ASSERT(count.lo24() == 0); in TestPopCount() 24 ASSERT(count.lo32() == 0); in TestPopCount() 25 ASSERT(count.lo40() == 0); in TestPopCount() 26 ASSERT(count.lo48() == 0); in TestPopCount() 27 ASSERT(count.lo56() == 0); in TestPopCount() 28 ASSERT(count.lo64() == 0); in TestPopCount() 33 ASSERT(count.lo8() == 8); in TestPopCount() 34 ASSERT(count.lo16() == 16); in TestPopCount() [all …]
|
D | trie-test.cc | 21 ASSERT(config.num_tries() == MARISA_DEFAULT_NUM_TRIES); in TestConfig() 22 ASSERT(config.tail_mode() == MARISA_DEFAULT_TAIL); in TestConfig() 23 ASSERT(config.node_order() == MARISA_DEFAULT_ORDER); in TestConfig() 24 ASSERT(config.cache_level() == MARISA_DEFAULT_CACHE); in TestConfig() 29 ASSERT(config.num_tries() == 10); in TestConfig() 30 ASSERT(config.tail_mode() == MARISA_BINARY_TAIL); in TestConfig() 31 ASSERT(config.node_order() == MARISA_LABEL_ORDER); in TestConfig() 32 ASSERT(config.cache_level() == MARISA_TINY_CACHE); in TestConfig() 36 ASSERT(config.num_tries() == MARISA_DEFAULT_NUM_TRIES); in TestConfig() 37 ASSERT(config.tail_mode() == MARISA_DEFAULT_TAIL); in TestConfig() [all …]
|
D | base-test.cc | 16 ASSERT(sizeof(marisa_uint8) == 1); in TestTypes() 17 ASSERT(sizeof(marisa_uint16) == 2); in TestTypes() 18 ASSERT(sizeof(marisa_uint32) == 4); in TestTypes() 19 ASSERT(sizeof(marisa_uint64) == 8); in TestTypes() 21 ASSERT(MARISA_WORD_SIZE == (sizeof(std::size_t) * 8)); in TestTypes() 23 ASSERT(MARISA_UINT8_MAX == 0xFFU); in TestTypes() 24 ASSERT(MARISA_UINT16_MAX == 0xFFFFU); in TestTypes() 25 ASSERT(MARISA_UINT32_MAX == 0xFFFFFFFFU); in TestTypes() 26 ASSERT(MARISA_UINT64_MAX == 0xFFFFFFFFFFFFFFFFULL); in TestTypes() 28 ASSERT(sizeof(marisa::UInt8) == 1); in TestTypes() [all …]
|
D | marisa-test.cc | 48 ASSERT(!trie.lookup(agent)); in TestEmptyTrie() 50 ASSERT(!trie.common_prefix_search(agent)); in TestEmptyTrie() 51 ASSERT(!trie.predictive_search(agent)); in TestEmptyTrie() 53 ASSERT(trie.num_tries() == 1); in TestEmptyTrie() 54 ASSERT(trie.num_keys() == 0); in TestEmptyTrie() 55 ASSERT(trie.num_nodes() == 1); in TestEmptyTrie() 57 ASSERT(trie.tail_mode() == MARISA_DEFAULT_TAIL); in TestEmptyTrie() 58 ASSERT(trie.node_order() == MARISA_DEFAULT_ORDER); in TestEmptyTrie() 60 ASSERT(trie.empty()); in TestEmptyTrie() 61 ASSERT(trie.size() == 0); in TestEmptyTrie() [all …]
|
D | io-test.cc | 41 ASSERT(value == 123); in TestFilename() 43 ASSERT(value == 234); in TestFilename() 47 ASSERT(values[0] == 3.45); in TestFilename() 48 ASSERT(values[1] == 4.56); in TestFilename() 60 ASSERT(value == 123); in TestFilename() 62 ASSERT(value == 234); in TestFilename() 66 ASSERT(values[0] == 3.45); in TestFilename() 67 ASSERT(values[1] == 4.56); in TestFilename() 95 ASSERT(::_sopen_s(&fd, "io-test.dat", in TestFd() 100 ASSERT(fd != -1); in TestFd() [all …]
|
/external/skqp/tests/ |
D | DynamicHashTest.cpp | 39 #define ASSERT(x) REPORTER_ASSERT(reporter, x) macro 49 ASSERT(hash.capacity() == 0); in DEF_TEST() 52 ASSERT(hash.capacity() == 4); in DEF_TEST() 55 ASSERT(hash.capacity() == 4); in DEF_TEST() 58 ASSERT(hash.capacity() == 4); in DEF_TEST() 61 ASSERT(hash.capacity() == 8); in DEF_TEST() 64 ASSERT(hash.capacity() == 8); in DEF_TEST() 66 ASSERT(hash.count() == 5); in DEF_TEST() 77 ASSERT(hash.capacity() == 0); in DEF_TEST() 80 ASSERT(hash.capacity() == 4); in DEF_TEST() [all …]
|
D | ColorPrivTest.cpp | 14 #define ASSERT(expr) REPORTER_ASSERT(r, expr) macro 21 ASSERT(ag == 0x00A100C3); in DEF_TEST() 22 ASSERT(rb == 0x00B200D4); in DEF_TEST() 23 ASSERT(SkUnsplay(ag << 8, rb << 8) == color); in DEF_TEST() 26 ASSERT(agrb == 0x00A100C300B200D4ULL); in DEF_TEST() 27 ASSERT(SkUnsplay(agrb<<8) == color); in DEF_TEST() 33 ASSERT(SkFourByteInterp256(src, dst, scale) == SkFastFourByteInterp256(src, dst, scale)); in DEF_TEST() 47 ASSERT(deltaA == 0 || deltaA == 1); in DEF_TEST() 48 ASSERT(deltaR == 0 || deltaR == 1); in DEF_TEST() 49 ASSERT(deltaG == 0 || deltaG == 1); in DEF_TEST() [all …]
|
/external/mesa3d/src/intel/isl/tests/ |
D | isl_aux_info_test.cpp | 46 E(CLEAR, NONE, true, ASSERT); in TEST() 48 E(PARTIAL_CLEAR, NONE, true, ASSERT); in TEST() 50 E(COMPRESSED_CLEAR, NONE, true, ASSERT); in TEST() 52 E(COMPRESSED_NO_CLEAR, NONE, true, ASSERT); in TEST() 54 E(RESOLVED, NONE, true, ASSERT); in TEST() 56 E(PASS_THROUGH, NONE, true, ASSERT); in TEST() 58 E(AUX_INVALID, NONE, true, ASSERT); in TEST() 79 E(CLEAR, MC, false, ASSERT); in TEST() 80 E(CLEAR, MC, true, ASSERT); in TEST() 81 E(PARTIAL_CLEAR, MC, false, ASSERT); in TEST() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/ |
D | test_generated_code.c | 51 ASSERT(protobuf_test_messages_proto3_TestAllTypesProto3_optional_int32( in test_scalars() 53 ASSERT(protobuf_test_messages_proto3_TestAllTypesProto3_optional_int64( in test_scalars() 55 ASSERT(protobuf_test_messages_proto3_TestAllTypesProto3_optional_uint32( in test_scalars() 57 ASSERT(protobuf_test_messages_proto3_TestAllTypesProto3_optional_uint64( in test_scalars() 59 ASSERT(protobuf_test_messages_proto3_TestAllTypesProto3_optional_float( in test_scalars() 61 ASSERT(protobuf_test_messages_proto3_TestAllTypesProto3_optional_double( in test_scalars() 63 ASSERT(protobuf_test_messages_proto3_TestAllTypesProto3_optional_bool( in test_scalars() 66 ASSERT(upb_strview_eql(val, test_str_view)); in test_scalars() 88 ASSERT(msg2 == NULL); in test_utf8() 97 ASSERT( in check_string_map_empty() [all …]
|
D | test_cpp.cc | 26 ASSERT(inserted); in AssertInsert() 59 ASSERT(upb_handlers_getselector(f.ptr(), UPB_HANDLER_STARTSTR, &start)); in CallAndVerify() 61 ASSERT(upb_handlers_getselector(f.ptr(), UPB_HANDLER_STRING, &str)); in CallAndVerify() 63 ASSERT(!seen_); in CallAndVerify() 68 ASSERT(seen_); in CallAndVerify() 69 ASSERT(len_ == 5); in CallAndVerify() 70 ASSERT(ret == 5); in CallAndVerify() 71 ASSERT(handler_data_val_ == kExpectedHandlerData); in CallAndVerify() 98 ASSERT(h.SetStringHandler(f, UpbMakeHandler(&ME::Handler))); in Register() 104 ASSERT(buf == &buf_); in Handler() [all …]
|
/external/angle/src/libANGLE/renderer/d3d/d3d11/ |
D | MappedSubresourceVerifier11.cpp | 33 ASSERT(desc.Height % dxgiFormatInfo.blockHeight == 0); in getPitchCount() 43 ASSERT(!mOrigData); in ~MappedSubresourceVerifier11() 44 ASSERT(!mWrapData.size()); in ~MappedSubresourceVerifier11() 49 ASSERT(desc.CPUAccessFlags & (D3D11_CPU_ACCESS_READ | D3D11_CPU_ACCESS_WRITE)); in setDesc() 50 ASSERT(desc.Width); in setDesc() 51 ASSERT(desc.Height); in setDesc() 52 ASSERT(!mOrigData); in setDesc() 53 ASSERT(!mWrapData.size()); in setDesc() 54 ASSERT(!mPitchType); in setDesc() 55 ASSERT(!mPitchCount); in setDesc() [all …]
|
/external/linux-kselftest/tools/testing/selftests/sync/ |
D | sync_fence.c | 38 ASSERT(valid, "Failure allocating timeline\n"); in test_fence_one_timeline_wait() 42 ASSERT(valid, "Failure allocating fence\n"); in test_fence_one_timeline_wait() 46 ASSERT(ret == 0, "Failure waiting on fence until timeout\n"); in test_fence_one_timeline_wait() 50 ASSERT(ret == 0, "Failure advancing timeline\n"); in test_fence_one_timeline_wait() 54 ASSERT(ret == 0, "Failure waiting on fence until timeout\n"); in test_fence_one_timeline_wait() 58 ASSERT(ret == 0, "Failure signaling the fence\n"); in test_fence_one_timeline_wait() 62 ASSERT(ret > 0, "Failure waiting on fence\n"); in test_fence_one_timeline_wait() 66 ASSERT(ret == 0, "Failure going further\n"); in test_fence_one_timeline_wait() 68 ASSERT(ret > 0, "Failure waiting ahead\n"); in test_fence_one_timeline_wait() 89 ASSERT(valid, "Failure allocating fences\n"); in test_fence_one_timeline_merge() [all …]
|
/external/angle/src/compiler/translator/ |
D | ShaderLang.cpp | 379 ASSERT(compiler); in GetBuiltInResourcesString() 396 ASSERT(compiler); in Compile() 404 ASSERT(compiler); in ClearResults() 411 ASSERT(compiler); in GetShaderVersion() 418 ASSERT(compiler); in GetShaderOutputType() 428 ASSERT(compiler); in GetInfoLog() 440 ASSERT(compiler); in GetObjectCode() 452 ASSERT(compiler); in GetObjectBinaryBlob() 461 ASSERT(compiler); in GetNameHashingMap() 510 ASSERT(compiler->getOutputVaryings().empty() && compiler->getInputVaryings().empty()); in GetVaryings() [all …]
|
/external/fsverity-utils/programs/ |
D | test_hash_algs.c | 21 ASSERT(libfsverity_get_digest_size(0) == -1); in main() 22 ASSERT(libfsverity_get_hash_name(0) == NULL); in main() 23 ASSERT(libfsverity_find_hash_alg_by_name("bad") == 0); in main() 24 ASSERT(libfsverity_find_hash_alg_by_name(NULL) == 0); in main() 26 ASSERT(libfsverity_get_digest_size(100) == -1); in main() 27 ASSERT(libfsverity_get_hash_name(100) == NULL); in main() 29 ASSERT(libfsverity_get_digest_size(FS_VERITY_HASH_ALG_SHA256) == in main() 31 ASSERT(!strcmp("sha256", in main() 33 ASSERT(libfsverity_find_hash_alg_by_name("sha256") == in main() 36 ASSERT(libfsverity_get_digest_size(FS_VERITY_HASH_ALG_SHA512) == in main() [all …]
|
D | test_compute_digest.c | 27 ASSERT(count <= f->size - f->offset); in read_fn() 196 ASSERT(libfsverity_compute_digest(&f, read_fn, &good_params, &d) == 0); in test_invalid_params() 202 ASSERT(libfsverity_compute_digest(&f, NULL, &good_params, &d) == -EINVAL); in test_invalid_params() 203 ASSERT(libfsverity_compute_digest(&f, read_fn, NULL, &d) == -EINVAL); in test_invalid_params() 204 ASSERT(libfsverity_compute_digest(&f, read_fn, &good_params, NULL) == -EINVAL); in test_invalid_params() 209 ASSERT(libfsverity_compute_digest(&f, read_fn, ¶ms, &d) == -EINVAL); in test_invalid_params() 211 ASSERT(libfsverity_compute_digest(&f, read_fn, ¶ms, &d) == -EINVAL); in test_invalid_params() 216 ASSERT(libfsverity_compute_digest(&f, read_fn, ¶ms, &d) == -EINVAL); in test_invalid_params() 221 ASSERT(libfsverity_compute_digest(&f, read_fn, ¶ms, &d) == -EINVAL); in test_invalid_params() 223 ASSERT(libfsverity_compute_digest(&f, read_fn, ¶ms, &d) == -EINVAL); in test_invalid_params() [all …]
|
/external/angle/src/compiler/translator/TranslatorMetalDirect/ |
D | AstHelpers.cpp | 20 ASSERT(declNode.getChildCount() == 1); in ViewDeclaration() 22 ASSERT(childNode); in ViewDeclaration() 31 ASSERT(initNode); in ViewDeclaration() 32 ASSERT(initNode->getOp() == TOperator::EOpInitialize); in ViewDeclaration() 34 ASSERT(symbolNode); in ViewDeclaration() 103 ASSERT(oldFunc.symbolType() == SymbolType::UserDefined); in CloneFunction() 121 ASSERT(oldFunc.symbolType() == SymbolType::UserDefined || in CloneFunctionAndPrependParam() 141 ASSERT(oldFunc.symbolType() == SymbolType::UserDefined || in CloneFunctionAndAppendParams() 164 ASSERT(oldFunc.symbolType() == SymbolType::UserDefined); in CloneFunctionAndChangeReturnType() 180 ASSERT(index < call.getChildCount()); in GetArg() [all …]
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | RenderTargetVk.cpp | 74 ASSERT(imageViews); in getSubresourceSerialImpl() 75 ASSERT(mLayerIndex < std::numeric_limits<uint16_t>::max()); in getSubresourceSerialImpl() 76 ASSERT(mLevelIndexGL.get() < std::numeric_limits<uint16_t>::max()); in getSubresourceSerialImpl() 98 ASSERT(!mImage->getFormat().actualImageFormat().hasDepthOrStencilBits()); in onColorDraw() 99 ASSERT(framebufferLayerCount <= mLayerCount); in onColorDraw() 107 ASSERT(framebufferLayerCount == 1); in onColorDraw() 116 ASSERT(!mImage->getFormat().actualImageFormat().hasDepthOrStencilBits()); in onColorResolve() 117 ASSERT(framebufferLayerCount <= mLayerCount); in onColorResolve() 118 ASSERT(mResolveImage == nullptr); in onColorResolve() 129 ASSERT(format.hasDepthOrStencilBits()); in onDepthStencilDraw() [all …]
|
D | vk_wrapper.h | 116 ~WrappedObject() { ASSERT(!valid()); } 126 ASSERT(!valid()); 688 ASSERT(valid()); 696 ASSERT(valid()); 702 ASSERT(!valid()); 720 ASSERT(!valid()); 732 ASSERT(valid() && srcImage.valid() && dstImage.valid()); 733 ASSERT(regionCount == 1); 740 ASSERT(valid()); 747 ASSERT(valid()); [all …]
|
/external/angle/src/libANGLE/ |
D | Stream.cpp | 126 ASSERT(mState == EGL_STREAM_STATE_CREATED_KHR); in createConsumerGLTextureExternal() 127 ASSERT(mConsumerType == ConsumerType::NoConsumer); in createConsumerGLTextureExternal() 128 ASSERT(mProducerType == ProducerType::NoProducer); in createConsumerGLTextureExternal() 129 ASSERT(context != nullptr); in createConsumerGLTextureExternal() 136 ASSERT(mPlanes[0].texture != nullptr); in createConsumerGLTextureExternal() 144 ASSERT(mPlaneCount <= 3); in createConsumerGLTextureExternal() 153 ASSERT(mPlanes[i].texture != nullptr); in createConsumerGLTextureExternal() 176 ASSERT(mState == EGL_STREAM_STATE_CONNECTING_KHR); in createProducerD3D11Texture() 177 ASSERT(mConsumerType == ConsumerType::GLTextureRGB || in createProducerD3D11Texture() 179 ASSERT(mProducerType == ProducerType::NoProducer); in createProducerD3D11Texture() [all …]
|
/external/swiftshader/third_party/subzero/src/DartARM32/ |
D | assembler_arm.cc | 36 ASSERT(offset < 256); 40 ASSERT(kind_ == IndexRegister); 46 ASSERT(kind_ == Immediate); in vencoding() 48 ASSERT(offset < (1 << 10)); // In the range 0 to +1020. in vencoding() 49 ASSERT(Utils::IsAligned(offset, 4)); // Multiple of 4. in vencoding() 51 ASSERT((mode == Offset) || (mode == NegOffset)); in vencoding() 60 ASSERT(Utils::IsAligned(data, 4)); in InitializeMemoryWithBreakpoints() 61 ASSERT(Utils::IsAligned(length, 4)); in InitializeMemoryWithBreakpoints() 83 ASSERT(rd != kNoRegister); 84 ASSERT(cond != kNoCondition); [all …]
|
/external/skia/tests/ |
D | ColorPrivTest.cpp | 14 #define ASSERT(expr) REPORTER_ASSERT(r, expr) macro 21 ASSERT(ag == 0x00A100C3); in DEF_TEST() 22 ASSERT(rb == 0x00B200D4); in DEF_TEST() 23 ASSERT(SkUnsplay(ag << 8, rb << 8) == color); in DEF_TEST() 26 ASSERT(agrb == 0x00A100C300B200D4ULL); in DEF_TEST() 27 ASSERT(SkUnsplay(agrb<<8) == color); in DEF_TEST() 33 ASSERT(SkFourByteInterp256(src, dst, scale) == SkFastFourByteInterp256(src, dst, scale)); in DEF_TEST() 47 ASSERT(deltaA == 0 || deltaA == 1); in DEF_TEST() 48 ASSERT(deltaR == 0 || deltaR == 1); in DEF_TEST() 49 ASSERT(deltaG == 0 || deltaG == 1); in DEF_TEST() [all …]
|
/external/f2fs-tools/fsck/ |
D | segment.c | 61 ASSERT(0); in reserve_new_block() 117 ASSERT(dn->node_blk); in new_data_block() 145 ASSERT(inode); in f2fs_quota_size() 149 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_quota_size() 150 ASSERT(S_ISREG(le16_to_cpu(inode->i.i_mode))); in f2fs_quota_size() 176 ASSERT(blk_buffer); in f2fs_read() 181 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_read() 182 ASSERT(!S_ISDIR(le16_to_cpu(inode->i.i_mode))); in f2fs_read() 183 ASSERT(!S_ISLNK(le16_to_cpu(inode->i.i_mode))); in f2fs_read() 206 ASSERT(remained_blkentries > 0); in f2fs_read() [all …]
|
/external/skqp/experimental/tools/ |
D | coreGraphicsPdf2png.cpp | 15 #define ASSERT(x) \ macro 33 ASSERT(data); in main() 36 ASSERT(pdf); in main() 38 ASSERT(page); in main() 44 ASSERT(cs); in main() 48 ASSERT(ctx); in main() 52 ASSERT(image); in main() 60 ASSERT(ofile); in main() 62 ASSERT(consumer); in main() 66 ASSERT(dst); in main() [all …]
|
/external/skia/experimental/tools/ |
D | coreGraphicsPdf2png.cpp | 15 #define ASSERT(x) \ macro 33 ASSERT(data); in main() 36 ASSERT(pdf); in main() 38 ASSERT(page); in main() 44 ASSERT(cs); in main() 48 ASSERT(ctx); in main() 52 ASSERT(image); in main() 60 ASSERT(ofile); in main() 62 ASSERT(consumer); in main() 66 ASSERT(dst); in main() [all …]
|
/external/pdfium/core/fxcrt/ |
D | cfx_datetime.cpp | 32 ASSERT(iYear != 0); in DaysBeforeMonthInYear() 33 ASSERT(iMonth >= 1); in DaysBeforeMonthInYear() 34 ASSERT(iMonth <= 12); in DaysBeforeMonthInYear() 42 ASSERT(iYear != 0); in DaysInYear() 50 ASSERT(iYear != 0); in DateToDays() 51 ASSERT(iMonth >= 1); in DateToDays() 52 ASSERT(iMonth <= 12); in DateToDays() 53 ASSERT(iDay >= 1); in DateToDays() 54 ASSERT(iDay <= FX_DaysInMonth(iYear, iMonth)); in DateToDays() 85 ASSERT(iYear != 0); in FX_DaysInMonth() [all …]
|