fix(session): run game thread hints on the SM8750P Snapdragon 8 Elite (#2914)

* fix: run game thread hints on the SM8750P Snapdragon 8 Elite

* fix: gate game thread hints on the SoC model SocNames resolves

* fix: skip unknown SoC model properties
This commit is contained in:
xlulx authored and GitHub committed 2026-11-24 16:18:10 -05:00
1 parent 46206b3e16
commit 31c475d5e1
4 files changed
+9 -4

No files matched your search

@@ -11,6 +11,7 @@ class SocNamesTest {
assertEquals("SG8350P", SocNames.model(props("ro.vendor.qti.soc_model" to "SG8350P", "ro.fota.platform" to "MSM_13.0")))
assertEquals("QCS8550", SocNames.model(props("ro.soc.model" to "QCS8550", "ro.vendor.qti.soc_model" to "other")))
assertEquals("", SocNames.model(props("ro.fota.platform" to "MSM_13.0")))
assertEquals("QTI SM8750P", SocNames.model(props("ro.soc.model" to "unknown", "ro.vendor.qti.soc_model" to "QTI SM8750P")))
}
@Test fun knownModelsAndPlatformsGetTheirNames() {
@@ -26,6 +27,7 @@ class SocNamesTest {
assertEquals("Snapdragon 8 Elite Extreme Gen 6", SocNames.name("QTI SM8975", ""))
assertEquals("Snapdragon 8 Elite Extreme Gen 6", SocNames.name(" qti sm8975 ", ""))
assertEquals("Snapdragon 8 Elite Extreme Gen 6 (QTI SM8975)", SocNames.label("QTI SM8975", ""))
assertEquals("Snapdragon 8 Elite", SocNames.name("QTI SM8750P", ""))
assertNull(SocNames.name("SM89750", ""))
assertNull(SocNames.name("SM8975-PRO", ""))
assertNull(SocNames.name("Qualcomm SM8975", ""))
@@ -10,6 +10,7 @@ class GameThreadHintsTest {
assertTrue(GameThreadHints.supported("CQ8725S"))
assertTrue(GameThreadHints.supported("SM8750"))
assertTrue(GameThreadHints.supported("QTI SM8750"))
assertTrue(GameThreadHints.supported("QTI SM8750P"))
assertFalse(GameThreadHints.supported("SM8650"))
assertFalse(GameThreadHints.supported("SM8850"))
assertFalse(GameThreadHints.supported(""))