Searched refs:expectedSize (Results 1 - 25 of 66) sorted by relevance

123

/external/dagger2/core/src/main/java/dagger/internal/
H A DCollections.java32 * <em>should</em> hold {@code expectedSize} elements without growth.
34 static <E> LinkedHashSet<E> newLinkedHashSetWithExpectedSize(int expectedSize) { argument
35 return new LinkedHashSet<E>(calculateInitialCapacity(expectedSize));
40 * <em>should</em> hold {@code expectedSize} elements without growth.
42 static <K, V> LinkedHashMap<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) { argument
43 return new LinkedHashMap<K, V>(calculateInitialCapacity(expectedSize));
46 private static int calculateInitialCapacity(int expectedSize) { argument
47 if (expectedSize < 3) {
48 return expectedSize + 1;
50 if (expectedSize < MAX_POWER_OF_TW
[all...]
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
H A DRandomAccessFileOutputStream.java37 * @param expectedSize if greater than or equal to zero, the size to set the file to immediately;
41 public RandomAccessFileOutputStream(File outputFile, long expectedSize) throws IOException { argument
43 if (expectedSize >= 0) {
44 raf.setLength(expectedSize);
45 if (raf.length() != expectedSize) {
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DHashBiMap.java42 * @param expectedSize the expected number of entries
46 public static <K, V> HashBiMap<K, V> create(int expectedSize) { argument
47 return new HashBiMap<K, V>(expectedSize);
66 private HashBiMap(int expectedSize) { argument
68 Maps.<K, V>newHashMapWithExpectedSize(expectedSize),
69 Maps.<V, K>newHashMapWithExpectedSize(expectedSize));
/external/guava/guava/src/com/google/common/collect/
H A DHashBasedTable.java59 final int expectedSize; field in class:HashBasedTable.Factory
60 Factory(int expectedSize) { argument
61 this.expectedSize = expectedSize;
65 return Maps.newHashMapWithExpectedSize(expectedSize);
H A DMinMaxPriorityQueue.java122 * expectedSize} elements.
124 public static Builder<Comparable> expectedSize(int expectedSize) { argument
126 .expectedSize(expectedSize);
145 * MinMaxPriorityQueue#expectedSize(int)} or {@link
163 private int expectedSize = UNSET_EXPECTED_SIZE; field in class:MinMaxPriorityQueue.Builder
172 * expected size of {@code expectedSize}.
174 public Builder<B> expectedSize(int expectedSize) { argument
[all...]
H A DHashBiMap.java64 * @param expectedSize the expected number of entries
67 public static <K, V> HashBiMap<K, V> create(int expectedSize) { argument
68 return new HashBiMap<K, V>(expectedSize);
106 private HashBiMap(int expectedSize) { argument
107 init(expectedSize);
110 private void init(int expectedSize) { argument
111 checkNonnegative(expectedSize, "expectedSize");
112 int tableSize = Hashing.closedTableSize(expectedSize, LOAD_FACTOR);
H A DSets.java189 * that it <i>should</i> hold {@code expectedSize} elements without growth.
194 * @param expectedSize the number of elements you expect to add to the
197 * expectedSize} elements without resizing
198 * @throws IllegalArgumentException if {@code expectedSize} is negative
200 public static <E> HashSet<E> newHashSetWithExpectedSize(int expectedSize) { argument
201 return new HashSet<E>(Maps.capacity(expectedSize));
294 * capacity" that it <i>should</i> hold {@code expectedSize} elements without
299 * @param expectedSize the number of elements you expect to add to the
302 * {@code expectedSize} elements without resizing
303 * @throws IllegalArgumentException if {@code expectedSize} i
306 newLinkedHashSetWithExpectedSize( int expectedSize) argument
[all...]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DMultimapSizeTester.java41 int expectedSize = getNumElements();
43 assertEquals(expectedSize, multimap.size());
50 assertEquals(expectedSize, size);
56 assertEquals(expectedSize, size2);
/external/skia/tests/
H A DOSPathTest.cpp34 size_t expectedSize = dir.size() + filename.size(); local
36 expectedSize++;
38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize);
/external/skqp/tests/
H A DOSPathTest.cpp34 size_t expectedSize = dir.size() + filename.size(); local
36 expectedSize++;
38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize);
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
H A DSurfaceViewRendererOnMeasureTest.java184 final Point expectedSize =
187 expectedSize.x, expectedSize.y, widthSpec, heightSpec);
196 final Point expectedSize =
199 expectedSize.x, expectedSize.y, widthSpec, heightSpec);
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
H A DOpenIntToDoubleHashMap.java108 * @param expectedSize expected number of elements in the map
110 public OpenIntToDoubleHashMap(final int expectedSize) { argument
111 this(expectedSize, Double.NaN);
116 * @param expectedSize expected number of elements in the map
119 public OpenIntToDoubleHashMap(final int expectedSize, argument
121 final int capacity = computeCapacity(expectedSize);
149 * @param expectedSize expected size of the map
152 private static int computeCapacity(final int expectedSize) { argument
153 if (expectedSize == 0) {
156 final int capacity = (int) FastMath.ceil(expectedSize / LOAD_FACTO
[all...]
H A DOpenIntToFieldHashMap.java117 * @param expectedSize expected number of elements in the map
119 public OpenIntToFieldHashMap(final Field<T> field,final int expectedSize) { argument
120 this(field,expectedSize, field.getZero());
126 * @param expectedSize expected number of elements in the map
129 public OpenIntToFieldHashMap(final Field<T> field,final int expectedSize, argument
132 final int capacity = computeCapacity(expectedSize);
161 * @param expectedSize expected size of the map
164 private static int computeCapacity(final int expectedSize) { argument
165 if (expectedSize == 0) {
168 final int capacity = (int) FastMath.ceil(expectedSize / LOAD_FACTO
[all...]
/external/guice/extensions/dagger-adapter/lib/
H A Ddagger-2.0.jarMETA-INF/ META-INF/MANIFEST.MF dagger/ dagger/internal/ dagger/Component.class Component.java ...
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
H A DAbstractTableReadTest.java48 protected void assertSize(int expectedSize) { argument
49 assertEquals(expectedSize, table.size());
/external/guava/guava-tests/test/com/google/common/collect/
H A DAbstractTableReadTest.java50 protected void assertSize(int expectedSize) { argument
51 assertEquals(expectedSize, table.size());
H A DMinMaxPriorityQueueTest.java71 .expectedSize(8)
81 .expectedSize(8)
109 .expectedSize(8)
141 .expectedSize(8)
164 .expectedSize(8)
189 MinMaxPriorityQueue.expectedSize(heapSize).create();
471 MinMaxPriorityQueue.expectedSize(5).create();
503 Ordering.natural().reverse()).expectedSize(5).create();
551 MinMaxPriorityQueue.expectedSize(heapSize).create();
/external/deqp/external/openglcts/modules/glesext/texture_buffer/
H A DesextcTextureBufferMAXSizeValidation.cpp209 glw::GLint expectedSize = static_cast<glw::GLint>(m_max_tex_buffer_size * sizeof(glw::GLubyte)); local
211 if (expectedSize != textureSize)
214 << "Expected GL_TEXTURE_BUFFER_SIZE_EXT parameter value : " << expectedSize << "\n"
/external/guava/guava/src/com/google/common/io/
H A DFiles.java162 InputStream in, long expectedSize) throws IOException {
163 if (expectedSize > Integer.MAX_VALUE) {
165 + expectedSize + " bytes");
170 return expectedSize == 0
172 : ByteStreams.toByteArray(in, (int) expectedSize);
161 readFile( InputStream in, long expectedSize) argument
H A DByteStreams.java126 InputStream in, int expectedSize) throws IOException {
127 byte[] bytes = new byte[expectedSize];
128 int remaining = expectedSize;
131 int off = expectedSize - remaining;
134 // end of stream before reading expectedSize bytes
125 toByteArray( InputStream in, int expectedSize) argument
/external/deqp/external/vulkancts/modules/vulkan/tessellation/
H A DvktTessellationGeometryPointSizeTests.cpp110 bool verifyImage (tcu::TestLog& log, const tcu::ConstPixelBufferAccess image, const int expectedSize) argument
112 log << tcu::TestLog::Message << "Verifying rendered point size. Expecting " << expectedSize << " pixels." << tcu::TestLog::EndMessage;
154 if (pointSize.x() != expectedSize)
156 log << tcu::TestLog::Message << "ERROR! Point size invalid, expected " << expectedSize << ", got " << pointSize.x() << tcu::TestLog::EndMessage;
/external/icu/icu4c/source/test/iotest/
H A Dfiletst.c445 int32_t expectedSize = (int32_t)strlen(testStr); local
464 u_uastrncpy(buffer, testStr, expectedSize+1);
466 u_file_write(buffer, expectedSize, myFile);
484 if (readSize != expectedSize*repetitions) {
485 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitions);
487 if (buffer[(expectedSize*repetitions) + 1] != 0xBEEF) {
506 u_uastrncpy(buffer, testStr, expectedSize+1);
508 u_file_write(buffer, expectedSize, myFile);
529 if (readSize != expectedSize*repetitions) {
530 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetition
603 int32_t expectedSize = (int32_t)strlen(testStr); local
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dusettest.c363 int32_t expectedSize = 0; local
390 ++expectedSize;
468 if (uset_size(set) == expectedSize) {
469 log_verbose("Ok: %s size is %d\n", pat, expectedSize);
472 pat, uset_size(set), expectedSize);
/external/deqp/external/vulkancts/modules/vulkan/image/
H A DvktImageSizeTests.cpp328 const tcu::IVec3 expectedSize = getExpectedImageSizeResult(m_texture); local
330 if (resultSize != expectedSize)
331 return tcu::TestStatus::fail("Incorrect imageSize(): expected " + de::toString(expectedSize) + " but got " + de::toString(resultSize));
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
H A DOpenMapRealVector.java95 * @param expectedSize The expected number of non-zero entries
97 public OpenMapRealVector(int dimension, int expectedSize) { argument
98 this(dimension, expectedSize, DEFAULT_ZERO_TOLERANCE);
104 * @param expectedSize The expected number of non-zero entries
107 public OpenMapRealVector(int dimension, int expectedSize, double epsilon) { argument
109 entries = new OpenIntToDoubleHashMap(expectedSize, 0.0);

Completed in 595 milliseconds

123