org.robolectric.shadows.ShadowPlayerBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
package org.robolectric.shadows;
import static android.os.Build.VERSION_CODES.O;
import android.media.IAudioService;
import android.os.Build;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.util.ReflectionHelpers;
@Implements(className = "android.media.PlayerBase", isInAndroidSdk = false,
minSdk = Build.VERSION_CODES.N)
public class ShadowPlayerBase {
@Implementation(minSdk = O)
public static IAudioService getService() {
return ReflectionHelpers.createNullProxy(IAudioService.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy