Add home activity methods to wrapper.
This allows us to properly use it in Robolectric tests. Bug: 63154615 Test: Used in Settings unit test Change-Id: I9f55529449313003a5ed10a997e21591ceae43cb
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user