/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 | 661 toByteArray(1.0f, 2.1f, 3.2f, 4.5f)); in testReadWriteRggbChannelVector() 669 }, toByteArray( in testReadWriteRggbChannelVector() 681 toByteArray(123f, 456f)); in testReadWriteSizeF() 690 toByteArray( in testReadWriteSizeF() 704 toByteArray(10, 11, 1280 - 10, 1024 - 11)); in testReadWriteRectangle() 711 }, toByteArray( in testReadWriteRectangle() 724 toByteArray(1, 2, 1 + 100, 2 + 200, 5)); in testReadWriteMeteringRectangle() 733 toByteArray( in testReadWriteMeteringRectangle() 748 toByteArray(1000, 255, 30, 200, 8)); in testReadWriteHighSpeedVideoConfiguration() 763 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 | 258 source.toByteArray(true, data, 0); 298 source.toByteArray(true, data, 0); 349 source.toByteArray(data, 0); 379 source.toByteArray(data, 0);
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/storage/ |
D | BubbleXmlHelperTest.kt | 101 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testReadXml() 116 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testUpgradeFromV0DropsPreviousData() 143 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testReadXMLWithoutTaskId() 167 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testXMLWithoutLocusToLocus() 190 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testUpgradeToV2SavesPreviousData()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | BitwiseStreamsTest.java | 43 byte[] outBuf = outStream.toByteArray(); in testOne() 59 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testTwo() 74 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testThree() 92 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testFour() 115 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testFive() 135 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testSix() 161 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testExpandArray()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/serializer/ |
D | RuleBinarySerializerTest.java | 134 assertThat(ruleOutputStream.toByteArray()) in testBinaryString_emptyRules() 135 .isEqualTo(expectedRuleOutputStream.toByteArray()); in testBinaryString_emptyRules() 149 assertThat(indexingOutputStream.toByteArray()) in testBinaryString_emptyRules() 150 .isEqualTo(expectedIndexingOutputStream.toByteArray()); in testBinaryString_emptyRules() 192 assertThat(ruleOutputStream.toByteArray()) in testBinaryStream_serializeValidCompoundFormula() 193 .isEqualTo(expectedRuleOutputStream.toByteArray()); in testBinaryStream_serializeValidCompoundFormula() 214 assertThat(indexingOutputStream.toByteArray()) in testBinaryStream_serializeValidCompoundFormula() 215 .isEqualTo(expectedIndexingOutputStream.toByteArray()); in testBinaryStream_serializeValidCompoundFormula() 248 byte[] expectedRules = byteArrayOutputStream.toByteArray(); in testBinaryString_serializeValidCompoundFormula_notConnector() 298 byte[] expectedRules = byteArrayOutputStream.toByteArray(); in testBinaryString_serializeValidCompoundFormula_andConnector() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/proto/ |
D | CommunalHubStateExt.kt | 23 fun CommunalHubState.toByteArray(): ByteArray { in toByteArray() method 24 return CommunalHubState.toByteArray(this) in toByteArray()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/ |
D | NotificationPanelLoggerImpl.java | 41 /* notifications = */ MessageNano.toByteArray(proto)); in logPanelShown() 53 /* notifications = */ MessageNano.toByteArray(proto)); in logPanelShown() 63 /* notifications = */ MessageNano.toByteArray(proto)); in logNotificationDrag()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | HexDump.java | 103 return toHexString(toByteArray(b)); in toHexString() 143 return toHexString(toByteArray(i)); in toHexString() 146 public static byte[] toByteArray(byte b) in toByteArray() method in HexDump 153 public static byte[] toByteArray(int i) in toByteArray() method in HexDump
|
/frameworks/base/api/coverage/tools/ |
D | ExtractFlaggedApisTest.kt | 64 Files.write(apiTextFile, apiText.toByteArray(Charsets.UTF_8), StandardOpenOption.APPEND) in extractFlaggedApis_onlyMethodFlag_useMethodFlag() 95 Files.write(apiTextFile, apiText.toByteArray(Charsets.UTF_8), StandardOpenOption.APPEND) in extractFlaggedApis_onlyClassFlag_useClassFlag() 126 Files.write(apiTextFile, apiText.toByteArray(Charsets.UTF_8), StandardOpenOption.APPEND) in extractFlaggedApis_flaggedConstructorsAreFlaggedApis() 159 Files.write(apiTextFile, apiText.toByteArray(Charsets.UTF_8), StandardOpenOption.APPEND) in extractFlaggedApis_unflaggedNestedClassShouldUseOuterClassFlag() 198 Files.write(apiTextFile, apiText.toByteArray(Charsets.UTF_8), StandardOpenOption.APPEND) in extractFlaggedApis_unflaggedNestedClassShouldUseOuterClassFlag_deeplyNested()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsBackupAgentTest.java | 272 return os.toByteArray(); in generateUncorruptedHeader() 284 os.write(SettingsBackupAgent.toByteArray(version)); in generateCorruptedHeader() 290 os.write(SettingsBackupAgent.toByteArray(manufacturer)); in generateCorruptedHeader() 296 os.write(SettingsBackupAgent.toByteArray(product)); in generateCorruptedHeader() 298 return os.toByteArray(); in generateCorruptedHeader() 304 os.write(SettingsBackupAgent.toByteArray(key)); in generateSingleKeyTestBackupData() 305 os.write(SettingsBackupAgent.toByteArray(value)); in generateSingleKeyTestBackupData() 306 return os.toByteArray(); in generateSingleKeyTestBackupData()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locales/ |
D | LocaleManagerBackupRestoreTest.java | 266 mBackupHelper.stageAndApplyRestoredPayload(/* payload= */ out.toByteArray(), in testRestore_zeroLengthPayload_nothingRestoredAndNoStageData() 280 mBackupHelper.stageAndApplyRestoredPayload(out.toByteArray(), DEFAULT_USER_ID); in testRestore_allAppsInstalled_noStageDataCreated() 297 mBackupHelper.stageAndApplyRestoredPayload(out.toByteArray(), DEFAULT_USER_ID); in testRestore_allAppsInstalled_nothingToSp() 321 mBackupHelper.stageAndApplyRestoredPayload(out.toByteArray(), DEFAULT_USER_ID); in testRestore_allAppsInstalled_storeInfoToSp() 346 mBackupHelper.stageAndApplyRestoredPayload(out.toByteArray(), DEFAULT_USER_ID); in testRestore_allAppsInstalled_InfoHasExistedInSp() 366 mBackupHelper.stageAndApplyRestoredPayload(out.toByteArray(), DEFAULT_USER_ID); in testRestore_noAppsInstalled_everythingStaged() 390 mBackupHelper.stageAndApplyRestoredPayload(out.toByteArray(), DEFAULT_USER_ID); in testRestore_someAppsInstalled_partiallyStaged() 409 mBackupHelper.stageAndApplyRestoredPayload(out.toByteArray(), DEFAULT_USER_ID); in testRestore_appLocalesAlreadySet_nothingRestoredAndNoStageData() 443 mBackupHelper.stageAndApplyRestoredPayload(out.toByteArray(), DEFAULT_USER_ID); in testRestore_appLocalesSetForSomeApps_restoresOnlyForAppsHavingNoLocalesSet() 468 mBackupHelper.stageAndApplyRestoredPayload(out.toByteArray(), DEFAULT_USER_ID); in testRestore_restoreInvokedAgain_creationTimeChanged() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationHistoryProtoHelperTest.java | 98 new BufferedInputStream(new ByteArrayInputStream(baos.toByteArray())), in testReadWriteNotifications() 124 new BufferedInputStream(new ByteArrayInputStream(baos.toByteArray())), in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool() 166 new BufferedInputStream(new ByteArrayInputStream(baos.toByteArray())), in testReadNotificationsWithPkgFilter() 208 new BufferedInputStream(new ByteArrayInputStream(baos.toByteArray())), in testReadNotificationsWithNumberFilter() 260 new BufferedInputStream(new ByteArrayInputStream(baos.toByteArray())), in testReadNotificationsWithNumberFilter_preExistingNotifs() 308 new BufferedInputStream(new ByteArrayInputStream(baos.toByteArray())), in testReadMergeIntoExistingHistory()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/model/ |
D | ByteTrackedOutputStreamTest.java | 48 assertThat(outputStream.toByteArray().length).isEqualTo(outputContent.length); in testSuccessfulWriteAndValidateWrittenBytesCount_directFromByteArray() 68 assertThat(outputStream.toByteArray().length).isEqualTo(3); in testSuccessfulWriteAndValidateWrittenBytesCount_fromBitStream()
|
/frameworks/base/identity/java/android/security/identity/ |
D | Util.java | 79 byte[] xBytes = stripLeadingZeroes(x.toByteArray()); in publicKeyEncodeUncompressedForm() 88 byte[] yBytes = stripLeadingZeroes(y.toByteArray()); in publicKeyEncodeUncompressedForm() 96 return baos.toByteArray(); in publicKeyEncodeUncompressedForm()
|
/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() 394 byte[] data = b.toByteArray(); in profileView()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/ |
D | DeviceItemFactoryTest.kt | 123 .thenReturn(TEST_EXCLUSIVE_MANAGER.toByteArray()) in testSavedFactory_isFilterMatched_exclusivelyManaged_returnsFalse() 147 .thenReturn(TEST_EXCLUSIVE_MANAGER.toByteArray()) in testSavedFactory_isFilterMatched_exclusiveManagerNotEnabled_returnsTrue() 161 .thenReturn(TEST_EXCLUSIVE_MANAGER.toByteArray()) in testSavedFactory_isFilterMatched_exclusiveManagerNotInstalled_returnsTrue() 228 .thenReturn(TEST_EXCLUSIVE_MANAGER.toByteArray()) in testConnectedFactory_isFilterMatched_exclusivelyManaged_returnsFalse() 254 .thenReturn(TEST_EXCLUSIVE_MANAGER.toByteArray()) in testConnectedFactory_isFilterMatched_exclusiveManagerNotEnabled_returnsTrue() 269 .thenReturn(TEST_EXCLUSIVE_MANAGER.toByteArray()) in testConnectedFactory_isFilterMatched_exclusiveManagerNotInstalled_returnsTrue()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | BinaryXmlTest.java | 75 final ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray()); in testLargeInterned_Binary() 111 final PersistableBundle actual = doPersistableBundleRead(secondIn, os.toByteArray()); in doTranscode() 149 data = os.toByteArray(); in testResolve_Memory() 166 data = os.toByteArray(); in testResolve_Memory()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/backup/ |
D | CommunalBackupHelper.kt | 26 import com.android.systemui.communal.proto.toByteArray 58 val bytes = state.toByteArray() in performBackup()
|
/frameworks/base/core/java/android/util/ |
D | PackageUtils.java | 70 digests[i] = computeSha256Digest(signatures[i].toByteArray(), separator); in computeSignaturesSha256Digests() 86 return computeSha256Digest(signatures[0].toByteArray(), null); in computeSignaturesSha256Digest() 119 return computeSha256Digest(bytes.toByteArray(), null); in computeSignaturesSha256Digest()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
D | HardwareAuthTokenUtilsTest.java | 41 final byte[] hat2 = HardwareAuthTokenUtils.toByteArray(hardwareAuthToken); in testByteArrayLoopBack() 69 final byte[] hat = HardwareAuthTokenUtils.toByteArray(hardwareAuthToken); in testHardwareAuthTokenLoopBack()
|
/frameworks/base/media/java/android/media/ |
D | MediaCas.java | 564 private ArrayList<Byte> toByteArray(@NonNull byte[] data, int offset, int length) { in toByteArray() method in MediaCas 572 private ArrayList<Byte> toByteArray(@Nullable byte[] data) { in toByteArray() method in MediaCas 576 return toByteArray(data, 0, data.length); in toByteArray() 647 toByteArray(mSessionId), toByteArray(data, 0, data.length))); in setPrivateData() 681 toByteArray(mSessionId), toByteArray(data, offset, length))); in processEcm() 736 toByteArray(mSessionId), event, arg, toByteArray(data))); in sendSessionEvent() 770 mICasHidl.closeSession(toByteArray(mSessionId))); in close() 1099 mICasHidl.setPrivateData(toByteArray(data, 0, data.length))); in setPrivateData() 1308 mICasHidl.processEmm(toByteArray(data, offset, length))); in processEmm() 1358 mICasHidl.sendEvent(event, arg, toByteArray(data))); in sendEvent() [all …]
|