Home
last modified time | relevance | path

Searched refs:alwaysOnHotwordDetector (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DHotwordDetectionServiceBasicTest.java289 AlwaysOnHotwordDetector alwaysOnHotwordDetector = mService.getAlwaysOnHotwordDetector(); in testHotwordDetectionService_createDspDetector_sendOverMaxResult_getException() local
290 if (alwaysOnHotwordDetector != null) { in testHotwordDetectionService_createDspDetector_sendOverMaxResult_getException()
291 alwaysOnHotwordDetector.destroy(); in testHotwordDetectionService_createDspDetector_sendOverMaxResult_getException()
347 AlwaysOnHotwordDetector alwaysOnHotwordDetector = mService.getAlwaysOnHotwordDetector(); in testHotwordDetectionService_createDspDetector_customResult_getCustomStatus() local
348 if (alwaysOnHotwordDetector != null) { in testHotwordDetectionService_createDspDetector_customResult_getCustomStatus()
349 alwaysOnHotwordDetector.destroy(); in testHotwordDetectionService_createDspDetector_customResult_getCustomStatus()
396 AlwaysOnHotwordDetector alwaysOnHotwordDetector = mService.getAlwaysOnHotwordDetector(); in testHotwordDetectionService_validHotwordDetectionComponentName_triggerSuccess() local
397 Objects.requireNonNull(alwaysOnHotwordDetector); in testHotwordDetectionService_validHotwordDetectionComponentName_triggerSuccess()
399 alwaysOnHotwordDetector.destroy(); in testHotwordDetectionService_validHotwordDetectionComponentName_triggerSuccess()
463 AlwaysOnHotwordDetector alwaysOnHotwordDetector = in testVoiceInteractionService_disallowCreateAlwaysOnHotwordDetectorTwice() local
[all …]
DHotwordDetectionServiceMultipleDetectorTest.java134 AlwaysOnHotwordDetector alwaysOnHotwordDetector = null; in testVoiceInteractionService_createMultipleDetectorSuccess() local
138 alwaysOnHotwordDetector = createAlwaysOnHotwordDetector(); in testVoiceInteractionService_createMultipleDetectorSuccess()
141 if (alwaysOnHotwordDetector != null) { in testVoiceInteractionService_createMultipleDetectorSuccess()
142 alwaysOnHotwordDetector.destroy(); in testVoiceInteractionService_createMultipleDetectorSuccess()
155 AlwaysOnHotwordDetector alwaysOnHotwordDetector = null; in testVoiceInteractionService_createMultipleDetectorRestartSuccess() local
159 alwaysOnHotwordDetector = createAlwaysOnHotwordDetector(); in testVoiceInteractionService_createMultipleDetectorRestartSuccess()
169 if (alwaysOnHotwordDetector != null) { in testVoiceInteractionService_createMultipleDetectorRestartSuccess()
170 alwaysOnHotwordDetector.destroy(); in testVoiceInteractionService_createMultipleDetectorRestartSuccess()
184 AlwaysOnHotwordDetector alwaysOnHotwordDetector = null; in testHotwordDetectionServiceMultipleDetectors_detectHotwordDSPThenVisualQuery() local
189 alwaysOnHotwordDetector = createAlwaysOnHotwordDetector(); in testHotwordDetectionServiceMultipleDetectors_detectHotwordDSPThenVisualQuery()
[all …]
DHotwordDetectionServiceStressTest.java180 AlwaysOnHotwordDetector alwaysOnHotwordDetector = createAlwaysOnHotwordDetector(); in testHotwordDetectionService_createAlwaysOnHotwordDetector_success() local
183 alwaysOnHotwordDetector.destroy(); in testHotwordDetectionService_createAlwaysOnHotwordDetector_success()
203 AlwaysOnHotwordDetector alwaysOnHotwordDetector = createAlwaysOnHotwordDetector(); in testHotwordDetectionService_onDetectFromDsp_success() local
211 verifyOnDetectFromDspSuccess(alwaysOnHotwordDetector); in testHotwordDetectionService_onDetectFromDsp_success()
219 alwaysOnHotwordDetector.destroy(); in testHotwordDetectionService_onDetectFromDsp_success()
230 AlwaysOnHotwordDetector alwaysOnHotwordDetector = createAlwaysOnHotwordDetector(); in testHotwordDetectionService_onDetectFromExternalSource_success() local
241 alwaysOnHotwordDetector.startRecognition(audioStream, in testHotwordDetectionService_onDetectFromExternalSource_success()
258 alwaysOnHotwordDetector.destroy(); in testHotwordDetectionService_onDetectFromExternalSource_success()
308 AlwaysOnHotwordDetector alwaysOnHotwordDetector = createAlwaysOnHotwordDetector(); in testMultipleDetectors_onDetectFromDspAndMic_success() local
322 verifyOnDetectFromDspSuccess(alwaysOnHotwordDetector); in testMultipleDetectors_onDetectFromDspAndMic_success()
[all …]
DHotwordDetectionServiceProximityTest.java150 AlwaysOnHotwordDetector alwaysOnHotwordDetector = createAlwaysOnHotwordDetector(); in testAttentionService_onDetectFromDsp() local
156 triggerHardwareRecognitionEventForTest(alwaysOnHotwordDetector); in testAttentionService_onDetectFromDsp()
168 triggerHardwareRecognitionEventForTest(alwaysOnHotwordDetector); in testAttentionService_onDetectFromDsp()
180 triggerHardwareRecognitionEventForTest(alwaysOnHotwordDetector); in testAttentionService_onDetectFromDsp()
192 triggerHardwareRecognitionEventForTest(alwaysOnHotwordDetector); in testAttentionService_onDetectFromDsp()
200 alwaysOnHotwordDetector.destroy(); in testAttentionService_onDetectFromDsp()
286 AlwaysOnHotwordDetector alwaysOnHotwordDetector = createAlwaysOnHotwordDetector(); in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity() local
294 alwaysOnHotwordDetector.startRecognition(audioStream, in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity()
303 alwaysOnHotwordDetector.destroy(); in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity()
326 AlwaysOnHotwordDetector alwaysOnHotwordDetector) { in triggerHardwareRecognitionEventForTest() argument
[all …]
DVoiceInteractionMultiDetectorTest.java123 IProxyAlwaysOnHotwordDetector alwaysOnHotwordDetector = in testAlwaysOnHotwordDetectorDestroy_throwsExceptionAfterDestroy() local
134 alwaysOnHotwordDetector.startRecognitionOnFakeAudioStream(); in testAlwaysOnHotwordDetectorDestroy_throwsExceptionAfterDestroy()
135 alwaysOnHotwordDetector.destroy(); in testAlwaysOnHotwordDetectorDestroy_throwsExceptionAfterDestroy()
137 () -> alwaysOnHotwordDetector.startRecognitionOnFakeAudioStream()); in testAlwaysOnHotwordDetectorDestroy_throwsExceptionAfterDestroy()
138 assertThrows(IllegalStateException.class, () -> alwaysOnHotwordDetector.stopRecognition()); in testAlwaysOnHotwordDetectorDestroy_throwsExceptionAfterDestroy()
140 () -> alwaysOnHotwordDetector.updateState(null, null)); in testAlwaysOnHotwordDetectorDestroy_throwsExceptionAfterDestroy()
142 alwaysOnHotwordDetector.triggerHardwareRecognitionEventForTest(/* status */ 0, in testAlwaysOnHotwordDetectorDestroy_throwsExceptionAfterDestroy()
DVoiceInteractionServiceTest.java411 AlwaysOnHotwordDetector alwaysOnHotwordDetector = mService.getAlwaysOnHotwordDetector(); in testCreateAlwaysOnHotwordDetectorNoHotwordDetectionService() local
412 Objects.requireNonNull(alwaysOnHotwordDetector); in testCreateAlwaysOnHotwordDetectorNoHotwordDetectionService()
466 AlwaysOnHotwordDetector alwaysOnHotwordDetector = mService.getAlwaysOnHotwordDetector(); in testCreateAlwaysOnHotwordDetector() local
467 Objects.requireNonNull(alwaysOnHotwordDetector); in testCreateAlwaysOnHotwordDetector()
474 alwaysOnHotwordDetector.overrideAvailability( in testCreateAlwaysOnHotwordDetector()
487 verifyDetectFromDspSuccess(alwaysOnHotwordDetector, callbackShouldRunOnMainThread); in testCreateAlwaysOnHotwordDetector()
488 verifyDetectFromDspRejected(alwaysOnHotwordDetector, callbackShouldRunOnMainThread); in testCreateAlwaysOnHotwordDetector()
489 verifyDetectFromDspError(alwaysOnHotwordDetector, callbackShouldRunOnMainThread); in testCreateAlwaysOnHotwordDetector()
492 alwaysOnHotwordDetector.destroy(); in testCreateAlwaysOnHotwordDetector()
584 private void verifyDetectFromDspSuccess(AlwaysOnHotwordDetector alwaysOnHotwordDetector, in verifyDetectFromDspSuccess() argument
[all …]
DHotwordDetectionServicePermissionTest.java128 AlwaysOnHotwordDetector alwaysOnHotwordDetector = mService.getAlwaysOnHotwordDetector(); in testHotwordDetectionService_hasCaptureAudioOutputPermission() local
129 Objects.requireNonNull(alwaysOnHotwordDetector); in testHotwordDetectionService_hasCaptureAudioOutputPermission()
135 alwaysOnHotwordDetector.triggerHardwareRecognitionEventForTest(/* status */ 0, in testHotwordDetectionService_hasCaptureAudioOutputPermission()
148 alwaysOnHotwordDetector.destroy(); in testHotwordDetectionService_hasCaptureAudioOutputPermission()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DProxyVoiceInteractionService.java211 FakeAlwaysOnHotwordDetector(AlwaysOnHotwordDetector alwaysOnHotwordDetector) { in FakeAlwaysOnHotwordDetector() argument
212 mAlwaysOnHotwordDetector = alwaysOnHotwordDetector; in FakeAlwaysOnHotwordDetector()
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DProxyVoiceInteractionService.java226 AlwaysOnHotwordDetectorAdapter(AlwaysOnHotwordDetector alwaysOnHotwordDetector, in AlwaysOnHotwordDetectorAdapter() argument
228 mAlwaysOnHotwordDetector = alwaysOnHotwordDetector; in AlwaysOnHotwordDetectorAdapter()