Home
last modified time | relevance | path

Searched refs:hotwordDetectedResult (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/unittests/
DHotwordDetectedResultTest.java203 final HotwordDetectedResult hotwordDetectedResult = in testHotwordDetectedResultBuilder() local
220 assertHotwordDetectedResult(hotwordDetectedResult); in testHotwordDetectedResultBuilder()
221 HotwordAudioStream result = hotwordDetectedResult.getAudioStreams().get(0); in testHotwordDetectedResultBuilder()
238 final HotwordDetectedResult hotwordDetectedResult = in testHotwordDetectedResultParcelizeDeparcelize() local
256 hotwordDetectedResult.writeToParcel(p, 0); in testHotwordDetectedResultParcelizeDeparcelize()
303 private void assertHotwordDetectedResult(HotwordDetectedResult hotwordDetectedResult) { in assertHotwordDetectedResult() argument
304 assertThat(hotwordDetectedResult.getConfidenceLevel()).isEqualTo( in assertHotwordDetectedResult()
306 assertThat(hotwordDetectedResult.getMediaSyncEvent()).isNotNull(); in assertHotwordDetectedResult()
307 assertThat(hotwordDetectedResult.getHotwordOffsetMillis()).isEqualTo(100); in assertHotwordDetectedResult()
308 assertThat(hotwordDetectedResult.getHotwordDurationMillis()).isEqualTo(1000); in assertHotwordDetectedResult()
[all …]
DAlwaysOnHotwordDetectorEventPayloadTest.java103 HotwordDetectedResult hotwordDetectedResult = new HotwordDetectedResult.Builder() in testEventPayload_getHotwordDetectedResult() local
116 .setHotwordDetectedResult(hotwordDetectedResult) in testEventPayload_getHotwordDetectedResult()
118 assertThat(eventPayload.getHotwordDetectedResult()).isEqualTo(hotwordDetectedResult); in testEventPayload_getHotwordDetectedResult()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DHelper.java300 HotwordDetectedResult hotwordDetectedResult = detectedResult.getHotwordDetectedResult();
301 verifyHotwordDetectedResult(expectedDetectedResult, hotwordDetectedResult);
308 HotwordDetectedResult hotwordDetectedResult) {
309 assertThat(hotwordDetectedResult).isNotNull();
310 assertThat(hotwordDetectedResult.getAudioChannel())
312 assertThat(hotwordDetectedResult.getConfidenceLevel())
314 assertThat(hotwordDetectedResult.isHotwordDetectionPersonalized())
316 assertThat(hotwordDetectedResult.getHotwordDurationMillis())
318 assertThat(hotwordDetectedResult.getHotwordOffsetMillis())
320 assertThat(hotwordDetectedResult.getHotwordPhraseId())
[all …]
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DHotwordDetectionServiceProximityTest.java219 HotwordDetectedResult hotwordDetectedResult = waitHotwordServiceOnDetectedResult(); in testAttentionService_onDetectFromMic_noUpdates() local
221 verifyProximityBundle(hotwordDetectedResult, null); in testAttentionService_onDetectFromMic_noUpdates()
245 HotwordDetectedResult hotwordDetectedResult = waitHotwordServiceOnDetectedResult(); in testAttentionService_onDetectFromMic_unknownProximity() local
247 verifyProximityBundle(hotwordDetectedResult, null); in testAttentionService_onDetectFromMic_unknownProximity()
271 HotwordDetectedResult hotwordDetectedResult = waitHotwordServiceOnDetectedResult(); in testAttentionService_onDetectFromMic_updatedProximity() local
273 verifyProximityBundle(hotwordDetectedResult, PROXIMITY_NEAR); in testAttentionService_onDetectFromMic_updatedProximity()
299 HotwordDetectedResult hotwordDetectedResult = waitHotwordServiceOnDetectedResult(); in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity() local
301 verifyProximityBundle(hotwordDetectedResult, null); in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity()
389 private void verifyProximityBundle(HotwordDetectedResult hotwordDetectedResult, in verifyProximityBundle() argument
391 assertThat(hotwordDetectedResult).isNotNull(); in verifyProximityBundle()
[all …]
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainHotwordDetectionService.java163 HotwordDetectedResult hotwordDetectedResult = in onDetect() local
187 callback.onDetected(hotwordDetectedResult); in onDetect()