/packages/modules/Uwb/service/support_lib/test/ |
D | CccTests.java | 148 CccOpenRangingParams fromBundle = CccOpenRangingParams.fromBundle(params.toBundle()); in testOpenRangingParams() local 149 assertEquals(fromBundle.getProtocolVersion(), protocolVersion); in testOpenRangingParams() 150 assertEquals(fromBundle.getUwbConfig(), uwbConfig); in testOpenRangingParams() 152 fromBundle.getPulseShapeCombo().getInitiatorTx(), pulseShapeCombo.getInitiatorTx()); in testOpenRangingParams() 154 fromBundle.getPulseShapeCombo().getResponderTx(), pulseShapeCombo.getResponderTx()); in testOpenRangingParams() 155 assertEquals(fromBundle.getSessionId(), sessionId); in testOpenRangingParams() 156 assertEquals(fromBundle.getRanMultiplier(), ranMultiplier); in testOpenRangingParams() 157 assertEquals(fromBundle.getChannel(), channel); in testOpenRangingParams() 158 assertEquals(fromBundle.getNumChapsPerSlot(), chapsPerSlot); in testOpenRangingParams() 159 assertEquals(fromBundle.getNumResponderNodes(), numResponderNodes); in testOpenRangingParams() [all …]
|
D | AliroTests.java | 163 AliroOpenRangingParams fromBundle = AliroOpenRangingParams.fromBundle(params.toBundle()); in testOpenRangingParams() local 164 assertEquals(fromBundle.getProtocolVersion(), protocolVersion); in testOpenRangingParams() 165 assertEquals(fromBundle.getUwbConfig(), uwbConfig); in testOpenRangingParams() 167 fromBundle.getPulseShapeCombo().getInitiatorTx(), pulseShapeCombo.getInitiatorTx()); in testOpenRangingParams() 169 fromBundle.getPulseShapeCombo().getResponderTx(), pulseShapeCombo.getResponderTx()); in testOpenRangingParams() 170 assertEquals(fromBundle.getSessionId(), sessionId); in testOpenRangingParams() 171 assertEquals(fromBundle.getRanMultiplier(), ranMultiplier); in testOpenRangingParams() 172 assertEquals(fromBundle.getChannel(), channel); in testOpenRangingParams() 173 assertEquals(fromBundle.getNumChapsPerSlot(), chapsPerSlot); in testOpenRangingParams() 174 assertEquals(fromBundle.getNumResponderNodes(), numResponderNodes); in testOpenRangingParams() [all …]
|
D | FiraTests.java | 297 FiraOpenSessionParams fromBundle = FiraOpenSessionParams.fromBundle(params.toBundle()); in testOpenSessionParams() local 299 assertEquals(fromBundle.getRangingRoundUsage(), rangingRoundUsage); in testOpenSessionParams() 300 assertEquals(fromBundle.getMultiNodeMode(), multiNodeMode); in testOpenSessionParams() 302 assertEquals(fromBundle.getDeviceAddress(), deviceAddress); in testOpenSessionParams() 303 assertEquals(fromBundle.getDestAddressList().size(), destAddressList.size()); in testOpenSessionParams() 305 assertEquals(fromBundle.getDestAddressList().get(i), destAddressList.get(i)); in testOpenSessionParams() 308 assertEquals(fromBundle.getInitiationTime(), initiationTime); in testOpenSessionParams() 309 assertEquals(fromBundle.getSlotDurationRstu(), slotDurationRstu); in testOpenSessionParams() 310 assertEquals(fromBundle.getSlotsPerRangingRound(), slotsPerRangingRound); in testOpenSessionParams() 311 assertEquals(fromBundle.getRangingIntervalMs(), rangingIntervalMs); in testOpenSessionParams() [all …]
|
D | RadarTests.java | 65 () -> RadarOpenSessionParams.fromBundle(INVALID_BUNDLE)); in testOpenSessionParams_fromBundleWithInvalidProtocol() 123 RadarOpenSessionParams fromBundle = RadarOpenSessionParams.fromBundle(params.toBundle()); in testOpenSessionParams() local 125 assertEquals(fromBundle.getSessionId(), SESSION_ID); in testOpenSessionParams() 126 assertEquals(fromBundle.getSessionType(), RadarParams.SESSION_TYPE_RADAR); in testOpenSessionParams() 127 assertEquals(fromBundle.getBurstPeriod(), burstPeriod); in testOpenSessionParams() 128 assertEquals(fromBundle.getSweepPeriod(), sweepPeriod); in testOpenSessionParams() 129 assertEquals(fromBundle.getSweepsPerBurst(), sweepsPerBurst); in testOpenSessionParams() 130 assertEquals(fromBundle.getSamplesPerSweep(), samplesPerSweep); in testOpenSessionParams() 131 assertEquals(fromBundle.getChannelNumber(), channelNumber); in testOpenSessionParams() 132 assertEquals(fromBundle.getSweepOffset(), sweepOffset); in testOpenSessionParams() [all …]
|
D | DlTDoATests.java | 70 DlTDoAMeasurement fromBundle = DlTDoAMeasurement.fromBundle(dlTDoAMeasurement.toBundle()); in dlTDoAMeasurementTest() local 72 assertEquals(fromBundle.getMessageType(), messageType); in dlTDoAMeasurementTest() 73 assertEquals(fromBundle.getMessageControl(), messageControl); in dlTDoAMeasurementTest() 74 assertEquals(fromBundle.getBlockIndex(), blockIndex); in dlTDoAMeasurementTest() 75 assertEquals(fromBundle.getRoundIndex(), roundIndex); in dlTDoAMeasurementTest() 76 assertEquals(fromBundle.getNLoS(), nLoS); in dlTDoAMeasurementTest() 77 assertEquals(fromBundle.getTxTimestamp(), txTimestamp); in dlTDoAMeasurementTest() 78 assertEquals(fromBundle.getRxTimestamp(), rxTimestamp); in dlTDoAMeasurementTest() 79 assertEquals(fromBundle.getAnchorCfo(), anchorCfo, 0.0); in dlTDoAMeasurementTest() 80 assertEquals(fromBundle.getCfo(), cfo, 0.0); in dlTDoAMeasurementTest() [all …]
|
D | OemExtensionTests.java | 59 DeviceStatus fromBundle = DeviceStatus.fromBundle(deviceState.toBundle()); in testDeviceState() local 61 assertEquals(fromBundle.getDeviceState(), state); in testDeviceState() 62 assertEquals(fromBundle.getChipId(), chipId); in testDeviceState() 87 SessionStatus fromBundle = SessionStatus.fromBundle(sessionStatus.toBundle()); in testSessionStatus() local 89 assertEquals(fromBundle.getSessionId(), sessionId); in testSessionStatus() 90 assertEquals(fromBundle.getState(), state); in testSessionStatus() 91 assertEquals(fromBundle.getReasonCode(), reasonCode); in testSessionStatus() 92 assertEquals(fromBundle.getAppPackageName(), appPackageName); in testSessionStatus() 93 assertEquals(fromBundle.getSessionToken(), sessionToken); in testSessionStatus() 107 RangingReportMetadata fromBundle = RangingReportMetadata in testRangingReportMetadata() local [all …]
|
D | MultichipTests.java | 51 ChipInfoParams fromBundle = ChipInfoParams.fromBundle(bundle); in testChipInfoParams() local 53 assertEquals(fromBundle.getChipId(), chipId); in testChipInfoParams() 54 assertEquals(fromBundle.getPositionX(), positionX, 0); in testChipInfoParams() 55 assertEquals(fromBundle.getPositionY(), positionY, 0); in testChipInfoParams() 56 assertEquals(fromBundle.getPositionZ(), positionZ, 0); in testChipInfoParams()
|
D | RfTests.java | 131 RfTestOpenSessionParams newParams = RfTestOpenSessionParams.fromBundle(bundle); in testRfTestOpenSessionParams() 146 () -> RfTestOpenSessionParams.fromBundle(invalidBundle)); in testInvalidBundleThrowsException()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/profile/ |
D | UuidBundleWrapperTest.java | 47 fromBundle = UuidBundleWrapper.fromBundle(status.toBundle()); in testStatus() local 49 assertEquals(fromBundle.getServiceInstanceID().get(), serviceInstanceID); in testStatus() 61 fromBundle = UuidBundleWrapper.fromBundle(status.toBundle()); in testEmpty() local 63 assertTrue(fromBundle.getServiceInstanceID().isEmpty()); in testEmpty()
|
D | ServiceProfileTest.java | 45 ServiceProfile fromBundle = ServiceProfile.fromBundle(config.toBundle()); in testServiceProfile() local 47 assertEquals(fromBundle.getBundleVersion(), config.getBundleVersion()); in testServiceProfile() 48 assertEquals(fromBundle.getServiceID(), serviceID); in testServiceProfile()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbServiceCore.java | 659 UuidBundleWrapper uuidBundleWrapper = UuidBundleWrapper.fromBundle(params); in openRanging() 669 new FiraOpenSessionParams.Builder(FiraOpenSessionParams.fromBundle(params)); in openRanging() 688 CccOpenRangingParams cccOpenRangingParams = CccOpenRangingParams.fromBundle(params); in openRanging() 690 new CccOpenRangingParams.Builder(CccOpenRangingParams.fromBundle(params)); in openRanging() 705 AliroOpenRangingParams.fromBundle(params); in openRanging() 707 new AliroOpenRangingParams.Builder(AliroOpenRangingParams.fromBundle(params)); in openRanging() 722 RadarOpenSessionParams.fromBundle(params); in openRanging() 730 RfTestOpenSessionParams.fromBundle(params); in openRanging() 752 startRangingParams = CccStartRangingParams.fromBundle(params); in startRanging() 754 startRangingParams = AliroStartRangingParams.fromBundle(params); in startRanging() [all …]
|
/packages/modules/Uwb/service/support_lib/test/com/google/uwb/support/fira/ |
D | FiraPoseUpdateParamsTest.java | 39 unbundled = FiraPoseUpdateParams.fromBundle(bundle); in testParams() 47 unbundled = FiraPoseUpdateParams.fromBundle(bundle); in testParams() 57 unbundled = FiraPoseUpdateParams.fromBundle(bundle); in testParams()
|
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/generic/ |
D | GenericSpecificationParams.java | 144 public static GenericSpecificationParams fromBundle(PersistableBundle bundle) { in fromBundle() method in GenericSpecificationParams 163 FiraSpecificationParams.fromBundle( in parseVersion1() 169 CccSpecificationParams.fromBundle(cccBundle)); in parseVersion1() 175 AliroSpecificationParams.fromBundle(aliroBundle)); in parseVersion1() 182 RadarSpecificationParams.fromBundle(radarBundle)); in parseVersion1()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MetadataTest.java | 570 Metadata metadata = new Metadata.Builder().fromBundle(bundle).build(); in testBuildMetadataFromBundle() 591 Metadata metadata = new Metadata.Builder().fromBundle(bundle).build(); in testBuildMetadataFromBundleWithArt() 612 Metadata metadata = new Metadata.Builder().fromBundle(bundle).build(); in testBuildMetadataFromBundleWithAlbumArt() 633 Metadata metadata = new Metadata.Builder().fromBundle(bundle).build(); in testBuildMetadataFromBundleWithDisplayIcon() 655 new Metadata.Builder().useContext(mMockContext).fromBundle(bundle).build(); in testBuildMetadataFromBundleWithUriArt() 677 new Metadata.Builder().useContext(mMockContext).fromBundle(bundle).build(); in testBuildMetadataFromBundleWithUriAlbumArt() 699 new Metadata.Builder().useContext(mMockContext).fromBundle(bundle).build(); in testBuildMetadataFromBundleWithUriDisplayIcon() 719 Metadata metadata = new Metadata.Builder().fromBundle(bundle).build(); in testBuildMetadataFromBundleWithUriNoContext() 742 new Metadata.Builder().useContext(mMockContext).fromBundle(bundle).build(); in testBuildMetadataFromBundleWithUriAndUrisDisabled() 760 Metadata metadata = new Metadata.Builder().fromBundle(bundle).build(); in testBuildMetadataFromEmptyBundle() [all …]
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/cluster/renderer/ |
D | InstrumentClusterRenderingServiceTest.java | 352 ActivityOptions activityOptions = ActivityOptions.fromBundle(activityOptionsBundle); in startFixedActivityMode_callsClusterHelper() 363 assertThat(ClusterActivityState.fromBundle( in startFixedActivityMode_callsClusterHelper() 381 ActivityOptions activityOptions = ActivityOptions.fromBundle(activityOptionsBundle); in startFixedActivityMode_activityStateMissingInTheIntent() 391 assertThat(ClusterActivityState.fromBundle( in startFixedActivityMode_activityStateMissingInTheIntent() 410 ActivityOptions activityOptions = ActivityOptions.fromBundle(activityOptionsBundle); in startFixedActivityMode_clusterHelperFailure() 428 ActivityOptions.fromBundle(new Bundle()), in startFixedActivityMode_clusterHelperAbsent()
|
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/radar/ |
D | RadarData.java | 89 public static RadarData fromBundle(PersistableBundle bundle) { in fromBundle() method in RadarData 115 builder.addSweepData(RadarSweepData.fromBundle(sweepBundle)); in parseBundleVersion1()
|
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/aliro/ |
D | AliroRangingReconfiguredParams.java | 43 public static AliroRangingReconfiguredParams fromBundle(PersistableBundle bundle) { in fromBundle() method in AliroRangingReconfiguredParams
|
D | AliroRangingStoppedParams.java | 57 public static AliroRangingStoppedParams fromBundle(PersistableBundle bundle) { in fromBundle() method in AliroRangingStoppedParams
|
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/ |
D | ClusterHomeActivity.java | 64 ClusterActivityState activityState = ClusterActivityState.fromBundle(extra); in logIntent()
|
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/profile/ |
D | ServiceProfile.java | 54 public static ServiceProfile fromBundle(PersistableBundle bundle) { in fromBundle() method in ServiceProfile
|
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/fira/ |
D | FiraDataTransferPhaseConfigStatusCode.java | 54 public static FiraDataTransferPhaseConfigStatusCode fromBundle(PersistableBundle bundle) { in fromBundle() method in FiraDataTransferPhaseConfigStatusCode
|
D | FiraStatusCode.java | 53 public static FiraStatusCode fromBundle(PersistableBundle bundle) { in fromBundle() method in FiraStatusCode
|
D | FiraMulticastListUpdateStatusCode.java | 53 public static FiraMulticastListUpdateStatusCode fromBundle(PersistableBundle bundle) { in fromBundle() method in FiraMulticastListUpdateStatusCode
|
D | FiraStateChangeReasonCode.java | 53 public static FiraStateChangeReasonCode fromBundle(PersistableBundle bundle) { in fromBundle() method in FiraStateChangeReasonCode
|
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/ccc/ |
D | CccRangingStoppedParams.java | 58 public static CccRangingStoppedParams fromBundle(PersistableBundle bundle) { in fromBundle() method in CccRangingStoppedParams
|