1 package org.robolectric.shadows; 2 3 import static android.os.Build.VERSION_CODES.P; 4 5 import android.telephony.euicc.EuiccManager; 6 import org.robolectric.annotation.Implementation; 7 import org.robolectric.annotation.Implements; 8 9 @Implements(value = EuiccManager.class, minSdk = P) 10 public class ShadowEuiccManager { 11 12 private boolean enabled; 13 14 /** Returns {@code false}, or the value specified by calling {@link #setIsEnabled}. */ 15 @Implementation isEnabled()16 protected boolean isEnabled() { 17 return enabled; 18 } 19 20 /** Set the value to be returned by {@link EuiccManager#isEnabled}. */ setIsEnabled(boolean isEnabled)21 public void setIsEnabled(boolean isEnabled) { 22 enabled = isEnabled; 23 } 24 } 25