Searched refs:mixin (Results 1 - 13 of 13) sorted by relevance

/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
H A DProgressBarMixinTest.java63 ProgressBarMixin mixin = new ProgressBarMixin(mTemplateLayout);
64 mixin.setShown(true);
74 ProgressBarMixin mixin = new ProgressBarMixin(mTemplateLayout);
75 mixin.setShown(true);
76 mixin.setShown(false);
85 ProgressBarMixin mixin = new ProgressBarMixin(mTemplateLayout);
87 mixin.setShown(true);
88 assertTrue(mixin.isShown());
90 mixin.setShown(false);
91 assertFalse(mixin
[all...]
H A DListMixinTest.java81 ListMixin mixin = new ListMixin(mTemplateLayout, null, 0);
82 assertSame(mListView, mixin.getListView());
89 ListMixin mixin = new ListMixin(mTemplateLayout, null, 0);
90 assertSame(mAdapter, mixin.getAdapter());
97 ListMixin mixin = new ListMixin(mTemplateLayout, null, 0);
98 mixin.setAdapter(mAdapter);
105 ListMixin mixin = new ListMixin(mTemplateLayout, null, 0);
106 mixin.setDividerInset(123);
108 assertEquals(123, mixin.getDividerInset());
120 ListMixin mixin
[all...]
H A DIconMixinTest.java70 IconMixin mixin = new IconMixin(mTemplateLayout, null, 0);
71 assertSame(mIconView, mixin.getView());
77 IconMixin mixin = new IconMixin(mTemplateLayout, null, 0);
78 mixin.setIcon(drawable);
87 IconMixin mixin = new IconMixin(mTemplateLayout, null, 0);
88 mixin.setIcon(icon);
97 IconMixin mixin = new IconMixin(mTemplateLayout, null, 0);
98 mixin.setIcon(null);
108 IconMixin mixin = new IconMixin(mTemplateLayout, null, 0);
109 assertSame(drawable, mixin
[all...]
H A DNavigationBarMixinTest.java63 NavigationBarMixin mixin = new NavigationBarMixin(mTemplateLayout);
64 assertSame(mNavigationBar, mixin.getNavigationBar());
69 NavigationBarMixin mixin = new NavigationBarMixin(mTemplateLayout);
70 mixin.setNextButtonText(R.string.suw_more_button_label);
73 mixin.setNextButtonText("Foobar");
82 NavigationBarMixin mixin = new NavigationBarMixin(mTemplateLayout);
83 assertSame("lorem ipsum", mixin.getNextButtonText());
89 NavigationBarMixin mixin = new NavigationBarMixin(mTemplateLayout);
90 mixin.setNavigationBarListener(listener);
H A DButtonFooterMixinTest.java71 ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout);
72 final Button button = mixin.addButton("foobar", R.style.SuwGlifButton_Primary);
88 ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout);
89 final Button button = mixin.addButton(R.string.suw_next_button_label,
105 ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout);
106 mixin.addButton("foo", R.style.SuwGlifButton_Secondary);
107 final View space = mixin.addSpace();
108 mixin.addButton("bar", R.style.SuwGlifButton_Primary);
118 ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout);
119 final Button fooButton = mixin
[all...]
H A DHeaderMixinTest.java65 HeaderMixin mixin = new HeaderMixin(mTemplateLayout, null, 0);
66 assertSame(mHeaderTextView, mixin.getTextView());
71 HeaderMixin mixin = new HeaderMixin(mTemplateLayout, null, 0);
72 mixin.setText(R.string.suw_next_button_label);
79 HeaderMixin mixin = new HeaderMixin(mTemplateLayout, null, 0);
80 mixin.setText("Foobar");
90 HeaderMixin mixin = new HeaderMixin(mTemplateLayout, null, 0);
91 assertEquals("Lorem ipsum", mixin.getText());
H A DTemplateLayoutMixinTest.java48 final TestMixin mixin = mLayout.getMixin(TestMixin.class);
49 assertNotNull("TestMixin should not be null", mixin);
51 + "Found " + mixin.getClass() + " instead.",
52 mixin instanceof TestMixinSubclass);
H A DColoredHeaderMixinTest.java65 ColoredHeaderMixin mixin = new ColoredHeaderMixin(mTemplateLayout, null, 0);
66 mixin.setColor(ColorStateList.valueOf(Color.MAGENTA));
73 ColoredHeaderMixin mixin = new ColoredHeaderMixin(mTemplateLayout, null, 0);
76 assertEquals(ColorStateList.valueOf(Color.GREEN), mixin.getColor());
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/template/
H A DRecyclerMixinTest.java76 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView);
77 assertSame(mRecyclerView, mixin.getRecyclerView());
84 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView);
85 assertSame(mAdapter, mixin.getAdapter());
92 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView);
93 mixin.setAdapter(mAdapter);
100 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView);
101 mixin.setDividerInset(123);
103 assertEquals(123, mixin.getDividerInset());
105 final Drawable divider = mixin
[all...]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/
H A DTemplateLayoutTest.java102 final HeaderMixin mixin = layout.getMixin(HeaderMixin.class);
103 assertNull("getMixin for a mixin that doesn't exist should return null", mixin);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DGlifLayout.java223 final ColoredHeaderMixin mixin = (ColoredHeaderMixin) getMixin(HeaderMixin.class);
224 mixin.setColor(color);
228 final ColoredHeaderMixin mixin = (ColoredHeaderMixin) getMixin(HeaderMixin.class);
229 return mixin.getColor();
H A DTemplateLayout.java88 * Registers a mixin with a given class. This method should be called in the constructor.
90 * @param cls The class to register the mixin. In most cases, {@code cls} is the same as
91 * {@code mixin.getClass()}, but {@code cls} can also be a super class of that. In
92 * the latter case the the mixin must be retrieved using {@code cls} in
94 * @param mixin The mixin to be registered.
95 * @param <M> The class of the mixin to register. This is the same as {@code cls}
97 protected <M extends Mixin> void registerMixin(Class<M> cls, M mixin) { argument
98 mMixins.put(cls, mixin);
121 * @return The mixin marke
[all...]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
H A DVisibilityLoggerMixinTest.java131 VisibilityLoggerMixin mixin = new VisibilityLoggerMixin(
133 getLifecycle().addObserver(mixin);

Completed in 787 milliseconds