Home | History | Annotate | Download | only in shadows
      1 package com.xtremelabs.robolectric.shadows;
      2 
      3 import android.graphics.Color;
      4 
      5 import com.xtremelabs.robolectric.internal.Implementation;
      6 import com.xtremelabs.robolectric.internal.Implements;
      7 
      8 @Implements(Color.class)
      9 public class ShadowColor {
     10     @Implementation
     11     public static int rgb(int red, int green, int blue) {
     12         return argb(0xff, red, green, blue);
     13     }
     14 
     15     @Implementation
     16     public static int argb(int alpha, int red, int green, int blue) {
     17         return (alpha << 24) | (red << 16) | (green << 8) | blue;
     18     }
     19 }