public void setThemeValues(
      @NonNull KeyboardTheme keyboardTheme,
      float tabTextSize,
      ColorStateList tabTextColor,
      Drawable closeKeyboardIcon,
      Drawable backspaceIcon,
      Drawable settingsIcon,
      Drawable keyboardDrawable,
      Drawable mediaInsertionDrawable,
      Drawable deleteRecentlyUsedDrawable,
      int bottomPadding,
      Set<MediaType> supportedMediaTypes) {
    mKeyboardTheme = keyboardTheme;
    mTabTitleTextSize = tabTextSize;
    mTabTitleTextColor = tabTextColor;
    mCloseKeyboardIcon = closeKeyboardIcon;
    mBackspaceIcon = backspaceIcon;
    mSettingsIcon = settingsIcon;
    mMediaInsertionDrawable = mediaInsertionDrawable;
    mDeleteRecentlyUsedDrawable = deleteRecentlyUsedDrawable;
    mBottomPadding = bottomPadding;
    findViewById(R.id.quick_keys_popup_quick_keys_insert_media)
        .setVisibility(supportedMediaTypes.isEmpty() ? View.GONE : VISIBLE);
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
      setBackground(keyboardDrawable);
    } else {
      setBackgroundDrawable(keyboardDrawable);
    }
  }
@Test
  public void testSetThemeValues() throws Exception {
    mUnderTest.setOnKeyboardActionListener(Mockito.mock(OnKeyboardActionListener.class));

    Assert.assertEquals(
        R.drawable.ic_cancel,
        Shadows.shadowOf(
                ((ImageView) mUnderTest.findViewById(R.id.quick_keys_popup_close)).getDrawable())
            .getCreatedFromResId());
    Assert.assertEquals(
        R.drawable.sym_keyboard_delete_light,
        Shadows.shadowOf(
                ((ImageView) mUnderTest.findViewById(R.id.quick_keys_popup_backspace))
                    .getDrawable())
            .getCreatedFromResId());
    Assert.assertEquals(
        R.drawable.ic_action_settings,
        Shadows.shadowOf(
                ((ImageView) mUnderTest.findViewById(R.id.quick_keys_popup_quick_keys_settings))
                    .getDrawable())
            .getCreatedFromResId());
    Assert.assertEquals(
        R.drawable.ic_media_insertion,
        Shadows.shadowOf(
                ((ImageView) mUnderTest.findViewById(R.id.quick_keys_popup_quick_keys_insert_media))
                    .getDrawable())
            .getCreatedFromResId());

    Assert.assertEquals(
        R.drawable.dark_background,
        Shadows.shadowOf(mUnderTest.getBackground()).getCreatedFromResId());
  }