Package org.robolectric.shadows
Class ShadowCompanionDeviceManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowCompanionDeviceManager
-
@Implements(value=android.companion.CompanionDeviceManager.class, minSdk=26) public class ShadowCompanionDeviceManager extends Object
Shadow for CompanionDeviceManager.
-
-
Constructor Summary
Constructors Constructor Description ShadowCompanionDeviceManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAssociation(String newAssociation)
protected void
associate(AssociationRequest request, CompanionDeviceManager.Callback callback, Handler handler)
protected void
disassociate(String deviceMacAddress)
protected List<String>
getAssociations()
CompanionDeviceManager.Callback
getLastAssociationCallback()
AssociationRequest
getLastAssociationRequest()
ComponentName
getLastRequestedNotificationAccess()
protected boolean
hasNotificationAccess(ComponentName component)
protected void
requestNotificationAccess(ComponentName component)
void
setNotificationAccess(ComponentName component, boolean hasAccess)
-
-
-
Method Detail
-
getAssociations
@Implementation protected List<String> getAssociations()
-
addAssociation
public void addAssociation(String newAssociation)
-
disassociate
@Implementation protected void disassociate(String deviceMacAddress)
-
hasNotificationAccess
@Implementation protected boolean hasNotificationAccess(ComponentName component)
-
setNotificationAccess
public void setNotificationAccess(ComponentName component, boolean hasAccess)
-
requestNotificationAccess
@Implementation protected void requestNotificationAccess(ComponentName component)
-
associate
@Implementation protected void associate(AssociationRequest request, CompanionDeviceManager.Callback callback, Handler handler)
-
getLastAssociationRequest
public AssociationRequest getLastAssociationRequest()
-
getLastAssociationCallback
public CompanionDeviceManager.Callback getLastAssociationCallback()
-
getLastRequestedNotificationAccess
public ComponentName getLastRequestedNotificationAccess()
-
-