/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | ProgressBarMixinTest.java | 61 ProgressBarMixin mixin = new ProgressBarMixin(mTemplateLayout); in testSetShown() local 62 mixin.setShown(true); in testSetShown() 71 ProgressBarMixin mixin = new ProgressBarMixin(mTemplateLayout); in testNotShown() local 72 mixin.setShown(true); in testNotShown() 73 mixin.setShown(false); in testNotShown() 81 ProgressBarMixin mixin = new ProgressBarMixin(mTemplateLayout); in testIsShown() local 83 mixin.setShown(true); in testIsShown() 84 assertTrue(mixin.isShown()); in testIsShown() 86 mixin.setShown(false); in testIsShown() 87 assertFalse(mixin.isShown()); in testIsShown() [all …]
|
D | ListMixinTest.java | 77 ListMixin mixin = new ListMixin(mTemplateLayout, null, 0); in testGetListView() local 78 assertSame(mListView, mixin.getListView()); in testGetListView() 85 ListMixin mixin = new ListMixin(mTemplateLayout, null, 0); in testGetAdapter() local 86 assertSame(mAdapter, mixin.getAdapter()); in testGetAdapter() 93 ListMixin mixin = new ListMixin(mTemplateLayout, null, 0); in testSetAdapter() local 94 mixin.setAdapter(mAdapter); in testSetAdapter() 101 ListMixin mixin = new ListMixin(mTemplateLayout, null, 0); in testDividerInsetLegacy() local 102 mixin.setDividerInset(123); in testDividerInsetLegacy() 104 assertEquals(123, mixin.getDividerInset()); in testDividerInsetLegacy() 116 ListMixin mixin = new ListMixin(mTemplateLayout, null, 0); in testDividerInsets() local [all …]
|
D | ButtonFooterMixinTest.java | 69 ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout); in testAddButton() local 70 final Button button = mixin.addButton("foobar", R.style.SuwGlifButton_Primary); in testAddButton() 86 ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout); in testAddButtonTextRes() local 88 mixin.addButton(R.string.suw_next_button_label, R.style.SuwGlifButton_Primary); in testAddButtonTextRes() 103 ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout); in testAddSpace() local 104 mixin.addButton("foo", R.style.SuwGlifButton_Secondary); in testAddSpace() 105 final View space = mixin.addSpace(); in testAddSpace() 106 mixin.addButton("bar", R.style.SuwGlifButton_Primary); in testAddSpace() 119 ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout); in testRemoveButton() local 120 final Button fooButton = mixin.addButton("foo", R.style.SuwGlifButton_Secondary); in testRemoveButton() [all …]
|
D | IconMixinTest.java | 66 IconMixin mixin = new IconMixin(mTemplateLayout, null, 0); in testGetIconView() local 67 assertSame(mIconView, mixin.getView()); in testGetIconView() 73 IconMixin mixin = new IconMixin(mTemplateLayout, null, 0); in testSetIcon() local 74 mixin.setIcon(drawable); in testSetIcon() 83 IconMixin mixin = new IconMixin(mTemplateLayout, null, 0); in setIcon_resourceId_shouldSetIcon() local 84 mixin.setIcon(icon); in setIcon_resourceId_shouldSetIcon() 93 IconMixin mixin = new IconMixin(mTemplateLayout, null, 0); in setIcon_shouldSetVisibilityToGone_whenIconIsNull() local 94 mixin.setIcon(null); in setIcon_shouldSetVisibilityToGone_whenIconIsNull() 104 IconMixin mixin = new IconMixin(mTemplateLayout, null, 0); in testGetIcon() local 105 assertSame(drawable, mixin.getIcon()); in testGetIcon() [all …]
|
D | NavigationBarMixinTest.java | 62 NavigationBarMixin mixin = new NavigationBarMixin(mTemplateLayout); in testGetNavigationBar() local 63 assertSame(mNavigationBar, mixin.getNavigationBar()); in testGetNavigationBar() 68 NavigationBarMixin mixin = new NavigationBarMixin(mTemplateLayout); in testSetNextButtonText() local 69 mixin.setNextButtonText(R.string.suw_more_button_label); in testSetNextButtonText() 72 mixin.setNextButtonText("Foobar"); in testSetNextButtonText() 81 NavigationBarMixin mixin = new NavigationBarMixin(mTemplateLayout); in testGetNextButtonText() local 82 assertSame("lorem ipsum", mixin.getNextButtonText()); in testGetNextButtonText() 88 NavigationBarMixin mixin = new NavigationBarMixin(mTemplateLayout); in testSetNavigationBarListener() local 89 mixin.setNavigationBarListener(listener); in testSetNavigationBarListener()
|
D | HeaderMixinTest.java | 61 HeaderMixin mixin = new HeaderMixin(mTemplateLayout, null, 0); in testGetTextView() local 62 assertSame(mHeaderTextView, mixin.getTextView()); in testGetTextView() 67 HeaderMixin mixin = new HeaderMixin(mTemplateLayout, null, 0); in testSetTextId() local 68 mixin.setText(R.string.suw_next_button_label); in testSetTextId() 75 HeaderMixin mixin = new HeaderMixin(mTemplateLayout, null, 0); in testSetText() local 76 mixin.setText("Foobar"); in testSetText() 86 HeaderMixin mixin = new HeaderMixin(mTemplateLayout, null, 0); in testGetText() local 87 assertEquals("Lorem ipsum", mixin.getText()); in testGetText()
|
D | TemplateLayoutMixinTest.java | 46 final TestMixin mixin = mLayout.getMixin(TestMixin.class); in testGetMixin() local 47 assertNotNull("TestMixin should not be null", mixin); in testGetMixin() 51 + mixin.getClass() in testGetMixin() 53 mixin instanceof TestMixinSubclass); in testGetMixin()
|
D | ColoredHeaderMixinTest.java | 61 ColoredHeaderMixin mixin = new ColoredHeaderMixin(mTemplateLayout, null, 0); in testSetColor() local 62 mixin.setColor(ColorStateList.valueOf(Color.MAGENTA)); in testSetColor() 69 ColoredHeaderMixin mixin = new ColoredHeaderMixin(mTemplateLayout, null, 0); in testGetColor() local 72 assertEquals(ColorStateList.valueOf(Color.GREEN), mixin.getColor()); in testGetColor()
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | RecyclerMixinTest.java | 73 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView); in testGetRecyclerView() local 74 assertSame(mRecyclerView, mixin.getRecyclerView()); in testGetRecyclerView() 81 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView); in testGetAdapter() local 82 assertSame(mAdapter, mixin.getAdapter()); in testGetAdapter() 89 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView); in testSetAdapter() local 90 mixin.setAdapter(mAdapter); in testSetAdapter() 97 RecyclerMixin mixin = new RecyclerMixin(mTemplateLayout, mRecyclerView); in testDividerLegacyInset() local 98 mixin.setDividerInset(123); in testDividerLegacyInset() 100 assertEquals(123, mixin.getDividerInset()); in testDividerLegacyInset() 102 final Drawable divider = mixin.getDivider(); in testDividerLegacyInset() [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | GlifLayout.java | 219 final ColoredHeaderMixin mixin = (ColoredHeaderMixin) getMixin(HeaderMixin.class); in setHeaderColor() local 220 mixin.setColor(color); in setHeaderColor() 224 final ColoredHeaderMixin mixin = (ColoredHeaderMixin) getMixin(HeaderMixin.class); in getHeaderColor() local 225 return mixin.getColor(); in getHeaderColor()
|
D | TemplateLayout.java | 95 protected <M extends Mixin> void registerMixin(Class<M> cls, M mixin) { in registerMixin() argument 96 mixins.put(cls, mixin); in registerMixin()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/ |
D | TemplateLayoutTest.java | 99 final HeaderMixin mixin = layout.getMixin(HeaderMixin.class); in testGetMixin() local 100 assertNull("getMixin for a mixin that doesn't exist should return null", mixin); in testGetMixin()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/ |
D | VisibilityLoggerMixinTest.java | 133 VisibilityLoggerMixin mixin = new VisibilityLoggerMixin( in onCreate() local 135 getLifecycle().addObserver(mixin); in onCreate()
|