Merge "Add home activity methods to wrapper." into oc-dr1-dev

am: d332076636

Change-Id: I623d431fe052649ee2bf80a6ab459f6424f7e9e0
This commit is contained in:
Daniel Nishi
2017-07-18 19:44:33 +00:00
committed by android-build-merger
2 changed files with 10 additions and 0 deletions

View File

@@ -123,4 +123,9 @@ public interface PackageManagerWrapper {
* @return the label as a CharSequence
*/
CharSequence loadLabel(ApplicationInfo app);
/**
* Retrieve all activities that can be performed for the given intent.
*/
List<ResolveInfo> queryIntentActivities(Intent intent, int flags);
}

View File

@@ -113,4 +113,9 @@ public class PackageManagerWrapperImpl implements PackageManagerWrapper {
public CharSequence loadLabel(ApplicationInfo app) {
return app.loadLabel(mPm);
}
@Override
public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) {
return mPm.queryIntentActivities(intent, flags);
}
}