HomeSort by relevance Sort by last modified time
    Searched refs:expectedBytes (Results 1 - 23 of 23) sorted by null

  /external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
Latin1Converter.java 75 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)
  /frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
PipeManagerTest.java 81 private void assertDescriptor(ParcelFileDescriptor descriptor, byte[] expectedBytes)
88 assertEquals(expectedBytes.length, stream.read(results));
89 for (int i = 0; i < expectedBytes.length; i++) {
90 assertEquals(expectedBytes[i], results[i]);
MtpManagerTest.java 138 final byte[] expectedBytes = "Hello Android!".getBytes("ascii");
141 stream.write(expectedBytes);
148 .setCompressedSize(expectedBytes.length)
  /external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
PartiallyUncompressingPipeTest.java 46 byte[] expectedBytes = new byte[] {1, 2, 3, 4, 5};
47 stream.pipe(new ByteArrayInputStream(expectedBytes), Mode.COPY);
48 Assert.assertArrayEquals(expectedBytes, outBuffer.toByteArray());
  /frameworks/base/core/tests/coretests/src/android/app/backup/
BackupDataTest.java 179 byte[] expectedBytes = null;
181 expectedBytes = Base64.decode(expected[1], Base64.DEFAULT);
188 (expectedBytes == null ? -1: expectedBytes.length), dataSize);
209 byte[] expectedBytes = null;
211 expectedBytes = Base64.decode(expected[1], Base64.DEFAULT);
218 (expectedBytes == null ? -1: expectedBytes.length), dataSize);
  /libcore/ojluni/src/test/java/time/tck/java/time/
AbstractTCKTest.java 112 protected static void assertSerializedBySer(Object object, byte[] expectedBytes, byte[]... matches) throws Exception {
135 if (expectedBytes.length < 256) {
137 assertEquals(dis.readUnsignedByte(), expectedBytes.length, "blockdata length incorrect");
140 assertEquals(dis.readInt(), expectedBytes.length, "blockdatalong length incorrect");
142 byte[] input = new byte[expectedBytes.length];
144 assertEquals(input, expectedBytes);
  /system/vold/
MoveTask.cpp 86 uint64_t expectedBytes = GetTreeBytes(path);
118 ((deltaFreeBytes * stepProgress) / expectedBytes), 0, stepProgress));
128 uint64_t expectedBytes = GetTreeBytes(fromPath);
131 if (expectedBytes > startFreeBytes) {
132 LOG(ERROR) << "Data size " << expectedBytes << " is too large to fit in free space "
169 ((deltaFreeBytes * stepProgress) / expectedBytes), 0, stepProgress));
  /external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
SinkTester.java 192 byte[] expectedBytes = { 5, 6 };
195 out.write(expectedBytes);
204 assertArrayEquals(expectedBytes, getBytes());
  /libcore/luni/src/test/java/libcore/java/util/zip/
InflaterTest.java 43 byte[] expectedBytes = expected.getBytes("UTF-8");
46 byte[] deflatedBytes = deflate(expectedBytes, dictionary);
70 while (inflatedBytes.size() != expectedBytes.length) {
  /libcore/support/src/test/java/org/apache/harmony/testframework/
SinkTester.java 192 byte[] expectedBytes = { 5, 6 };
195 out.write(expectedBytes);
204 assertArrayEquals(expectedBytes, getBytes());
  /external/guava/guava-tests/test/com/google/common/hash/
AbstractStreamingHasherTest.java 228 void assertInvariants(int expectedBytes) {
229 // we should have seen as many bytes as the next multiple of chunk after expectedBytes - 1
230 assertEquals(out.toByteArray().length, ceilToMultiple(expectedBytes, chunkSize));
231 assertEquals(expectedBytes / chunkSize, processCalled);
232 assertEquals(expectedBytes % chunkSize != 0, remainingCalled);
HashingInputStreamTest.java 98 byte[] expectedBytes = buf.clone();
99 System.arraycopy(testBytes, 0, expectedBytes, 0, testBytes.length);
101 EasyMock.expect(hasher.putBytes(aryEq(expectedBytes), eq(0), eq(4)))
  /frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
CameraPreviewActivity.java 290 int expectedBytes = mPreviewSize.width * mPreviewSize.height *
293 mCamera.addCallbackBuffer(new byte[expectedBytes]);
352 int expectedBytes = mPreviewSize.width * mPreviewSize.height *
355 if (expectedBytes != data.length) {
  /libcore/luni/src/test/java/libcore/io/
MemoryMappedFileTest.java 535 byte[] expectedBytes = new byte[byteCount + 2];
536 expectedBytes[0] = Byte.MAX_VALUE;
537 expectedBytes[byteCount - 1] = Byte.MIN_VALUE;
538 System.arraycopy(underlyingData, posBefore, expectedBytes, 1, byteCount);
543 dst[0] = expectedBytes[0];
544 dst[byteCount - 1] = expectedBytes[byteCount - 1];
548 assertArrayEquals(expectedBytes, dst);
  /libcore/luni/src/test/java/libcore/java/util/
Base64Test.java 427 byte[] expectedBytes = expectedString.getBytes(US_ASCII);
432 checkDecoder_decodeByteBuffer(decoder, inputBuffer, expectedBytes);
437 checkDecoder_decodeByteBuffer(decoder, inputBuffer, expectedBytes);
441 Decoder decoder, ByteBuffer inputBuffer, byte[] expectedBytes) {
452 assertEquals(expectedBytes.length, decodedBuffer.remaining());
453 assertEquals(expectedBytes.length, decodedBuffer.limit());
679 byte[] expectedBytes = expectedString.getBytes(US_ASCII);
684 testEncoder_encodeByteBuffer(encoder, inputBuffer, expectedBytes);
689 testEncoder_encodeByteBuffer(encoder, inputBuffer, expectedBytes);
693 Encoder encoder, ByteBuffer inputBuffer, byte[] expectedBytes) {
    [all...]
  /external/protobuf/java/core/src/test/java/com/google/protobuf/
CodedOutputStreamTest.java 317 final byte[] expectedBytes = TestUtil.getGoldenMessage().toByteArray();
325 assertEqualBytes(outputType, expectedBytes, rawBytes);
333 assertEqualBytes(OutputType.STREAM, expectedBytes, coder.toByteArray());
342 byte[] expectedBytes = TestUtil.getGoldenPackedFieldsMessage().toByteArray();
350 assertEqualBytes(outputType, expectedBytes, rawBytes);
498 final byte[] expectedBytes = expectedBytesStream.toByteArray();
502 Coder coder = outputType.newCoder(expectedBytes.length);
508 assertEqualBytes(outputType, expectedBytes, coder.toByteArray());
  /external/guava/guava-tests/test/com/google/common/io/
FilesTest.java 619 byte[] expectedBytes = new byte[size];
627 random.nextBytes(expectedBytes);
631 map.put(expectedBytes);
635 assertTrue(Arrays.equals(expectedBytes, actualBytes));
641 byte[] expectedBytes = newPreFilledByteArray(1024);
651 map.put(expectedBytes);
658 assertTrue(Arrays.equals(expectedBytes, actualBytes));
  /cts/tests/tests/opengl/src/android/opengl/cts/
FramebufferTest.java 62 final byte expectedBytes[] = new byte[] {
104 assertTrue(Arrays.equals(testBytes, expectedBytes));
115 assertTrue(Arrays.equals(testBytes, expectedBytes));
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
CameraFormatsActivity.java 626 int expectedBytes;
636 expectedBytes = ySize + uvSize * 2;
641 expectedBytes = mPreviewSize.width * mPreviewSize.height *
645 if (expectedBytes != data.length) {
649 expectedBytes + ", but got " +
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
ManageCachePage.java 370 long expectedBytes = mCacheStorageInfo.getExpectedUsedBytes();
384 (int) (expectedBytes * PROGRESS_BAR_MAX / totalBytes));
  /libcore/tzdata/update2/src/test/libcore/tzdata/update2/
TimeZoneDistroInstallerTest.java 566 byte[] expectedBytes = Streams.readFullyNoClose(expected);
567 assertArrayEquals(expectedBytes, actualBytes);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DeflaterTest.java     [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
FileChannelTest.java     [all...]

Completed in 1491 milliseconds