Home
last modified time | relevance | path

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

12345678910>>...23

/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 …]
DChecksumTest.cpp16 #define ASSERT(x) REPORTER_ASSERT(r, x) macro
36 ASSERT(algorithm(nullptr, 0) == 0); in DEF_TEST()
40 ASSERT(hash == algorithm(data, kBytes)); in DEF_TEST()
47 ASSERT(tweakedHash != hash); in DEF_TEST()
48 ASSERT(tweakedHash == algorithm(tweaked, kBytes)); in DEF_TEST()
55 ASSERT(SkGoodHash()(( int32_t)4) == 614249093); // 4 bytes. Hits SkChecksum::Mix fast path. in DEF_TEST()
56 ASSERT(SkGoodHash()((uint32_t)4) == 614249093); // (Ditto) in DEF_TEST()
59 ASSERT(SkGoodHash()((uint64_t)4) == 3491892518); in DEF_TEST()
60 ASSERT(SkGoodHash()((uint16_t)4) == 899251846); in DEF_TEST()
61 ASSERT(SkGoodHash()( (uint8_t)4) == 962700458); 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/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()
Dsocketstream.cc48 ASSERT(socket_ != NULL); in GetState()
62 ASSERT(socket_ != NULL); in Read()
81 ASSERT(socket_ != NULL); in Write()
96 ASSERT(socket_ != NULL); in Close()
101 ASSERT(socket == socket_); in OnConnectEvent()
106 ASSERT(socket == socket_); in OnReadEvent()
111 ASSERT(socket == socket_); in OnWriteEvent()
116 ASSERT(socket == socket_); in OnCloseEvent()
Dhttpbase.cc66 ASSERT(false); in Process()
208 ASSERT(false); in ProcessLine()
345 ASSERT(NULL != base_); in Disconnect()
346 ASSERT(NULL != base_->doc_stream_); in Disconnect()
368 ASSERT(HM_NONE == mode_); in ~HttpBase()
379 ASSERT(false); in attach()
390 ASSERT(HM_NONE == mode_); in detach()
404 ASSERT(HM_NONE == mode_); in send()
441 ASSERT(HM_NONE == mode_); in recv()
499 ASSERT(HM_RECV == mode_); in DoReceiveLoop()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_zoom.c56 ASSERT(spanX >= imageX); in compute_zoomed_bounds()
57 ASSERT(spanY >= imageY); in compute_zoomed_bounds()
152 ASSERT(zoomedWidth > 0); in zoom_span()
153 ASSERT(zoomedWidth <= SWRAST_MAX_WIDTH); in zoom_span()
156 ASSERT((span->arrayMask & SPAN_XY) == 0); in zoom_span()
157 ASSERT(span->primitive == GL_BITMAP); in zoom_span()
187 ASSERT(span->arrayMask & SPAN_RGBA); in zoom_span()
202 ASSERT(span->arrayMask & SPAN_Z); in zoom_span()
216 ASSERT(j >= 0); in zoom_span()
217 ASSERT(j < (GLint) span->end); in zoom_span()
[all …]
Ds_blend.c78 ASSERT(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); in blend_noop()
79 ASSERT(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD); in blend_noop()
80 ASSERT(ctx->Color.Blend[0].SrcRGB == GL_ZERO); in blend_noop()
81 ASSERT(ctx->Color.Blend[0].DstRGB == GL_ONE); in blend_noop()
104 ASSERT(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); in blend_replace()
105 ASSERT(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD); in blend_replace()
106 ASSERT(ctx->Color.Blend[0].SrcRGB == GL_ONE); in blend_replace()
107 ASSERT(ctx->Color.Blend[0].DstRGB == GL_ZERO); in blend_replace()
128 ASSERT(ctx->Color.Blend[0].EquationRGB == GL_FUNC_ADD); in blend_transparency_ubyte()
129 ASSERT(ctx->Color.Blend[0].EquationA == GL_FUNC_ADD); in blend_transparency_ubyte()
[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()
173 ASSERT(ps_cabac != NULL); in ihevcd_cabac_reset()
174 ASSERT(ps_bitstrm != NULL); in ihevcd_cabac_reset()
238 ASSERT(u4_range >= 256); in ihevcd_cabac_decode_bin()
239 ASSERT((ctxt_index >= 0) && (ctxt_index < IHEVC_CAB_CTXT_END)); in ihevcd_cabac_decode_bin()
240 ASSERT(state_mps < 128); in ihevcd_cabac_decode_bin()
325 ASSERT(u4_range >= 256); in ihevcd_cabac_decode_bypass_bin()
[all …]
Dihevcd_cabac.h70 ASSERT(FULLRANGE == 1); \
71 ASSERT(u4_range >= 256); \
72 ASSERT((ctxt_index >= 0) && (ctxt_index < IHEVC_CAB_CTXT_END)); \
73 ASSERT(state_mps < 128); \
130 ASSERT(FULLRANGE == 1); \
131 ASSERT(u4_range >= 256); \
161 ASSERT(FULLRANGE == 1); \
162 ASSERT(u4_range >= 256); \
163 ASSERT(numbins > 0); \
167 ASSERT(numbins < 17); \
/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/mesa3d/src/mesa/main/
Dimage.c113 ASSERT(dimensions >= 1 && dimensions <= 3); in _mesa_image_offset()
169 ASSERT(bytes_per_row % alignment == 0); in _mesa_image_offset()
283 ASSERT(packing); in _mesa_image_row_stride()
331 ASSERT(packing); in _mesa_image_image_stride()
471 ASSERT(srcType != dstType); in _mesa_convert_colors()
494 ASSERT(dstType == GL_FLOAT); in _mesa_convert_colors()
527 ASSERT(dstType == GL_FLOAT); in _mesa_convert_colors()
556 ASSERT(dstType == GL_UNSIGNED_SHORT); in _mesa_convert_colors()
602 ASSERT(ctx->Pixel.ZoomX == 1.0F); in _mesa_clip_drawpixels()
603 ASSERT(ctx->Pixel.ZoomY == 1.0F || ctx->Pixel.ZoomY == -1.0F); in _mesa_clip_drawpixels()
[all …]
/external/f2fs-tools/fsck/
Ddump.c36 ASSERT(fd >= 0); in sit_dump()
45 ASSERT(ret >= 0); in sit_dump()
51 ASSERT(se->valid_blocks <= 512); in sit_dump()
60 ASSERT(ret >= 0); in sit_dump()
74 ASSERT(fd >= 0); in ssa_dump()
80 ASSERT(ret >= 0); in ssa_dump()
101 ASSERT(ret >= 0); in ssa_dump()
108 ASSERT(ret >= 0); in ssa_dump()
113 ASSERT(ret >= 0); in ssa_dump()
132 ASSERT(ret >= 0); in dump_data_blk()
[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 …]
/external/pdfium/fpdfsdk/src/
Dfsdk_annothandler.cpp43 ASSERT(!GetAnnotHandler(pAnnotHandler->GetType())); in RegisterAnnotHandler()
62 ASSERT(pPageView); in NewAnnot()
75 ASSERT(pAnnot != NULL); in NewAnnot()
76 ASSERT(pPageView != NULL); in NewAnnot()
111 ASSERT(pAnnot); in Annot_OnLoad()
141 ASSERT(pAnnot); in Annot_OnDraw()
160 ASSERT(pAnnot); in Annot_OnLButtonDown()
171 ASSERT(pAnnot); in Annot_OnLButtonUp()
183 ASSERT(pAnnot); in Annot_OnLButtonDblClk()
194 ASSERT(pAnnot); in Annot_OnMouseMove()
[all …]
/external/emma/core/java12/com/vladium/emma/report/
DReportProperties.java43 if ($assert.ENABLED) $assert.ASSERT (outEncoding != null, "null input: outEncoding"); in setOutEncoding()
55 if ($assert.ENABLED) $assert.ASSERT (outDir != null, "null input: outDir"); in setOutDir()
67 if ($assert.ENABLED) $assert.ASSERT (outFile != null, "null input: outFile"); in setOutFile()
79 …if ($assert.ENABLED) $assert.ASSERT (unitsType >= IItemAttribute.UNITS_COUNT && unitsType <= IItem… in setUnitsType()
91 …if ($assert.ENABLED) $assert.ASSERT (viewType >= IReportDataView.HIER_CLS_VIEW && viewType <= IRep… in setViewType()
103 …if ($assert.ENABLED) $assert.ASSERT (depth >= IItemMetadata.TYPE_ID_ALL && depth <= IItemMetadata.… in setDepth()
125 …if ($assert.ENABLED) $assert.ASSERT (columnOrder != null && columnOrder.length != 0, "null/empty i… in setColumnOrder()
137 if ($assert.ENABLED) $assert.ASSERT (sortOrder != null, "null input: sortOrder"); in setSortOrder()
149 if ($assert.ENABLED) $assert.ASSERT (metrics != null, "null input: metrics"); in setMetrics()
165 $assert.ASSERT (m_outEncoding != null, "m_outEncoding not set"); in validate()
[all …]
/external/webrtc/talk/app/webrtc/
Ddtmfsender.cc100 ASSERT(track_ != NULL); in DtmfSender()
101 ASSERT(signaling_thread_ != NULL); in DtmfSender()
103 ASSERT(provider_->GetOnDestroyedSignal() != NULL); in DtmfSender()
111 ASSERT(provider_->GetOnDestroyedSignal() != NULL); in ~DtmfSender()
126 ASSERT(signaling_thread_->IsCurrent()); in CanInsertDtmf()
135 ASSERT(signaling_thread_->IsCurrent()); in InsertDtmf()
186 ASSERT(false); in OnMessage()
193 ASSERT(signaling_thread_->IsCurrent()); in DoInsertDtmf()
211 ASSERT(false); in DoInsertDtmf()
/external/pdfium/xfa/src/fxjse/src/
Dvalue.cpp55 ASSERT(lpValue); in FXJSE_Value_ToBoolean()
60 ASSERT(lpValue); in FXJSE_Value_ToFloat()
65 ASSERT(lpValue); in FXJSE_Value_ToDouble()
71 ASSERT(lpValue); in FXJSE_Value_ToUTF8String()
76 ASSERT(lpValue); in FXJSE_Value_ToInteger()
82 ASSERT(lpValue); in FXJSE_Value_ToObject()
87 ASSERT(lpValue); in FXJSE_Value_SetUndefined()
92 ASSERT(lpValue); in FXJSE_Value_SetNull()
97 ASSERT(lpValue); in FXJSE_Value_SetBoolean()
103 ASSERT(lpValue); in FXJSE_Value_SetUTF8String()
[all …]

12345678910>>...23