Loading services/tests/dreamservicetests/AndroidManifest.xml +26 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,32 @@ android:testOnly="true"> <uses-library android:name="android.test.mock" android:required="true" /> <uses-library android:name="android.test.runner" /> <service android:name="com.android.server.dreams.TestDreamService" android:exported="false" android:label="Test Dream" > <intent-filter> <action android:name="android.service.dreams.DreamService" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="android.service.dream" android:resource="@xml/test_dream_metadata" /> </service> <service android:name="com.android.server.dreams.TestDreamServiceWithInvalidSettings" android:exported="false" android:label="Test Dream" > <intent-filter> <action android:name="android.service.dreams.DreamService" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="android.service.dream" android:resource="@xml/test_dream_metadata_invalid" /> </service> </application> <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" Loading services/tests/dreamservicetests/TEST_MAPPING 0 → 100644 +22 −0 Original line number Diff line number Diff line { "presubmit": [ { "name": "DreamServiceTests", "options": [ {"include-filter": "com.android.server.dreams"}, {"exclude-annotation": "android.platform.test.annotations.FlakyTest"}, {"exclude-annotation": "androidx.test.filters.FlakyTest"}, {"exclude-annotation": "org.junit.Ignore"} ] } ], "postsubmit": [ { "name": "DreamServiceTests", "options": [ {"include-filter": "com.android.server.dreams"}, {"exclude-annotation": "org.junit.Ignore"} ] } ] } services/tests/servicestests/res/xml/test_dream_metadata.xml→services/tests/dreamservicetests/res/xml/test_dream_metadata.xml +2 −1 Original line number Diff line number Diff line Loading @@ -15,5 +15,6 @@ --> <dream xmlns:android="http://schemas.android.com/apk/res/android" android:settingsActivity="com.android.frameworks.servicestests/.TestDreamSettingsActivity" android:settingsActivity= "com.android.frameworks.dreamservicetests/.TestDreamSettingsActivity" android:showClockAndComplications="false" /> services/tests/servicestests/res/xml/test_dream_metadata_invalid.xml→services/tests/dreamservicetests/res/xml/test_dream_metadata_invalid.xml +0 −0 File moved. View file services/tests/servicestests/src/com/android/server/dreams/DreamControllerTest.java→services/tests/dreamservicetests/src/com/android/server/dreams/DreamControllerTest.java +3 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ import android.os.RemoteException; import android.os.test.TestLooper; import android.service.dreams.IDreamService; import androidx.test.filters.FlakyTest; import androidx.test.filters.SmallTest; import androidx.test.runner.AndroidJUnit4; Loading Loading @@ -231,6 +232,7 @@ public class DreamControllerTest { } @Test @FlakyTest(bugId = 293109503) public void serviceDisconnect_resetsScreenTimeout() throws RemoteException { // Start dream. mDreamController.startDream(mToken, mDreamName, false /*isPreview*/, false /*doze*/, Loading @@ -250,6 +252,7 @@ public class DreamControllerTest { } @Test @FlakyTest(bugId = 293109503) public void binderDied_resetsScreenTimeout() throws RemoteException { // Start dream. mDreamController.startDream(mToken, mDreamName, false /*isPreview*/, false /*doze*/, Loading Loading
services/tests/dreamservicetests/AndroidManifest.xml +26 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,32 @@ android:testOnly="true"> <uses-library android:name="android.test.mock" android:required="true" /> <uses-library android:name="android.test.runner" /> <service android:name="com.android.server.dreams.TestDreamService" android:exported="false" android:label="Test Dream" > <intent-filter> <action android:name="android.service.dreams.DreamService" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="android.service.dream" android:resource="@xml/test_dream_metadata" /> </service> <service android:name="com.android.server.dreams.TestDreamServiceWithInvalidSettings" android:exported="false" android:label="Test Dream" > <intent-filter> <action android:name="android.service.dreams.DreamService" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="android.service.dream" android:resource="@xml/test_dream_metadata_invalid" /> </service> </application> <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" Loading
services/tests/dreamservicetests/TEST_MAPPING 0 → 100644 +22 −0 Original line number Diff line number Diff line { "presubmit": [ { "name": "DreamServiceTests", "options": [ {"include-filter": "com.android.server.dreams"}, {"exclude-annotation": "android.platform.test.annotations.FlakyTest"}, {"exclude-annotation": "androidx.test.filters.FlakyTest"}, {"exclude-annotation": "org.junit.Ignore"} ] } ], "postsubmit": [ { "name": "DreamServiceTests", "options": [ {"include-filter": "com.android.server.dreams"}, {"exclude-annotation": "org.junit.Ignore"} ] } ] }
services/tests/servicestests/res/xml/test_dream_metadata.xml→services/tests/dreamservicetests/res/xml/test_dream_metadata.xml +2 −1 Original line number Diff line number Diff line Loading @@ -15,5 +15,6 @@ --> <dream xmlns:android="http://schemas.android.com/apk/res/android" android:settingsActivity="com.android.frameworks.servicestests/.TestDreamSettingsActivity" android:settingsActivity= "com.android.frameworks.dreamservicetests/.TestDreamSettingsActivity" android:showClockAndComplications="false" />
services/tests/servicestests/res/xml/test_dream_metadata_invalid.xml→services/tests/dreamservicetests/res/xml/test_dream_metadata_invalid.xml +0 −0 File moved. View file
services/tests/servicestests/src/com/android/server/dreams/DreamControllerTest.java→services/tests/dreamservicetests/src/com/android/server/dreams/DreamControllerTest.java +3 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ import android.os.RemoteException; import android.os.test.TestLooper; import android.service.dreams.IDreamService; import androidx.test.filters.FlakyTest; import androidx.test.filters.SmallTest; import androidx.test.runner.AndroidJUnit4; Loading Loading @@ -231,6 +232,7 @@ public class DreamControllerTest { } @Test @FlakyTest(bugId = 293109503) public void serviceDisconnect_resetsScreenTimeout() throws RemoteException { // Start dream. mDreamController.startDream(mToken, mDreamName, false /*isPreview*/, false /*doze*/, Loading @@ -250,6 +252,7 @@ public class DreamControllerTest { } @Test @FlakyTest(bugId = 293109503) public void binderDied_resetsScreenTimeout() throws RemoteException { // Start dream. mDreamController.startDream(mToken, mDreamName, false /*isPreview*/, false /*doze*/, Loading