Home
last modified time | relevance | path

Searched refs:meshLocalPrefix (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DActiveOperationalDataset.java194 IpPrefix meshLocalPrefix, in ActiveOperationalDataset() argument
206 this.mMeshLocalPrefix = meshLocalPrefix; in ActiveOperationalDataset()
861 public Builder setMeshLocalPrefix(@NonNull IpPrefix meshLocalPrefix) { in setMeshLocalPrefix() argument
862 requireNonNull(meshLocalPrefix, "meshLocalPrefix cannot be null"); in setMeshLocalPrefix()
864 meshLocalPrefix.getPrefixLength() == LENGTH_MESH_LOCAL_PREFIX_BITS, in setMeshLocalPrefix()
866 meshLocalPrefix.getPrefixLength(), in setMeshLocalPrefix()
869 meshLocalPrefix.getRawAddress()[0] == MESH_LOCAL_PREFIX_FIRST_BYTE, in setMeshLocalPrefix()
870 "Mesh-local prefix must start with 0xfd: " + meshLocalPrefix); in setMeshLocalPrefix() local
871 this.mMeshLocalPrefix = meshLocalPrefix; in setMeshLocalPrefix()
884 public Builder setMeshLocalPrefix(byte[] meshLocalPrefix) { in setMeshLocalPrefix() argument
[all …]
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DOtDaemonController.java88 IpPrefix meshLocalPrefix = getMeshLocalPrefix(); in getMeshLocalAddresses() local
89 if (meshLocalPrefix == null) { in getMeshLocalAddresses()
92 return getAddresses().stream().filter(addr -> meshLocalPrefix.contains(addr)).toList(); in getMeshLocalAddresses()
DFullThreadDevice.java118 IpPrefix meshLocalPrefix = mActiveOperationalDataset.getMeshLocalPrefix(); in getOmrAddress() local
124 if (!meshLocalPrefix.contains(addr)) { in getOmrAddress()
160 IpPrefix meshLocalPrefix = mActiveOperationalDataset.getMeshLocalPrefix(); in getMeshLocalAddresses() local
163 if (meshLocalPrefix.contains(addr)) { in getMeshLocalAddresses()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DThreadIntegrationTest.java235 IpPrefix meshLocalPrefix = DEFAULT_DATASET.getMeshLocalPrefix(); in joinNetworkWithBrDisabled_meshLocalAddressesArePreferred() local
238 if (meshLocalPrefix.contains(address.getAddress())) { in joinNetworkWithBrDisabled_meshLocalAddressesArePreferred()
DBorderRoutingTest.java264 IpPrefix meshLocalPrefix = DEFAULT_DATASET.getMeshLocalPrefix(); in unicastRouting_meshLocalAddressesAreNotPreferred() local
267 if (meshLocalPrefix.contains(address.getAddress())) { in unicastRouting_meshLocalAddressesAreNotPreferred()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkControllerService.java877 final byte[] meshLocalPrefix = newRandomBytes(random, LENGTH_MESH_LOCAL_PREFIX_BITS / 8);
878 meshLocalPrefix[0] = MESH_LOCAL_PREFIX_FIRST_BYTE;
897 .setMeshLocalPrefix(meshLocalPrefix)