diff options
author | 2024-09-30 09:22:50 -0400 | |
---|---|---|
committer | 2024-09-30 09:24:03 -0400 | |
commit | 9b2575c5a9446356a2bc67c43c5aabd94c2458c2 (patch) | |
tree | 1eab439300ccd4c48d3d71cbdd47ae8b1ce4b150 | |
parent | 27a0aa548ce5b0c2880812e0f9bb3318b33f1b41 (diff) |
Fix parameter generation
The bitfield was not being operated correctly and we were repeating the
parameters. Do the right thing now.
Test: atest QSFragmentComposeViewModelForceQSTest, check that the
parameters are all different
Fixes: 370457898
Flag: EXEMPT bugfix test
Change-Id: I21ce0bde64d5a47a62720bdbd9d52d4d15cb71e1
-rw-r--r-- | packages/SystemUI/multivalentTests/src/com/android/systemui/qs/composefragment/viewmodel/QSFragmentComposeViewModelForceQSTest.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/composefragment/viewmodel/QSFragmentComposeViewModelForceQSTest.kt b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/composefragment/viewmodel/QSFragmentComposeViewModelForceQSTest.kt index 57a9377cea9e..acd69af2736a 100644 --- a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/composefragment/viewmodel/QSFragmentComposeViewModelForceQSTest.kt +++ b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/composefragment/viewmodel/QSFragmentComposeViewModelForceQSTest.kt @@ -82,11 +82,11 @@ class QSFragmentComposeViewModelForceQSTest(private val testData: TestData) : (0u..31u).map { bitfield -> TestData( statusBarState, - expanded = (bitfield or 1u) == 1u, - stackScrollerOverScrolling = (bitfield or 2u) == 1u, - bypassEnabled = (bitfield or 4u) == 1u, - transitioningToFullShade = (bitfield or 8u) == 1u, - inSplitShade = (bitfield or 16u) == 1u, + expanded = (bitfield and 1u) == 1u, + stackScrollerOverScrolling = (bitfield and 2u) == 2u, + bypassEnabled = (bitfield and 4u) == 4u, + transitioningToFullShade = (bitfield and 8u) == 8u, + inSplitShade = (bitfield and 16u) == 16u, ) } } |