package com.xtremelabs.robolectric.shadows;

import android.content.res.Configuration;
import com.xtremelabs.robolectric.internal.Implementation;
import com.xtremelabs.robolectric.internal.Implements;
import com.xtremelabs.robolectric.internal.RealObject;

@Implements(Configuration.class)
public class ShadowConfiguration {

    @RealObject
    private Configuration realConfiguration;

    @Implementation
    public void setToDefaults() {
        realConfiguration.screenLayout = Configuration.SCREENLAYOUT_LONG_NO |
                Configuration.SCREENLAYOUT_SIZE_NORMAL;
    }
}

package com.xtremelabs.robolectric.shadows;

import android.content.res.Configuration;
import com.xtremelabs.robolectric.internal.Implementation;
import com.xtremelabs.robolectric.internal.Implements;
import com.xtremelabs.robolectric.internal.RealObject;

@Implements(Configuration.class)
public class ShadowConfiguration {

    @RealObject
    private Configuration realConfiguration;
    
    public int screenLayout;
    public int touchscreen;
    public int orientation;
    
    @Implementation
    public void setToDefaults() {
        realConfiguration.screenLayout = Configuration.SCREENLAYOUT_LONG_NO |
                Configuration.SCREENLAYOUT_SIZE_NORMAL;
    }
}

add ints to store orientation,screenLayout,touchscreen