/external/dagger2/core/src/main/java/dagger/internal/ |
D | Collections.java | 34 static <E> LinkedHashSet<E> newLinkedHashSetWithExpectedSize(int expectedSize) { in newLinkedHashSetWithExpectedSize() argument 35 return new LinkedHashSet<E>(calculateInitialCapacity(expectedSize)); in newLinkedHashSetWithExpectedSize() 42 static <K, V> LinkedHashMap<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) { in newLinkedHashMapWithExpectedSize() argument 43 return new LinkedHashMap<K, V>(calculateInitialCapacity(expectedSize)); in newLinkedHashMapWithExpectedSize() 46 private static int calculateInitialCapacity(int expectedSize) { in calculateInitialCapacity() argument 47 if (expectedSize < 3) { in calculateInitialCapacity() 48 return expectedSize + 1; in calculateInitialCapacity() 50 if (expectedSize < MAX_POWER_OF_TWO) { in calculateInitialCapacity() 54 return (int) (expectedSize / 0.75F + 1.0F); in calculateInitialCapacity()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | HashBiMap.java | 46 public static <K, V> HashBiMap<K, V> create(int expectedSize) { in create() argument 47 return new HashBiMap<K, V>(expectedSize); in create() 66 private HashBiMap(int expectedSize) { in HashBiMap() argument 68 Maps.<K, V>newHashMapWithExpectedSize(expectedSize), in HashBiMap() 69 Maps.<V, K>newHashMapWithExpectedSize(expectedSize)); in HashBiMap()
|
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/ |
D | RandomAccessFileOutputStream.java | 41 public RandomAccessFileOutputStream(File outputFile, long expectedSize) throws IOException { in RandomAccessFileOutputStream() argument 43 if (expectedSize >= 0) { in RandomAccessFileOutputStream() 44 raf.setLength(expectedSize); in RandomAccessFileOutputStream() 45 if (raf.length() != expectedSize) { in RandomAccessFileOutputStream()
|
/external/guava/guava/src/com/google/common/collect/ |
D | HashBasedTable.java | 59 final int expectedSize; field in HashBasedTable.Factory 60 Factory(int expectedSize) { in Factory() argument 61 this.expectedSize = expectedSize; in Factory() 65 return Maps.newHashMapWithExpectedSize(expectedSize); in get()
|
D | MinMaxPriorityQueue.java | 124 public static Builder<Comparable> expectedSize(int expectedSize) { in expectedSize() method in MinMaxPriorityQueue 126 .expectedSize(expectedSize); in expectedSize() 163 private int expectedSize = UNSET_EXPECTED_SIZE; field in MinMaxPriorityQueue.Builder 174 public Builder<B> expectedSize(int expectedSize) { in expectedSize() method in MinMaxPriorityQueue.Builder 175 checkArgument(expectedSize >= 0); in expectedSize() 176 this.expectedSize = expectedSize; in expectedSize() 207 this, initialQueueSize(expectedSize, maximumSize, initialContents)); in create()
|
D | HashBiMap.java | 67 public static <K, V> HashBiMap<K, V> create(int expectedSize) { in create() argument 68 return new HashBiMap<K, V>(expectedSize); in create() 106 private HashBiMap(int expectedSize) { in HashBiMap() argument 107 init(expectedSize); in HashBiMap() 110 private void init(int expectedSize) { in init() argument 111 checkNonnegative(expectedSize, "expectedSize"); in init() 112 int tableSize = Hashing.closedTableSize(expectedSize, LOAD_FACTOR); in init()
|
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
D | SurfaceViewRendererOnMeasureTest.java | 184 final Point expectedSize = in testFrame1280x720() local 187 expectedSize.x, expectedSize.y, widthSpec, heightSpec); in testFrame1280x720() 196 final Point expectedSize = in testFrame1280x720() local 199 expectedSize.x, expectedSize.y, widthSpec, heightSpec); in testFrame1280x720()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
D | OpenIntToDoubleHashMap.java | 110 public OpenIntToDoubleHashMap(final int expectedSize) { in OpenIntToDoubleHashMap() argument 111 this(expectedSize, Double.NaN); in OpenIntToDoubleHashMap() 119 public OpenIntToDoubleHashMap(final int expectedSize, in OpenIntToDoubleHashMap() argument 121 final int capacity = computeCapacity(expectedSize); in OpenIntToDoubleHashMap() 152 private static int computeCapacity(final int expectedSize) { in computeCapacity() argument 153 if (expectedSize == 0) { in computeCapacity() 156 final int capacity = (int) FastMath.ceil(expectedSize / LOAD_FACTOR); in computeCapacity()
|
D | OpenIntToFieldHashMap.java | 119 public OpenIntToFieldHashMap(final Field<T> field,final int expectedSize) { in OpenIntToFieldHashMap() argument 120 this(field,expectedSize, field.getZero()); in OpenIntToFieldHashMap() 129 public OpenIntToFieldHashMap(final Field<T> field,final int expectedSize, in OpenIntToFieldHashMap() argument 132 final int capacity = computeCapacity(expectedSize); in OpenIntToFieldHashMap() 164 private static int computeCapacity(final int expectedSize) { in computeCapacity() argument 165 if (expectedSize == 0) { in computeCapacity() 168 final int capacity = (int) FastMath.ceil(expectedSize / LOAD_FACTOR); in computeCapacity()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultimapSizeTester.java | 41 int expectedSize = getNumElements(); in testSize() local 43 assertEquals(expectedSize, multimap.size()); in testSize() 50 assertEquals(expectedSize, size); in testSize() 56 assertEquals(expectedSize, size2); in testSize()
|
/external/skia/tests/ |
D | OSPathTest.cpp | 34 size_t expectedSize = dir.size() + filename.size(); in test_dir_with_file() local 36 expectedSize++; in test_dir_with_file() 38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize); in test_dir_with_file()
|
/external/skqp/tests/ |
D | OSPathTest.cpp | 34 size_t expectedSize = dir.size() + filename.size(); in test_dir_with_file() local 36 expectedSize++; in test_dir_with_file() 38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize); in test_dir_with_file()
|
/external/icu/icu4c/source/test/iotest/ |
D | filetst.c | 445 int32_t expectedSize = (int32_t)strlen(testStr); in TestfgetsBuffers() local 464 u_uastrncpy(buffer, testStr, expectedSize+1); in TestfgetsBuffers() 466 u_file_write(buffer, expectedSize, myFile); in TestfgetsBuffers() 484 if (readSize != expectedSize*repetitions) { in TestfgetsBuffers() 485 …log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitio… in TestfgetsBuffers() 487 if (buffer[(expectedSize*repetitions) + 1] != 0xBEEF) { in TestfgetsBuffers() 506 u_uastrncpy(buffer, testStr, expectedSize+1); in TestfgetsBuffers() 508 u_file_write(buffer, expectedSize, myFile); in TestfgetsBuffers() 529 if (readSize != expectedSize*repetitions) { in TestfgetsBuffers() 530 …log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitio… in TestfgetsBuffers() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | usettest.c | 363 int32_t expectedSize = 0; in expectItems() local 390 ++expectedSize; in expectItems() 468 if (uset_size(set) == expectedSize) { in expectItems() 469 log_verbose("Ok: %s size is %d\n", pat, expectedSize); in expectItems() 472 pat, uset_size(set), expectedSize); in expectItems()
|
/external/guava/guava/src/com/google/common/io/ |
D | Files.java | 162 InputStream in, long expectedSize) throws IOException { in readFile() argument 163 if (expectedSize > Integer.MAX_VALUE) { in readFile() 165 + expectedSize + " bytes"); in readFile() 170 return expectedSize == 0 in readFile() 172 : ByteStreams.toByteArray(in, (int) expectedSize); in readFile()
|
D | ByteStreams.java | 126 InputStream in, int expectedSize) throws IOException { in toByteArray() argument 127 byte[] bytes = new byte[expectedSize]; in toByteArray() 128 int remaining = expectedSize; in toByteArray() 131 int off = expectedSize - remaining; in toByteArray()
|
/external/deqp/external/openglcts/modules/glesext/texture_buffer/ |
D | esextcTextureBufferMAXSizeValidation.cpp | 209 glw::GLint expectedSize = static_cast<glw::GLint>(m_max_tex_buffer_size * sizeof(glw::GLubyte)); in iterate() local 211 if (expectedSize != textureSize) in iterate() 214 << "Expected GL_TEXTURE_BUFFER_SIZE_EXT parameter value : " << expectedSize << "\n" in iterate()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | MinMaxPriorityQueueTest.java | 71 .expectedSize(8) in testCreation_expectedSize() 81 .expectedSize(8) in testCreation_expectedSize_comparator() 109 .expectedSize(8) in testCreation_expectedSize_maximumSize() 141 .expectedSize(8) in testCreation_expectedSize_withContents() 164 .expectedSize(8) in testCreation_allOptions() 189 MinMaxPriorityQueue.expectedSize(heapSize).create(); in testHeapIntact() 471 MinMaxPriorityQueue.expectedSize(5).create(); in testRemoveFromStringHeap() 503 Ordering.natural().reverse()).expectedSize(5).create(); in testCreateWithCapacityAndOrdering() 551 MinMaxPriorityQueue.expectedSize(heapSize).create(); in testRemoveAt()
|
D | AbstractTableReadTest.java | 50 protected void assertSize(int expectedSize) { in assertSize() argument 51 assertEquals(expectedSize, table.size()); in assertSize()
|
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
D | vktTessellationGeometryPointSizeTests.cpp | 113 …ol verifyImage (tcu::TestLog& log, const tcu::ConstPixelBufferAccess image, const int expectedSize) in verifyImage() argument 115 …log << tcu::TestLog::Message << "Verifying rendered point size. Expecting " << expectedSize << " p… in verifyImage() 157 if (pointSize.x() != expectedSize) in verifyImage() 159 …log << tcu::TestLog::Message << "ERROR! Point size invalid, expected " << expectedSize << ", got "… in verifyImage()
|
/external/lz4/examples/ |
D | frameCompress.c | 34 size_t const expectedSize = eltSize * nbElt; in safe_fwrite() local 35 assert(expectedSize / nbElt == eltSize); /* check overflow */ in safe_fwrite() 36 if (writtenSize < expectedSize) { in safe_fwrite()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | AbstractTableReadTest.java | 48 protected void assertSize(int expectedSize) { in assertSize() argument 49 assertEquals(expectedSize, table.size()); in assertSize()
|
/external/guice/extensions/dagger-adapter/lib/ |
D | dagger-2.4.jar | META-INF/
META-INF/MANIFEST.MF
dagger/
dagger/internal/
dagger/ ... |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | PrivateKeyFactory.java | 318 private static byte[] getRawKey(PrivateKeyInfo keyInfo, int expectedSize) in getRawKey() argument 322 if (expectedSize != result.length) in getRawKey()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz77support/ |
D | LZ77CompressorTest.java | 308 private static final void assertSize(int expectedSize, List<LZ77Compressor.Block> blocks) { in assertSize() argument 309 assertEquals(expectedSize, blocks.size()); in assertSize() 310 assertEquals(LZ77Compressor.Block.BlockType.EOD, blocks.get(expectedSize - 1).getType()); in assertSize()
|