use of com.lody.virtual.server.pm.parser.VPackage in project VirtualApp by asLody.
the class VPackageManagerService method createNewUser.
void createNewUser(int userId, File userPath) {
for (VPackage p : mPackages.values()) {
PackageSetting setting = (PackageSetting) p.mExtras;
setting.modifyUserState(userId);
}
}
use of com.lody.virtual.server.pm.parser.VPackage in project VirtualApp by asLody.
the class VPackageManagerService method getActivityInfo.
@Override
public ActivityInfo getActivityInfo(ComponentName component, int flags, int userId) {
checkUserId(userId);
flags = updateFlagsNought(flags);
synchronized (mPackages) {
VPackage p = mPackages.get(component.getPackageName());
if (p != null) {
PackageSetting ps = (PackageSetting) p.mExtras;
VPackage.ActivityComponent a = mActivities.mActivities.get(component);
if (a != null) {
ActivityInfo activityInfo = PackageParserEx.generateActivityInfo(a, flags, ps.readUserState(userId), userId);
ComponentFixer.fixComponentInfo(ps, activityInfo, userId);
return activityInfo;
}
}
}
return null;
}
use of com.lody.virtual.server.pm.parser.VPackage in project VirtualApp by asLody.
the class VPackageManagerService method resolveContentProvider.
@Override
public ProviderInfo resolveContentProvider(String name, int flags, int userId) {
checkUserId(userId);
flags = updateFlagsNought(flags);
synchronized (mPackages) {
final VPackage.ProviderComponent provider = mProvidersByAuthority.get(name);
if (provider != null) {
PackageSetting ps = (PackageSetting) provider.owner.mExtras;
ProviderInfo providerInfo = PackageParserEx.generateProviderInfo(provider, flags, ps.readUserState(userId), userId);
VPackage p = mPackages.get(providerInfo.packageName);
PackageSetting settings = (PackageSetting) p.mExtras;
ComponentFixer.fixComponentInfo(settings, providerInfo, userId);
return providerInfo;
}
}
return null;
}
Aggregations