diff options
author | Ahaan Ugale <augale@google.com> | 2021-01-17 19:32:23 -0800 |
---|---|---|
committer | Ahaan Ugale <augale@google.com> | 2021-01-25 13:39:27 -0800 |
commit | 61732f5f6901ce66cae605b880298c00642d55f4 (patch) | |
tree | 2981395e49ffe408dd59516137a676c326e8a70b /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | ba37dbb352d9cfaf25f607584c8784010a4a2c97 (diff) |
VIMS: Simplify findAvailInteractor() by getting metadata in initial pm query.
Also reorders the conditional blocks for readability.
Currently, available interactors are queried and one of them is selected, then the
metadata for it is retrieved through the VoiceInteractionServiceInfo constructor.
With this change, both things are done in a single step. That might mean we retrieve some
unneeded data (the metadata for the packages that aren't selected), but optimizing it
isn't important since there's usually just one interactor.
Bug: 178410946
Test: atest CtsVoiceInteractionTestCases
Change-Id: I9a0d859f12d043f47f33a307609dbcf9de759e7e
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions