/external/chromium_org/third_party/WebKit/Source/platform/ |
D | LayoutUnitTest.cpp | 43 ASSERT_EQ(LayoutUnit(INT_MIN).toInt(), intMinForLayoutUnit); in TEST() 44 ASSERT_EQ(LayoutUnit(INT_MIN / 2).toInt(), intMinForLayoutUnit); in TEST() 45 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit - 1).toInt(), intMinForLayoutUnit); in TEST() 46 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit).toInt(), intMinForLayoutUnit); in TEST() 47 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit + 1).toInt(), intMinForLayoutUnit + 1); in TEST() 48 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit / 2).toInt(), intMinForLayoutUnit / 2); in TEST() 49 ASSERT_EQ(LayoutUnit(-10000).toInt(), -10000); in TEST() 50 ASSERT_EQ(LayoutUnit(-1000).toInt(), -1000); in TEST() 51 ASSERT_EQ(LayoutUnit(-100).toInt(), -100); in TEST() 52 ASSERT_EQ(LayoutUnit(-10).toInt(), -10); in TEST() [all …]
|
D | DateComponents.cpp | 104 static bool toInt(const String& src, unsigned parseStart, unsigned parseLength, int& out) in toInt() function 132 if (!toInt(src, start, digitsLength, year)) in parseYear() 301 if (!toInt(src, index, 2, hour) || hour < 0 || hour > 23) in parseTimeZone() 309 if (!toInt(src, index, 2, minute) || minute < 0 || minute > 59) in parseTimeZone() 335 if (!toInt(src, index, 2, month) || month < 1 || month > 12) in parseMonth() 359 if (!toInt(src, index, 2, day) || day < 1 || day > maxDayOfMonth(m_year, m_month)) in parseDate() 386 if (!toInt(src, index, 2, week) || week < minimumWeekNumber || week > maxWeekNumberInYear()) in parseWeek() 399 if (!toInt(src, start, 2, hour) || hour < 0 || hour > 23) in parseTime() 409 if (!toInt(src, index, 2, minute) || minute < 0 || minute > 59) in parseTime() 418 if (toInt(src, index + 1, 2, second) && second >= 0 && second <= 59) { in parseTime() [all …]
|
/external/guava/guava/src/com/google/common/hash/ |
D | Murmur3_128HashFunction.java | 17 import static com.google.common.primitives.UnsignedBytes.toInt; 92 k2 ^= (long) toInt(bb.get(14)) << 48; // fall through in processRemaining() 94 k2 ^= (long) toInt(bb.get(13)) << 40; // fall through in processRemaining() 96 k2 ^= (long) toInt(bb.get(12)) << 32; // fall through in processRemaining() 98 k2 ^= (long) toInt(bb.get(11)) << 24; // fall through in processRemaining() 100 k2 ^= (long) toInt(bb.get(10)) << 16; // fall through in processRemaining() 102 k2 ^= (long) toInt(bb.get(9)) << 8; // fall through in processRemaining() 104 k2 ^= (long) toInt(bb.get(8)) << 0; in processRemaining() 111 k1 ^= (long) toInt(bb.get(7)) << 56; // fall through in processRemaining() 113 k1 ^= (long) toInt(bb.get(6)) << 48; // fall through in processRemaining() [all …]
|
D | Murmur3_32HashFunction.java | 17 import static com.google.common.primitives.UnsignedBytes.toInt; 73 k1 ^= toInt(bb.get(2)) << 16; in processRemaining() 76 k1 ^= toInt(bb.get(1)) << 8; in processRemaining() 79 k1 ^= toInt(bb.get(0)); in processRemaining()
|
/external/guava/guava/src/com/google/common/primitives/ |
D | UnsignedBytes.java | 63 public static int toInt(byte value) { in toInt() method in UnsignedBytes 112 return toInt(a) - toInt(b); in compare() 125 int min = toInt(array[0]); in min() 127 int next = toInt(array[i]); in min() 145 int max = toInt(array[0]); in max() 147 int next = toInt(array[i]); in max() 172 builder.append(toInt(array[0])); in join() 174 builder.append(separator).append(toInt(array[i])); in join()
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
D | UnsignedBytesTest.java | 43 assertEquals(0, UnsignedBytes.toInt((byte) 0)); in testToInt() 44 assertEquals(1, UnsignedBytes.toInt((byte) 1)); in testToInt() 45 assertEquals(127, UnsignedBytes.toInt((byte) 127)); in testToInt() 46 assertEquals(128, UnsignedBytes.toInt((byte) -128)); in testToInt() 47 assertEquals(129, UnsignedBytes.toInt((byte) -127)); in testToInt() 48 assertEquals(255, UnsignedBytes.toInt((byte) -1)); in testToInt() 54 UnsignedBytes.checkedCast(UnsignedBytes.toInt(value))); in testCheckedCast() 65 UnsignedBytes.saturatedCast(UnsignedBytes.toInt(value))); in testSaturatedCast()
|
/external/deqp/executor/ |
D | xeTestResultParser.cpp | 39 static inline int toInt (const char* str) in toInt() function 529 image->width = toInt(getAttribute("Width")); in handleElementStart() 530 image->height = toInt(getAttribute("Height")); in handleElementStart() 603 config->bufferSize = toInt(getAttribute("BufferSize")); in handleElementStart() 604 config->redSize = toInt(getAttribute("RedSize")); in handleElementStart() 605 config->greenSize = toInt(getAttribute("GreenSize")); in handleElementStart() 606 config->blueSize = toInt(getAttribute("BlueSize")); in handleElementStart() 607 config->luminanceSize = toInt(getAttribute("LuminanceSize")); in handleElementStart() 608 config->alphaSize = toInt(getAttribute("AlphaSize")); in handleElementStart() 609 config->alphaMaskSize = toInt(getAttribute("AlphaMaskSize")); in handleElementStart() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/ |
D | GridCoordinate.h | 56 …Position = GridResolvedPosition(std::max<int>(0, resolvedOppositePosition.toInt() - positionOffset… in createWithSpanAgainstOpposite() 60 …e(resolvedOppositePosition, GridResolvedPosition(resolvedOppositePosition.toInt() + positionOffset… in createWithSpanAgainstOpposite() 76 …ePosition = std::lower_bound(gridLines.begin(), gridLines.end(), resolvedOppositePosition.toInt()); in createWithInitialNamedSpanAgainstOpposite() 78 …if (*firstLineBeforeOppositePosition > resolvedOppositePosition.toInt() && firstLineBeforeOpposite… in createWithInitialNamedSpanAgainstOpposite() 94 …ePosition = std::upper_bound(gridLines.begin(), gridLines.end(), resolvedOppositePosition.toInt()); in createWithFinalNamedSpanAgainstOpposite() 119 return resolvedFinalPosition.toInt() - resolvedInitialPosition.toInt() + 1; in integerSpan()
|
D | GridResolvedPosition.h | 64 m_integerPosition = adjustGridPositionForSide(integerPosition, side).toInt(); in GridResolvedPosition() 103 size_t toInt() const in toInt() function
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
D | RenderGrid.cpp | 290 GridCell& cell = m_grid[row.toInt()][column.toInt()]; in removeChild() 491 … if (i > 0 && span.resolvedInitialPosition.toInt() <= flexibleSizedTracksIndex[i - 1]) in computeUsedBreadthOfGridTracks() 557 GridTrackSize trackSize = gridTrackSize(direction, resolvedPosition.toInt()); in computeNormalizedFractionBreadth() 561 …tracksForNormalization.append(GridTrackForNormalization(tracks[resolvedPosition.toInt()], trackSiz… in computeNormalizedFractionBreadth() 668 return childSpan.resolvedFinalPosition.toInt() - childSpan.resolvedInitialPosition.toInt() + 1; in gridItemSpan() 724 GridTrackSize trackSize = gridTrackSize(direction, trackPosition.toInt()); in resolveContentBasedTrackSizingFunctionsForItems() 728 …orColumns) ? sizingData.columnTracks[trackPosition.toInt()] : sizingData.rowTracks[trackPosition.t… in resolveContentBasedTrackSizingFunctionsForItems() 737 …s) ? sizingData.columnTracks[trackIndexForSpace.toInt()] : sizingData.rowTracks[trackIndexForSpace… in resolveContentBasedTrackSizingFunctionsForItems() 830 …reGridSize(coordinate.rows.resolvedFinalPosition.toInt(), coordinate.columns.resolvedFinalPosition… in insertItemIntoGrid() 834 m_grid[row.toInt()][column.toInt()].append(&child); in insertItemIntoGrid() [all …]
|
D | RenderGeometryMap.cpp | 142 …ccumulatedOffset=%d,%d\n", m_accumulatedOffset.width().toInt(), m_accumulatedOffset.height().toInt… in dumpSteps() 144 …gName().ascii().data(), m_mapping[i].m_offset.width().toInt(), m_mapping[i].m_offset.height().toIn… in dumpSteps()
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
D | CSSGridTemplateAreasValue.cpp | 55 …ow >= coordinate.rows.resolvedInitialPosition.toInt() && row <= coordinate.rows.resolvedFinalPosit… in stringForPosition() 62 …coordinate.columns.resolvedInitialPosition.toInt() && column <= coordinate.columns.resolvedFinalPo… in stringForPosition()
|
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
D | peers.cpp | 182 int type = ctx_item->data(peer_role_type).toInt(); in context_menu() 189 config_methods = var.toInt(); in context_menu() 194 method = (enum selected_method) var.toInt(); in context_menu() 308 int peer_type = ctx_item->data(peer_role_type).toInt(); in enter_pin() 436 int type = item->data(peer_role_type).toInt(); in add_station() 532 str.section('=', 1).toInt(0, 0); in add_p2p_group_client() 602 id = (*it).mid(pos).toInt(); in add_bss() 801 if (item->data(peer_role_type).toInt() == type) in find_addr_type() 869 if (item == NULL || item->data(peer_role_type).toInt() != in event_notify() 887 if (item && item->data(peer_role_type).toInt() == in event_notify() [all …]
|
D | signalbar.cpp | 38 if (index.data().toInt() > 0) in paint() 39 signal = 0 - (256 - index.data().toInt()); in paint() 41 signal = index.data().toInt(); in paint()
|
/external/deqp/framework/randomshaders/ |
D | rsgVariableValue.cpp | 110 inline int toInt (bool boolVal) { return boolVal ? 1 : 0; } in toInt() function 119 return CompareIntersection()(toInt(aMin), toInt(aMax), toInt(bMin), toInt(bMax)); in operator ()() 137 return CompareIsSubsetOf()(toInt(aMin), toInt(aMax), toInt(bMin), toInt(bMax)); in operator ()()
|
/external/chromium_org/third_party/WebKit/Source/core/html/ |
D | HTMLTableCellElement.cpp | 60 return max(1, min(colSpanValue.toInt(), maxColRowSpan)); in DEFINE_ELEMENT_FACTORY_WITH_TAGNAME() 66 return max(1, min(rowSpanValue.toInt(), maxColRowSpan)); in rowSpan() 94 int widthInt = value.toInt(); in collectStyleForPresentationAttribute() 100 int heightInt = value.toInt(); in collectStyleForPresentationAttribute()
|
D | HTMLTableColElement.cpp | 63 int newSpan = value.toInt(); in parseAttribute() 73 int newWidth = width().toInt(); in parseAttribute()
|
D | HTMLHRElement.cpp | 65 int v = value.toInt(&ok); in collectStyleForPresentationAttribute() 84 int size = si->toInt(); in collectStyleForPresentationAttribute()
|
D | MediaFragmentURIParser.cpp | 264 int value1 = digits1.toInt(); in parseNPTTime() 291 int value2 = digits2.toInt(); in parseNPTTime() 305 value3 = digits3.toInt(); in parseNPTTime()
|
D | HTMLFrameElementBase.cpp | 116 m_marginWidth = value.toInt(); in parseAttribute() 119 m_marginHeight = value.toInt(); in parseAttribute()
|
/external/deqp/modules/egl/ |
D | teglInfoTests.cpp | 64 static int toInt(std::string str) in toInt() function 102 const int stringMajor = toInt(versionTokens[0]); in validateString() 103 const int stringMinor = toInt(versionTokens[1]); in validateString()
|
/external/chromium_org/third_party/WebKit/Source/core/editing/ |
D | CompositionUnderlineRangeFilterTest.cpp | 32 int startOffset = toks[0].toInt(); in initUnderlines() 33 int endOffset = toks[1].toInt(); in initUnderlines()
|
/external/chromium_org/third_party/WebKit/Source/core/paint/ |
D | GridPainter.cpp | 54 … const Vector<RenderBox*, 1>& children = m_renderGrid.gridCell(row.toInt(), column.toInt()); in paintChildren()
|
/external/clang/test/SemaObjCXX/ |
D | objc-container-subscripting.mm | 67 ConvertibleTo<int> toInt, 77 return array[toInt]; 84 ConvertibleTo<int> toInt,
|
/external/chromium_org/third_party/WebKit/Source/core/html/parser/ |
D | HTMLSrcsetParser.cpp | 68 int toInt(const CharType* attribute, bool& isValid) in toInt() function 172 int resourceWidth = it->toInt(attribute, isValid); in parseDescriptors() 181 int resourceHeight = it->toInt(attribute, isValid); in parseDescriptors()
|