summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kim <danieljkim@google.com>2022-09-26 08:12:46 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-09-26 08:12:46 +0000
commit85140306f279356a3544969a9cbaa776690e60d6 (patch)
tree5fb52a0e57de94c07b8ce39652fb9b8097b19669
parent56bf26c562ce6f8b8948de3272830870eaa899a6 (diff)
parent0ae6e3e651a12bc5bfbbd88a3b0ec76977fe8b8f (diff)
downloadcts-85140306f279356a3544969a9cbaa776690e60d6.tar.gz
Merge "Verify the attention service feature flag" into tm-qpr-dev
-rw-r--r--tests/tests/voiceinteraction/src/android/voiceinteraction/cts/HotwordDetectionServiceProximityTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/HotwordDetectionServiceProximityTest.java b/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/HotwordDetectionServiceProximityTest.java
index c7b04db4286..699a8f43a6d 100644
--- a/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/HotwordDetectionServiceProximityTest.java
+++ b/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/HotwordDetectionServiceProximityTest.java
@@ -55,6 +55,8 @@ import org.junit.runner.RunWith;
@AppModeFull(reason = "No real use case for instant mode hotword detection service")
public final class HotwordDetectionServiceProximityTest
extends AbstractVoiceInteractionBasicTestCase {
+ /** TODO(b/247920386): Replace with the system constant. */
+ private static final boolean ENABLE_PROXIMITY_RESULT = false;
@Rule
public final DeviceConfigStateChangerRule mEnableAttentionManagerServiceRule =
@@ -233,7 +235,7 @@ public final class HotwordDetectionServiceProximityTest
HotwordDetectedResult hotwordDetectedResult =
((EventPayloadParcelable) result).mHotwordDetectedResult;
assertThat(hotwordDetectedResult).isNotNull();
- if (expected == null) {
+ if (expected == null || !ENABLE_PROXIMITY_RESULT) {
assertThat(
hotwordDetectedResult.getExtras().containsKey(EXTRA_PROXIMITY_METERS))
.isFalse();