CTS for quiet mode API
Try calling quiet mode API in these three scenerio:
1. Foreground and default launcher
2. Foreground but not default launcher
3. Default but not foreground launcher
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.QuietModeHostsideTest
BUG: 70212757
Change-Id: Iae4ff51c6d496dd7d9ff0dc4dc2aa1fdf23a5134
diff --git a/hostsidetests/devicepolicy/app/LauncherTestsSupport/AndroidManifest.xml b/hostsidetests/devicepolicy/app/LauncherTestsSupport/AndroidManifest.xml
index dc71264..14abd1a 100644
--- a/hostsidetests/devicepolicy/app/LauncherTestsSupport/AndroidManifest.xml
+++ b/hostsidetests/devicepolicy/app/LauncherTestsSupport/AndroidManifest.xml
@@ -26,5 +26,19 @@
<action android:name="com.android.cts.launchertests.support.REGISTER_CALLBACK" />
</intent-filter>
</service>
+
+ <activity android:name=".LauncherActivity">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.HOME"/>
+ <category android:name="android.intent.category.DEFAULT"/>
+ </intent-filter>
+ </activity>
+
+ <receiver android:name=".QuietModeCommandReceiver" android:exported="true">
+ <intent-filter>
+ <action android:name="toggle_quiet_mode"/>
+ </intent-filter>
+ </receiver>
</application>
</manifest>