use of android.content.om.OverlayInfo in project android_frameworks_base by crdroidandroid.
the class OverlayManagerServiceImpl method updateAllOverlaysForTarget.
private void updateAllOverlaysForTarget(@NonNull final String packageName, final int userId, @Nullable final PackageInfo targetPackage) {
final List<OverlayInfo> ois = mSettings.getOverlaysForTarget(packageName, userId);
for (final OverlayInfo oi : ois) {
final PackageInfo overlayPackage = mPackageManager.getPackageInfo(oi.packageName, userId);
if (overlayPackage == null) {
mSettings.remove(oi.packageName, oi.userId);
removeIdmapIfPossible(oi);
} else {
try {
updateState(targetPackage, overlayPackage, userId);
} catch (OverlayManagerSettings.BadKeyException e) {
Slog.e(TAG, "failed to update settings", e);
mSettings.remove(oi.packageName, userId);
}
}
}
}
Aggregations