Commit 7ef9b3a9 authored by Tony Mantler's avatar Tony Mantler Committed by gitbuildkicker
Browse files

Provide stub intent filters for CTS

b/32307358
Test: adb shell am start -a .. -d ..

Change-Id: I89ccacd7cb2b4433c95b4aa1b4f16eea03ff9675
(cherry picked from commit 92adc442b0efc42691a0be4c9fb9229edb5b0b30)
parent 62acc44b
......@@ -560,9 +560,8 @@
</intent-filter>
</activity>
<!-- Dummy activity for CTS
TODO: implement something useful -->
<activity android:name=".system.WebViewImplementation"
<!-- Dummy intent filters for CTS TODO: implement something useful -->
<activity android:name=".EmptyStubActivity"
android:exported="true"
android:excludeFromRecents="true"
android:theme="@android:style/Theme.NoDisplay">
......@@ -570,8 +569,25 @@
<action android:name="android.settings.WEBVIEW_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
android:value="true" />
<intent-filter android:priority="1">
<action android:name="android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter android:priority="1">
<action android:name="android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="package" />
</intent-filter>
<intent-filter android:priority="1">
<action android:name="android.settings.IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="package" />
</intent-filter>
<intent-filter android:priority="1">
<action android:name="android.settings.MANAGE_DEFAULT_APPS_SETTINGS" />
<action android:name="android.settings.HOME_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
......
......@@ -14,14 +14,13 @@
* limitations under the License
*/
package com.android.tv.settings.system;
package com.android.tv.settings;
import android.annotation.Nullable;
import android.app.Activity;
import android.os.Bundle;
// TODO: implement a webview choice screen here. See WebViewImplementation in mobile Settings
public class WebViewImplementation extends Activity {
public class EmptyStubActivity extends Activity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment