summaryrefslogtreecommitdiff
path: root/libs/shaders/shaders.cpp
diff options
context:
space:
mode:
author Michael Wright <michaelwr@google.com> 2022-07-01 02:42:10 +0100
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2022-07-13 01:44:59 +0000
commitac62491449997e8144142a2059933460d669c12d (patch)
treedecb5aebbbc156c6c0463120dc139560238ab03f /libs/shaders/shaders.cpp
parent583dd3a83a7a969dd765b41c494468145bd1b4d9 (diff)
Reconcile native and Java parcel code for WorkSource.
Prior to this change, native work sources didn't read or write any information concerning WorkChains, but Java ones did. This lead to a mismatch when Java code, such as PowerManagerService, unparceled the WorkSource as it read the whatever the next 4 bytes happened to be as the WorkChain count, but it was actually reading whatever the next item in the transaction happened to have written. Note that this change does _not_ attempt to add a WorkChain implementation to native. It instead makes it so that WorkSources written from native to Java, or Java to native with no WorkChains, are correctly and symmetrically parceled. In addition, if a Java WorkSource is sent to native with a non-zero amount of WorkChains associated, then it will return an error when unparceling rather than continuing but leaving in the Parcel in an undefined state. Bug: 234429395 Test: atest WorkSourceTest.cpp Test: Write sample native app that grabs wakelock, validate display ID Change-Id: Id1a5f29f4ccf2996e37ec99014ce392599b6b725 (cherry picked from commit c1359ac51c970666691ef4d07a6969c434062037) Merged-In: Id1a5f29f4ccf2996e37ec99014ce392599b6b725
Diffstat (limited to 'libs/shaders/shaders.cpp')
0 files changed, 0 insertions, 0 deletions