@Implements(value=android.hardware.location.ContextHubManager.class, minSdk=24, isInAndroidSdk=false, looseSignatures=true) public class ShadowContextHubManager extends Object
ContextHubManager
.Constructor | Description |
---|---|
ShadowContextHubManager() |
Modifier and Type | Method | Description |
---|---|---|
protected Object |
createClient(Object contextHubInfo,
Object contextHubClientCallback) |
|
protected Object |
createClient(Object contextHubInfo,
Object contextHubClientCallback,
Object executor) |
|
protected int[] |
getContextHubHandles() |
Provides an array of fake handles.
|
protected android.hardware.location.ContextHubInfo |
getContextHubInfo(int hubHandle) |
|
protected List<android.hardware.location.ContextHubInfo> |
getContextHubs() |
Provides a list with fake
ContextHubInfo s. |
@Implementation(minSdk=28) @HiddenApi protected List<android.hardware.location.ContextHubInfo> getContextHubs()
ContextHubInfo
s.
ContextHubInfo
describes an optional physical chip on the device. This does not
exist in test; this implementation allows to avoid possible NPEs.
@Implementation(minSdk=28) @HiddenApi protected Object createClient(Object contextHubInfo, Object contextHubClientCallback)
@Implementation(minSdk=28) @HiddenApi protected Object createClient(Object contextHubInfo, Object contextHubClientCallback, Object executor)
@Implementation @HiddenApi protected int[] getContextHubHandles()
These describe an optional physical chip on the device which does not exist during testing. This implementation enables testing of classes that utilize these APIs.
@Implementation @HiddenApi protected android.hardware.location.ContextHubInfo getContextHubInfo(int hubHandle)