Home
last modified time | relevance | path

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

1234567891011

/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()
740 toByteArray(1000, 255, 30, 200, 8)); in testReadWriteHighSpeedVideoConfiguration()
755 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/libs/net/common/framework/android/net/util/
DMacAddressUtils.java36 MacAddress.fromString("2:0:0:0:0:0").toByteArray());
38 MacAddress.fromString("1:0:0:0:0:0").toByteArray());
40 MacAddress.fromString("ff:ff:ff:0:0:0").toByteArray());
42 MacAddress.fromString("0:0:0:ff:ff:ff").toByteArray());
51 return (longAddrFromByteAddr(address.toByteArray()) & MULTICAST_MASK) != 0; in isMulticastAddress()
84 addr = (longAddrFromByteAddr(base.toByteArray()) & OUI_MASK) in createRandomUnicastAddress()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiTimerRecordSources.java199 /* package */ int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiTimerRecordSources.TimeUnit
345 int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiTimerRecordSources.TimerInfo
353 index += mStartTime.toByteArray(data, index); in toByteArray()
354 index += mDuration.toByteArray(data, index); in toByteArray()
393 int toByteArray(byte[] data, int index) { in toByteArray() method in HdmiTimerRecordSources.TimerRecordSource
396 index += mTimerInfo.toByteArray(data, index); in toByteArray()
398 mRecordSource.toByteArray(false, data, index); in toByteArray()
427 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.java253 source.toByteArray(true, data, 0);
293 source.toByteArray(true, data, 0);
344 source.toByteArray(data, 0);
374 source.toByteArray(data, 0);
/frameworks/base/wifi/java/android/net/wifi/
DWifiSsid.java179 byte[] ssidBytes = octets.toByteArray(); in toString()
208 return Arrays.equals(octets.toByteArray(), that.octets.toByteArray()); in equals()
213 return Arrays.hashCode(octets.toByteArray()); in hashCode()
225 return isArrayAllZeroes(octets.toByteArray()); in isHidden()
231 return octets.toByteArray(); in getOctets()
252 dest.writeByteArray(octets.toByteArray()); in writeToParcel()
/frameworks/base/media/java/android/media/
DMediaCas.java163 ArrayList<Byte> sessionId = toByteArray(bundle.getByteArray(SESSION_KEY)); in handleMessage()
228 private ArrayList<Byte> toByteArray(@NonNull byte[] data, int offset, int length) { in toByteArray() method in MediaCas
236 private ArrayList<Byte> toByteArray(@Nullable byte[] data) { in toByteArray() method in MediaCas
240 return toByteArray(data, 0, data.length); in toByteArray()
292 mICas.setSessionPrivateData(mSessionId, toByteArray(data, 0, data.length))); in setPrivateData()
316 mICas.processEcm(mSessionId, toByteArray(data, offset, length))); in processEcm()
360 mICasV11.sendSessionEvent(mSessionId, event, arg, toByteArray(data))); in sendSessionEvent()
551 mICas.setPrivateData(toByteArray(data, 0, data.length))); in setPrivateData()
607 mICas.processEmm(toByteArray(data, offset, length))); in processEmm()
646 mICas.sendEvent(event, arg, toByteArray(data))); in sendEvent()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DOsuProviderInfoTestUtil.java69 return out.toByteArray(); in getTestData()
87 return out.toByteArray(); in getTestDataWithInvalidLength()
129 return out.toByteArray(); in getTestPayload()
139 return out.toByteArray(); in getI18NameListData()
154 return out.toByteArray(); in getI18NameData()
DANQPParserTest.java56 return stream.toByteArray(); in getVenueNamePayload()
73 return stream.toByteArray(); in getDomainNamePayload()
94 return stream.toByteArray(); in getRoamingConsortiumPayload()
112 return stream.toByteArray(); in getNAIRealmPayload()
130 return stream.toByteArray(); in getThreeGPPNetworkPayload()
153 return stream.toByteArray(); in getVendorSpecificPayload()
217 return stream.toByteArray(); in getHSConnectionCapabilityPayload()
233 return out.toByteArray(); in getHSOsuProvidersPayload()
259 return stream.toByteArray(); in getI18NameListPayload()
DHSIconFileElementTest.java50 return out.toByteArray(); in getTestData()
59 return out.toByteArray(); in getTestData()
DNAIRealmDataTestUtil.java92 return stream.toByteArray(); in formatNAIRealmData()
117 return stream.toByteArray(); in getNAIRealmData()
/frameworks/base/core/tests/utiltests/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.java45 InputStream mapInput = new ByteArrayInputStream(baos.toByteArray()); in testMapWithNullKeys()
61 InputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testreadWriteXmlByteArrayValue()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DCheckTokenTest.java33 public void toByteArray() throws Exception { in toByteArray() method in CheckTokenTest
37 assertEquals(originalToken, CheckToken.fromByteArray(originalToken.toByteArray())); in toByteArray()
45 byte[] validTokenBytes = token.toByteArray(); in fromByteArray()
/frameworks/base/core/java/android/util/
DPackageUtils.java53 digests[i] = computeSha256Digest(signatures[i].toByteArray()); in computeSignaturesSha256Digests()
69 return computeSha256Digest(signatures[0].toByteArray()); in computeSignaturesSha256Digest()
102 return computeSha256Digest(bytes.toByteArray()); in computeSignaturesSha256Digest()
/frameworks/base/core/java/com/android/internal/util/
DHexDump.java101 return toHexString(toByteArray(b)); in toHexString()
141 return toHexString(toByteArray(i)); in toHexString()
144 public static byte[] toByteArray(byte b) in toByteArray() method in HexDump
151 public static byte[] toByteArray(int i) in toByteArray() method in HexDump
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DAppBackupUtilsTest.java527 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray()); in signaturesMatch_equalSignatures_returnsTrue()
528 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray()); in signaturesMatch_equalSignatures_returnsTrue()
529 Signature signature3Copy = new Signature(SIGNATURE_3.toByteArray()); in signaturesMatch_equalSignatures_returnsTrue()
550 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray()); in signaturesMatch_extraSignatureInTarget_returnsTrue()
551 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray()); in signaturesMatch_extraSignatureInTarget_returnsTrue()
572 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray()); in signaturesMatch_extraSignatureInStored_returnsFalse()
573 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray()); in signaturesMatch_extraSignatureInStored_returnsFalse()
594 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray()); in signaturesMatch_oneNonMatchingSignature_returnsFalse()
595 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray()); in signaturesMatch_oneNonMatchingSignature_returnsFalse()
617 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray()); in signaturesMatch_singleStoredSignatureNoRotation_returnsTrue()
[all …]
DFullBackupUtilsTest.java185 assertThat(mByteArrayOutputStream.toByteArray()).isEqualTo(data); in routeSocketDataToOutput_oneSmallChunk_writesOutputCorrectly()
205 assertThat(mByteArrayOutputStream.toByteArray()).isEqualTo(data); in routeSocketDataToOutput_oneLargeChunk_writesOutputCorrectly()
230 assertThat(mByteArrayOutputStream.toByteArray()).isEqualTo(data); in routeSocketDataToOutput_twoSmallChunks_writesOutputCorrectly()
255 assertThat(mByteArrayOutputStream.toByteArray()).isEqualTo(data); in routeSocketDataToOutput_twoLargeChunks_writesOutputCorrectly()
/frameworks/base/identity/java/android/security/identity/
DUtil.java61 byte[] x = stripLeadingZeroes(w.getAffineX().toByteArray()); in publicKeyEncodeUncompressedForm()
62 byte[] y = stripLeadingZeroes(w.getAffineY().toByteArray()); in publicKeyEncodeUncompressedForm()
68 return baos.toByteArray(); in publicKeyEncodeUncompressedForm()
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/
DInlineLengthsEncryptedChunkEncoder.java41 writer.writeBytes(toByteArray(length)); in writeChunkToWriter()
63 static byte[] toByteArray(int value) { in toByteArray() method in InlineLengthsEncryptedChunkEncoder
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttNativeTest.java144 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequest()
152 equalTo(MacAddress.fromString("0A:0B:0C:0D:0E:00").toByteArray())); in testRangeRequest()
160 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequest()
194 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequestNotPrivilegedNo80211mcSupportMixed()
202 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestNotPrivilegedNo80211mcSupportMixed()
247 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequestWithLimitedCapabilities()
259 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestWithLimitedCapabilities()
301 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestWithLimitedCapabilitiesNoOverlap()
425 equalTo(MacAddress.fromString("05:06:07:08:09:0A").toByteArray())); in testRangeResults()
/frameworks/base/core/java/android/ddm/
DDdmHandleViewDebug.java238 byte[] data = b.toByteArray(); in dumpHierarchy()
259 byte[] data = b.toByteArray(); in captureLayers()
275 byte[] data = b.toByteArray(); in dumpTheme()
288 byte[] data = b.toByteArray(); in captureView()
431 byte[] data = b.toByteArray(); in profileView()
/frameworks/base/services/core/java/com/android/server/timezone/
DCheckToken.java45 byte[] toByteArray() { in toByteArray() method in CheckToken
54 return baos.toByteArray(); in toByteArray()

1234567891011