Home
last modified time | relevance | path

Searched refs:expectedLength (Results 1 – 25 of 53) sorted by relevance

123

/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DDecoder.java222 public DataHeader readDataHeaderForPointerArray(int expectedLength) { in readDataHeaderForPointerArray() argument
223 return readDataHeaderForArray(BindingsHelper.POINTER_SIZE, expectedLength); in readDataHeaderForPointerArray()
230 public DataHeader readDataHeaderForUnionArray(int expectedLength) { in readDataHeaderForUnionArray() argument
231 return readDataHeaderForArray(BindingsHelper.UNION_SIZE, expectedLength); in readDataHeaderForUnionArray()
328 public boolean[] readBooleans(int offset, int arrayNullability, int expectedLength) { in readBooleans() argument
333 DataHeader si = d.readDataHeaderForBooleanArray(expectedLength); in readBooleans()
352 public byte[] readBytes(int offset, int arrayNullability, int expectedLength) { in readBytes() argument
357 DataHeader si = d.readDataHeaderForArray(1, expectedLength); in readBytes()
367 public short[] readShorts(int offset, int arrayNullability, int expectedLength) { in readShorts() argument
372 DataHeader si = d.readDataHeaderForArray(2, expectedLength); in readShorts()
[all …]
DEncoder.java321 public Encoder encodePointerArray(int length, int offset, int expectedLength) { in encodePointerArray() argument
322 return encoderForArray(BindingsHelper.POINTER_SIZE, length, offset, expectedLength); in encodePointerArray()
328 public Encoder encodeUnionArray(int length, int offset, int expectedLength) { in encodeUnionArray() argument
329 return encoderForArray(BindingsHelper.UNION_SIZE, length, offset, expectedLength); in encodeUnionArray()
335 public void encode(boolean[] v, int offset, int arrayNullability, int expectedLength) { in encode() argument
340 if (expectedLength != BindingsHelper.UNSPECIFIED_ARRAY_LENGTH in encode()
341 && expectedLength != v.length) { in encode()
359 public void encode(byte[] v, int offset, int arrayNullability, int expectedLength) { in encode() argument
364 if (expectedLength != BindingsHelper.UNSPECIFIED_ARRAY_LENGTH in encode()
365 && expectedLength != v.length) { in encode()
[all …]
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/dexbacked/
DBaseDexReaderLeb128Test.java248 private void performTest(int expectedValue, byte[] buf, int expectedLength) { in performTest() argument
252 Assert.assertEquals(expectedLength, reader.getOffset()); in performTest()
256 Assert.assertEquals(expectedLength, reader.getOffset()); in performTest()
259 Assert.assertEquals(expectedLength, reader.peekSmallUleb128Size()); in performTest()
DBaseDexReaderSleb128Test.java255 private void performTest(int expectedValue, byte[] buf, int expectedLength) { in performTest() argument
259 Assert.assertEquals(expectedLength, reader.getOffset()); in performTest()
262 Assert.assertEquals(expectedLength, reader.peekSleb128Size()); in performTest()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DIOUtils.java192 final int expectedLength = b.remaining(); in readFully() local
194 while (read < expectedLength) { in readFully()
201 if (read < expectedLength) { in readFully()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyAgreementSpi.java116 int expectedLength = (p.bitLength() + 7) / 8; in bigIntToBytes() local
120 if (tmp.length == expectedLength) in bigIntToBytes()
125 if (tmp[0] == 0 && tmp.length == expectedLength + 1) in bigIntToBytes()
135 byte[] rv = new byte[expectedLength]; in bigIntToBytes()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyAgreementSpi.java118 int expectedLength = (p.bitLength() + 7) / 8; in bigIntToBytes() local
122 if (tmp.length == expectedLength) in bigIntToBytes()
127 if (tmp[0] == 0 && tmp.length == expectedLength + 1) in bigIntToBytes()
137 byte[] rv = new byte[expectedLength]; in bigIntToBytes()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyAgreementSpi.java118 int expectedLength = (p.bitLength() + 7) / 8; in bigIntToBytes() local
122 if (tmp.length == expectedLength) in bigIntToBytes()
127 if (tmp[0] == 0 && tmp.length == expectedLength + 1) in bigIntToBytes()
137 byte[] rv = new byte[expectedLength]; in bigIntToBytes()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DECCurve.java381 int expectedLength = (getFieldSize() + 7) / 8; in decodePoint() local
399 if (encoded.length != (expectedLength + 1)) in decodePoint()
405 BigInteger X = BigIntegers.fromUnsignedByteArray(encoded, 1, expectedLength); in decodePoint()
417 if (encoded.length != (2 * expectedLength + 1)) in decodePoint()
422 BigInteger X = BigIntegers.fromUnsignedByteArray(encoded, 1, expectedLength); in decodePoint()
423 … BigInteger Y = BigIntegers.fromUnsignedByteArray(encoded, 1 + expectedLength, expectedLength); in decodePoint()
431 if (encoded.length != (2 * expectedLength + 1)) in decodePoint()
436 BigInteger X = BigIntegers.fromUnsignedByteArray(encoded, 1, expectedLength); in decodePoint()
437 … BigInteger Y = BigIntegers.fromUnsignedByteArray(encoded, 1 + expectedLength, expectedLength); in decodePoint()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/ec/
DECCurve.java381 int expectedLength = (getFieldSize() + 7) / 8; in decodePoint() local
399 if (encoded.length != (expectedLength + 1)) in decodePoint()
405 BigInteger X = BigIntegers.fromUnsignedByteArray(encoded, 1, expectedLength); in decodePoint()
417 if (encoded.length != (2 * expectedLength + 1)) in decodePoint()
422 BigInteger X = BigIntegers.fromUnsignedByteArray(encoded, 1, expectedLength); in decodePoint()
423 … BigInteger Y = BigIntegers.fromUnsignedByteArray(encoded, 1 + expectedLength, expectedLength); in decodePoint()
431 if (encoded.length != (2 * expectedLength + 1)) in decodePoint()
436 BigInteger X = BigIntegers.fromUnsignedByteArray(encoded, 1, expectedLength); in decodePoint()
437 … BigInteger Y = BigIntegers.fromUnsignedByteArray(encoded, 1 + expectedLength, expectedLength); in decodePoint()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECCurve.java376 int expectedLength = (getFieldSize() + 7) / 8; in decodePoint() local
394 if (encoded.length != (expectedLength + 1)) in decodePoint()
400 BigInteger X = BigIntegers.fromUnsignedByteArray(encoded, 1, expectedLength); in decodePoint()
412 if (encoded.length != (2 * expectedLength + 1)) in decodePoint()
417 BigInteger X = BigIntegers.fromUnsignedByteArray(encoded, 1, expectedLength); in decodePoint()
418 … BigInteger Y = BigIntegers.fromUnsignedByteArray(encoded, 1 + expectedLength, expectedLength); in decodePoint()
426 if (encoded.length != (2 * expectedLength + 1)) in decodePoint()
431 BigInteger X = BigIntegers.fromUnsignedByteArray(encoded, 1, expectedLength); in decodePoint()
432 … BigInteger Y = BigIntegers.fromUnsignedByteArray(encoded, 1 + expectedLength, expectedLength); in decodePoint()
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/
DVarintReaderTest.java192 VarintReader reader, boolean removeMask, byte[] data, int expectedLength, long expectedValue) in testReadVarint() argument
199 assertThat(input.getPosition()).isEqualTo(expectedLength); in testReadVarint()
204 VarintReader reader, boolean removeMask, byte[] data, int expectedLength, long expectedValue) in testReadVarintFlaky() argument
224 assertThat(input.getPosition()).isEqualTo(expectedLength); in testReadVarintFlaky()
/external/libese/apps/weaver/card/src/com/android/weaver/
DWeaver.java263 private void receiveData(APDU apdu, short expectedLength) { in receiveData() argument
265 if (apdu.getIncomingLength() != expectedLength || bytesRead != expectedLength) { in receiveData()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowMergeCursorTest.java125 private void assertBounds( Cursor[] cursors, int expectedLength ) { in assertBounds() argument
128 assertThat(cursor.getCount()).isEqualTo(expectedLength); in assertBounds()
131 for ( int i = 0; i < expectedLength; i++ ) { in assertBounds()
137 assertThat(cursor.moveToPosition(expectedLength)).isFalse(); in assertBounds()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZip64ExtendedInformationExtraField.java230 final int expectedLength = (hasUncompressedSize ? DWORD : 0) in reparseCentralDirectoryData() local
234 if (rawCentralDirectoryData.length < expectedLength) { in reparseCentralDirectoryData()
239 + expectedLength + " but is " in reparseCentralDirectoryData()
/external/icu/icu4c/source/test/cintltst/
Dspreptst.c761 int32_t srcLength, resultLength, expectedLength; in TestStringPrepProfiles() local
781 srcLength = resultLength = expectedLength = SPREP_PROFILE_TEST_MAX_LENGTH; in TestStringPrepProfiles()
786 expectedLength = u_unescape(profile_test_case[++i], expected, expectedLength); in TestStringPrepProfiles()
801 if (resultLength != expectedLength || u_strcmp(result, expected) != 0) { in TestStringPrepProfiles()
/external/mockftpserver/tags/2.5/src/test/java/org/mockftpserver/stub/command/
DFileRetrCommandHandlerTest.java87 int expectedLength = ((Integer) expected[1]).intValue(); in testHandleCommand()
89 …LOG.info("invocation #" + counter + " expected=" + expectedLength + " actualLength=" + actualLengt… in testHandleCommand()
/external/mockftpserver/tags/2.3/src/test/java/org/mockftpserver/stub/command/
DFileRetrCommandHandlerTest.java86 int expectedLength = ((Integer) expected[1]).intValue(); in testHandleCommand()
88 …LOG.info("invocation #" + counter + " expected=" + expectedLength + " actualLength=" + actualLengt… in testHandleCommand()
/external/mockftpserver/tags/2.2/src/test/java/org/mockftpserver/stub/command/
DFileRetrCommandHandlerTest.java86 int expectedLength = ((Integer) expected[1]).intValue(); in testHandleCommand()
88 …LOG.info("invocation #" + counter + " expected=" + expectedLength + " actualLength=" + actualLengt… in testHandleCommand()
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/command/
DFileRetrCommandHandlerTest.java87 int expectedLength = ((Integer) expected[1]).intValue(); in testHandleCommand()
89 …LOG.info("invocation #" + counter + " expected=" + expectedLength + " actualLength=" + actualLengt… in testHandleCommand()
/external/mockftpserver/tags/2.4/src/test/java/org/mockftpserver/stub/command/
DFileRetrCommandHandlerTest.java87 int expectedLength = ((Integer) expected[1]).intValue(); in testHandleCommand()
89 …LOG.info("invocation #" + counter + " expected=" + expectedLength + " actualLength=" + actualLengt… in testHandleCommand()
/external/mockftpserver/tags/2.0-rc1/src/test/java/org/mockftpserver/stub/command/
DFileRetrCommandHandlerTest.java87 int expectedLength = ((Integer) expected[1]).intValue(); in testHandleCommand()
89 …LOG.info("invocation #" + counter + " expected=" + expectedLength + " actualLength=" + actualLengt… in testHandleCommand()
/external/mockftpserver/tags/2.0/src/test/java/org/mockftpserver/stub/command/
DFileRetrCommandHandlerTest.java88 int expectedLength = ((Integer) expected[1]).intValue(); in testHandleCommand()
90 …LOG.info("invocation #" + counter + " expected=" + expectedLength + " actualLength=" + actualLengt… in testHandleCommand()
/external/mockftpserver/tags/1.2.1/src/test/java/org/mockftpserver/stub/command/
DFileRetrCommandHandlerTest.java88 int expectedLength = ((Integer)expected[1]).intValue(); in testHandleCommand()
90 …LOG.info("invocation #" + counter + " expected=" + expectedLength + " actualLength=" + actualLengt… in testHandleCommand()
/external/mockftpserver/tags/1.1/src/test/java/org/mockftpserver/stub/command/
DFileRetrCommandHandlerTest.java88 int expectedLength = ((Integer)expected[1]).intValue(); in testHandleCommand()
90 …LOG.info("invocation #" + counter + " expected=" + expectedLength + " actualLength=" + actualLengt… in testHandleCommand()

123