summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Mike Schneider <michschn@google.com> 2022-09-08 10:04:15 +0200
committer Mike Schneider <michschn@google.com> 2022-09-15 09:57:27 +0200
commit25546aa3812a386d5873ffb49f886bab1807103f (patch)
tree213d3482b16a7c0b6382f4d2e4f00174fdfc119a /cmds/bootanimation/BootAnimation.cpp
parent1d04b1965816c0dfb0b5ba24a7f6e0459d36aa42 (diff)
Extend the INVOKE_VIEW_METHOD of the "Generic View Operation" (VUOP) DDM handler to
1) Return the invoked method's return value 2) In addition to the primitive values, support String and byte[] This DDM API is used by some development tools (such as go/web-hv), where the ability retrieve values from views and sending strings and byte blobs allows to trigger specific view behavior. ## String support Allows passing in and returning String objects, using the (non-standard) R type specifier. This implementation is modelled after ViewHierarchyEncoder for consistency (whose result is passed back via the same DdmHandleViewDebug class). ## byte[] support Allows passing in and returning byte[] objects, using the "[Z" type specifier. For simplicity, only byte arrays are supported, though other types can be added in a backwards compatible way in the future, if needed. ## testing Added unit tests for serialization/deserialization. Unable to test `invokeViewMethod`, since it uses the `Chunk` class which is not exposed outside of the framework Test: Adding unit tests for serialization deserialization Test: Manually invoked method via go/web-hv Bug: 245727371 Change-Id: I29d2d6ec3b6eb59a5f2e7d3312dc36c00007672d
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions