All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.shadows.ShadowRoleControllerManager Maven / Gradle / Ivy

The newest version!
package org.robolectric.shadows;

import static android.os.Build.VERSION_CODES.Q;
import static android.os.Build.VERSION_CODES.S;

import android.app.role.RoleControllerManager;
import android.content.ComponentName;
import android.content.Context;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;

/** Shadow for {@link RoleControllerManager} */
@Implements(value = RoleControllerManager.class, minSdk = Q, isInAndroidSdk = false)
public class ShadowRoleControllerManager {

  @Implementation(minSdk = S)
  protected static ComponentName getRemoteServiceComponentName(Context context) {
    return new ComponentName("org.robolectric", "FakeRoleControllerManagerService");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy