Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb786a27 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unnecessary Shadows"

parents 339df288 89f10532
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -36,12 +36,12 @@ public class ShadowActivityManager {
    }

    @Implementation
    public static int getCurrentUser() {
    protected static int getCurrentUser() {
        return sCurrentUserId;
    }

    @Implementation
    public boolean switchUser(int userId) {
    protected boolean switchUser(int userId) {
        mUserSwitchedTo = userId;
        return true;
    }
+2 −2
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ public class ShadowBluetoothAdapter extends org.robolectric.shadows.ShadowBlueto
    private BluetoothProfile.ServiceListener mServiceListener;

    @Implementation
    public boolean getProfileProxy(Context context, BluetoothProfile.ServiceListener listener,
    protected boolean getProfileProxy(Context context, BluetoothProfile.ServiceListener listener,
            int profile) {
        mServiceListener = listener;
        return true;
@@ -43,7 +43,7 @@ public class ShadowBluetoothAdapter extends org.robolectric.shadows.ShadowBlueto
    }

    @Implementation
    public List<Integer> getSupportedProfiles() {
    protected List<Integer> getSupportedProfiles() {
        return mSupportedProfiles;
    }

+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ public class ShadowDefaultDialerManager {
    }

    @Implementation
    public static String getDefaultDialerApplication(Context context) {
    protected static String getDefaultDialerApplication(Context context) {
        return sDefaultDialer;
    }

+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ public class ShadowSmsApplication {
    }

    @Implementation
    public static ComponentName getDefaultSmsApplication(Context context, boolean updateIfNeeded) {
    protected static ComponentName getDefaultSmsApplication(Context context, boolean update) {
        return sDefaultSmsApplication;
    }

+0 −4
Original line number Diff line number Diff line
@@ -21,11 +21,8 @@ import android.content.Context;
import android.content.pm.UserInfo;
import android.os.UserManager;

import org.robolectric.RuntimeEnvironment;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.Resetter;
import org.robolectric.shadow.api.Shadow;

import java.util.ArrayList;
import java.util.List;
@@ -56,5 +53,4 @@ public class ShadowUserManager extends org.robolectric.shadows.ShadowUserManager
    protected List<UserInfo> getProfiles(@UserIdInt int userHandle) {
        return getProfiles();
    }

}
Loading