diff options
author | Dave Mankoff <mankoff@google.com> | 2019-09-04 11:31:55 -0400 |
---|---|---|
committer | Dave Mankoff <mankoff@google.com> | 2019-09-18 15:59:43 -0400 |
commit | eb593ae3ee4f61aab85f23e5dce5ebf3b48a2f34 (patch) | |
tree | 1897d336bb8c17aafa089c6f14277795e70abb1b /packages/SystemUI/src/com/android/systemui/ContextComponentHelper.java | |
parent | f2bacf0eaecdd03be90ef744069bdc79dc353e06 (diff) |
Provide the ability to inject into Activities.
Mocks out KeyguardUpdateMonitor in all tests, as our unit
tests shouldn't care about it (unless they're testing it directly).
Bug: 140430268
Test: atest SystemUITests
Change-Id: I6a2b5231c434d0f26319090340b9c2a0e903f4b6
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/ContextComponentHelper.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/ContextComponentHelper.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ContextComponentHelper.java b/packages/SystemUI/src/com/android/systemui/ContextComponentHelper.java index 5fe5792219c3..2cf0f8dafcad 100644 --- a/packages/SystemUI/src/com/android/systemui/ContextComponentHelper.java +++ b/packages/SystemUI/src/com/android/systemui/ContextComponentHelper.java @@ -16,6 +16,7 @@ package com.android.systemui; +import android.app.Activity; import android.app.Service; /** @@ -23,6 +24,9 @@ import android.app.Service; */ public interface ContextComponentHelper { /** Turns a classname into an instance of the class or returns null. */ + Activity resolveActivity(String className); + + /** Turns a classname into an instance of the class or returns null. */ Service resolveService(String className); /** Turns a classname into an instance of the class or returns null. */ |