Searched refs:hotwordDetectedResult (Results 1 – 5 of 5) sorted by relevance
203 final HotwordDetectedResult hotwordDetectedResult = in testHotwordDetectedResultBuilder() local220 assertHotwordDetectedResult(hotwordDetectedResult); in testHotwordDetectedResultBuilder()221 HotwordAudioStream result = hotwordDetectedResult.getAudioStreams().get(0); in testHotwordDetectedResultBuilder()238 final HotwordDetectedResult hotwordDetectedResult = in testHotwordDetectedResultParcelizeDeparcelize() local256 hotwordDetectedResult.writeToParcel(p, 0); in testHotwordDetectedResultParcelizeDeparcelize()303 private void assertHotwordDetectedResult(HotwordDetectedResult hotwordDetectedResult) { in assertHotwordDetectedResult() argument304 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 …]
103 HotwordDetectedResult hotwordDetectedResult = new HotwordDetectedResult.Builder() in testEventPayload_getHotwordDetectedResult() local116 .setHotwordDetectedResult(hotwordDetectedResult) in testEventPayload_getHotwordDetectedResult()118 assertThat(eventPayload.getHotwordDetectedResult()).isEqualTo(hotwordDetectedResult); in testEventPayload_getHotwordDetectedResult()
300 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 …]
219 HotwordDetectedResult hotwordDetectedResult = waitHotwordServiceOnDetectedResult(); in testAttentionService_onDetectFromMic_noUpdates() local221 verifyProximityBundle(hotwordDetectedResult, null); in testAttentionService_onDetectFromMic_noUpdates()245 HotwordDetectedResult hotwordDetectedResult = waitHotwordServiceOnDetectedResult(); in testAttentionService_onDetectFromMic_unknownProximity() local247 verifyProximityBundle(hotwordDetectedResult, null); in testAttentionService_onDetectFromMic_unknownProximity()271 HotwordDetectedResult hotwordDetectedResult = waitHotwordServiceOnDetectedResult(); in testAttentionService_onDetectFromMic_updatedProximity() local273 verifyProximityBundle(hotwordDetectedResult, PROXIMITY_NEAR); in testAttentionService_onDetectFromMic_updatedProximity()299 HotwordDetectedResult hotwordDetectedResult = waitHotwordServiceOnDetectedResult(); in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity() local301 verifyProximityBundle(hotwordDetectedResult, null); in testAttentionService_onDetectFromExternalSource_doesNotReceiveProximity()389 private void verifyProximityBundle(HotwordDetectedResult hotwordDetectedResult, in verifyProximityBundle() argument391 assertThat(hotwordDetectedResult).isNotNull(); in verifyProximityBundle()[all …]
163 HotwordDetectedResult hotwordDetectedResult = in onDetect() local187 callback.onDetected(hotwordDetectedResult); in onDetect()