Searched refs:byteArray (Results 1 - 23 of 23) sorted by relevance

/external/webkit/Source/WebCore/html/canvas/
H A DCanvasPixelArray.cpp39 PassRefPtr<CanvasPixelArray> CanvasPixelArray::create(PassRefPtr<ByteArray> byteArray) argument
41 return adoptRef(new CanvasPixelArray(byteArray));
49 CanvasPixelArray::CanvasPixelArray(PassRefPtr<ByteArray> byteArray) argument
50 : m_data(byteArray)
H A DCanvasRenderingContext2D.cpp1676 RefPtr<ByteArray> byteArray = buffer->getUnmultipliedImageData(scaledRect);
1677 if (!byteArray)
1680 return ImageData::create(scaledRect.size(), byteArray.release());
/external/webkit/Source/WebCore/html/
H A DImageData.cpp39 PassRefPtr<ImageData> ImageData::create(const IntSize& size, PassRefPtr<ByteArray> byteArray) argument
41 return adoptRef(new ImageData(size, byteArray));
50 ImageData::ImageData(const IntSize& size, PassRefPtr<ByteArray> byteArray) argument
52 , m_data(CanvasPixelArray::create(byteArray))
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DBufferedOutputStreamTest.java168 byte[] byteArray = new byte[10];
234 bos.write(byteArray, -1, -1);
241 bos.write(byteArray, -1, 0);
248 bos.write(byteArray, -1, 1);
255 bos.write(byteArray, 0, -1);
262 bos.write(byteArray, 0, byteArray.length + 1);
269 bos.write(byteArray, 1, byteArray.length);
276 bos.write(byteArray,
[all...]
H A DDataInputStreamTest.java162 byte[] byteArray = new byte[fileString.length()];
165 is.readFully(byteArray, -1, -1);
172 is.readFully(byteArray, 0, -1);
179 is.readFully(byteArray, 1, -1);
185 is.readFully(byteArray, -1, 0);
186 is.readFully(byteArray, 0, 0);
187 is.readFully(byteArray, 1, 0);
190 is.readFully(byteArray, -1, 1);
196 is.readFully(byteArray, 0, 1);
197 is.readFully(byteArray,
[all...]
H A DRandomAccessFileTest.java531 byte[] byteArray = new byte[10];
569 raf.write(byteArray, -1, -1);
576 raf.write(byteArray, -1, 0);
583 raf.write(byteArray, -1, 1);
590 raf.write(byteArray, 0, -1);
596 raf.write(byteArray, 0, 0);
597 raf.write(byteArray, 0, byteArray.length);
598 raf.write(byteArray, 1, 0);
599 raf.write(byteArray, byteArra
[all...]
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
H A DCheckedOutputStreamTest.java54 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 };
59 chkOut.write(byteArray[4]);
66 chkOut.write(byteArray, 5, 4);
86 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 };
91 for (byte element : byteArray) {
110 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 };
115 chkOut.write(byteArray, 4, 5);
121 chkOut.write(byteArray, 4, 6);
H A DDeflaterTest.java71 byte byteArray[] = { 1, 3, 4, 7, 8 };
76 defl.setInput(byteArray);
86 assertEquals(byteArray.length, totalIn);
100 for (int i = 0; i < byteArray.length; i++) {
101 assertEquals(byteArray[i], outPutInf[i]);
104 0, outPutInf[byteArray.length]);
113 byte byteArray[] = { 5, 2, 3, 7, 8 };
120 defl.setInput(byteArray);
130 assertEquals(byteArray.length, totalIn);
144 for (int i = 0; i < byteArray
[all...]
H A DAdler32Test.java107 byte byteArray[] = { 1, 2 };
109 adl.update(byteArray);
130 byte[] byteArray = { 1, 2, 3 };
132 int off = 2;// accessing the 2nd element of byteArray
136 adl.update(byteArray, off, len);
144 adl.update(byteArray, off, lenError);
152 adl.update(byteArray, offError, len);
H A DCRC32Test.java123 byte byteArray[] = { 1, 2 };
125 crc.update(byteArray);
147 byte[] byteArray = { 1, 2, 3 };
149 int off = 2;// accessing the 2nd element of byteArray
153 crc.update(byteArray, off, len);
161 crc.update(byteArray, off, lenError);
169 crc.update(byteArray, offError, len);
H A DDeflaterOutputStreamTest.java68 byte byteArray[] = { 1, 3, 4, 7, 8 };
71 deflate.setInput(byteArray);
87 byte byteArray[] = { 1, 3, 4, 7, 8 };
105 dos.write(byteArray);
136 byte byteArray[] = { 1, 3, 4, 7, 8, 3, 6 };
169 dos.write(byteArray);
189 byte byteArray[] = {1, 3, 4, 6};
190 dos.write(byteArray);
243 byte byteArray[] = { 1, 3, 4, 6 };
244 dos.write(byteArray);
[all...]
H A DGZIPOutputStreamTest.java88 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' };
96 outGZIP.write(byteArray, 0, 1);
115 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' };
122 outGZIP.write(byteArray, 0, 1);
139 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' };
143 outGZIP.write(byteArray, 0, 10);
152 outGZIP.write(byteArray, 0, 11);
H A DInflaterTest.java43 byte byteArray[] = { 5, 2, 3, 7, 8 };
47 inflate.setInput(byteArray);
51 inflate.setInput(byteArray);
68 byte byteArray[] = { 1, 3, 4, 7, 8, 'e', 'r', 't', 'y', '5' };
85 for (int i = 0; i < byteArray.length; i++) {
88 outPutInf[i], byteArray[i]);
91 0, outPutInf[byteArray.length]);
119 byte byteArray[] = { 1, 3, 5, 6, 7 };
123 inflate.setInput(byteArray);
136 byte byteArray[]
[all...]
H A DInflaterInputStreamTest.java84 byte byteArray[] = new byte[100];
90 inflatIP.read(byteArray, 0, 5);// only suppose to read in 5 bytes
/external/apache-http/src/org/apache/commons/codec/binary/
H A DHex.java184 byte[] byteArray = object instanceof String ? ((String) object).getBytes() : (byte[]) object;
185 return encodeHex(byteArray);
/external/protobuf/java/src/main/java/com/google/protobuf/
H A DByteString.java346 final byte[] byteArray = bout.toByteArray();
347 return new ByteString(byteArray);
/external/icu4c/tools/genrb/
H A Dwrtjava.c450 uint8_t* byteArray = NULL; local
457 byteArray = res->u.fBinaryValue.fData;
471 if (byteArray[byteIterator] < 128)
473 sprintf(byteBuffer, byteDecl, byteArray[byteIterator]);
477 sprintf(byteBuffer, byteDecl, (byteArray[byteIterator]-256));
/external/webkit/Source/WebCore/bridge/jni/jsc/
H A DJavaArrayJSC.cpp181 jbyteArray byteArray = static_cast<jbyteArray>(javaArray()); local
183 env->GetByteArrayRegion(byteArray, index, 1, &aByte);
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A DArraysTest.java52 static byte[] byteArray; field in class:ArraysTest
116 Arrays.binarySearch(byteArray, counter) == counter);
123 byteArray[counter] -= 50;
127 Arrays.binarySearch(byteArray, (byte) (counter - 50)) == counter);
1895 byteArray = new byte[arraySize];
1905 byteArray[counter] = (byte) counter;
1927 Arrays.binarySearch(byteArray, counter, arraySize, counter) == counter);
1931 Arrays.binarySearch(byteArray, 0, arraySize, (byte) -1));
1934 Arrays.binarySearch(byteArray, (byte) arraySize) == -(arraySize + 1));
1936 byteArray[counte
[all...]
/external/webkit/Source/WebCore/bridge/qt/
H A Dqt_pixmapruntime.cpp119 QByteArray byteArray; local
120 QBuffer buffer(&byteArray);
122 const QString encodedString = QLatin1String("data:image/png;base64,") + QLatin1String(byteArray.toBase64());
/external/webkit/Source/WebCore/platform/graphics/qt/
H A DMediaPlayerPrivatePhonon.cpp56 QByteArray byteArray; local
57 QTextStream stream(&byteArray);
79 return byteArray;
/external/jhead/
H A Dmain.c450 jbyteArray byteArray = (*env)->NewByteArray(env, ImageInfo.ThumbnailSize); local
451 if (byteArray == NULL) {
457 (*env)->SetByteArrayRegion(env, byteArray, 0, ImageInfo.ThumbnailSize, thumbnailPointer);
463 return byteArray;
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
H A DChannelsTest.java158 byte[] byteArray = new byte[bufSize];
161 readres = this.fins.read(byteArray);
169 readres = this.fins.read(byteArray);

Completed in 725 milliseconds