Home
last modified time | relevance | path

Searched refs:Length (Results 1 – 25 of 523) sorted by relevance

12345678910>>...21

/external/webkit/Source/WebCore/platform/
DLengthBox.h42 : m_left(Length(v, Fixed)) in LengthBox()
43 , m_right(Length(v, Fixed)) in LengthBox()
44 , m_top(Length(v, Fixed)) in LengthBox()
45 , m_bottom(Length(v, Fixed)) in LengthBox()
49 LengthBox(Length t, Length r, Length b, Length l) in LengthBox()
58 : m_left(Length(l, Fixed)) in LengthBox()
59 , m_right(Length(r, Fixed)) in LengthBox()
60 , m_top(Length(t, Fixed)) in LengthBox()
61 , m_bottom(Length(b, Fixed)) in LengthBox()
65 Length left() const { return m_left; } in left()
[all …]
DLength.h39 struct Length { struct
42 Length() in Length() argument
47 Length(LengthType t) in Length() function
52 Length(int v, LengthType t, bool q = false)
57 Length(float v, LengthType t, bool q = false) argument
62 Length(double v, LengthType t, bool q = false) argument
68 …bool operator==(const Length& o) const { return (getFloatValue() == o.getFloatValue()) && (m_type … argument
69 …bool operator!=(const Length& o) const { return (getFloatValue() != o.getFloatValue()) || (m_type …
71 const Length& operator*=(float v)
115 *this = Length(value, Fixed); in setValue() argument
[all …]
DLengthSize.h34 LengthSize(Length width, Length height) in LengthSize()
45 void setWidth(Length width) { m_width = width; } in setWidth()
46 Length width() const { return m_width; } in width()
48 void setHeight(Length height) { m_height = height; } in setHeight()
49 Length height() const { return m_height; } in height()
52 Length m_width;
53 Length m_height;
DLength.cpp38 static Length parseLength(const UChar* data, unsigned length) in parseLength()
41 return Length(1, Relative); in parseLength()
65 return Length(r, Percent); in parseLength()
66 return Length(1, Relative); in parseLength()
71 return Length(r, Relative); in parseLength()
72 return Length(1, Relative); in parseLength()
75 return Length(r, Fixed); in parseLength()
76 return Length(0, Relative); in parseLength()
87 PassOwnArrayPtr<Length> newCoordsArray(const String& string, int& len) in newCoordsArray()
104 OwnArrayPtr<Length> r = adoptArrayPtr(new Length[len]); in newCoordsArray()
[all …]
/external/llvm/include/llvm/ADT/
DStringRef.h53 size_t Length; variable
63 static int compareMemory(const char *Lhs, const char *Rhs, size_t Length) { in compareMemory() argument
64 if (Length == 0) { return 0; } in compareMemory()
65 return ::memcmp(Lhs,Rhs,Length); in compareMemory()
73 /*implicit*/ StringRef() : Data(0), Length(0) {} in StringRef()
79 Length = ::strlen(Str); // invoking strlen(NULL) is undefined behavior in StringRef()
84 : Data(data), Length(length) { in StringRef()
91 : Data(Str.data()), Length(Str.length()) {} in StringRef()
99 iterator end() const { return Data + Length; } in end()
110 bool empty() const { return Length == 0; } in empty()
[all …]
DArrayRef.h41 size_type Length; variable
48 /*implicit*/ ArrayRef() : Data(0), Length(0) {} in ArrayRef()
52 : Data(&OneElt), Length(1) {} in ArrayRef()
56 : Data(data), Length(length) {} in ArrayRef()
60 : Data(begin), Length(end - begin) {} in ArrayRef()
64 : Data(Vec.data()), Length(Vec.size()) {} in ArrayRef()
68 : Data(Vec.empty() ? (T*)0 : &Vec[0]), Length(Vec.size()) {} in ArrayRef()
73 : Data(Arr), Length(N) {} in ArrayRef()
80 iterator end() const { return Data + Length; } in end()
83 bool empty() const { return Length == 0; } in empty()
[all …]
/external/webkit/Source/WebCore/rendering/style/
DStyleBoxData.h46 Length width() const { return m_width; } in width()
47 Length height() const { return m_height; } in height()
49 Length minWidth() const { return m_minWidth; } in minWidth()
50 Length minHeight() const { return m_minHeight; } in minHeight()
52 Length maxWidth() const { return m_maxWidth; } in maxWidth()
53 Length maxHeight() const { return m_maxHeight; } in maxHeight()
55 Length verticalAlign() const { return m_verticalAlign; } in verticalAlign()
68 Length m_width;
69 Length m_height;
71 Length m_minWidth;
[all …]
DRenderStyle.h375 Length left() const { return surround->offset.left(); } in left()
376 Length right() const { return surround->offset.right(); } in right()
377 Length top() const { return surround->offset.top(); } in top()
378 Length bottom() const { return surround->offset.bottom(); } in bottom()
381 Length logicalLeft() const { return isHorizontalWritingMode() ? left() : top(); } in logicalLeft()
382 Length logicalRight() const { return isHorizontalWritingMode() ? right() : bottom(); } in logicalRight()
383Length logicalTop() const { return isHorizontalWritingMode() ? (isFlippedBlocksWritingMode() ? bot… in logicalTop()
384Length logicalBottom() const { return isHorizontalWritingMode() ? (isFlippedBlocksWritingMode() ? … in logicalBottom()
396 Length width() const { return m_box->width(); } in width()
397 Length height() const { return m_box->height(); } in height()
[all …]
DBorderData.h38 BorderData() : m_topLeft(Length(0, Fixed), Length(0, Fixed)) in BorderData()
39 , m_topRight(Length(0, Fixed), Length(0, Fixed)) in BorderData()
40 , m_bottomLeft(Length(0, Fixed), Length(0, Fixed)) in BorderData()
41 , m_bottomRight(Length(0, Fixed), Length(0, Fixed)) in BorderData()
DFillLayer.h69 Length xPosition() const { return m_xPosition; } in xPosition()
70 Length yPosition() const { return m_yPosition; } in yPosition()
96 void setXPosition(Length l) { m_xPosition = l; m_xPosSet = true; } in setXPosition()
97 void setYPosition(Length l) { m_yPosition = l; m_yPosSet = true; } in setYPosition()
161 static Length initialFillXPosition(EFillLayerType) { return Length(0.0, Percent); } in initialFillXPosition()
162 static Length initialFillYPosition(EFillLayerType) { return Length(0.0, Percent); } in initialFillYPosition()
174 Length m_xPosition;
175 Length m_yPosition;
/external/webkit/Source/WebCore/platform/graphics/transforms/
DTranslateTransformOperation.h35 …static PassRefPtr<TranslateTransformOperation> create(const Length& tx, const Length& ty, Operatio… in create()
37 return adoptRef(new TranslateTransformOperation(tx, ty, Length(0, Fixed), type)); in create()
40 …c PassRefPtr<TranslateTransformOperation> create(const Length& tx, const Length& ty, const Length&… in create()
49 Length x() const { return m_x; } in x()
50 Length y() const { return m_y; } in y()
51 Length z() const { return m_z; } in z()
75 …TranslateTransformOperation(const Length& tx, const Length& ty, const Length& tz, OperationType ty… in TranslateTransformOperation()
84 Length m_x;
85 Length m_y;
86 Length m_z;
DTranslateTransformOperation.cpp34 …return TranslateTransformOperation::create(Length(m_x.type()).blend(m_x, narrowPrecisionToFloat(pr… in blend()
35Length(m_y.type()).blend(m_y, narrowPrecisionToFloat(progress)), in blend()
36Length(m_z.type()).blend(m_z, narrowPrecisionToFloat(progress)), m_type); in blend()
39 Length fromX = fromOp ? fromOp->m_x : Length(m_x.type()); in blend()
40 Length fromY = fromOp ? fromOp->m_y : Length(m_y.type()); in blend()
41 Length fromZ = fromOp ? fromOp->m_z : Length(m_z.type()); in blend()
DPerspectiveTransformOperation.cpp43 return PerspectiveTransformOperation::create(Length(clampToPositiveInteger(p), Fixed)); in blend()
47 Length fromP = fromOp ? fromOp->m_p : Length(m_p.type()); in blend()
48 Length toP = m_p; in blend()
60 return PerspectiveTransformOperation::create(Length(clampToPositiveInteger(val), Fixed)); in blend()
62 return PerspectiveTransformOperation::create(Length(0, Fixed)); in blend()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DBitSet.cs132 if (n >= _bits.Length) { in Add()
142 int newSize = Math.Max(_bits.Length << 1, NumWordsToHold(bit)); in GrowToInclude()
151 if (a._bits.Length > _bits.Length) { in OrInPlace()
152 SetSize(a._bits.Length); in OrInPlace()
154 int min = Math.Min(_bits.Length, a._bits.Length); in OrInPlace()
178 for (int i = _bits.Length - 1; i >= 0; i--) { in Size()
202 int n = Math.Min(this._bits.Length, otherSet._bits.Length); in Equals()
213 if (this._bits.Length > n) { in Equals()
214 for (int i = n + 1; i < this._bits.Length; i++) { in Equals()
219 } else if (otherSet._bits.Length > n) { in Equals()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DBitSet.cs146 if ( n >= _bits.Length ) in Add()
158 int newSize = Math.Max( _bits.Length << 1, NumWordsToHold( bit ) ); in GrowToInclude()
169 if ( a._bits.Length > _bits.Length ) in OrInPlace()
171 SetSize( a._bits.Length ); in OrInPlace()
173 int min = Math.Min( _bits.Length, a._bits.Length ); in OrInPlace()
202 for ( int i = _bits.Length - 1; i >= 0; i-- ) in Size()
233 int n = Math.Min( this._bits.Length, otherSet._bits.Length ); in Equals()
246 if ( this._bits.Length > n ) in Equals()
248 for ( int i = n + 1; i < this._bits.Length; i++ ) in Equals()
256 else if ( otherSet._bits.Length > n ) in Equals()
[all …]
/external/clang/test/SemaTemplate/
Dext-vector-type.cpp2 template<typename T, unsigned Length>
4 typedef T __attribute__((ext_vector_type(Length))) type;
12 template<typename T, unsigned Length>
14 typedef T __attribute__((ext_vector_type(Length))) type; // expected-error{{zero vector size}}
21 template<typename T, unsigned Length>
23 …typedef T __attribute__((ext_vector_type(Length))) type; // expected-error{{invalid vector element…
32 template<typename T, T Length>
34 typedef T __attribute__((ext_vector_type(Length))) type;
43 template<unsigned Length>
45 …typedef int_ptr __attribute__((ext_vector_type(Length))) type; // expected-error{{invalid vector e…
[all …]
/external/llvm/lib/Support/
DStringRef.cpp42 for (size_t I = 0, E = min(Length, RHS.Length); I != E; ++I) { in compare_lower()
49 if (Length == RHS.Length) in compare_lower()
51 return Length < RHS.Length ? -1 : 1; in compare_lower()
56 for (size_t I = 0, E = min(Length, RHS.Length); I != E; ++I) { in compare_numeric()
63 bool ld = J < Length && ascii_isdigit(Data[J]); in compare_numeric()
64 bool rd = J < RHS.Length && ascii_isdigit(RHS.Data[J]); in compare_numeric()
80 if (Length == RHS.Length) in compare_numeric()
82 return Length < RHS.Length ? -1 : 1; in compare_numeric()
126 if (N > Length) in find()
130 if (Length < 16 || N > 255 || N == 0) { in find()
[all …]
/external/clang/test/CodeGenCXX/
D2012-03-16-StoreAlign.cpp4 struct Length { struct
5 Length(double v) { in Length() function
9 bool operator==(const Length& o) const { in operator ==() argument
12 bool operator!=(const Length& o) const { return !(*this == o); } in operator !=() argument
22 static Length inchLength(double inch); argument
23 static bool getPageSizeFromName(const Length &A) { in getPageSizeFromName()
24 static const Length legalWidth = inchLength(8.5); in getPageSizeFromName()
33 bool bar(Length &b) { in bar()
/external/llvm/runtime/libprofile/
DCommonProfiling.c38 unsigned Length, i; in save_arguments() local
65 for (Length = 0, i = 0; i != (unsigned)argc; ++i) in save_arguments()
66 Length += strlen(argv[i])+1; in save_arguments()
68 SavedArgs = (char*)malloc(Length); in save_arguments()
69 for (Length = 0, i = 0; i != (unsigned)argc; ++i) { in save_arguments()
71 memcpy(SavedArgs+Length, argv[i], Len); in save_arguments()
72 Length += Len; in save_arguments()
73 SavedArgs[Length++] = ' '; in save_arguments()
76 SavedArgsLength = Length; in save_arguments()
/external/chromium/base/win/
Dscoped_bstr_unittest.cc21 EXPECT_EQ(0, b.Length()); in DumbBstrTests()
37 EXPECT_EQ(test1_len, b1.Length()); in BasicBstrTests()
42 EXPECT_EQ(test1_len, b2.Length()); in BasicBstrTests()
43 EXPECT_EQ(0, b1.Length()); in BasicBstrTests()
56 EXPECT_EQ(100 / sizeof(kTestString1[0]), b2.Length()); in BasicBstrTests()
59 EXPECT_EQ(100 / sizeof(kTestString1[0]), b2.Length()); in BasicBstrTests()
61 EXPECT_EQ(b2.Length(), lstrlen(b2)); in BasicBstrTests()
64 EXPECT_EQ(test2_len, b1.Length()); in BasicBstrTests()
66 EXPECT_EQ(test2_len - 1, b1.Length()); in BasicBstrTests()
/external/llvm/lib/DebugInfo/
DDWARFDebugAranges.h25 : LoPC(lo), Length(hi-lo), Offset(off) {} in LoPC()
29 Length = 0; in clear()
35 Length = 0; in setHiPC()
37 Length = HiPC - LoPC; in setHiPC()
40 if (Length) in HiPC()
41 return LoPC + Length; in HiPC()
44 bool isValidRange() const { return Length > 0; } in isValidRange()
59 uint32_t Length; // End of address range (not including this address) member
DDWARFDebugArangeSet.cpp39 ArangeDescriptors[i].Length = max_end_addr - ArangeDescriptors[i].Address; in compact()
69 Header.Length = data.getU32(offset_ptr); in extract()
76 if (!data.isValidOffsetForDataOfSize(Offset, Header.Length) || in extract()
96 assert(sizeof(arangeDescriptor.Address) == sizeof(arangeDescriptor.Length)); in extract()
101 arangeDescriptor.Length = data.getUnsigned(offset_ptr, Header.AddrSize); in extract()
105 if (arangeDescriptor.Address || arangeDescriptor.Length) in extract()
118 Header.Length, Header.Version) in dump()
137 return Address >= desc.Address && Address < (desc.Address + desc.Length); in operator ()()
/external/clang/test/Index/
Drecursive-cxx-member-calls.cpp44 size_t Length; member in llvm::StringRef
47 StringRef(): Data(0), Length(0) {} in StringRef()
48 StringRef(const char *Str) : Data(Str), Length(magic_length(Str)) {} in StringRef()
49 StringRef(const char *data, size_t length) : Data(data), Length(length) {} in StringRef()
51 size_t size() const { return Length; } in size()
53 return Length >= Prefix.Length && in startswith()
54 memcmp(Data, Prefix.Data, Prefix.Length) == 0; in startswith()
57 return Length >= Suffix.Length && in endswith()
58 memcmp(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0; in endswith()
61 return StringRef(Data + Start, min(N, Length - Start)); in substr()
/external/llvm/test/TableGen/
DTwoLevelName.td6 int Length = length;
25 // CHECK: Length = 16
29 // CHECK: Length = 1
33 // CHECK: Length = 2
37 // CHECK: Length = 3
41 // CHECK: Length = 4
45 // CHECK: Length = 8
/external/webkit/Source/WebCore/rendering/
DRenderThemeWinCE.cpp222 style->setWidth(Length(13, Fixed)); in setCheckboxSize()
224 style->setHeight(Length(13, Fixed)); in setCheckboxSize()
337 o->style()->setWidth(Length(sliderThumbHeight, Fixed)); in adjustSliderThumbSize()
338 o->style()->setHeight(Length(sliderThumbWidth, Fixed)); in adjustSliderThumbSize()
340 o->style()->setWidth(Length(sliderThumbWidth, Fixed)); in adjustSliderThumbSize()
341 o->style()->setHeight(Length(sliderThumbHeight, Fixed)); in adjustSliderThumbSize()
349 style->setPaddingTop(Length(1, Fixed));
350 style->setPaddingRight(Length(3, Fixed));
351 style->setPaddingBottom(Length(1, Fixed));
352 style->setPaddingLeft(Length(3, Fixed));
[all …]

12345678910>>...21