Home
last modified time | relevance | path

Searched refs:KVersion (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DDeviceInfoUtilsTest.java51 final DeviceInfoUtils.KVersion expected = new DeviceInfoUtils.KVersion(4, 19, 220); in testGetMajorMinorSubminorVersion()
57 final DeviceInfoUtils.KVersion expected2 = new DeviceInfoUtils.KVersion(5, 17, 0); in testGetMajorMinorSubminorVersion()
64 final DeviceInfoUtils.KVersion invalid = new DeviceInfoUtils.KVersion(0, 0, 0); in testGetMajorMinorSubminorVersion()
75 final DeviceInfoUtils.KVersion v1 = new DeviceInfoUtils.KVersion(4, 8, 1); in testVersion()
76 final DeviceInfoUtils.KVersion v2 = new DeviceInfoUtils.KVersion(4, 8, 1); in testVersion()
77 final DeviceInfoUtils.KVersion v3 = new DeviceInfoUtils.KVersion(4, 8, 2); in testVersion()
78 final DeviceInfoUtils.KVersion v4 = new DeviceInfoUtils.KVersion(4, 9, 1); in testVersion()
79 final DeviceInfoUtils.KVersion v5 = new DeviceInfoUtils.KVersion(5, 8, 1); in testVersion()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDeviceInfoUtils.java34 public static class KVersion { class in DeviceInfoUtils
39 public KVersion(int major, int minor, int sub) { in KVersion() method in DeviceInfoUtils.KVersion
53 public int compareTo(final KVersion other) { in compareTo()
71 public boolean isAtLeast(final KVersion from) { in isAtLeast()
83 public boolean isInRange(final KVersion from, final KVersion to) { in isInRange()
89 if (!(o instanceof KVersion)) return false; in equals()
90 KVersion that = (KVersion) o; in equals()
145 public static KVersion getMajorMinorSubminorVersion(final String version) { in getMajorMinorSubminorVersion()
157 return new KVersion(major, minor, sub); in getMajorMinorSubminorVersion()
159 return new KVersion(0, 0, 0); in getMajorMinorSubminorVersion()
[all …]
/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/
DMtsEthernetTetheringTest.java22 import static com.android.testutils.DeviceInfoUtils.KVersion;
93 final KVersion current = DeviceInfoUtils.getMajorMinorSubminorVersion(kernelVersion); in isUdpOffloadSupportedByKernel()
94 return current.isInRange(new KVersion(4, 14, 222), new KVersion(4, 19, 0)) in isUdpOffloadSupportedByKernel()
95 || current.isInRange(new KVersion(4, 19, 176), new KVersion(5, 4, 0)) in isUdpOffloadSupportedByKernel()
96 || current.isAtLeast(new KVersion(5, 4, 98)); in isUdpOffloadSupportedByKernel()