Home
last modified time | relevance | path

Searched refs:fromTlvValue (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/
DOperationalDatasetTimestampTest.java40 () -> OperationalDatasetTimestamp.fromTlvValue(new byte[7])); in fromTlvValue_invalidTimestamp_throwsIllegalArguments()
46 OperationalDatasetTimestamp.fromTlvValue(base16().decode("FFEEDDCCBBAA9989")); in fromTlvValue_goodValue_success()
59 OperationalDatasetTimestamp.fromTlvValue(timestamp1.toTlvValue()); in toTlvValue_conversionIsLossLess()
75 OperationalDatasetTimestamp.fromTlvValue(timestamp1.toTlvValue()); in toTlvValue_timestampFromInstant_conversionIsLossLess()
DActiveOperationalDatasetTest.java117 () -> SecurityPolicy.fromTlvValue(new byte[] {0x01})); in securityPolicy_fromTooShortTlvValue_throwsIllegalArgument()
120 () -> SecurityPolicy.fromTlvValue(new byte[] {0x01, 0x02})); in securityPolicy_fromTooShortTlvValue_throwsIllegalArgument()
127 SecurityPolicy policy2 = SecurityPolicy.fromTlvValue(policy1.toTlvValue()); in securityPolicy_toTlvValue_conversionIsLossLess()
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DOperationalDatasetTimestamp.java96 public static OperationalDatasetTimestamp fromTlvValue(@NonNull byte[] encodedTimestamp) { in fromTlvValue() method in OperationalDatasetTimestamp
DActiveOperationalDataset.java307 builder.setSecurityPolicy(SecurityPolicy.fromTlvValue(value)); in initWithTlv()
310 builder.setActiveTimestamp(OperationalDatasetTimestamp.fromTlvValue(value)); in initWithTlv()
1043 public static SecurityPolicy fromTlvValue(byte[] encodedSecurityPolicy) { in fromTlvValue() method in ActiveOperationalDataset.SecurityPolicy
DPendingOperationalDataset.java119 pendingTimestamp = OperationalDatasetTimestamp.fromTlvValue(value); in fromThreadTlvs()