Annotate thermal CTS tests for CDD 7.3.6
Test: Build
Bug: 174709632
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I4fb40bf9b93930f3581412bb5849929641852021
diff --git a/tests/tests/libthermalndk/src/android/thermal/cts/NativeThermalTest.java b/tests/tests/libthermalndk/src/android/thermal/cts/NativeThermalTest.java
index 634ec56..178b426 100644
--- a/tests/tests/libthermalndk/src/android/thermal/cts/NativeThermalTest.java
+++ b/tests/tests/libthermalndk/src/android/thermal/cts/NativeThermalTest.java
@@ -21,6 +21,7 @@
import android.support.test.uiautomator.UiDevice;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;
+import com.android.compatibility.common.util.CddTest;
import com.google.common.base.Strings;
import org.junit.After;
@@ -126,6 +127,7 @@
*
* @throws Exception
*/
+ @CddTest(requirement="7.3.6")
@Test
public void testGetThermalHeadroom() throws Exception {
final String failureMessage = nativeTestGetThermalHeadroom();
diff --git a/tests/tests/os/src/android/os/cts/PowerManager_ThermalTest.java b/tests/tests/os/src/android/os/cts/PowerManager_ThermalTest.java
index 932cbaf..598996c 100644
--- a/tests/tests/os/src/android/os/cts/PowerManager_ThermalTest.java
+++ b/tests/tests/os/src/android/os/cts/PowerManager_ThermalTest.java
@@ -32,6 +32,7 @@
import androidx.test.InstrumentationRegistry;
+import com.android.compatibility.common.util.CddTest;
import com.android.compatibility.common.util.ThermalUtils;
import org.junit.After;
@@ -126,6 +127,12 @@
.times(1)).onThermalStatusChanged(status);
}
+ /**
+ * Test that getThermalHeadroom works
+ *
+ * @throws Exception
+ */
+ @CddTest(requirement="7.3.6")
@Test
public void testGetThermalHeadroom() throws Exception {
float headroom = mPowerManager.getThermalHeadroom(0);