OSDN Git Service

Allow Services to be created through Dagger.
authorDave Mankoff <mankoff@google.com>
Wed, 3 Jul 2019 17:26:55 +0000 (13:26 -0400)
committerDave Mankoff <mankoff@google.com>
Wed, 14 Aug 2019 18:52:41 +0000 (14:52 -0400)
commit1a0e382745343e53f69fb986c7930a3edb430978
treef9527432612f4f7d94642fd47ecc516950604e42
parentfa6f50e13d0bd9ec21569fa671f201ebcb81ea57
Allow Services to be created through Dagger.

This is a significant change that allows Services to have their
constructed injected into.

The DozeService is now labeled as injectable (thought it takes no arguments).
At least one Service has to be marked as injectable for Dagger to be happy
compiling this code.

Bug: 138787339
Test: atest SystemUITests
Change-Id: I0ec92e01dd236bcee3083c8f8744c53b7ccc92d3
Merged-In: Ib58f8763c996fbc2aea07ead56493d2d9e936f5b
13 files changed:
packages/CarSystemUI/Android.bp
packages/SystemUI/AndroidManifest.xml
packages/SystemUI/docs/dagger.md
packages/SystemUI/src/com/android/systemui/ContextComponentHelper.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/ContextComponentResolver.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/ServiceBinder.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/SystemUIAppComponentFactory.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/SystemUIApplication.java
packages/SystemUI/src/com/android/systemui/SystemUIFactory.java
packages/SystemUI/src/com/android/systemui/SystemUIRootComponent.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/doze/DozeService.java
packages/SystemUI/src/com/android/systemui/fragments/FragmentService.java
packages/SystemUI/src/com/android/systemui/util/InjectionInflationController.java