Home
last modified time | relevance | path

Searched refs:mAlwaysOnHotwordDetector (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DAlwaysOnHotwordDetectorTest.java114 private AlwaysOnHotwordDetector mAlwaysOnHotwordDetector = null; field in AlwaysOnHotwordDetectorTest
152 mAlwaysOnHotwordDetector = null; in createAndEnrollAlwaysOnHotwordDetector()
174 mAlwaysOnHotwordDetector = getService().getAlwaysOnHotwordDetector(); in createAndEnrollAlwaysOnHotwordDetector()
184 assertThat(mAlwaysOnHotwordDetector).isNotNull(); in createAndEnrollAlwaysOnHotwordDetector()
209 if (mAlwaysOnHotwordDetector != null) { in tearDown()
210 mAlwaysOnHotwordDetector.destroy(); in tearDown()
241 mAlwaysOnHotwordDetector.startRecognition(0, new byte[]{1, 2, 3, 4, 5}); in testStartRecognition_success()
273 mAlwaysOnHotwordDetector.startRecognition(0, new byte[]{1, 2, 3, 4, 5}); in testHalIsDead_onFailureReceived()
305 mAlwaysOnHotwordDetector.startRecognition(0, new byte[]{1, 2, 3, 4, 5}); in testRecognitionResumedFailed_onFailureReceived()
347 mAlwaysOnHotwordDetector.startRecognition(0, new byte[]{1, 2, 3, 4, 5}); in testAbortRecognitionAndOnResourceAvailable_recognitionPausedAndResumed()
[all …]
DAlwaysOnHotwordDetectorNoHdsTest.java102 private AlwaysOnHotwordDetector mAlwaysOnHotwordDetector = null; field in AlwaysOnHotwordDetectorNoHdsTest
149 if (mAlwaysOnHotwordDetector != null) { in tearDown()
150 mAlwaysOnHotwordDetector.destroy(); in tearDown()
223 mAlwaysOnHotwordDetector = null; in createAndEnrollAlwaysOnHotwordDetector()
252 mAlwaysOnHotwordDetector = getService().getAlwaysOnHotwordDetector(); in createAndEnrollAlwaysOnHotwordDetector()
259 assertThat(mAlwaysOnHotwordDetector).isNotNull(); in createAndEnrollAlwaysOnHotwordDetector()
269 mAlwaysOnHotwordDetector.startRecognition(0, new byte[] {1, 2, 3, 4, 5}); in startAndTriggerRecognition()
DAlwaysOnHotwordDetectorNoDspTest.java99 private AlwaysOnHotwordDetector mAlwaysOnHotwordDetector = null; field in AlwaysOnHotwordDetectorNoDspTest
149 mAlwaysOnHotwordDetector = null; in setup()
163 if (mAlwaysOnHotwordDetector != null) { in tearDown()
164 mAlwaysOnHotwordDetector.destroy(); in tearDown()
211 mAlwaysOnHotwordDetector = getService().createAlwaysOnHotwordDetector(KEYPHRASE_TEXT, in testCreateAlwaysOnHotwordDetector_noSTModule_stateUnavailableWhenChangeIdDisabled()
217 assertThat(mAlwaysOnHotwordDetector).isNotNull(); in testCreateAlwaysOnHotwordDetector_noSTModule_stateUnavailableWhenChangeIdDisabled()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DProxyVoiceInteractionService.java208 private final AlwaysOnHotwordDetector mAlwaysOnHotwordDetector; field in ProxyVoiceInteractionService.FakeAlwaysOnHotwordDetector
212 mAlwaysOnHotwordDetector = alwaysOnHotwordDetector; in FakeAlwaysOnHotwordDetector()
317 mAlwaysOnHotwordDetector.updateState(options, sharedMemory);
332 return mAlwaysOnHotwordDetector.startRecognition(audioStream,
338 return mAlwaysOnHotwordDetector.startRecognition(recognitionFlags, data);
343 return mAlwaysOnHotwordDetector.startRecognition(recognitionFlags);
348 return mAlwaysOnHotwordDetector.startRecognition();
354 return mAlwaysOnHotwordDetector.stopRecognition();
370 mAlwaysOnHotwordDetector.triggerHardwareRecognitionEventForTest(status,
378 mAlwaysOnHotwordDetector.overrideAvailability(availability);
[all …]
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DProxyVoiceInteractionService.java222 private final AlwaysOnHotwordDetector mAlwaysOnHotwordDetector; field in ProxyVoiceInteractionService.AlwaysOnHotwordDetectorAdapter
228 mAlwaysOnHotwordDetector = alwaysOnHotwordDetector; in AlwaysOnHotwordDetectorAdapter()
317 mAlwaysOnHotwordDetector.updateState(options, sharedMemory); in updateState()
332 return mAlwaysOnHotwordDetector.startRecognition(audioStream, in startRecognitionWithAudioStream()
338 return mAlwaysOnHotwordDetector.startRecognition(recognitionFlags, data); in startRecognitionWithFlagsAndData()
343 return mAlwaysOnHotwordDetector.startRecognition(recognitionFlags); in startRecognitionWithFlags()
348 return mAlwaysOnHotwordDetector.startRecognition(); in startRecognition()
354 return mAlwaysOnHotwordDetector.stopRecognition(); in stopRecognition()
388 mAlwaysOnHotwordDetector.triggerHardwareRecognitionEventForTest(status, in triggerHardwareRecognitionEventForTest()
396 mAlwaysOnHotwordDetector.overrideAvailability(availability); in overrideAvailability()
[all …]
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/
DBaseVoiceInteractionService.java77 AlwaysOnHotwordDetector mAlwaysOnHotwordDetector = null; field in BaseVoiceInteractionService
265 mAlwaysOnHotwordDetector = null; in resetState()
416 return mAlwaysOnHotwordDetector; in getAlwaysOnHotwordDetector()
DCtsBasicVoiceInteractionService.java160 mAlwaysOnHotwordDetector = callCreateAlwaysOnHotwordDetectorNoHotwordDetectionService( in createAlwaysOnHotwordDetectorNoHotwordDetectionService()
270 mAlwaysOnHotwordDetector = callCreateAlwaysOnHotwordDetectorWithNecessaryPerm(callback, in createAlwaysOnHotwordDetector()
343 mAlwaysOnHotwordDetector = in createAlwaysOnHotwordDetectorWithOnFailureCallback()