<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2024 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          package="com.android.multiuser.widget">
    <application>
        <receiver
            android:name=".MultiuserWidgetReceiver"
            android:label="@string/multiuser_widget_name"
            android:exported="false">
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE_OPTIONS"/>
                <action android:name="android.appwidget.action.APPWIDGET_ENABLED"/>
                <action android:name="android.appwidget.action.APPWIDGET_DISABLED"/>
                <!--To be changed to wakeup frozen widget-->
                <action android:name="android.intent.action.LOCALE_CHANGED" />
                <action android:name="android.intent.action.USER_INFO_CHANGED_BACKGROUND"/>
                <action android:name="android.intent.action.USER_REMOVED" />
                <action android:name="android.intent.action.USER_ADDED" />
            </intent-filter>
            <meta-data
                android:name="android.appwidget.provider"
                android:resource="@xml/multiuser_widget_info" />
        </receiver>
        <activity android:name=".ui.DialogActivity"
            android:exported="false"
            android:theme="@style/Theme.MultiuserWidget"
            android:launchMode="singleTask"
            android:excludeFromRecents="true">
            <intent-filter>
                <category android:name="android.intent.category.DEFAULT" />
                <action android:name="android.settings.USER_SETTINGS" />
            </intent-filter>
        </activity>
        <service
            android:name=".SettingsGlobalJob"
            android:permission="android.permission.BIND_JOB_SERVICE"
            android:exported="false" />
    </application>
</manifest>
