commit | 14b06dc4d73e9102160536218c7f5476f776c06d | [log] [tgz] |
---|---|---|
author | Torne (Richard Coles) <torne@google.com> | Thu Jan 25 16:14:29 2024 -0500 |
committer | Torne (Richard Coles) <torne@google.com> | Mon Jan 29 10:41:39 2024 -0500 |
tree | cb8b796613793610ee564ff5fa2a9936b6a977fb | |
parent | a9d2c1f17c2c128231df3d0aa771b55f697d3f61 [diff] |
Add SystemServiceRegistry.getService(String). Allow services to opt in to being fetched entirely without a Context. This is not enabled by default because it would be a compatibility break for the service to need a Context in future, but if a service can commit to never needing a Context, this allows additional flexibility for callers. Bug: 319292658 Test: Tested indirectly in followup CL using the API Change-Id: I4e8a15420a207c93bfa07e41e45edbd06e548204