Home
last modified time | relevance | path

Searched refs:fromBundle (Results 1 – 25 of 98) sorted by relevance

1234

/packages/modules/Uwb/service/support_lib/test/
DCccTests.java148 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 …]
DAliroTests.java163 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 …]
DFiraTests.java297 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 …]
DRadarTests.java65 () -> 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 …]
DDlTDoATests.java70 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 …]
DOemExtensionTests.java59 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 …]
DMultichipTests.java51 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()
DRfTests.java131 RfTestOpenSessionParams newParams = RfTestOpenSessionParams.fromBundle(bundle); in testRfTestOpenSessionParams()
146 () -> RfTestOpenSessionParams.fromBundle(invalidBundle)); in testInvalidBundleThrowsException()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/profile/
DUuidBundleWrapperTest.java47 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()
DServiceProfileTest.java45 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/
DUwbServiceCore.java659 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/
DFiraPoseUpdateParamsTest.java39 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/
DGenericSpecificationParams.java144 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/
DMetadataTest.java570 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/
DInstrumentClusterRenderingServiceTest.java352 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/
DRadarData.java89 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/
DAliroRangingReconfiguredParams.java43 public static AliroRangingReconfiguredParams fromBundle(PersistableBundle bundle) { in fromBundle() method in AliroRangingReconfiguredParams
DAliroRangingStoppedParams.java57 public static AliroRangingStoppedParams fromBundle(PersistableBundle bundle) { in fromBundle() method in AliroRangingStoppedParams
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/
DClusterHomeActivity.java64 ClusterActivityState activityState = ClusterActivityState.fromBundle(extra); in logIntent()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/profile/
DServiceProfile.java54 public static ServiceProfile fromBundle(PersistableBundle bundle) { in fromBundle() method in ServiceProfile
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/fira/
DFiraDataTransferPhaseConfigStatusCode.java54 public static FiraDataTransferPhaseConfigStatusCode fromBundle(PersistableBundle bundle) { in fromBundle() method in FiraDataTransferPhaseConfigStatusCode
DFiraStatusCode.java53 public static FiraStatusCode fromBundle(PersistableBundle bundle) { in fromBundle() method in FiraStatusCode
DFiraMulticastListUpdateStatusCode.java53 public static FiraMulticastListUpdateStatusCode fromBundle(PersistableBundle bundle) { in fromBundle() method in FiraMulticastListUpdateStatusCode
DFiraStateChangeReasonCode.java53 public static FiraStateChangeReasonCode fromBundle(PersistableBundle bundle) { in fromBundle() method in FiraStateChangeReasonCode
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/ccc/
DCccRangingStoppedParams.java58 public static CccRangingStoppedParams fromBundle(PersistableBundle bundle) { in fromBundle() method in CccRangingStoppedParams

1234