summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Kevin Chyn <kchyn@google.com> 2023-01-24 04:50:46 +0000
committer Kevin Chyn <kchyn@google.com> 2023-01-25 06:38:53 +0000
commitb6e9d2fcc1dbfff69ca43f57691c780700fcb35f (patch)
tree12b7945e631e8142b915e71fe46104ac011eb86d /libs/androidfw/ApkParsing.cpp
parent286074d5cfc5af254b0febe3dd565c1d278587a8 (diff)
Make DeviceStateController generic
Previously it was specific to fold-state, and used to notify a single client of fold-state changes. DeviceStateController is now generic and can be used (or modified) to cache, query, or receive callbacks for other state changes. Note that we are purposely removing the nested FoldStateListener class since it's a very thin layer and makes it unnecessarily complex when we add new functionality to DeviceStateController. A simple example would be DeviceStateController#getCurrentState() needing to access an inner FoldStateListener#getCurrentState(). Bug: 264499484 Test: atest DisplayRotationTests Test: atest DeviceStateControllerTests Change-Id: I81b0a61b52d74718fe1dee213a59509a44a9a920
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions