Fix daydreams for restricted profiles [1/2]

Allow restricted profiles to access daydream packages as a category.

b/21814248

Change-Id: Ifdb05a1fe4cb15416d7874bfb691034126067c86
diff --git a/Settings/src/com/android/tv/settings/users/AppLoadingTask.java b/Settings/src/com/android/tv/settings/users/AppLoadingTask.java
index 2d62f26..10ac95c 100644
--- a/Settings/src/com/android/tv/settings/users/AppLoadingTask.java
+++ b/Settings/src/com/android/tv/settings/users/AppLoadingTask.java
@@ -31,6 +31,7 @@
 import android.net.Uri;
 import android.os.AsyncTask;
 import android.os.RemoteException;
+import android.service.dreams.DreamService;
 import android.text.TextUtils;
 import android.util.Log;
 import android.view.inputmethod.InputMethodInfo;
@@ -223,6 +224,10 @@
         Intent widgetIntent = new Intent(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
         addSystemApps(visibleApps, widgetIntent, defaultSystemImes, mUserId);
 
+        // Add daydreams
+        Intent daydreamIntent = new Intent(DreamService.SERVICE_INTERFACE);
+        addSystemApps(visibleApps, daydreamIntent, defaultSystemImes, mUserId);
+
         List<ApplicationInfo> installedApps = mPackageManager.getInstalledApplications(
                 PackageManager.GET_UNINSTALLED_PACKAGES);
         addNonSystemApps(installedApps, true, visibleApps);