Home
last modified time | relevance | path

Searched refs:SkASSERT (Results 1 – 25 of 375) sorted by relevance

12345678910>>...15

/external/skia/src/xml/
DSkJS.cpp18 SkASSERT(0); in abort()
22 SkASSERT(0); in _control87()
27 SkASSERT(0); in mktime()
34 SkASSERT(0); in strdup()
39 SkASSERT(0); in strerror()
44 SkASSERT(0); in isatty()
49 SkASSERT(0); in putenv()
54 SkASSERT(0); in getenv()
59 SkASSERT(0); in GetSystemTimeAsFileTime()
63 SkASSERT(0); in localtime()
[all …]
/external/skia/src/core/
DSkUtils.cpp41 SkASSERT(dst != NULL && count >= 0); in sk_memset16_portable()
94 SkASSERT(dst != NULL && count >= 0); in sk_memset32_portable()
142 SkASSERT(c <= 0xF7); // otherwise leading byte is too big (more than 4 bytes) in assert_utf8_leadingbyte()
143 SkASSERT((c & 0xC0) != 0x80); // can't begin with a middle char in assert_utf8_leadingbyte()
155 SkASSERT(utf8); in SkUTF8_CountUnichars()
171 SkASSERT(NULL != utf8 || 0 == byteLength); in SkUTF8_CountUnichars()
184 SkASSERT(NULL != utf8); in SkUTF8_ToUnichar()
205 SkASSERT(NULL != ptr && NULL != *ptr); in SkUTF8_NextUnichar()
227 SkASSERT(NULL != ptr && NULL != *ptr); in SkUTF8_PrevUnichar()
275 SkASSERT(utf8 == NULL || orig == SkUTF8_ToUnichar(utf8)); in SkUTF8_FromUnichar()
[all …]
DSkFloat.cpp72 SkASSERT(bias > 0 && bias < 8); in SetShift()
79 SkASSERT(zeros >= 0 && zeros <= 23); in SetShift()
84 SkASSERT((value >> 23) == 1); in SetShift()
105 SkASSERT(n == sign); in SetShift()
107 SkASSERT(n == shift); in SetShift()
109 SkASSERT(n == value); in SetShift()
191 SkASSERT(packed_d != 0); in Div()
283 SkASSERT(n == 0); in UnitTest()
287 SkASSERT(n == 5); in UnitTest()
291 SkASSERT(n == -3); in UnitTest()
[all …]
DSkAAClip.cpp95 SkASSERT(!bounds.isEmpty()); in AllocRect()
156 SkASSERT(curr <= fStopYOff); in next()
177 SkASSERT(n > 0); in compute_row_length()
178 SkASSERT(n <= width); in compute_row_length()
182 SkASSERT(0 == width); in compute_row_length()
188 SkASSERT(fBounds.isEmpty()); in validate()
193 SkASSERT(head->fRefCnt > 0); in validate()
194 SkASSERT(head->fRowCount > 0); in validate()
195 SkASSERT(head->fDataSize > 0); in validate()
205 SkASSERT(prevY < yoff->fY); in validate()
[all …]
DSkAlphaRuns.cpp14 SkASSERT(width > 0); in reset()
28 SkASSERT(count > 0 && x >= 0); in Break()
38 SkASSERT(n > 0); in Break()
57 SkASSERT(n > 0); in Break()
76 SkASSERT(middleCount >= 0); in add()
77 SkASSERT(x >= 0 && x + (startAlpha != 0) + middleCount + (stopAlpha != 0) <= fWidth); in add()
79 SkASSERT(fRuns[offsetX] >= 0); in add()
94 SkASSERT(tmp <= 256); in add()
112 SkASSERT(n <= middleCount); in add()
140 SkASSERT(*alpha <= max); in assertValid()
[all …]
DSkWriter32.cpp20 SkASSERT(SkAlign4(size) == size); in alloc()
21 SkASSERT(this->available() >= size); in alloc()
24 SkASSERT(fAllocated <= fSize); in alloc()
29 SkASSERT(offset <= fAllocated + 4); in peek32()
35 SkASSERT(SkAlign4(size) == size); in Create()
65 SkASSERT(0 == ((fSingleBlock - (char*)0) & 3)); // need 4-byte alignment in reset()
71 SkASSERT(SkAlign4(size) == size); in reserve()
76 SkASSERT(fSize <= fSingleBlockSize); in reserve()
83 SkASSERT(NULL == fHead); in reserve()
97 SkASSERT(SkAlign4(offset) == offset); in peek32()
[all …]
DSkScan_AntiPath.cpp187 SkASSERT(width > 0); in blitH()
190 SkASSERT(iy >= fCurrIY); in blitH()
200 SkASSERT(y != fCurrY || x >= fCurrX); in blitH()
202 SkASSERT(y >= fCurrY); in blitH()
216 SkASSERT(start >= 0 && stop > start); in blitH()
247 SkASSERT(leftA <= 0xFF); in set_left_rite_runs()
248 SkASSERT(riteA <= 0xFF); in set_left_rite_runs()
260 SkASSERT(leftA < 0xFF); in set_left_rite_runs()
273 SkASSERT(riteA < 0xFF); in set_left_rite_runs()
282 SkASSERT(width > 0); in blitRect()
[all …]
DSkFilterProc.h24 SkASSERT(table); in SkGetBilinearFilterProc()
35 SkASSERT(table); in SkGetBilinearFilterProc22()
46 SkASSERT(table); in SkGetBilinearFilterProc22Row()
54 SkASSERT(row); in SkGetBilinearFilterProc22RowProc()
69 SkASSERT(table); in SkGetFilter32Proc22()
80 SkASSERT(table); in SkGetFilter32Proc22Row()
88 SkASSERT(row); in SkGetFilter32Proc22RowProc()
103 SkASSERT(table); in SkGetBilinearFilterPtrProc()
117 SkASSERT(table); in SkGetBilinearFilterPtrProcYTable()
128 SkASSERT(table); in SkGetBilinearFilterPtrXProc()
DSkClampRange.cpp17 SkASSERT(dx > 0); in chop()
18 SkASSERT(count >= 0); in chop()
27 SkASSERT(n >= 0); in chop()
28 SkASSERT(n <= count); in chop()
49 SkASSERT(count > 0); in init()
104 SkASSERT(ccount > 0 && ccount <= SK_FixedMax); in init()
133 SkASSERT(fx >= 0); in init()
134 SkASSERT(fCount0 == 0 || (fx - dx) < 0); in init()
141 SkASSERT(fx <= ex); in init()
143 SkASSERT(fx >= 0xFFFF); in init()
[all …]
DSkBlitRow_D4444.cpp17 SkASSERT(255 == alpha); in S32_D4444_Opaque()
23 SkASSERT(SkGetPackedA32(c) == 255); in S32_D4444_Opaque()
32 SkASSERT(255 > alpha); in S32_D4444_Blend()
39 SkASSERT(SkGetPackedA32(c) == 255); in S32_D4444_Blend()
52 SkASSERT(255 == alpha); in S32A_D4444_Opaque()
74 SkASSERT(255 > alpha); in S32A_D4444_Blend()
98 SkASSERT(255 == alpha); in S32_D4444_Opaque_Dither()
105 SkASSERT(SkGetPackedA32(c) == 255); in S32_D4444_Opaque_Dither()
117 SkASSERT(255 > alpha); in S32_D4444_Blend_Dither()
125 SkASSERT(SkGetPackedA32(c) == 255); in S32_D4444_Blend_Dither()
[all …]
DSkBitmapProcState.cpp19 SkASSERT((unsigned)x <= 0xF); in Filter_565_Expanded()
20 SkASSERT((unsigned)y <= 0xF); in Filter_565_Expanded()
47 SkASSERT((unsigned)x <= 0xF); in Filter_4444_D32()
48 SkASSERT((unsigned)y <= 0xF); in Filter_4444_D32()
67 SkASSERT((unsigned)x <= 0xF); in Filter_8()
68 SkASSERT((unsigned)y <= 0xF); in Filter_8()
92 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \
93 SkASSERT(state.fAlphaScale == 256)
104 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \
105 SkASSERT(state.fAlphaScale < 256)
[all …]
/external/skia/include/core/
DSkMath.h56 SkASSERT(sign == 0 || sign == -1); in SkApplySign()
79 SkASSERT(max >= 0); in SkClampMax()
126 SkASSERT(value > 0); in SkNextPow2()
139 SkASSERT(value != 0); in SkNextLog2()
161 SkASSERT((int16_t)x == x); in SkMulS16()
162 SkASSERT((int16_t)y == y); in SkMulS16()
173 SkASSERT((int16_t)x == x); in SkMulS16()
174 SkASSERT((int16_t)y == y); in SkMulS16()
186 SkASSERT((uint8_t)a == a); in SkMulDiv255Trunc()
187 SkASSERT((uint8_t)b == b); in SkMulDiv255Trunc()
[all …]
DSkReader32.h25 SkASSERT(ptr_align_4(data)); in setMemory()
26 SkASSERT(SkAlign4(size) == size); in setMemory()
44 SkASSERT(SkAlign4(offset) == offset); in setOffset()
45 SkASSERT(offset <= this->size()); in setOffset()
52 SkASSERT(ptr_align_4(fCurr)); in readInt()
55 SkASSERT(fCurr <= fStop); in readInt()
60 SkASSERT(ptr_align_4(fCurr)); in readScalar()
63 SkASSERT(fCurr <= fStop); in readScalar()
68 SkASSERT(ptr_align_4(fCurr)); in skip()
71 SkASSERT(fCurr <= fStop); in skip()
[all …]
DSkColorPriv.h28 SkASSERT(SkToU8(alpha) == alpha); in SkAlpha255To256()
43 SkASSERT((unsigned)scale256 <= 256); in SkAlphaBlend()
53 SkASSERT((int16_t)src == src); in SkAlphaBlend255()
54 SkASSERT((int16_t)dst == dst); in SkAlphaBlend255()
55 SkASSERT((uint8_t)alpha == alpha); in SkAlphaBlend255()
78 #define SkR16Assert(r) SkASSERT((unsigned)(r) <= SK_R16_MASK)
79 #define SkG16Assert(g) SkASSERT((unsigned)(g) <= SK_G16_MASK)
80 #define SkB16Assert(b) SkASSERT((unsigned)(b) <= SK_B16_MASK)
83 SkASSERT(r <= SK_R16_MASK); in SkPackRGB16()
84 SkASSERT(g <= SK_G16_MASK); in SkPackRGB16()
[all …]
DSkMask.h59 SkASSERT(kBW_Format == fFormat); in getAddr1()
60 SkASSERT(fBounds.contains(x, y)); in getAddr1()
61 SkASSERT(fImage != NULL); in getAddr1()
70 SkASSERT(kA8_Format == fFormat); in getAddr8()
71 SkASSERT(fBounds.contains(x, y)); in getAddr8()
72 SkASSERT(fImage != NULL); in getAddr8()
82 SkASSERT(kLCD16_Format == fFormat); in getAddrLCD16()
83 SkASSERT(fBounds.contains(x, y)); in getAddrLCD16()
84 SkASSERT(fImage != NULL); in getAddrLCD16()
95 SkASSERT(kLCD32_Format == fFormat); in getAddrLCD32()
[all …]
DSkTArray.h152 SkASSERT(n >= 0); in push_back_n()
166 SkASSERT(n >= 0); in push_back_n()
180 SkASSERT(n >= 0); in push_back_n()
193 SkASSERT(fCount > 0); in pop_back()
203 SkASSERT(n >= 0); in pop_back_n()
204 SkASSERT(fCount >= n); in pop_back_n()
217 SkASSERT(newCount >= 0); in resize_back()
230 SkASSERT(i < fCount);
231 SkASSERT(i >= 0);
236 SkASSERT(i < fCount);
[all …]
/external/skia/src/effects/
DSkBitmapCache.cpp56 SkASSERT(fHead != entry); in detach()
59 SkASSERT(fHead == entry); in detach()
63 SkASSERT(fTail != entry); in detach()
66 SkASSERT(fTail == entry); in detach()
106 SkASSERT(fTail); in add()
121 SkASSERT(fEntryCount >= 0 && fEntryCount <= fMaxEntries); in validate()
124 SkASSERT(NULL == fHead->fPrev); in validate()
125 SkASSERT(NULL == fTail->fNext); in validate()
128 SkASSERT(fHead == fTail); in validate()
130 SkASSERT(fHead != fTail); in validate()
[all …]
DSkAvoidXfermode.cpp54 SkASSERT(r <= SK_R16_MASK); in color_dist16()
55 SkASSERT(g <= SK_G16_MASK); in color_dist16()
56 SkASSERT(b <= SK_B16_MASK); in color_dist16()
68 SkASSERT(r <= 0xF); in color_dist4444()
69 SkASSERT(g <= 0xF); in color_dist4444()
70 SkASSERT(b <= 0xF); in color_dist4444()
82 SkASSERT(r <= 0xFF); in color_dist32()
83 SkASSERT(g <= 0xFF); in color_dist32()
84 SkASSERT(b <= 0xFF); in color_dist32()
128 SkASSERT((unsigned)d <= 255); in xfer32()
[all …]
/external/skia/src/animator/
DSkOperandIterpolator.cpp41 SkASSERT(values != NULL); in setKeyFrame()
45 SkASSERT(success); in setKeyFrame()
73 SkASSERT(index > 0); in timeToValues()
119 SkASSERT(result == kFreezeStart_Result); in UnitTest()
120 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); in UnitTest()
123 SkASSERT(result == kFreezeStart_Result); in UnitTest()
124 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); in UnitTest()
127 SkASSERT(result == kNormal_Result); in UnitTest()
128 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); in UnitTest()
131 SkASSERT(result == kNormal_Result); in UnitTest()
[all …]
DSkMemberInfo.cpp84 SkASSERT(fType != SkType_String && fType != SkType_MemberProperty); in getArrayValue()
93 SkASSERT(0); // incomplete in getArrayValue()
128 SkASSERT(value.fType == SkType_String); in getString()
132 SkASSERT(fCount == sizeof(SkString) / sizeof(SkScalar)); in getString()
133 SkASSERT(fType == SkType_String || fType == SkType_DynamicString); in getString()
139 SkASSERT(fType != SkType_String && fType != SkType_MemberProperty); in getValue()
140 SkASSERT(count == fCount); in getValue()
143 SkASSERT(sizeof(value[0].fScalar) == sizeof(value[0])); // no support for 64 bit pointers, yet in getValue()
155SkASSERT(sizeof(values[0].fScalar) == sizeof(values[0])); // no support for 64 bit pointers, yet in setValue()
233 SkASSERT(sizeof("string") == sizeof("script")); in setValue()
[all …]
DSkOperand.h36 SkTypedArray* getArray() { SkASSERT(fType == SkType_Array); return fOperand.fArray; } in getArray()
37 …SkDisplayable* getDisplayable() { SkASSERT(fType == SkType_Displayable); return fOperand.fDisplaya… in getDisplayable()
38 SkDrawable* getDrawable() { SkASSERT(fType == SkType_Drawable); return fOperand.fDrawable; } in getDrawable()
39 … int32_t getS32(SkAnimateMaker* maker) { SkASSERT(fType == SkType_Int || fType == SkType_Boolean || in getS32()
41 SkMSec getMSec() { SkASSERT(fType == SkType_MSec); return fOperand.fMSec; } in getMSec()
42 SkScalar getScalar() { SkASSERT(fType == SkType_Float); return fOperand.fScalar; } in getScalar()
43 SkString* getString() { SkASSERT(fType == SkType_String); return fOperand.fString; } in getString()
/external/skia/src/utils/
DSkParseColor.cpp220 SkASSERT(0); // always stop after creating table in CreateTable()
452 SkASSERT((n & ~0xF) == 0); in nib2byte()
506 SkASSERT(FindColor(nameRGB.name, &result) != NULL); in TestColor()
507 SkASSERT(result == (SkColor) (nameRGB.rgb | 0xFF000000)); in TestColor()
516 SkASSERT(FindColor(bad, &result) == false); in TestColor()
518 SkASSERT(FindColor(bad, &result) == false); in TestColor()
521 SkASSERT(FindColor("lightGrey", &result)); in TestColor()
522 SkASSERT(result == 0xffd3d3d3); in TestColor()
526 SkASSERT(FindColor("#ABCdef", &result)); in TestColor()
527 SkASSERT(result == 0XFFABCdef); in TestColor()
[all …]
DSkJSON.cpp47 LEAK_CODE(SkASSERT(gStringCount > 0); SkDebugf("~string[%d]\n", --gStringCount);) in free_string()
56 SkASSERT(name); in Slot()
102 LEAK_CODE(SkASSERT(gSlotCount > 0); SkDebugf("~slot[%d]\n", --gSlotCount);) in ~Slot()
114 SkASSERT(fSlot); in next()
119 SkASSERT(fSlot); in type()
124 SkASSERT(fSlot); in name()
129 SkASSERT(fSlot); in objectValue()
130 SkASSERT(kObject == fSlot->type()); in objectValue()
135 SkASSERT(fSlot); in arrayValue()
136 SkASSERT(kArray == fSlot->type()); in arrayValue()
[all …]
DSkInterpolator.cpp63 SkASSERT(time > prevTime && time < nextTime); in ComputeRelativeT()
73 SkASSERT(fFrameCount > 0); in timeToT()
116 SkASSERT(index < fFrameCount); in timeToT()
138 SkASSERT(elemCount > 0); in SkInterpolator()
167 SkASSERT(values != NULL); in setKeyFrame()
175 SkASSERT(success); in setKeyFrame()
198 SkASSERT(index > 0); in timeToValues()
301 SkASSERT(result == kFreezeStart_Result); in UnitTest()
302 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); in UnitTest()
305 SkASSERT(result == kFreezeStart_Result); in UnitTest()
[all …]
/external/skia/src/ports/
DSkImageRef_ashmem.cpp58 SkASSERT(fRec.fAddr); in closeFD()
59 SkASSERT(fRec.fSize); in closeFD()
78 SkASSERT(!fRec->fPinned); in allocPixelRef()
81 SkASSERT(NULL == addr); in allocPixelRef()
82 SkASSERT(0 == fRec->fSize); in allocPixelRef()
114 SkASSERT(addr); in allocPixelRef()
115 SkASSERT(size == fRec->fSize); in allocPixelRef()
161 SkASSERT(fBitmap.getPixels() == NULL); in onLockPixels()
162 SkASSERT(fBitmap.getColorTable() == NULL); in onLockPixels()
166 SkASSERT(fRec.fAddr); in onLockPixels()
[all …]

12345678910>>...15