Searched refs:toInt (Results 1 - 25 of 88) sorted by relevance

1234

/external/guava/guava/src/com/google/common/hash/
H A DMurmur3_128HashFunction.java17 import static com.google.common.primitives.UnsignedBytes.toInt;
92 k2 ^= (long) toInt(bb.get(14)) << 48; // fall through
94 k2 ^= (long) toInt(bb.get(13)) << 40; // fall through
96 k2 ^= (long) toInt(bb.get(12)) << 32; // fall through
98 k2 ^= (long) toInt(bb.get(11)) << 24; // fall through
100 k2 ^= (long) toInt(bb.get(10)) << 16; // fall through
102 k2 ^= (long) toInt(bb.get(9)) << 8; // fall through
104 k2 ^= (long) toInt(bb.get(8)) << 0;
111 k1 ^= (long) toInt(bb.get(7)) << 56; // fall through
113 k1 ^= (long) toInt(b
[all...]
H A DMurmur3_32HashFunction.java17 import static com.google.common.primitives.UnsignedBytes.toInt;
73 k1 ^= toInt(bb.get(2)) << 16;
76 k1 ^= toInt(bb.get(1)) << 8;
79 k1 ^= toInt(bb.get(0));
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/jgss/
H A DGSSUtilsTest.java29 int j = GSSUtils.toInt(bytes, 0 , 1);
34 j = GSSUtils.toInt(bytes, 0 , 1);
39 j = GSSUtils.toInt(bytes, 0, 2);
44 j = GSSUtils.toInt(bytes, 0, 2);
49 j = GSSUtils.toInt(bytes, 0 , 3);
54 j = GSSUtils.toInt(bytes, 0, 4);
/external/guava/guava/src/com/google/common/primitives/
H A DUnsignedBytes.java63 public static int toInt(byte value) { method in class:UnsignedBytes
112 return toInt(a) - toInt(b);
125 int min = toInt(array[0]);
127 int next = toInt(array[i]);
145 int max = toInt(array[0]);
147 int next = toInt(array[i]);
172 builder.append(toInt(array[0]));
174 builder.append(separator).append(toInt(array[i]));
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/
H A Dsignalbar.cpp38 if (index.data().toInt() > 0)
39 signal = 0 - (256 - index.data().toInt());
41 signal = index.data().toInt();
H A Dpeers.cpp182 int type = ctx_item->data(peer_role_type).toInt();
189 config_methods = var.toInt();
194 method = (enum selected_method) var.toInt();
308 int peer_type = ctx_item->data(peer_role_type).toInt();
436 int type = item->data(peer_role_type).toInt();
532 str.section('=', 1).toInt(0, 0);
602 id = (*it).mid(pos).toInt();
801 if (item->data(peer_role_type).toInt() == type)
869 if (item == NULL || item->data(peer_role_type).toInt() !=
887 if (item && item->data(peer_role_type).toInt()
[all...]
/external/guava/guava-tests/test/com/google/common/primitives/
H A DUnsignedBytesTest.java43 assertEquals(0, UnsignedBytes.toInt((byte) 0));
44 assertEquals(1, UnsignedBytes.toInt((byte) 1));
45 assertEquals(127, UnsignedBytes.toInt((byte) 127));
46 assertEquals(128, UnsignedBytes.toInt((byte) -128));
47 assertEquals(129, UnsignedBytes.toInt((byte) -127));
48 assertEquals(255, UnsignedBytes.toInt((byte) -1));
54 UnsignedBytes.checkedCast(UnsignedBytes.toInt(value)));
65 UnsignedBytes.saturatedCast(UnsignedBytes.toInt(value)));
/external/webkit/Source/WebCore/html/
H A DHTMLTableColElement.cpp63 m_span = !attr->isNull() ? attr->value().toInt() : 1;
71 int newWidth = width().toInt();
H A DHTMLDataGridCellElement.cpp90 return getAttribute(progressAttr).toInt();
H A DHTMLTableCellElement.cpp92 m_rowSpan = max(1, min(attr->value().toInt(), maxRowspan));
96 m_colSpan = max(1, attr->value().toInt());
107 int widthInt = attr->value().toInt();
113 int heightInt = attr->value().toInt();
H A DDateComponents.cpp112 static bool toInt(const UChar* src, unsigned length, unsigned parseStart, unsigned parseLength, int& out) function in namespace:WebCore
140 if (!toInt(src, length, start, digitsLength, year))
309 if (!toInt(src, length, index, 2, hour) || hour < 0 || hour > 23)
317 if (!toInt(src, length, index, 2, minute) || minute < 0 || minute > 59)
344 if (!toInt(src, length, index, 2, month) || month < 1 || month > 12)
369 if (!toInt(src, length, index, 2, day) || day < 1 || day > maxDayOfMonth(m_year, m_month))
397 if (!toInt(src, length, index, 2, week) || week < 1 || week > maxWeekNumberInYear())
411 if (!toInt(src, length, start, 2, hour) || hour < 0 || hour > 23)
421 if (!toInt(src, length, index, 2, minute) || minute < 0 || minute > 59)
430 if (toInt(sr
[all...]
H A DHTMLMarqueeElement.cpp134 int scrollAmount = fastGetAttribute(scrollamountAttr).toInt(&ok);
149 int scrollDelay = fastGetAttribute(scrolldelayAttr).toInt(&ok);
164 int loopValue = fastGetAttribute(loopAttr).toInt(&ok);
H A DHTMLHRElement.cpp79 int v = attr->value().toInt(&ok);
100 int size = si->toInt();
H A DHTMLFrameElement.cpp86 m_frameBorder = attr->value().toInt();
H A DHTMLOListElement.cpp78 int start = attr->value().toInt(&canParse);
H A DHTMLLIElement.cpp66 m_requestedValue = attr->value().toInt();
H A DHTMLImageElement.cpp115 addCSSLength(attr, CSSPropertyBorderWidth, attr->value().toInt() ? attr->value() : "0");
265 int width = getAttribute(widthAttr).toInt(&ok);
288 int height = getAttribute(heightAttr).toInt(&ok);
/external/webkit/Tools/MiniBrowser/qt/
H A DMiniBrowserApplication.cpp89 m_robotTimeoutSeconds = takeOptionValue(&args, robotTimeoutIndex).toInt();
93 m_robotExtraTimeSeconds = takeOptionValue(&args, robotExtraTimeIndex).toInt();
/external/webkit/Source/WebCore/wml/
H A DWMLTimerElement.cpp63 if (value().toInt() <= 0)
127 interval = pageState->getVariable(m_name).toInt();
131 interval = value().toInt();
/external/webkit/Source/WebKit/qt/tests/qdeclarativewebview/
H A Dtst_qdeclarativewebview.cpp110 QCOMPARE(wv->property("preferredWidth").toInt(), 0);
112 QCOMPARE(wv->property("preferredHeight").toInt(), 0);
114 QCOMPARE(wv->property("status").toInt(), int(QDeclarativeWebView::Ready));
130 QCOMPARE(wv->property("pixelCacheSize").toInt(), 0);
188 QCOMPARE(wv->property("status").toInt(), int(QDeclarativeWebView::Ready));
204 QCOMPARE(wv->property("status").toInt(), int(QDeclarativeWebView::Ready));
218 QCOMPARE(wv->property("status").toInt(), int(QDeclarativeWebView::Ready));
242 QCOMPARE(callEvaluateJavaScript(wv, "123").toInt(), 123);
264 QCOMPARE(wv->property("status").toInt(), int(QDeclarativeWebView::Error));
348 QCOMPARE(wv->property("prefWidth").toInt(), 60
[all...]
/external/webkit/Source/WebKit/qt/tests/hybridPixmap/
H A Dwidget.cpp50 QCOMPARE(ui->lbl2->size().width(), ui->webView->page()->mainFrame()->findFirstElement("#img1").evaluateJavaScript("this.width").toInt());
51 QCOMPARE(ui->lbl3->size().width(), ui->webView->page()->mainFrame()->findFirstElement("#img2").evaluateJavaScript("this.width").toInt());
/external/webkit/Source/WebKit2/Platform/CoreIPC/
H A DMessageID.h160 unsigned toInt() const { return m_messageID; } function in class:CoreIPC::MessageID
/external/webkit/Tools/QtTestBrowser/
H A Dmain.cpp298 windowOptions.remoteInspectorPort = takeOptionValue(&args, remoteInspectorPortIndex).toInt();
317 m_robotTimeoutSeconds = takeOptionValue(&args, robotTimeoutIndex).toInt();
321 m_robotExtraTimeSeconds = takeOptionValue(&args, robotExtraTimeIndex).toInt();
/external/webkit/Source/WebKit/qt/tests/qwebpage/
H A Dtst_qwebpage.cpp286 QVERIFY(empty.type() == QVariant::Double && empty.toInt() != 0);
294 QVERIFY(empty.type() == QVariant::Double && empty.toInt() != 1);
963 return mainFrame()->evaluateJavaScript("window.getSelection().getRangeAt(0).startOffset").toInt();
967 return mainFrame()->evaluateJavaScript("window.getSelection().getRangeAt(0).endOffset").toInt();
1407 QCOMPARE(page.navigations.at(0).request.attribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferNetwork).toInt(),
1409 QCOMPARE(page.navigations.at(1).request.attribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferNetwork).toInt(),
1411 QCOMPARE(page.navigations.at(2).request.attribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferNetwork).toInt(),
1617 QCOMPARE(20, variant.toInt());
1626 int anchorPosition = variant.toInt();
1631 int cursorPosition = variant.toInt();
[all...]
/external/webkit/Source/WebCore/dom/
H A DInputElement.cpp219 data.setSize(attribute->isNull() ? InputElement::s_defaultSize : attribute->value().toInt());
227 int maxLength = attribute->isNull() ? InputElement::s_maximumLength : attribute->value().toInt();
401 unsigned leftLen = String(&formatCode).toInt();

Completed in 341 milliseconds

1234