OSDN Git Service

Add recent apps in app & notification
authorfanzhang172 <zhfan@google.com>
Tue, 2 May 2017 02:15:17 +0000 (19:15 -0700)
committerFan Zhang <zhfan@google.com>
Wed, 3 May 2017 21:09:43 +0000 (14:09 -0700)
commitae2f2b5268e19423b85a5a8da86fc559b74143d6
treebb215ebc3af17d3086ca2d03bfe6233f009cf942
parentc90502627b343e13e8f4c22d5d98a4350a261b82
Add recent apps in app & notification

- Introduce a RecentAppsPreferenceControler, which queries
  UsageStatsManager and displays a list of recently used apps.

- Add a control flag for this feature, intially set to false.

- Make ManageApplications a static pref item instead of dynamic one.
  This makes the RecentAppController easier to control "See all"
  preference, which is backed by ManageApplications.

- Also adjust app_items.xml layout to make app item UI consistent with
  preference item.

Change-Id: I0b9e1784faed32b3055ebf96ef98b6a5e422de50
Fix: 33265548
Test: robotests
AndroidManifest.xml
res/drawable/ic_chevron_right_24dp.xml [new file with mode: 0644]
res/layout/app_item.xml
res/values/config.xml
res/values/strings.xml
res/xml/app_and_notification.xml
src/com/android/settings/applications/AppAndNotificationDashboardFragment.java
src/com/android/settings/applications/AppCounter.java
src/com/android/settings/applications/RecentAppsPreferenceController.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/applications/RecentAppsPreferenceControllerTest.java [new file with mode: 0644]