/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/ |
D | OperationalDatasetTimestampTest.java | 23 import android.net.thread.OperationalDatasetTimestamp; 50 OperationalDatasetTimestamp.fromInstant( in fromInstant_tooLargeInstant_throwsIllegalArgument() 60 OperationalDatasetTimestamp timestampTicks32767 = in fromInstant_ticksIsRounded() 61 OperationalDatasetTimestamp.fromInstant(instant.plusNanos(999984741)); in fromInstant_ticksIsRounded() 62 OperationalDatasetTimestamp timestampTicks0 = in fromInstant_ticksIsRounded() 63 OperationalDatasetTimestamp.fromInstant(instant.plusNanos(999984742)); in fromInstant_ticksIsRounded() 76 assertThat(new OperationalDatasetTimestamp(100L, 32767, false).toInstant().getNano()) in toInstant_nanosIsRounded() 80 assertThat(new OperationalDatasetTimestamp(100L, 32766, false).toInstant().getNano()) in toInstant_nanosIsRounded() 86 OperationalDatasetTimestamp timestamp1 = in toInstant_onlyAuthoritativeSourceDiscarded() 87 new OperationalDatasetTimestamp(100L, 0x7fff, false); in toInstant_onlyAuthoritativeSourceDiscarded() [all …]
|
D | PendingOperationalDatasetTest.java | 29 import android.net.thread.OperationalDatasetTimestamp; 60 .setActiveTimestamp(new OperationalDatasetTimestamp(100, 10, false)) in createActiveDataset() 78 new OperationalDatasetTimestamp(31536000, 200, false), in parcelable_parcelingIsLossLess() 99 new OperationalDatasetTimestamp(31536000, 100, false), in equalityTests() 103 new OperationalDatasetTimestamp(31536000, 100, false), in equalityTests() 108 new OperationalDatasetTimestamp(31536000, 100, false), in equalityTests() 112 new OperationalDatasetTimestamp(31536000, 100, false), in equalityTests() 117 new OperationalDatasetTimestamp(15768000, 0, false), in equalityTests() 121 new OperationalDatasetTimestamp(15768000, 0, false), in equalityTests() 126 new OperationalDatasetTimestamp(15768000, 0, false), in equalityTests() [all …]
|
D | ThreadNetworkControllerTest.java | 58 import android.net.thread.OperationalDatasetTimestamp; 496 .setActiveTimestamp(new OperationalDatasetTimestamp(1L, 0, false)) 501 .setActiveTimestamp(new OperationalDatasetTimestamp(2L, 0, false)) 507 OperationalDatasetTimestamp.fromInstant(Instant.now()), 553 OperationalDatasetTimestamp.fromInstant(Instant.now()), 571 .setActiveTimestamp(new OperationalDatasetTimestamp(1L, 0, false)) 575 .setActiveTimestamp(new OperationalDatasetTimestamp(2L, 0, false)) 581 new OperationalDatasetTimestamp(100, 0, false), 585 .setActiveTimestamp(new OperationalDatasetTimestamp(3L, 0, false)) 591 new OperationalDatasetTimestamp(20, 0, false), [all …]
|
D | ActiveOperationalDatasetTest.java | 32 import android.net.thread.OperationalDatasetTimestamp; 434 .isEqualTo(new OperationalDatasetTimestamp(1, 0, false)); in fromThreadTlvs_validFullDataset_success() 629 new OperationalDatasetTimestamp( in builder_setValidActiveTimestamp_success()
|
/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/ |
D | OperationalDatasetTimestampTest.java | 40 () -> OperationalDatasetTimestamp.fromTlvValue(new byte[7])); in fromTlvValue_invalidTimestamp_throwsIllegalArguments() 45 OperationalDatasetTimestamp timestamp = in fromTlvValue_goodValue_success() 46 OperationalDatasetTimestamp.fromTlvValue(base16().decode("FFEEDDCCBBAA9989")); in fromTlvValue_goodValue_success() 56 OperationalDatasetTimestamp timestamp1 = new OperationalDatasetTimestamp(100L, 10, true); in toTlvValue_conversionIsLossLess() 58 OperationalDatasetTimestamp timestamp2 = in toTlvValue_conversionIsLossLess() 59 OperationalDatasetTimestamp.fromTlvValue(timestamp1.toTlvValue()); in toTlvValue_conversionIsLossLess() 71 OperationalDatasetTimestamp timestamp1 = in toTlvValue_timestampFromInstant_conversionIsLossLess() 72 OperationalDatasetTimestamp.fromInstant(Instant.ofEpochSecond(100, 999938900)); in toTlvValue_timestampFromInstant_conversionIsLossLess() 74 OperationalDatasetTimestamp timestamp2 = in toTlvValue_timestampFromInstant_conversionIsLossLess() 75 OperationalDatasetTimestamp.fromTlvValue(timestamp1.toTlvValue()); in toTlvValue_timestampFromInstant_conversionIsLossLess()
|
D | ThreadNetworkControllerTest.java | 295 new OperationalDatasetTimestamp(100, 0, false), in scheduleMigration_callbackIsInvokedWithCallingAppIdentity()
|
/packages/modules/Connectivity/thread/framework/java/android/net/thread/ |
D | OperationalDatasetTimestamp.java | 42 public final class OperationalDatasetTimestamp { class 67 public static OperationalDatasetTimestamp fromInstant(@NonNull Instant instant) { in fromInstant() 72 return new OperationalDatasetTimestamp(seconds, ticks, true /* isAuthoritativeSource */); in fromInstant() 96 public static OperationalDatasetTimestamp fromTlvValue(@NonNull byte[] encodedTimestamp) { in fromTlvValue() 105 return new OperationalDatasetTimestamp( in fromTlvValue() 138 public OperationalDatasetTimestamp( in OperationalDatasetTimestamp() method in OperationalDatasetTimestamp 199 } else if (!(other instanceof OperationalDatasetTimestamp)) { in equals() 202 OperationalDatasetTimestamp otherTimestamp = (OperationalDatasetTimestamp) other; in equals()
|
D | PendingOperationalDataset.java | 70 @NonNull private final OperationalDatasetTimestamp mPendingTimestamp; 85 @NonNull OperationalDatasetTimestamp pendingTimestamp, in PendingOperationalDataset() 110 OperationalDatasetTimestamp pendingTimestamp = null; in fromThreadTlvs() 119 pendingTimestamp = OperationalDatasetTimestamp.fromTlvValue(value); in fromThreadTlvs() 158 public OperationalDatasetTimestamp getPendingTimestamp() { in getPendingTimestamp()
|
D | ActiveOperationalDataset.java | 155 private final OperationalDatasetTimestamp mActiveTimestamp; 185 OperationalDatasetTimestamp activeTimestamp, in ActiveOperationalDataset() 310 builder.setActiveTimestamp(OperationalDatasetTimestamp.fromTlvValue(value)); in initWithTlv() 464 public OperationalDatasetTimestamp getActiveTimestamp() { in getActiveTimestamp() 640 private OperationalDatasetTimestamp mActiveTimestamp; 691 public Builder setActiveTimestamp(@NonNull OperationalDatasetTimestamp activeTimestamp) { in setActiveTimestamp() 964 + OperationalDatasetTimestamp.LENGTH_TIMESTAMP in getTotalDatasetLength()
|
/packages/modules/Connectivity/thread/demoapp/java/com/android/threadnetwork/demoapp/ |
D | ThreadNetworkSettingsFragment.java | 29 import android.net.thread.OperationalDatasetTimestamp; 211 .setActiveTimestamp(OperationalDatasetTimestamp.fromInstant(Instant.now())) in doMigration() 216 OperationalDatasetTimestamp.fromInstant(Instant.now()), in doMigration()
|
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/ |
D | ThreadNetworkShellCommand.java | 23 import android.net.thread.OperationalDatasetTimestamp; 194 OperationalDatasetTimestamp.fromInstant(Instant.now()), in migrate()
|
D | ThreadNetworkControllerService.java | 98 import android.net.thread.OperationalDatasetTimestamp; 888 new OperationalDatasetTimestamp(
|
/packages/modules/Connectivity/framework-t/api/ |
D | system-current.txt | 429 method @NonNull public android.net.thread.OperationalDatasetTimestamp getActiveTimestamp(); 459 …ationalDataset.Builder setActiveTimestamp(@NonNull android.net.thread.OperationalDatasetTimestamp); 479 …Api("com.android.net.thread.flags.thread_enabled") public final class OperationalDatasetTimestamp { 480 …ctor public OperationalDatasetTimestamp(@IntRange(from=0, to=281474976710655L) long, @IntRange(fro… 481 …method @NonNull public static android.net.thread.OperationalDatasetTimestamp fromInstant(@NonNull … 489 …t.thread.ActiveOperationalDataset, @NonNull android.net.thread.OperationalDatasetTimestamp, @NonNu… 494 method @NonNull public android.net.thread.OperationalDatasetTimestamp getPendingTimestamp();
|