Package org.robolectric.shadows
Class ShadowWearableSensingManager
java.lang.Object
org.robolectric.shadows.ShadowWearableSensingManager
@Implements(value=android.app.wearable.WearableSensingManager.class,
minSdk=34,
isInAndroidSdk=false)
public class ShadowWearableSensingManager
extends Object
Shadow for VirtualDeviceManager.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
provideData
(PersistableBundle data, SharedMemory sharedMemory, Executor executor, Consumer<Integer> statusConsumer) protected void
provideDataStream
(ParcelFileDescriptor parcelFileDescriptor, Executor executor, Consumer<Integer> statusConsumer) static void
reset()
void
setProvideDataResult
(Integer provideDataResult) void
setProvideDataStreamResult
(Integer provideDataStreamResult) void
setStartHotwordRecognitionResult
(Integer startHotwordRecognitionResult) Sets the status code that will be sent to the@StatusCode Consumer<Integer>
whenstartHotwordRecognition(android.content.ComponentName, java.util.concurrent.Executor, java.util.function.Consumer<java.lang.Integer>)
is called.void
setStopHotwordRecognitionResult
(Integer stopHotwordRecognitionResult) Sets the status code that will be sent to the@StatusCode Consumer<Integer>
whenstopHotwordRecognition(java.util.concurrent.Executor, java.util.function.Consumer<java.lang.Integer>)
is called.protected void
startHotwordRecognition
(ComponentName targetVisComponentName, Executor executor, Consumer<Integer> statusConsumer) protected void
stopHotwordRecognition
(Executor executor, Consumer<Integer> statusConsumer)
-
Constructor Details
-
ShadowWearableSensingManager
public ShadowWearableSensingManager()
-
-
Method Details
-
provideDataStream
@Implementation protected void provideDataStream(ParcelFileDescriptor parcelFileDescriptor, Executor executor, Consumer<Integer> statusConsumer) -
startHotwordRecognition
@Implementation(minSdk=35) protected void startHotwordRecognition(@Nullable ComponentName targetVisComponentName, @Nonnull Executor executor, @Nonnull Consumer<Integer> statusConsumer) -
stopHotwordRecognition
@Implementation(minSdk=35) protected void stopHotwordRecognition(@Nonnull Executor executor, @Nonnull Consumer<Integer> statusConsumer) -
setProvideDataStreamResult
-
setProvideDataResult
-
setStartHotwordRecognitionResult
Sets the status code that will be sent to the@StatusCode Consumer<Integer>
whenstartHotwordRecognition(android.content.ComponentName, java.util.concurrent.Executor, java.util.function.Consumer<java.lang.Integer>)
is called. -
setStopHotwordRecognitionResult
Sets the status code that will be sent to the@StatusCode Consumer<Integer>
whenstopHotwordRecognition(java.util.concurrent.Executor, java.util.function.Consumer<java.lang.Integer>)
is called. -
getLastParcelFileDescriptor
-
getLastDataBundle
-
getAllDataBundles
-
reset
-