Home
last modified time | relevance | path

Searched refs:major (Results 1 – 25 of 92) sorted by relevance

1234

/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDeviceInfoUtils.java35 public final int major; field in DeviceInfoUtils.KVersion
39 public KVersion(int major, int minor, int sub) { in KVersion() argument
40 this.major = major; in KVersion()
54 int res = Integer.compare(this.major, other.major); in compareTo()
91 return this.major == that.major in equals()
107 final int major = Integer.parseInt(m.group(1)); in getMajorMinorVersion() local
109 return new Pair<>(major, minor); in getMajorMinorVersion()
154 final int major = Integer.parseInt(m.group(1)); in getMajorMinorSubminorVersion() local
157 return new KVersion(major, minor, sub); in getMajorMinorSubminorVersion()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/helpers/
DAvrcpVersion.java35 public int major; field in AvrcpVersion
57 if (major < version.major) return false; in isAtleastVersion()
58 if (major > version.major) return true; in isAtleastVersion()
65 major = majorVersion; in AvrcpVersion()
70 if (major < 0 || minor < 0) return "Invalid"; in toString()
71 return major + "." + minor; in toString()
/packages/modules/Bluetooth/system/bta/sys/
Dutl.cc162 uint8_t minor, major; in utl_set_device_class() local
168 BTM_COD_MAJOR_CLASS(major, old_class); in utl_set_device_class()
173 major = p_cod->major & BTM_COD_MAJOR_CLASS_MASK; in utl_set_device_class()
189 major = p_cod->major & BTM_COD_MAJOR_CLASS_MASK; in utl_set_device_class()
196 major = p_cod->major & BTM_COD_MAJOR_CLASS_MASK; in utl_set_device_class()
206 FIELDS_TO_COD(dev_class, minor, major, service); in utl_set_device_class()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/fira/
DFiraProtocolVersion.java27 public FiraProtocolVersion(int major, int minor) { in FiraProtocolVersion() argument
28 super(major, minor); in FiraProtocolVersion()
48 int major = data[startIndex] & 0xFF; in fromBytes() local
50 return new FiraProtocolVersion(major, minor); in fromBytes()
61 int major = version & 0xFF; in fromLEShort() local
64 return new FiraProtocolVersion(major, minor); in fromLEShort()
/packages/modules/Virtualization/tests/pvmfw/java/com/android/pvmfw/test/
DPvmfwImgTest.java44 int major = pair[0]; in testPvmfw_beforeVmReferenceDt_whenSecretKeeperExists() local
46 String version = "v" + major + "." + minor; in testPvmfw_beforeVmReferenceDt_whenSecretKeeperExists()
49 Pvmfw pvmfw = builder.setVersion(major, minor).build(); in testPvmfw_beforeVmReferenceDt_whenSecretKeeperExists()
85 int major = pair[0]; in testInvalidConfigVersion_doesNotBoot() local
87 String version = "v" + major + "." + minor; in testInvalidConfigVersion_doesNotBoot()
89 if (Pvmfw.makeVersion(major, minor) >= Pvmfw.makeVersion(1, 2) in testInvalidConfigVersion_doesNotBoot()
95 Pvmfw pvmfw = builder.setVersion(major, minor).build(); in testInvalidConfigVersion_doesNotBoot()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DChannelNumberSubject.java48 public void displaysAs(int major) { in displaysAs() argument
49 if (!actual.majorNumber.equals(Integer.toString(major)) || actual.hasDelimiter) { in displaysAs()
50 failWithActual("expected to display as", major); in displaysAs()
54 public void displaysAs(int major, int minor) { in displaysAs() argument
55 if (!actual.majorNumber.equals(Integer.toString(major)) in displaysAs()
58 failWithActual("expected to display as", major + "-" + minor); in displaysAs()
/packages/services/Car/service/src/com/android/car/pm/
DCarVersionParser.java49 int major, minor; in getTargetCarVersion() local
51 major = info.targetSdkVersion; in getTargetCarVersion()
54 Slogf.d(TAG, "parse(%s): no metadata, returning (%d, %d)", pkgName, major, minor); in getTargetCarVersion()
56 return CarVersion.forMajorAndMinorVersions(major, minor); in getTargetCarVersion()
76 int major = Integer.parseInt(matcher.group("major")); in parse() local
79 return CarVersion.forMajorAndMinorVersions(major, minor); in parse()
/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/
DKernelUtils.h45 static inline bool isAtLeastKernelVersion(unsigned major, unsigned minor, unsigned sub) { in isAtLeastKernelVersion() argument
46 return kernelVersion() >= KVER(major, minor, sub); in isAtLeastKernelVersion()
49 static inline bool isKernelVersion(unsigned major, unsigned minor) { in isKernelVersion() argument
50 return isAtLeastKernelVersion(major, minor, 0) && !isAtLeastKernelVersion(major, minor + 1, 0); in isKernelVersion()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/aliro/
DAliroProtocolVersion.java27 public AliroProtocolVersion(int major, int minor) { in AliroProtocolVersion() argument
28 super(major, minor); in AliroProtocolVersion()
48 int major = data[startIndex]; in fromBytes() local
50 return new AliroProtocolVersion(major, minor); in fromBytes()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/ccc/
DCccProtocolVersion.java27 public CccProtocolVersion(int major, int minor) { in CccProtocolVersion() argument
28 super(major, minor); in CccProtocolVersion()
48 int major = data[startIndex]; in fromBytes() local
50 return new CccProtocolVersion(major, minor); in fromBytes()
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/
Dcod.rs4 major: u32, field
10 Class { major: (cod & 0x1f00) >> 8, minor: (cod & 0xff) } in new()
16 c.major == 0x05 && ((c.minor >> 6) & 0x03) == 0x01 in is_cod_hid_keyboard()
21 c.major == 0x05 && ((c.minor >> 6) & 0x03) == 0x03 in is_cod_hid_combo()
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DOSVersion.java58 @NonNull int major, in OSVersion()
61 this.mMajor = major; in OSVersion()
151 int major = in.readInt(); in OSVersion() local
155 this.mMajor = major; in OSVersion()
206 @NonNull int major, in Builder()
209 mMajor = major; in Builder()
/packages/modules/Virtualization/pvmfw/src/
Dconfig.rs85 const VERSION_1_0: Version = Version { major: 1, minor: 0 };
86 const VERSION_1_1: Version = Version { major: 1, minor: 1 };
87 const VERSION_1_2: Version = Version { major: 1, minor: 2 };
110 v @ Version { major: 1, .. } => { in entry_count()
158 major: u16, field
164 let (major, minor) = (self.major, self.minor); in fmt()
165 write!(f, "{}.{}", major, minor) in fmt()
/packages/modules/Virtualization/vmbase/src/hvc/
Dtrng.rs62 pub major: u16, field
68 write!(f, "{}.{}", self.major, self.minor) in fmt()
85 Ok(Self { major: (value >> 16) as u16, minor: value as u16 }) in try_from()
92 (u32::from(version.major) << 16) | u32::from(version.minor) in from()
/packages/services/Car/car-lib/src/android/car/
DApiVersion.java165 int major = source.readInt(); in readFromParcel() local
167 return factory.newInstance(name, major, minor); in readFromParcel()
174 T newInstance(String name, int major, int minor); in newInstance() argument
DCarVersion.java135 (name, major, minor) -> new CarVersion(name, major, minor));
DPlatformVersion.java152 (name, major, minor) -> new PlatformVersion(name, major, minor));
/packages/modules/Virtualization/tests/pvmfw/helper/java/com/android/pvmfw/test/host/
DPvmfw.java53 public static int makeVersion(int major, int minor) { in makeVersion() argument
54 return ((major & 0xFFFF) << 16) | (minor & 0xFFFF); in makeVersion()
204 public Builder setVersion(int major, int minor) { in setVersion() argument
205 mVersion = makeVersion(major, minor); in setVersion()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunChannelScan.java160 int major; in readProgram() local
165 major = Integer.parseInt(parts[0]); in readProgram()
168 major = Integer.parseInt(guideNumber); in readProgram()
173 major, minor, mProgramCount++, guideName, recordingProhibited, videoFormat), in readProgram()
/packages/services/Car/cpp/evs/support_library/
DRenderBase.cpp74 EGLint major = 0; in prepareGL() local
76 if (!eglInitialize(display, &major, &minor)) { in prepareGL()
80 ALOGI("Intiialized EGL at %d.%d", major, minor); in prepareGL()
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java84 int major = Integer.parseInt(majorNumber); in compareTo() local
89 if (major == opponentMajor) { in compareTo()
92 return major - opponentMajor; in compareTo()
/packages/services/Car/cpp/watchdog/server/src/
DProcDiskStatsCollector.cpp74 if (fields.size() < 14 || !ParseInt(fields[0], &diskStats.major) || in parseDiskStatsLine()
198 StringPrintf("%d.%d.%s", stats.major, stats.minor, stats.deviceName.c_str())); in operator ()()
202 return lhs.major == rhs.major && lhs.minor == rhs.minor && lhs.deviceName == rhs.deviceName; in operator ()()
/packages/services/Car/cpp/evs/apps/default/src/
DRenderBase.cpp79 EGLint major = 0; in prepareGL() local
81 if (!eglInitialize(display, &major, &minor)) { in prepareGL()
85 LOG(INFO) << "Intiialized EGL at " << major << "." << minor; in prepareGL()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/base/
DProtocolVersion.java39 public ProtocolVersion(int major, int minor) { in ProtocolVersion() argument
40 mMajor = major; in ProtocolVersion()
/packages/modules/Bluetooth/system/audio_hal_interface/
Dhal_version_manager.h58 uint16_t major = 0, uint16_t minor = 0)
59 : mTransport(transport), mMajor(major), mMinor(minor) {} in mTransport()

1234