synchronized (this) {
Key key = new Key(packageName, resId, styleable);
Entry ent = mMap.get(key);
if (ent != null) {
return ent;
}
Context context = mContexts.get(packageName);
if (context == null) {
try {
context = mContext.createPackageContext(packageName, 0);
if (context == null) {
return null;
}
mContexts.put(packageName, context);
} catch (PackageManager.NameNotFoundException e) {
return null;
}
}
try {
ent = new Entry(context,
context.obtainStyledAttributes(resId, styleable));
mMap.put(key, ent);
} catch (Resources.NotFoundException e) {
return null;
}
return ent;
}