Searched refs:expectedBytes (Results 1 - 5 of 5) sorted by relevance

/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DLatin1Converter.java75 int expectedBytes = 0;
95 expectedBytes = -1;
97 for (; expectedBytes < 8 && (test & 0x80) == 0x80; test = test << 1)
99 expectedBytes++;
113 if (expectedBytes > 0 && (b & 0xC0) == 0x80)
117 expectedBytes--;
119 if (expectedBytes == 0)
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
H A DSinkTester.java192 byte[] expectedBytes = { 5, 6 };
195 out.write(expectedBytes);
204 assertArrayEquals(expectedBytes, getBytes());
/external/guava/guava-tests/test/com/google/common/hash/
H A DAbstractStreamingHasherTest.java229 void assertInvariants(int expectedBytes) { argument
230 // we should have seen as many bytes as the next multiple of chunk after expectedBytes - 1
231 assertEquals(out.toByteArray().length, ceilToMultiple(expectedBytes, chunkSize));
232 assertEquals(expectedBytes / chunkSize, processCalled);
233 assertEquals(expectedBytes % chunkSize != 0, remainingCalled);
H A DHashingInputStreamTest.java97 byte[] expectedBytes = buf.clone();
98 System.arraycopy(testBytes, 0, expectedBytes, 0, testBytes.length);
100 EasyMock.expect(hasher.putBytes(aryEq(expectedBytes), eq(0), eq(4)))
/external/guava/guava-tests/test/com/google/common/io/
H A DFilesTest.java649 byte[] expectedBytes = new byte[size];
657 random.nextBytes(expectedBytes);
661 map.put(expectedBytes);
665 assertTrue(Arrays.equals(expectedBytes, actualBytes));
671 byte[] expectedBytes = newPreFilledByteArray(1024);
681 map.put(expectedBytes);
688 assertTrue(Arrays.equals(expectedBytes, actualBytes));

Completed in 231 milliseconds