Package org.robolectric.shadows
Class ShadowAlwaysOnHotwordDetector
java.lang.Object
org.robolectric.shadows.ShadowAlwaysOnHotwordDetector
@Implements(value=android.service.voice.AlwaysOnHotwordDetector.class,
minSdk=21,
isInAndroidSdk=false)
public class ShadowAlwaysOnHotwordDetector
extends Object
Shadow implementation of
AlwaysOnHotwordDetector
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Shadow for AsyncTask kicked off in the constructor of AlwaysOnHotwordDetector. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
__constructor__
(String text, Locale locale, AlwaysOnHotwordDetector.Callback callback, android.hardware.soundtrigger.KeyphraseEnrollmentInfo keyphraseEnrollmentInfo, IVoiceInteractionService voiceInteractionService, com.android.internal.app.IVoiceInteractionManagerService modelManagementService) protected void
__constructor__
(String text, Locale locale, AlwaysOnHotwordDetector.Callback callback, android.hardware.soundtrigger.KeyphraseEnrollmentInfo keyphraseEnrollmentInfo, com.android.internal.app.IVoiceInteractionManagerService modelManagementService) protected void
__constructor__
(String text, Locale locale, AlwaysOnHotwordDetector.Callback callback, android.hardware.soundtrigger.KeyphraseEnrollmentInfo keyphraseEnrollmentInfo, com.android.internal.app.IVoiceInteractionManagerService modelManagementService, int targetSdkVersion, boolean supportHotwordDetectionService, PersistableBundle options, SharedMemory sharedMemory) protected void
__constructor__
(String text, Locale locale, Executor executor, AlwaysOnHotwordDetector.Callback callback, android.hardware.soundtrigger.KeyphraseEnrollmentInfo keyphraseEnrollmentInfo, com.android.internal.app.IVoiceInteractionManagerService modelManagementService, int targetSdkVersion, boolean supportSandboxedDetectionService) createEventPayload
(boolean triggerAvailable, boolean captureAvailable, AudioFormat audioFormat, int captureSession, byte[] data) Invokes the normally hidden EventPayload constructor for passing to Callback#onDetected().void
triggerOnAvailabilityChangedCallback
(int status) Invokes Callback#onAvailabilityChanged.void
Invokes Callback#onDetected.void
Invokes Callback#onError.
-
Constructor Details
-
ShadowAlwaysOnHotwordDetector
public ShadowAlwaysOnHotwordDetector()
-
-
Method Details
-
__constructor__
@Implementation(maxSdk=29) protected void __constructor__(String text, Locale locale, AlwaysOnHotwordDetector.Callback callback, android.hardware.soundtrigger.KeyphraseEnrollmentInfo keyphraseEnrollmentInfo, IVoiceInteractionService voiceInteractionService, com.android.internal.app.IVoiceInteractionManagerService modelManagementService) -
__constructor__
@Implementation(minSdk=30, maxSdk=30) protected void __constructor__(String text, Locale locale, AlwaysOnHotwordDetector.Callback callback, android.hardware.soundtrigger.KeyphraseEnrollmentInfo keyphraseEnrollmentInfo, com.android.internal.app.IVoiceInteractionManagerService modelManagementService) -
__constructor__
@Implementation(minSdk=34, maxSdk=34) protected void __constructor__(String text, Locale locale, Executor executor, AlwaysOnHotwordDetector.Callback callback, android.hardware.soundtrigger.KeyphraseEnrollmentInfo keyphraseEnrollmentInfo, com.android.internal.app.IVoiceInteractionManagerService modelManagementService, int targetSdkVersion, boolean supportSandboxedDetectionService) -
triggerOnErrorCallback
public void triggerOnErrorCallback()Invokes Callback#onError. -
triggerOnDetectedCallback
Invokes Callback#onDetected. -
triggerOnAvailabilityChangedCallback
public void triggerOnAvailabilityChangedCallback(int status) Invokes Callback#onAvailabilityChanged. -
createEventPayload
public static AlwaysOnHotwordDetector.EventPayload createEventPayload(boolean triggerAvailable, boolean captureAvailable, AudioFormat audioFormat, int captureSession, byte[] data) Invokes the normally hidden EventPayload constructor for passing to Callback#onDetected().
-