Package org.robolectric.shadows
Class ShadowUwbManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowUwbManager
-
@Implements(value=android.uwb.UwbManager.class, minSdk=31, isInAndroidSdk=false) public class ShadowUwbManager extends Object
Adds Robolectric support for UWB ranging.
-
-
Constructor Summary
Constructors Constructor Description ShadowUwbManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PersistableBundlegetSpecificationInfo()Simply returns the bundle provided byShadowUwbManager#setSpecificationInfo(), allowing the tester to dictate available features.protected CancellationSignalopenRangingSession(PersistableBundle params, Executor executor, android.uwb.RangingSession.Callback callback)Instantiates aShadowRangingSessionwith the adapter provided byShadowUwbManager#setUwbAdapter(), allowing the tester dictate the results of ranging attempts.voidsetSpecificationInfo(PersistableBundle specificationInfo)Sets the bundle to be returned byUwbManager.getSpecificationInfo().voidsetUwbAdapter(ShadowRangingSession.Adapter adapter)Sets the UWB adapter to use for newShadowRangingSessions.
-
-
-
Method Detail
-
getSpecificationInfo
@Implementation protected PersistableBundle getSpecificationInfo()
Simply returns the bundle provided byShadowUwbManager#setSpecificationInfo(), allowing the tester to dictate available features.
-
openRangingSession
@Implementation protected CancellationSignal openRangingSession(PersistableBundle params, Executor executor, android.uwb.RangingSession.Callback callback)
Instantiates aShadowRangingSessionwith the adapter provided byShadowUwbManager#setUwbAdapter(), allowing the tester dictate the results of ranging attempts.
-
setUwbAdapter
public void setUwbAdapter(ShadowRangingSession.Adapter adapter)
Sets the UWB adapter to use for newShadowRangingSessions.
-
setSpecificationInfo
public void setSpecificationInfo(PersistableBundle specificationInfo)
Sets the bundle to be returned byUwbManager.getSpecificationInfo().
-
-