Home
last modified time | relevance | path

Searched refs:toByteArray (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DByteArrayHelpers.java40 public static byte[] toByteArray(byte[] array) { in toByteArray() method in ByteArrayHelpers
50 public static byte[] toByteArray(short[] array) { in toByteArray() method in ByteArrayHelpers
51 return toByteArray(array, Short.SIZE); in toByteArray()
60 public static byte[] toByteArray(char[] array) { in toByteArray() method in ByteArrayHelpers
61 return toByteArray(array, Character.SIZE); in toByteArray()
69 public static byte[] toByteArray(int[] array) { in toByteArray() method in ByteArrayHelpers
70 return toByteArray(array, Integer.SIZE); in toByteArray()
78 public static byte[] toByteArray(long[] array) { in toByteArray() method in ByteArrayHelpers
79 return toByteArray(array, Long.SIZE); in toByteArray()
87 public static byte[] toByteArray(float[] array) { in toByteArray() method in ByteArrayHelpers
[all …]
DCameraMetadataTest.java653 toByteArray(1.0f, 2.1f, 3.2f, 4.5f)); in testReadWriteRggbChannelVector()
661 }, toByteArray( in testReadWriteRggbChannelVector()
673 toByteArray(123f, 456f)); in testReadWriteSizeF()
682 toByteArray( in testReadWriteSizeF()
696 toByteArray(10, 11, 1280 - 10, 1024 - 11)); in testReadWriteRectangle()
703 }, toByteArray( in testReadWriteRectangle()
716 toByteArray(1, 2, 1 + 100, 2 + 200, 5)); in testReadWriteMeteringRectangle()
725 toByteArray( in testReadWriteMeteringRectangle()
739 toByteArray(1000, 255, 30, 200)); in testReadWriteHighSpeedVideoConfiguration()
751 toByteArray( in testReadWriteHighSpeedVideoConfiguration()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DWap230WspContentTypeTest.java226 HexDump.toByteArray((byte) (value | WSP_SHORT_INTEGER_MASK))); in testWellKnownShortIntegerMimeTypeValues()
259 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testDecodeReturnsFalse_WhenOnlyAZeroBytePresent()
270 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testConstrainedMediaExtensionMedia()
286 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testGeneralFormShortLengthExtensionMedia()
301 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testGeneralFormShortLengthWellKnownShortInteger()
317 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testGeneralFormShortLengthWellKnownShortIntegerWithUnknownValue()
336 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testGeneralFormShortLengthWellKnownLongInteger()
355 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testGeneralFormShortLengthWellKnownLongIntegerWithUnknownValue()
374 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testGeneralFormLengthQuoteWellKnownShortInteger()
392 WspTypeDecoder unit = new WspTypeDecoder(out.toByteArray()); in testGeneralFormLengthQuoteWellKnownShortIntegerWithUnknownValue()
[all …]
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiTimerRecordSources.java200 /* package */ int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiTimerRecordSources.TimeUnit
346 int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiTimerRecordSources.TimerInfo
354 index += mStartTime.toByteArray(data, index); in toByteArray()
355 index += mDuration.toByteArray(data, index); in toByteArray()
394 int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiTimerRecordSources.TimerRecordSource
397 index += mTimerInfo.toByteArray(data, index); in toByteArray()
399 mRecordSource.toByteArray(false, data, index); in toByteArray()
428 mRecordSource.toByteArray(false, data, index + 1); in extraParamToByteArray()
DHdmiRecordSources.java76 /* package */ final int toByteArray(boolean includeType, byte[] data, int index) { in toByteArray() method in HdmiRecordSources.RecordSource
166 int toByteArray(byte[] data, int index); in toByteArray() method
198 public int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiRecordSources.AribData
227 public int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiRecordSources.AtscData
261 public int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiRecordSources.DvbData
290 private int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiRecordSources.ChannelIdentifier
331 public int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiRecordSources.DigitalChannelData
332 mChannelIdentifier.toByteArray(data, index); in toByteArray()
530 mIdentification.toByteArray(data, index + 1); in extraParamToByteArray()
DHdmiTvClient.java224 source.toByteArray(true, data, 0);
264 source.toByteArray(true, data, 0);
315 source.toByteArray(data, 0);
345 source.toByteArray(data, 0);
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DBitwiseStreamsTest.java40 byte[] outBuf = outStream.toByteArray(); in testOne()
55 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testTwo()
69 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testThree()
86 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testFour()
108 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testFive()
127 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testSix()
152 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testExpandArray()
DXmlUtilsTest.java36 InputStream mapInput = new ByteArrayInputStream(baos.toByteArray()); in testMapWithNullKeys()
/frameworks/base/core/java/com/android/internal/util/
DHexDump.java96 return toHexString(toByteArray(b)); in toHexString()
121 return toHexString(toByteArray(i)); in toHexString()
124 public static byte[] toByteArray(byte b) in toByteArray() method in HexDump
131 public static byte[] toByteArray(int i) in toByteArray() method in HexDump
DBitwiseOutputStream.java63 public byte[] toByteArray() { in toByteArray() method in BitwiseOutputStream
/frameworks/volley/tests/src/com/android/volley/toolbox/
DDiskBasedCacheTest.java45 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testCacheHeaderSerialization()
63 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testSerializeInt()
80 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testSerializeLong()
95 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testSerializeString()
116 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testSerializeMap()
DPoolingByteArrayOutputStreamTest.java63 assertTrue(Arrays.equals(data, os.toByteArray())); in writeOneBuffer()
76 assertTrue(Arrays.equals(data, os.toByteArray())); in writeBytesIndividually()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDeviceOwnerTest.java43 mInputStreamForTest = new ByteArrayInputStream(mOutputStreamForTest.toByteArray()); in testDeviceOwnerOnly()
58 mInputStreamForTest = new ByteArrayInputStream(mOutputStreamForTest.toByteArray()); in testProfileOwnerOnly()
76 mInputStreamForTest = new ByteArrayInputStream(mOutputStreamForTest.toByteArray()); in testDeviceAndProfileOwners()
/frameworks/base/wifi/java/android/net/wifi/
DWifiSsid.java164 byte[] ssidBytes = octets.toByteArray(); in toString()
193 return isArrayAllZeroes(octets.toByteArray()); in isHidden()
198 return octets.toByteArray(); in getOctets()
219 dest.writeByteArray(octets.toByteArray()); in writeToParcel()
/frameworks/base/keystore/java/android/security/
DAndroidKeyPairGenerator.java173 return new byte[][] { rsaSpec.getPublicExponent().toByteArray() }; in getArgsForKeyType()
179 return new byte[][] { dsaSpec.getG().toByteArray(), in getArgsForKeyType()
180 dsaSpec.getP().toByteArray(), dsaSpec.getQ().toByteArray() }; in getArgsForKeyType()
/frameworks/base/core/java/android/ddm/
DDdmHandleViewDebug.java241 byte[] data = b.toByteArray(); in dumpHierarchy()
262 byte[] data = b.toByteArray(); in captureLayers()
278 byte[] data = b.toByteArray(); in dumpTheme()
291 byte[] data = b.toByteArray(); in captureView()
434 byte[] data = b.toByteArray(); in profileView()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java83 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyNetwork()
109 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUid()
135 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUidTags()
/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java451 actual = baos.toByteArray(); in testOutputStream()
461 actual = baos.toByteArray(); in testOutputStream()
484 actual = baos.toByteArray(); in testOutputStream()
494 actual = baos.toByteArray(); in testOutputStream()
504 actual = baos.toByteArray(); in testOutputStream()
527 actual = baos.toByteArray(); in testOutputStream()
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DQuotedPrintable.java66 return buffer.toByteArray(); in decodeQuotedPrintable()
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
DDelegateClassAdapterTest.java289 cl2.add(OUTER_CLASS_NAME, cwOuter.toByteArray()); in testDelegateInner()
290 cl2.add(INNER_CLASS_NAME, cwInner.toByteArray()); in testDelegateInner()
324 mClassDefs.put(className, rewrittenClass.toByteArray()); in add()
350 byte[] bytes = cw.toByteArray(); in findClass()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapFactoryTest.java37 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(out.toByteArray(), null); in testBitmapParcelFileDescriptor()
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
DUnsafeByteSequence.java69 public byte[] toByteArray() { in toByteArray() method in UnsafeByteSequence
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java164 byte[] cmasUserData = cmasBos.toByteArray(); in createCmasSmsMessage()
176 return createMessageFromParcel(p, bos.toByteArray()); in createCmasSmsMessage()
198 return createMessageFromParcel(p, bos.toByteArray()); in createBroadcastSmsMessage()
565 SmsMessage msg = createMessageFromParcel(p, bos.toByteArray()); in testRandomUserData()
628 SmsMessage msg = createMessageFromParcel(p, bos.toByteArray()); in testServiceCategoryProgramDataAddCategory()
684 SmsMessage msg = createMessageFromParcel(p, bos.toByteArray()); in testServiceCategoryProgramDataDeleteTwoCategories()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsTest.java219 byte[] encodedHeader = SmsHeader.toByteArray(smsHeader); in testUserData7bitGsmFeedback()
371 byte[] encodedHeader = SmsHeader.toByteArray(smsHeader); in testUserDataHeaderConcatRefFeedback()
404 byte[] encodedHeader = SmsHeader.toByteArray(smsHeader); in testUserDataHeaderIllegalConcatRef()
408 encodedHeader = SmsHeader.toByteArray(smsHeader); in testUserDataHeaderIllegalConcatRef()
413 encodedHeader = SmsHeader.toByteArray(smsHeader); in testUserDataHeaderIllegalConcatRef()
418 encodedHeader = SmsHeader.toByteArray(smsHeader); in testUserDataHeaderIllegalConcatRef()
423 encodedHeader = SmsHeader.toByteArray(smsHeader); in testUserDataHeaderIllegalConcatRef()
446 byte[] encodedHeader = SmsHeader.toByteArray(smsHeader); in testUserDataHeaderMixedFeedback()
904 byte[] encodeHeader = SmsHeader.toByteArray(smsHeader); in encodeDecodeAssertEquals()
905 byte[] decodeHeader = SmsHeader.toByteArray(revBearerData.userData.userDataHeader); in encodeDecodeAssertEquals()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DInputStreamSource.java75 byteBuffer = ByteBuffer.wrap(byteStream.toByteArray()); in process()

1234