HomeSort by relevance Sort by last modified time
    Searched refs:expectedSize (Results 1 - 25 of 274) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/dagger2/core/src/main/java/dagger/internal/
Collections.java 32 * <em>should</em> hold {@code expectedSize} elements without growth.
34 static <E> LinkedHashSet<E> newLinkedHashSetWithExpectedSize(int expectedSize) {
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) {
43 return new LinkedHashMap<K, V>(calculateInitialCapacity(expectedSize));
46 private static int calculateInitialCapacity(int expectedSize) {
47 if (expectedSize < 3) {
48 return expectedSize + 1;
50 if (expectedSize < MAX_POWER_OF_TWO)
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
HashBiMap.java 42 * @param expectedSize the expected number of entries
46 public static <K, V> HashBiMap<K, V> create(int expectedSize) {
47 return new HashBiMap<K, V>(expectedSize);
66 private HashBiMap(int expectedSize) {
68 Maps.<K, V>newHashMapWithExpectedSize(expectedSize),
69 Maps.<V, K>newHashMapWithExpectedSize(expectedSize));
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
ColorSpace.java 105 private static void expectInputSize(ByteBuffer input, int expectedSize) {
106 if (input.remaining() < expectedSize) {
108 + "and height! Expected: " + expectedSize + ", Got: " + input.remaining()
113 private static void expectOutputSize(ByteBuffer output, int expectedSize) {
114 if (output.remaining() < expectedSize) {
116 + "and height! Expected: " + expectedSize + ", Got: " + output.remaining()
  /frameworks/av/drm/mediadrm/plugins/clearkey/
InitDataParser.cpp 77 uint32_t expectedSize = initData.size();
78 expectedSize = htonl(expectedSize);
79 if (memcmp(&initData[readPosition], &expectedSize,
80 sizeof(expectedSize)) != 0) {
83 readPosition += sizeof(expectedSize);
  /external/guava/guava/src/com/google/common/collect/
HashBasedTable.java 59 final int expectedSize;
60 Factory(int expectedSize) {
61 this.expectedSize = expectedSize;
65 return Maps.newHashMapWithExpectedSize(expectedSize);
MinMaxPriorityQueue.java 122 * expectedSize} elements.
124 public static Builder<Comparable> expectedSize(int expectedSize) {
126 .expectedSize(expectedSize);
145 * MinMaxPriorityQueue#expectedSize(int)} or {@link
163 private int expectedSize = UNSET_EXPECTED_SIZE;
172 * expected size of {@code expectedSize}.
174 public Builder<B> expectedSize(int expectedSize) {
    [all...]
HashBiMap.java 64 * @param expectedSize the expected number of entries
67 public static <K, V> HashBiMap<K, V> create(int expectedSize) {
68 return new HashBiMap<K, V>(expectedSize);
106 private HashBiMap(int expectedSize) {
107 init(expectedSize);
110 private void init(int expectedSize) {
111 checkNonnegative(expectedSize, "expectedSize");
112 int tableSize = Hashing.closedTableSize(expectedSize, LOAD_FACTOR);
  /packages/services/Car/libvehiclenetwork/native/
VehicleNetworkProtoUtil.cpp 60 int expectedSize = in.value_type - VEHICLE_VALUE_TYPE_FLOAT + 1;
61 for (int i = 0; i < expectedSize; i++) {
76 int expectedSize = in.value_type - VEHICLE_VALUE_TYPE_INT32 + 1;
77 for (int i = 0; i < expectedSize; i++) {
85 int expectedSize = in.value_type - VEHICLE_VALUE_TYPE_ZONED_INT32 + 1;
86 for (int i = 0; i < expectedSize; i++) {
94 int expectedSize = in.value_type - VEHICLE_VALUE_TYPE_ZONED_FLOAT + 1;
95 for (int i = 0; i < expectedSize; i++) {
156 int expectedSize = out.value_type - VEHICLE_VALUE_TYPE_FLOAT + 1;
157 if (in.float_values_size() != expectedSize) {
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
SpliteratorTester.java 171 public static <T> void runSizedTests(Spliterator<T> spliterator, int expectedSize) {
172 assertEquals(expectedSize, spliterator.estimateSize());
173 assertEquals(expectedSize, spliterator.getExactSizeIfKnown());
176 public static <T> void runSizedTests(Iterable<T> spliterable, int expectedSize) {
177 runSizedTests(spliterable.spliterator(), expectedSize);
180 public static <T> void runSubSizedTests(Spliterator<T> spliterator, int expectedSize) {
181 assertEquals(expectedSize, spliterator.estimateSize());
182 assertEquals(expectedSize, spliterator.getExactSizeIfKnown());
186 assertEquals(expectedSize, spliterator.estimateSize() + split1.estimateSize());
187 assertEquals(expectedSize, spliterator.getExactSizeIfKnown() + split1.getExactSizeIfKnown())
    [all...]
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
MultimapSizeTester.java 41 int expectedSize = getNumElements();
43 assertEquals(expectedSize, multimap.size());
50 assertEquals(expectedSize, size);
56 assertEquals(expectedSize, size2);
  /cts/tests/tests/dpi/src/android/dpi/cts/
ConfigurationScreenLayoutTest.java 46 int expectedSize = expectedScreenLayout & Configuration.SCREENLAYOUT_SIZE_MASK;
56 assertEquals("Expected screen size value of " + expectedSize + " but got " + actualSize
57 + " for orientation " + ORIENTATIONS[i], expectedSize, actualSize);
  /external/skia/tests/
OSPathTest.cpp 34 size_t expectedSize = dir.size() + filename.size();
36 expectedSize++;
38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize);
  /external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
SurfaceViewRendererOnMeasureTest.java 184 final Point expectedSize =
187 expectedSize.x, expectedSize.y, widthSpec, heightSpec);
196 final Point expectedSize =
199 expectedSize.x, expectedSize.y, widthSpec, heightSpec);
  /libcore/dom/src/test/java/org/w3c/domts/
DOMTestInnerClass.java 61 public void assertSize(String assertID, int expectedSize, NodeList collection) {
62 test.assertSize(assertID, expectedSize, collection);
65 public void assertSize(String assertID, int expectedSize,
67 test.assertSize(assertID, expectedSize, collection);
70 public void assertSize(String assertID, int expectedSize,
72 test.assertSize(assertID, expectedSize, collection);
DOMTestFramework.java 59 int expectedSize,
65 int expectedSize,
71 int expectedSize,
DOMTestCase.java 236 * @param expectedSize
243 int expectedSize,
245 framework.assertSize(this, assertID, expectedSize, collection);
253 * @param expectedSize
260 int expectedSize,
262 framework.assertSize(this, assertID, expectedSize, collection);
270 * @param expectedSize
277 int expectedSize,
279 framework.assertSize(this, assertID, expectedSize, collection);
  /external/apache-commons-math/src/main/java/org/apache/commons/math/util/
OpenIntToDoubleHashMap.java 108 * @param expectedSize expected number of elements in the map
110 public OpenIntToDoubleHashMap(final int expectedSize) {
111 this(expectedSize, Double.NaN);
116 * @param expectedSize expected number of elements in the map
119 public OpenIntToDoubleHashMap(final int expectedSize,
121 final int capacity = computeCapacity(expectedSize);
149 * @param expectedSize expected size of the map
152 private static int computeCapacity(final int expectedSize) {
153 if (expectedSize == 0) {
156 final int capacity = (int) FastMath.ceil(expectedSize / LOAD_FACTOR)
    [all...]
OpenIntToFieldHashMap.java 117 * @param expectedSize expected number of elements in the map
119 public OpenIntToFieldHashMap(final Field<T> field,final int expectedSize) {
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,
132 final int capacity = computeCapacity(expectedSize);
161 * @param expectedSize expected size of the map
164 private static int computeCapacity(final int expectedSize) {
165 if (expectedSize == 0) {
168 final int capacity = (int) FastMath.ceil(expectedSize / LOAD_FACTOR)
    [all...]
  /libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
GroupByOpTest.java 102 int expectedSize;
104 MapperData(Function<T, K> m, int expectedSize) {
106 this.expectedSize = expectedSize;
147 assertEquals(result.keySet().size(), md.expectedSize);
  /frameworks/base/core/java/android/view/inputmethod/
InputMethodSubtypeArray.java 212 private static byte[] decompress(final byte[] data, final int expectedSize) {
215 final byte [] result = new byte[expectedSize];
225 if (expectedSize != totalReadBytes) {
  /external/guice/extensions/dagger-adapter/lib/
dagger-2.0.jar 
  /prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.0/
dagger-2.0.jar 
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
AbstractTableReadTest.java 48 protected void assertSize(int expectedSize) {
49 assertEquals(expectedSize, table.size());
  /external/guava/guava-tests/test/com/google/common/collect/
AbstractTableReadTest.java 50 protected void assertSize(int expectedSize) {
51 assertEquals(expectedSize, table.size());
  /external/guava/guava/src/com/google/common/io/
Files.java 162 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);

Completed in 776 milliseconds

1 2 3 4 5 6 7 8 91011