<commit_before>package org.robolectric.shadows;

import android.graphics.Bitmap;
import android.graphics.drawable.Icon;
import android.net.Uri;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;

import static org.robolectric.internal.Shadow.directlyOn;

/**
 * Shadow for {@link android.graphics.drawable.Icon}.
 */
@SuppressWarnings({"UnusedDeclaration"})
@Implements(Icon.class)
public class ShadowIcon {

  @RealObject
  private Icon realIcon;

  @Implementation
  public int getType() {
    return directlyOn(realIcon, Icon.class, "getType");
  }

  @Implementation
  public int getResId() {
    return directlyOn(realIcon, Icon.class, "getResId");
  }

  @Implementation
  public Bitmap getBitmap() {
    return directlyOn(realIcon, Icon.class, "getBitmap");
  }

  @Implementation
  public Uri getUri() {
    return directlyOn(realIcon, Icon.class, "getUri");
  }
<commit_msg>Add minSdk to ShadowIcon.<commit_after>package org.robolectric.shadows;

import android.graphics.Bitmap;
import android.graphics.drawable.Icon;
import android.net.Uri;
import android.os.Build;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;

import static android.os.Build.VERSION_CODES.M;
import static org.robolectric.internal.Shadow.directlyOn;

/**
 * Shadow for {@link android.graphics.drawable.Icon}.
 */
@SuppressWarnings({"UnusedDeclaration"})
@Implements(value = Icon.class, minSdk = M)
public class ShadowIcon {

  @RealObject
  private Icon realIcon;

  @Implementation
  public int getType() {
    return directlyOn(realIcon, Icon.class, "getType");
  }

  @Implementation
  public int getResId() {
    return directlyOn(realIcon, Icon.class, "getResId");
  }

  @Implementation
  public Bitmap getBitmap() {
    return directlyOn(realIcon, Icon.class, "getBitmap");
  }

  @Implementation
  public Uri getUri() {
    return directlyOn(realIcon, Icon.class, "getUri");
  }

{'fraction_non_alphanumeric': 0.11495372625426206, 'fraction_numerical': 0.0, 'mean_word_length': 4.988338192419825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5329633', 'n_tokens_mistral': 653, 'n_tokens_neox': 629, 'n_words': 135}