Add an interface that returns time spent text for app.

Bug: 129266977
Test: robotest
Change-Id: Iaa5b4c5504eccbe0290b1014bd8e25aa3d4c3dd8
This commit is contained in:
Fan Zhang
2019-04-29 10:21:18 -07:00
parent 1a66d9b22f
commit eb2e8dd22c
4 changed files with 32 additions and 2 deletions

View File

@@ -81,6 +81,14 @@ public interface ApplicationFeatureProvider {
*/
Set<String> getKeepEnabledPackages();
/**
* Returns a user readable text explaining how much time user has spent in an app at a
* pre-specified duration.
*/
default CharSequence getTimeSpentInApp(String packageName) {
return null;
}
/**
* Callback that receives the number of packages installed on the device.
*/