Home
last modified time | relevance | path

Searched refs:TestPlugin (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
DPluginInstanceTest.java67 private PluginInstance<TestPlugin> mPluginInstance;
100 new PluginInstance.InstanceFactory<TestPlugin>() { in setup()
102 TestPlugin create(Class cls) { in setup()
114 TestPlugin.class, mPluginListener); in setup()
127 new ComponentName(PRIVILEGED_PACKAGE, TestPlugin.class.getName()); in testIncorrectVersion()
133 TestPlugin.class, mPluginListener); in testIncorrectVersion()
248 @ProvidesInterface(action = TestPlugin.ACTION, version = TestPlugin.VERSION)
249 public interface TestPlugin extends Plugin { interface in PluginInstanceTest
281 @Requires(target = TestPlugin.class, version = TestPlugin.VERSION)
282 public static class TestPluginImpl implements TestPlugin {
[all …]
DPluginManagerTest.java64 @Mock PluginActionManager<TestPlugin> mMockPluginInstance;
65 @Mock PluginListener<TestPlugin> mMockListener;
79 when(mMockFactory.create(any(), any(), eq(TestPlugin.class), anyBoolean(), anyBoolean())) in setup()
91 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testAddListener()
98 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testRemoveListener()
117 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testNonDebuggable_nonPrivileged()
118 verify(mMockFactory).create(eq("myAction"), eq(mMockListener), eq(TestPlugin.class), in testNonDebuggable_nonPrivileged()
139 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testNonDebuggable_privilegedPackage()
140 verify(mMockFactory).create(eq("myAction"), eq(mMockListener), eq(TestPlugin.class), in testNonDebuggable_privilegedPackage()
147 mPluginManager.addPluginListener("myAction", mMockListener, TestPlugin.class); in testExceptionHandler_foundPlugin()
[all …]
DPluginActionManagerTest.java68 private TestPlugin mMockPlugin;
71 private PluginListener<TestPlugin> mMockListener;
72 private PluginActionManager<TestPlugin> mPluginActionManager;
76 new ComponentName(PRIVILEGED_PACKAGE, TestPlugin.class.getName());
79 private PluginInstance<TestPlugin> mPluginInstance;
101 mMockPlugin = mock(TestPlugin.class); in setup()
110 TestPlugin.class, true, true); in setup()
164 TestPlugin.class, true, false); in testNonDebuggable()
183 TestPlugin.class, true, false); in testNonDebuggable_privileged()
204 result = mPluginActionManager.checkAndDisable(TestPlugin.class.getName()); in testCheckAndDisable()
[all …]