Searched refs:toByteArray (Results 1 - 25 of 88) sorted by relevance

1234

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DByteArrayHelpers.java40 public static byte[] toByteArray(byte[] array) { method in class:ByteArrayHelpers
50 public static byte[] toByteArray(short[] array) { method in class:ByteArrayHelpers
51 return toByteArray(array, Short.SIZE);
60 public static byte[] toByteArray(char[] array) { method in class:ByteArrayHelpers
61 return toByteArray(array, Character.SIZE);
69 public static byte[] toByteArray(int[] array) { method in class:ByteArrayHelpers
70 return toByteArray(array, Integer.SIZE);
78 public static byte[] toByteArray(long[] array) { method in class:ByteArrayHelpers
79 return toByteArray(array, Long.SIZE);
87 public static byte[] toByteArray(floa method in class:ByteArrayHelpers
96 public static byte[] toByteArray(double[] array) { method in class:ByteArrayHelpers
111 public static <T> byte[] toByteArray(T array) { method in class:ByteArrayHelpers
159 public static byte[] toByteArray(Number... numbers) { method in class:ByteArrayHelpers
213 private static <T> byte[] toByteArray(T array, int sizeOfTBits) { method in class:ByteArrayHelpers
[all...]
H A DCameraMetadataTest.java653 toByteArray(1.0f, 2.1f, 3.2f, 4.5f));
661 }, toByteArray(
673 toByteArray(123f, 456f));
682 toByteArray(
696 toByteArray(10, 11, 1280 - 10, 1024 - 11));
703 }, toByteArray(
716 toByteArray(1, 2, 1 + 100, 2 + 200, 5));
725 toByteArray(
739 toByteArray(1000, 255, 30, 200));
751 toByteArray(
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDeviceOwnerTest.java43 mInputStreamForTest = new ByteArrayInputStream(mOutputStreamForTest.toByteArray());
58 mInputStreamForTest = new ByteArrayInputStream(mOutputStreamForTest.toByteArray());
76 mInputStreamForTest = new ByteArrayInputStream(mOutputStreamForTest.toByteArray());
/frameworks/base/core/java/com/android/internal/util/
H A DHexDump.java96 return toHexString(toByteArray(b));
121 return toHexString(toByteArray(i));
124 public static byte[] toByteArray(byte b) method in class:HexDump
131 public static byte[] toByteArray(int i) method in class:HexDump
H A DBitwiseOutputStream.java63 public byte[] toByteArray() { method in class:BitwiseOutputStream
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DWap230WspContentTypeTest.java226 HexDump.toByteArray((byte) (value | WSP_SHORT_INTEGER_MASK)));
259 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray());
270 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray());
286 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray());
301 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray());
317 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray());
336 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray());
355 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray());
374 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray());
392 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray());
[all...]
/frameworks/base/core/java/android/hardware/hdmi/
H A DHdmiTimerRecordSources.java200 /* package */ int toByteArray(byte[] data, int index) { method in class:HdmiTimerRecordSources.TimeUnit
346 int toByteArray(byte[] data, int index) { method in class:HdmiTimerRecordSources.TimerInfo
354 index += mStartTime.toByteArray(data, index);
355 index += mDuration.toByteArray(data, index);
394 int toByteArray(byte[] data, int index) { method in class:HdmiTimerRecordSources.TimerRecordSource
397 index += mTimerInfo.toByteArray(data, index);
399 mRecordSource.toByteArray(false, data, index);
428 mRecordSource.toByteArray(false, data, index + 1);
H A DHdmiRecordSources.java76 /* package */ final int toByteArray(boolean includeType, byte[] data, int index) { method in class:HdmiRecordSources.RecordSource
166 int toByteArray(byte[] data, int index); method in interface:HdmiRecordSources.DigitalServiceIdentification
198 public int toByteArray(byte[] data, int index) { method in class:HdmiRecordSources.AribData
227 public int toByteArray(byte[] data, int index) { method in class:HdmiRecordSources.AtscData
261 public int toByteArray(byte[] data, int index) { method in class:HdmiRecordSources.DvbData
290 private int toByteArray(byte[] data, int index) { method in class:HdmiRecordSources.ChannelIdentifier
331 public int toByteArray(byte[] data, int index) { method in class:HdmiRecordSources.DigitalChannelData
332 mChannelIdentifier.toByteArray(data, index);
530 mIdentification.toByteArray(data, index + 1);
H A DHdmiTvClient.java224 source.toByteArray(true, data, 0);
264 source.toByteArray(true, data, 0);
315 source.toByteArray(data, 0);
345 source.toByteArray(data, 0);
/frameworks/volley/tests/src/com/android/volley/toolbox/
H A DPoolingByteArrayOutputStreamTest.java63 assertTrue(Arrays.equals(data, os.toByteArray()));
76 assertTrue(Arrays.equals(data, os.toByteArray()));
H A DDiskBasedCacheTest.java45 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
63 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
80 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
95 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
116 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
H A DImageRequestTest.java97 return bytes.toByteArray();
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DBitwiseStreamsTest.java40 byte[] outBuf = outStream.toByteArray();
55 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray());
69 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray());
86 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray());
108 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray());
127 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray());
152 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray());
H A DXmlUtilsTest.java36 InputStream mapInput = new ByteArrayInputStream(baos.toByteArray());
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapFactoryTest.java37 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(out.toByteArray(), null);
/frameworks/base/keystore/java/android/security/
H A DAndroidKeyPairGenerator.java173 return new byte[][] { rsaSpec.getPublicExponent().toByteArray() };
179 return new byte[][] { dsaSpec.getG().toByteArray(),
180 dsaSpec.getP().toByteArray(), dsaSpec.getQ().toByteArray() };
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiSsid.java164 byte[] ssidBytes = octets.toByteArray();
193 return isArrayAllZeroes(octets.toByteArray());
198 return octets.toByteArray();
219 dest.writeByteArray(octets.toByteArray());
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DQuotedPrintable.java66 return buffer.toByteArray();
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DUnsafeByteSequence.java69 public byte[] toByteArray() { method in class:UnsafeByteSequence
/frameworks/base/core/java/android/ddm/
H A DDdmHandleViewDebug.java241 byte[] data = b.toByteArray();
262 byte[] data = b.toByteArray();
278 byte[] data = b.toByteArray();
291 byte[] data = b.toByteArray();
434 byte[] data = b.toByteArray();
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
H A DInputStreamSource.java75 byteBuffer = ByteBuffer.wrap(byteStream.toByteArray());
/frameworks/base/obex/javax/obex/
H A DPrivateOutputStream.java129 byte[] temp = mArray.toByteArray();
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
H A DDurableUtils.java35 return out.toByteArray();
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioTrackDecoder.java109 mAudioSampleRate, mAudioChannelCount, mAudioByteStream.toByteArray());
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsCollectionTest.java83 collection.read(new ByteArrayInputStream(bos.toByteArray()));
109 collection.read(new ByteArrayInputStream(bos.toByteArray()));
135 collection.read(new ByteArrayInputStream(bos.toByteArray()));

Completed in 778 milliseconds

1234