Home
last modified time | relevance | path

Searched refs:ASSERT (Results 1 – 25 of 672) sorted by relevance

12345678910>>...27

/external/skia/tests/
DDynamicHashTest.cpp36 #define ASSERT(x) REPORTER_ASSERT(reporter, x) macro
46 ASSERT(hash.capacity() == 0); in DEF_TEST()
49 ASSERT(hash.capacity() == 4); in DEF_TEST()
52 ASSERT(hash.capacity() == 4); in DEF_TEST()
55 ASSERT(hash.capacity() == 4); in DEF_TEST()
58 ASSERT(hash.capacity() == 8); in DEF_TEST()
61 ASSERT(hash.capacity() == 8); in DEF_TEST()
63 ASSERT(hash.count() == 5); in DEF_TEST()
71 ASSERT(hash.count() == 0); in DEF_TEST()
73 ASSERT(hash.count() == 1); in DEF_TEST()
[all …]
DColorPrivTest.cpp5 #define ASSERT(expr) REPORTER_ASSERT(r, expr) macro
12 ASSERT(ag == 0x00A100C3); in DEF_TEST()
13 ASSERT(rb == 0x00B200D4); in DEF_TEST()
14 ASSERT(SkUnsplay(ag << 8, rb << 8) == color); in DEF_TEST()
17 ASSERT(agrb == 0x00A100C300B200D4ULL); in DEF_TEST()
18 ASSERT(SkUnsplay(agrb<<8) == color); in DEF_TEST()
24 ASSERT(SkFourByteInterp256(src, dst, scale) == SkFastFourByteInterp256(src, dst, scale)); in DEF_TEST()
38 ASSERT(deltaA == 0 || deltaA == 1); in DEF_TEST()
39 ASSERT(deltaR == 0 || deltaR == 1); in DEF_TEST()
40 ASSERT(deltaG == 0 || deltaG == 1); in DEF_TEST()
[all …]
/external/webrtc/talk/app/webrtc/test/
Dfakeaudiocapturemodule.cc112 ASSERT(false); in ActiveAudioLayer()
117 ASSERT(false); in LastError()
146 ASSERT(false); in Initialized()
151 ASSERT(false); in PlayoutDevices()
156 ASSERT(false); in RecordingDevices()
164 ASSERT(false); in PlayoutDeviceName()
172 ASSERT(false); in RecordingDeviceName()
202 ASSERT(false); in PlayoutIsAvailable()
216 ASSERT(false); in RecordingIsAvailable()
226 ASSERT(false); in RecordingIsInitialized()
[all …]
/external/linux-kselftest/tools/testing/selftests/sync/
Dsync_fence.c38 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 …]
Dsync_stress_consumer.c46 ASSERT(error == 0, "Error occurred on fence\n"); in busy_wait_on_fence()
74 ASSERT(valid, "Failure creating fence\n"); in mpsc_producer_thread()
82 ASSERT(sync_wait(fence, -1) > 0, in mpsc_producer_thread()
85 ASSERT(busy_wait_on_fence(fence) == 0, in mpsc_producer_thread()
97 ASSERT(sw_sync_timeline_inc(producer_timelines[id], 1) == 0, in mpsc_producer_thread()
126 ASSERT(valid, "Failure merging fences\n"); in mpcs_consumer_thread()
133 ASSERT(sync_wait(fence, -1) > 0, in mpcs_consumer_thread()
136 ASSERT(busy_wait_on_fence(fence) == 0, in mpcs_consumer_thread()
140 ASSERT(test_data_mpsc.counter == n * it, in mpcs_consumer_thread()
144 ASSERT(sw_sync_timeline_inc(consumer_timeline, 1) == 0, in mpcs_consumer_thread()
Dsync_wait.c50 ASSERT(valid, "Failure merging fence from various timelines\n"); in test_fence_multi_timeline_wait()
54 ASSERT(active == 3, "Fence signaled too early!\n"); in test_fence_multi_timeline_wait()
57 ASSERT(ret == 0, in test_fence_multi_timeline_wait()
63 ASSERT(active == 2 && signaled == 1, in test_fence_multi_timeline_wait()
69 ASSERT(active == 1 && signaled == 2, in test_fence_multi_timeline_wait()
75 ASSERT(active == 0 && signaled == 3, in test_fence_multi_timeline_wait()
80 ASSERT(ret > 0, "Failure waiting on signaled fence\n"); in test_fence_multi_timeline_wait()
/external/webrtc/webrtc/base/
Dwin32regkey.cc60 ASSERT(full_key_name != NULL); in SetValue()
68 ASSERT(full_key_name != NULL); in SetValue()
76 ASSERT(full_key_name != NULL); in SetValue()
85 ASSERT(full_key_name != NULL); in SetValue()
94 ASSERT(full_key_name != NULL); in SetValue()
95 ASSERT(value != NULL); in SetValue()
105 ASSERT(full_key_name != NULL); in SetValue()
115 ASSERT(full_key_name != NULL); in SetValueMultiSZ()
124 ASSERT(full_key_name != NULL); in GetValue()
125 ASSERT(value != NULL); in GetValue()
[all …]
Dsignalthread.cc32 ASSERT(refcount_ == 0); in ~SignalThread()
37 ASSERT(main_->IsCurrent()); in SetName()
38 ASSERT(kInit == state_); in SetName()
44 ASSERT(main_->IsCurrent()); in Start()
50 ASSERT(false); in Start()
56 ASSERT(main_->IsCurrent()); in Destroy()
73 ASSERT(false); in Destroy()
79 ASSERT(main_->IsCurrent()); in Release()
86 ASSERT(false); in Release()
92 ASSERT(worker_.IsCurrent()); in ContinueWork()
[all …]
Dsslstreamadapterhelper.cc37 ASSERT(identity_.get() == NULL); in SetIdentity()
46 ASSERT(server_name != NULL && server_name[0] != '\0'); in StartSSLWithServer()
52 ASSERT(ssl_server_name_.empty()); in StartSSLWithPeer()
58 ASSERT(state_ == SSL_NONE); in SetMode()
91 ASSERT(peer_certificate_.get() == NULL); in SetPeerCertificateDigest()
92 ASSERT(peer_certificate_digest_algorithm_.empty()); in SetPeerCertificateDigest()
93 ASSERT(ssl_server_name_.empty()); in SetPeerCertificateDigest()
121 ASSERT(state_ == SSL_CLOSED || state_ == SSL_ERROR); in Close()
126 ASSERT(state_ == SSL_NONE); in StartSSL()
Dworker.cc29 ASSERT(!worker_thread_); in ~Worker()
40 ASSERT(false); in StartWork()
55 ASSERT(false); in StopWork()
65 ASSERT(worker_thread_ != NULL); in HaveWork()
70 ASSERT(msg->message_id == MSG_HAVEWORK); in OnMessage()
71 ASSERT(worker_thread_ == rtc::Thread::Current()); in OnMessage()
/external/swiftshader/third_party/subzero/src/DartARM32/
Dassembler_arm.cc36 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()
61 ASSERT(Utils::IsAligned(data, 4)); in InitializeMemoryWithBreakpoints()
62 ASSERT(Utils::IsAligned(length, 4)); in InitializeMemoryWithBreakpoints()
85 ASSERT(rd != kNoRegister);
86 ASSERT(cond != kNoCondition);
[all …]
/external/skia/experimental/tools/
DcoreGraphicsPdf2png.cpp15 #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/xfa/fgas/crt/
Dfgas_utils.cpp37 ASSERT(iGrowSize > 0 && iBlockSize > 0); in CFX_BaseArray()
51 ASSERT(index > -1); in AddSpaceTo()
72 ASSERT(index > -1 && index < m_pData->iBlockCount); in GetAt()
82 ASSERT(iBlockSize == src.m_pData->iBlockSize); in Append()
85 ASSERT(iStart > -1 && iStart < iAdded); in Append()
105 ASSERT(iBlockSize == src.m_pData->iBlockSize); in Copy()
107 ASSERT(iStart > -1 && iStart < iCopied); in Copy()
152 ASSERT(m_iChunkSize > 0 && m_iBlockSize > 0); in CFX_BaseMassArrayImp()
160 ASSERT(index > -1); in AddSpaceTo()
181 ASSERT(pChunk); in AddSpaceTo()
[all …]
/external/skia/src/sksl/ir/
DSkSLConstructor.h85 ASSERT(other.fKind == Expression::kConstructor_Kind && other.fType == fType); in compareConstant()
98 ASSERT(fType.kind() == Type::kMatrix_Kind); in compareConstant()
105 ASSERT(fType.componentType() == *context.fInt_Type); in compareConstant()
123 ASSERT(fType.kind() == Type::kVector_Kind); in getVecComponent()
129 ASSERT(current <= index); in getVecComponent()
136 ASSERT(arg->fType.kind() == Type::kVector_Kind); in getVecComponent()
137 ASSERT(arg->fKind == Expression::kConstructor_Kind); in getVecComponent()
149 ASSERT(c.fKind == Expression::kFloatLiteral_Kind); in getFVecComponent()
155 ASSERT(c.fKind == Expression::kIntLiteral_Kind); in getIVecComponent()
161 ASSERT(this->isConstant()); in getMatComponent()
[all …]
/external/f2fs-tools/fsck/
Ddump.c42 ASSERT(nat_block); in nat_dump()
48 ASSERT(fd >= 0); in nat_dump()
63 ASSERT(ret >= 0); in nat_dump()
77 ASSERT(ret >= 0); in nat_dump()
88 ASSERT(ret >= 0); in nat_dump()
97 ASSERT(ret >= 0); in nat_dump()
107 ASSERT(ret >= 0); in nat_dump()
132 ASSERT(fd >= 0); in sit_dump()
137 ASSERT(ret >= 0); in sit_dump()
149 ASSERT(ret >= 0); in sit_dump()
[all …]
Dsegment.c30 ASSERT(0); in reserve_new_block()
52 ASSERT(dn->node_blk); in new_data_block()
78 ASSERT(inode); in f2fs_write_block()
81 ASSERT(ret >= 0); in f2fs_write_block()
85 ASSERT(0); in f2fs_write_block()
99 ASSERT(data_blk); in f2fs_write_block()
124 ASSERT(ret >= 0); in f2fs_write_block()
129 ASSERT(ret >= 0); in f2fs_write_block()
144 ASSERT(ret >= 0); in f2fs_write_block()
155 ASSERT(inode == dn.inode_blk); in f2fs_write_block()
[all …]
Dresize.c143 ASSERT(raw != NULL); in migrate_main()
156 ASSERT(ret >= 0); in migrate_main()
160 ASSERT(ret >= 0); in migrate_main()
189 ASSERT(ret >= 0); in move_ssa()
214 ASSERT(zero_block); in migrate_ssa()
223 ASSERT(ret >=0); in migrate_ssa()
232 ASSERT(ret >=0); in migrate_ssa()
258 ASSERT(nat_block); in shrink_nats()
260 ASSERT(zero_block); in shrink_nats()
277 ASSERT(ret >= 0); in shrink_nats()
[all …]
Dxattr.c30 ASSERT(txattr_addr); in read_all_xattrs()
42 ASSERT(ret >= 0); in read_all_xattrs()
83 ASSERT(inode->i.i_inline & F2FS_INLINE_XATTR); in write_all_xattrs()
95 ASSERT(dn.node_blk); in write_all_xattrs()
103 ASSERT(xattr_node); in write_all_xattrs()
105 ASSERT(ret >= 0); in write_all_xattrs()
114 ASSERT(ret >= 0); in write_all_xattrs()
145 ASSERT(index == F2FS_XATTR_INDEX_SECURITY); in f2fs_setxattr()
149 ASSERT(inode); in f2fs_setxattr()
151 ASSERT(ret >= 0); in f2fs_setxattr()
[all …]
/external/libhevc/decoder/
Dihevcd_cabac.c139 ASSERT(ps_cabac != NULL); in ihevcd_cabac_init()
140 ASSERT(ps_bitstrm != NULL); in ihevcd_cabac_init()
141 ASSERT((qp >= 0) && (qp < 52)); in ihevcd_cabac_init()
142 ASSERT((cabac_init_idc >= 0) && (cabac_init_idc < 3)); in ihevcd_cabac_init()
182 ASSERT(ps_cabac != NULL); in ihevcd_cabac_reset()
183 ASSERT(ps_bitstrm != NULL); in ihevcd_cabac_reset()
247 ASSERT(u4_range >= 256); in ihevcd_cabac_decode_bin()
248 ASSERT((ctxt_index >= 0) && (ctxt_index < IHEVC_CAB_CTXT_END)); in ihevcd_cabac_decode_bin()
249 ASSERT(state_mps < 128); in ihevcd_cabac_decode_bin()
334 ASSERT(u4_range >= 256); in ihevcd_cabac_decode_bypass_bin()
[all …]
/external/pdfium/fpdfsdk/
Dcpdfsdk_annothandlermgr.cpp43 ASSERT(pPageView); in NewAnnot()
50 ASSERT(pAnnot); in NewAnnot()
51 ASSERT(pPageView); in NewAnnot()
73 ASSERT(pAnnot); in Annot_OnLoad()
100 ASSERT(pAnnot); in Annot_OnDraw()
110 ASSERT(*pAnnot); in Annot_OnLButtonDown()
120 ASSERT(*pAnnot); in Annot_OnLButtonUp()
130 ASSERT(*pAnnot); in Annot_OnLButtonDblClk()
140 ASSERT(*pAnnot); in Annot_OnMouseMove()
151 ASSERT(*pAnnot); in Annot_OnMouseWheel()
[all …]
/external/webrtc/talk/media/base/
Dvideocommon.cc107 ASSERT(scaled_width != NULL); in ComputeScaleMaxPixels()
108 ASSERT(scaled_height != NULL); in ComputeScaleMaxPixels()
109 ASSERT(max_pixels > 0); in ComputeScaleMaxPixels()
165 ASSERT(cropped_format_width >= 0); in ComputeCrop()
166 ASSERT(cropped_format_height >= 0); in ComputeCrop()
167 ASSERT(frame_width > 0); in ComputeCrop()
168 ASSERT(frame_height > 0); in ComputeCrop()
169 ASSERT(pixel_width >= 0); in ComputeCrop()
170 ASSERT(pixel_height >= 0); in ComputeCrop()
171 ASSERT(rotation == 0 || rotation == 90 || rotation == 180 || rotation == 270); in ComputeCrop()
[all …]
/external/webrtc/talk/session/media/
Dchannelmanager.cc186 ASSERT(!initialized_); in Init()
190 ASSERT(worker_thread_ != NULL); in Init()
202 ASSERT(initialized_); in Init()
219 ASSERT(worker_thread_ == rtc::Thread::Current()); in InitMediaEngine_w()
224 ASSERT(initialized_); in Terminate()
233 ASSERT(worker_thread_ == rtc::Thread::Current()); in DestructorDeletes_w()
239 ASSERT(worker_thread_ == rtc::Thread::Current()); in Terminate_w()
267 ASSERT(initialized_); in CreateVoiceChannel_w()
268 ASSERT(worker_thread_ == rtc::Thread::Current()); in CreateVoiceChannel_w()
269 ASSERT(nullptr != media_controller); in CreateVoiceChannel_w()
[all …]
/external/webrtc/webrtc/examples/peerconnection/client/
Dpeer_connection_client.cc39 ASSERT(thread != NULL); in CreateClientSocket()
59 ASSERT(control_socket_.get() != NULL); in InitSocketSignals()
60 ASSERT(hanging_get_.get() != NULL); in InitSocketSignals()
89 ASSERT(!callback_); in RegisterObserver()
95 ASSERT(!server.empty()); in Connect()
96 ASSERT(!client_name.empty()); in Connect()
161 ASSERT(is_connected()); in SendToPeer()
162 ASSERT(control_socket_->GetState() == rtc::Socket::CS_CLOSED); in SendToPeer()
228 ASSERT(control_socket_->GetState() == rtc::Socket::CS_CLOSED); in ConnectControlSocket()
238 ASSERT(!onconnect_data_.empty()); in OnConnect()
[all …]
/external/clang/test/Sema/
Dbuiltins.c136 #define ASSERT(...) { int arr[(__VA_ARGS__) ? 1 : -1]; } in test17() macro
137 #define T(...) ASSERT(__builtin_constant_p(__VA_ARGS__)) in test17()
138 #define F(...) ASSERT(!__builtin_constant_p(__VA_ARGS__)) in test17()
169 ASSERT(OPT("abc")); in test17()
170 ASSERT(!OPT("abcd")); in test17()
173 ASSERT(!OPT(test17_c)); // expected-warning {{folded}} in test17()
174 ASSERT(!OPT(&test17_c[0])); // expected-warning {{folded}} in test17()
175 ASSERT(!OPT((char*)test17_c)); // expected-warning {{folded}} in test17()
176 ASSERT(!OPT(test17_d)); // expected-warning {{folded}} in test17()
177 ASSERT(!OPT(&test17_d[0])); // expected-warning {{folded}} in test17()
[all …]
/external/webrtc/webrtc/p2p/base/
Ddtlstransportchannel.cc128 ASSERT(dtls_state() == DTLS_TRANSPORT_NEW); in Connect()
366 ASSERT(!srtp_ciphers_.empty()); in SendPacket()
382 ASSERT(false); in SendPacket()
398 ASSERT(rtc::Thread::Current() == worker_thread_); in OnWritableState()
399 ASSERT(channel == channel_); in OnWritableState()
438 ASSERT(rtc::Thread::Current() == worker_thread_); in OnReceivingState()
439 ASSERT(channel == channel_); in OnReceivingState()
452 ASSERT(rtc::Thread::Current() == worker_thread_); in OnReadPacket()
453 ASSERT(channel == channel_); in OnReadPacket()
454 ASSERT(flags == 0); in OnReadPacket()
[all …]

12345678910>>...27