/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | ByteArrayHelpers.java | 40 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 …]
|
D | CameraMetadataTest.java | 653 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/ |
D | Wap230WspContentTypeTest.java | 226 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/ |
D | HdmiTimerRecordSources.java | 199 /* 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()
|
D | HdmiRecordSources.java | 76 /* 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()
|
D | HdmiTvClient.java | 252 source.toByteArray(true, data, 0); 292 source.toByteArray(true, data, 0); 343 source.toByteArray(data, 0); 373 source.toByteArray(data, 0);
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiSsid.java | 173 byte[] ssidBytes = octets.toByteArray(); in toString() 202 return Arrays.equals(octets.toByteArray(), that.octets.toByteArray()); in equals() 207 return Arrays.hashCode(octets.toByteArray()); in hashCode() 219 return isArrayAllZeroes(octets.toByteArray()); in isHidden() 224 return octets.toByteArray(); in getOctets() 245 dest.writeByteArray(octets.toByteArray()); in writeToParcel()
|
/frameworks/base/media/java/android/media/ |
D | MediaCas.java | 189 private ArrayList<Byte> toByteArray(@NonNull byte[] data, int offset, int length) { in toByteArray() method in MediaCas 197 private ArrayList<Byte> toByteArray(@Nullable byte[] data) { in toByteArray() method in MediaCas 201 return toByteArray(data, 0, data.length); in toByteArray() 239 mICas.setSessionPrivateData(mSessionId, toByteArray(data, 0, data.length))); in setPrivateData() 263 mICas.processEcm(mSessionId, toByteArray(data, offset, length))); in processEcm() 445 mICas.setPrivateData(toByteArray(data, 0, data.length))); in setPrivateData() 501 mICas.processEmm(toByteArray(data, offset, length))); in processEmm() 540 mICas.sendEvent(event, arg, toByteArray(data))); in sendEvent() 584 mICas.refreshEntitlements(refreshType, toByteArray(refreshData))); in refreshEntitlements()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | OsuProviderInfoTestUtil.java | 69 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()
|
D | ANQPParserTest.java | 55 return stream.toByteArray(); in getVenueNamePayload() 72 return stream.toByteArray(); in getDomainNamePayload() 93 return stream.toByteArray(); in getRoamingConsortiumPayload() 111 return stream.toByteArray(); in getNAIRealmPayload() 129 return stream.toByteArray(); in getThreeGPPNetworkPayload() 152 return stream.toByteArray(); in getVendorSpecificPayload() 216 return stream.toByteArray(); in getHSConnectionCapabilityPayload() 232 return out.toByteArray(); in getHSOsuProvidersPayload() 258 return stream.toByteArray(); in getI18NameListPayload()
|
D | HSIconFileElementTest.java | 50 return out.toByteArray(); in getTestData() 59 return out.toByteArray(); in getTestData()
|
D | NAIRealmDataTestUtil.java | 92 return stream.toByteArray(); in formatNAIRealmData() 117 return stream.toByteArray(); in getNAIRealmData()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | BitwiseStreamsTest.java | 40 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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/ |
D | CheckTokenTest.java | 33 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()
|
D | RulesManagerServiceTest.java | 415 byte[] tokenBytes = token.toByteArray(); in requestInstall_asyncSuccess() 490 byte[] tokenBytes = token.toByteArray(); in requestInstall_asyncInstallFail() 595 byte[] tokenBytes = token.toByteArray(); in requestUninstall_asyncSuccess() 629 byte[] tokenBytes = token.toByteArray(); in requestUninstall_asyncNothingInstalled() 693 byte[] tokenBytes = token.toByteArray(); in requestUninstall_asyncUninstallFail() 733 byte[] tokenBytes = token.toByteArray(); in requestNothing_operationInProgressOk() 773 byte[] tokenBytes = token.toByteArray(); in requestNothing() 968 return createArbitraryToken().toByteArray(); in createArbitraryTokenBytes()
|
/frameworks/base/core/java/android/util/ |
D | PackageUtils.java | 51 digests[i] = computeSha256Digest(signatures[i].toByteArray()); in computeSignaturesSha256Digests() 67 return computeSha256Digest(signatures[0].toByteArray()); in computeSignaturesSha256Digest() 100 return computeSha256Digest(bytes.toByteArray()); in computeSignaturesSha256Digest()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | HexDump.java | 97 return toHexString(toByteArray(b)); in toHexString() 133 return toHexString(toByteArray(i)); in toHexString() 136 public static byte[] toByteArray(byte b) in toByteArray() method in HexDump 143 public static byte[] toByteArray(int i) in toByteArray() method in HexDump
|
/frameworks/support/work/workmanager/src/test/java/androidx/work/ |
D | DataTest.java | 49 byte[] byteArray = Data.toByteArray(data); in testSerializeEmpty() 64 byte[] byteArray = Data.toByteArray(data); in testSerializeString() 79 byte[] byteArray = Data.toByteArray(data); in testSerializeIntArray() 94 Data.toByteArray(data); in testSerializePastMaxSize()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | AppBackupUtilsTest.java | 495 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray()); in signaturesMatch_equalSignatures_returnsTrue() 496 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray()); in signaturesMatch_equalSignatures_returnsTrue() 497 Signature signature3Copy = new Signature(SIGNATURE_3.toByteArray()); in signaturesMatch_equalSignatures_returnsTrue() 519 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray()); in signaturesMatch_extraSignatureInTarget_returnsTrue() 520 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray()); in signaturesMatch_extraSignatureInTarget_returnsTrue() 542 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray()); in signaturesMatch_extraSignatureInStored_returnsFalse() 543 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray()); in signaturesMatch_extraSignatureInStored_returnsFalse() 565 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray()); in signaturesMatch_oneNonMatchingSignature_returnsFalse() 566 Signature signature2Copy = new Signature(SIGNATURE_2.toByteArray()); in signaturesMatch_oneNonMatchingSignature_returnsFalse() 589 Signature signature1Copy = new Signature(SIGNATURE_1.toByteArray()); in signaturesMatch_singleStoredSignatureNoRotation_returnsTrue() [all …]
|
D | FullBackupUtilsTest.java | 185 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttNativeTest.java | 133 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequest() 141 equalTo(MacAddress.fromString("0A:0B:0C:0D:0E:00").toByteArray())); in testRangeRequest() 149 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequest() 183 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequestNotPrivilegedNo80211mcSupportMixed() 191 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestNotPrivilegedNo80211mcSupportMixed() 236 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequestWithLimitedCapabilities() 248 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestWithLimitedCapabilities() 290 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestWithLimitedCapabilitiesNoOverlap() 394 equalTo(MacAddress.fromString("05:06:07:08:09:0A").toByteArray())); in testRangeResults()
|
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/bytecode/ |
D | ByteCodeTransformer.kt | 42 file.setNewDataSilently(writer.toByteArray()) in canTransform() 46 file.setNewData(writer.toByteArray()) in canTransform()
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
D | CheckToken.java | 45 byte[] toByteArray() { in toByteArray() method in CheckToken 54 return baos.toByteArray(); in toByteArray()
|
/frameworks/base/core/java/android/ddm/ |
D | DdmHandleViewDebug.java | 238 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/keystore/java/android/security/keystore/ |
D | KeyStoreCryptoOperationChunkedStreamer.java | 188 result = bufferedOutput.toByteArray(); in update() 201 result = bufferedOutput.toByteArray(); in update() 300 byte[] result = (bufferedOutput != null) ? bufferedOutput.toByteArray() : EmptyArray.BYTE; in flush()
|