| /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/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/ |
| D | NotificationPanelLoggerImpl.java | 42 /* notifications = */ MessageNano.toByteArray(proto)); in logPanelShown() 54 /* notifications = */ MessageNano.toByteArray(proto)); in logPanelShown() 64 /* notifications = */ MessageNano.toByteArray(proto)); in logNotificationDrag() 75 /* notifications = */ MessageNano.toByteArray(proto)); in logNotificationDrag()
|
| /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()
|
| D | XmlUtilsTest.java | 51 InputStream mapInput = new ByteArrayInputStream(baos.toByteArray()); in testMapWithNullKeys() 68 InputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testreadWriteXmlByteArrayValue()
|
| /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/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/tests/Input/src/com/android/server/input/ |
| D | InputDataStoreTests.kt | 293 val inputStream = ByteArrayInputStream(xmlData.toByteArray(Charsets.UTF_8)) in validXmlParse() 332 val inputStream = ByteArrayInputStream(xmlData.toByteArray(Charsets.UTF_8)) in missingTriggerData() 375 val inputStream = ByteArrayInputStream(xmlData.toByteArray(Charsets.UTF_8)) in invalidKeycode() 416 val inputStream = ByteArrayInputStream(xmlData.toByteArray(Charsets.UTF_8)) in invalidTriggerName() 457 val inputStream = ByteArrayInputStream(xmlData.toByteArray(Charsets.UTF_8)) in invalidTouchpadGestureType() 471 val inputStream = ByteArrayInputStream(xmlData.toByteArray(Charsets.UTF_8)) in emptyInputGestureList() 485 val inputStream = ByteArrayInputStream(xmlData.toByteArray(Charsets.UTF_8)) in invalidTag()
|
| /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/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/tests/coretests/src/android/os/ |
| D | PerfettoTraceTest.java | 109 PerfettoTrace.Session session = new PerfettoTrace.Session(true, traceConfig.toByteArray()); in testDebugAnnotations() 164 PerfettoTrace.Session session = new PerfettoTrace.Session(true, traceConfig.toByteArray()); in testNamedTrack() 212 PerfettoTrace.Session session = new PerfettoTrace.Session(true, traceConfig.toByteArray()); in testProcessThreadNamedTrack() 260 PerfettoTrace.Session session = new PerfettoTrace.Session(true, traceConfig.toByteArray()); in testCounterSimple() 303 PerfettoTrace.Session session = new PerfettoTrace.Session(true, traceConfig.toByteArray()); in testCounter() 349 PerfettoTrace.Session session = new PerfettoTrace.Session(true, traceConfig.toByteArray()); in testProcessThreadCounter() 393 PerfettoTrace.Session session = new PerfettoTrace.Session(true, traceConfig.toByteArray()); in testProto() 440 PerfettoTrace.Session session = new PerfettoTrace.Session(true, traceConfig.toByteArray()); in testProtoWithSlowPath() 487 PerfettoTrace.Session session = new PerfettoTrace.Session(true, traceConfig.toByteArray()); in testProtoNested() 548 PerfettoTrace.Session session = new PerfettoTrace.Session(true, traceConfig.toByteArray()); in testActivateTrigger() [all …]
|
| /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/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 | 572 private ArrayList<Byte> toByteArray(@NonNull byte[] data, int offset, int length) { in toByteArray() method in MediaCas 580 private ArrayList<Byte> toByteArray(@Nullable byte[] data) { in toByteArray() method in MediaCas 584 return toByteArray(data, 0, data.length); in toByteArray() 655 toByteArray(mSessionId), toByteArray(data, 0, data.length))); in setPrivateData() 689 toByteArray(mSessionId), toByteArray(data, offset, length))); in processEcm() 744 toByteArray(mSessionId), event, arg, toByteArray(data))); in sendSessionEvent() 778 mICasHidl.closeSession(toByteArray(mSessionId))); in close() 1153 mICasHidl.setPrivateData(toByteArray(data, 0, data.length))); in setPrivateData() 1362 mICasHidl.processEmm(toByteArray(data, offset, length))); in processEmm() 1412 mICasHidl.sendEvent(event, arg, toByteArray(data))); in sendEvent() [all …]
|
| /frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
| D | PersistentDataStoreTest.java | 165 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId() 307 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testStoreAndReloadOfDisplayBrightnessConfigurations() 370 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testStoreAndReloadOfBrightnessConfigurations() 423 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testStoreAndRestoreResolution() 459 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testStoreAndRestoreRefreshRate() 494 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testBrightnessInitialisesWithInvalidFloat() 513 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testStoreAndRestoreBrightnessNitsForDefaultDisplay()
|