Loading packages/SystemUI/src/com/android/systemui/people/PeopleSpaceUtils.java +2 −2 Original line number Diff line number Diff line Loading @@ -466,7 +466,7 @@ public class PeopleSpaceUtils { } } } catch (SQLException e) { Log.e(TAG, "Failed to query contact: " + e); Log.e(TAG, "Failed to query contact", e); } finally { if (cursor != null) { cursor.close(); Loading Loading @@ -527,7 +527,7 @@ public class PeopleSpaceUtils { lookupKeysWithBirthdaysToday.add(lookupKey); } } catch (SQLException e) { Log.e(TAG, "Failed to query birthdays: " + e); Log.e(TAG, "Failed to query birthdays", e); } finally { if (cursor != null) { cursor.close(); Loading packages/SystemUI/src/com/android/systemui/people/widget/PeopleSpaceWidgetManager.java +12 −12 Original line number Diff line number Diff line Loading @@ -275,7 +275,7 @@ public class PeopleSpaceWidgetManager { updateSingleConversationWidgets(widgetIds); } } catch (Exception e) { Log.e(TAG, "Exception: " + e); Log.e(TAG, "failed to update widgets", e); } } Loading Loading @@ -348,7 +348,7 @@ public class PeopleSpaceWidgetManager { try { return getTileForExistingWidgetThrowing(appWidgetId); } catch (Exception e) { Log.e(TAG, "Failed to retrieve conversation for tile: " + e); Log.e(TAG, "failed to retrieve tile for widget ID " + appWidgetId, e); return null; } } Loading Loading @@ -423,7 +423,7 @@ public class PeopleSpaceWidgetManager { // Add current state. return getTileWithCurrentState(storedTile.build(), ACTION_BOOT_COMPLETED); } catch (RemoteException e) { Log.e(TAG, "Could not retrieve data: " + e); Log.e(TAG, "getTileFromPersistentStorage failing", e); return null; } } Loading Loading @@ -476,7 +476,7 @@ public class PeopleSpaceWidgetManager { updateWidgetIdsBasedOnNotifications(tilesUpdated, notifications); } } catch (Exception e) { Log.e(TAG, "Throwing exception: " + e); Log.e(TAG, "updateWidgetsWithNotificationChangedInBackground failing", e); } } Loading @@ -499,7 +499,7 @@ public class PeopleSpaceWidgetManager { id -> getAugmentedTileForExistingWidget(id, groupedNotifications))) .forEach((id, tile) -> updateAppWidgetOptionsAndViewOptional(id, tile)); } catch (Exception e) { Log.e(TAG, "Exception updating widgets: " + e); Log.e(TAG, "updateWidgetIdsBasedOnNotifications failing", e); } } Loading Loading @@ -851,7 +851,7 @@ public class PeopleSpaceWidgetManager { Collections.singletonList(tile.getId()), tile.getUserHandle(), LauncherApps.FLAG_CACHE_PEOPLE_TILE_SHORTCUTS); } catch (Exception e) { Log.w(TAG, "Exception caching shortcut:" + e); Log.w(TAG, "failed to cache shortcut", e); } PeopleSpaceTile finalTile = tile; mBgExecutor.execute( Loading Loading @@ -959,7 +959,7 @@ public class PeopleSpaceWidgetManager { UserHandle.of(key.getUserId()), LauncherApps.FLAG_CACHE_PEOPLE_TILE_SHORTCUTS); } catch (Exception e) { Log.d(TAG, "Exception uncaching shortcut:" + e); Log.d(TAG, "failed to uncache shortcut", e); } } Loading Loading @@ -1042,7 +1042,7 @@ public class PeopleSpaceWidgetManager { packageName, userHandle.getIdentifier(), shortcutId); tile = PeopleSpaceUtils.getTile(channel, mLauncherApps); } catch (Exception e) { Log.w(TAG, "Exception getting tiles: " + e); Log.w(TAG, "failed to get conversation or tile", e); return null; } if (tile == null) { Loading Loading @@ -1091,7 +1091,7 @@ public class PeopleSpaceWidgetManager { } } catch (PackageManager.NameNotFoundException e) { // Delete data for uninstalled widgets. Log.e(TAG, "Package no longer found for tile: " + e); Log.e(TAG, "package no longer found for tile", e); JobScheduler jobScheduler = mContext.getSystemService(JobScheduler.class); if (jobScheduler != null && jobScheduler.getPendingJob(PeopleBackupFollowUpJob.JOB_ID) != null) { Loading Loading @@ -1301,7 +1301,7 @@ public class PeopleSpaceWidgetManager { try { editor.putString(newId, (String) entry.getValue()); } catch (Exception e) { Log.e(TAG, "Malformed entry value: " + entry.getValue()); Log.e(TAG, "malformed entry value: " + entry.getValue(), e); } editor.remove(key); break; Loading @@ -1311,7 +1311,7 @@ public class PeopleSpaceWidgetManager { try { oldWidgetIds = (Set<String>) entry.getValue(); } catch (Exception e) { Log.e(TAG, "Malformed entry value: " + entry.getValue()); Log.e(TAG, "malformed entry value: " + entry.getValue(), e); editor.remove(key); break; } Loading Loading @@ -1342,7 +1342,7 @@ public class PeopleSpaceWidgetManager { try { oldWidgetIds = (Set<String>) entry.getValue(); } catch (Exception e) { Log.e(TAG, "Malformed entry value: " + entry.getValue()); Log.e(TAG, "malformed entry value: " + entry.getValue(), e); followUpEditor.remove(key); continue; } Loading Loading
packages/SystemUI/src/com/android/systemui/people/PeopleSpaceUtils.java +2 −2 Original line number Diff line number Diff line Loading @@ -466,7 +466,7 @@ public class PeopleSpaceUtils { } } } catch (SQLException e) { Log.e(TAG, "Failed to query contact: " + e); Log.e(TAG, "Failed to query contact", e); } finally { if (cursor != null) { cursor.close(); Loading Loading @@ -527,7 +527,7 @@ public class PeopleSpaceUtils { lookupKeysWithBirthdaysToday.add(lookupKey); } } catch (SQLException e) { Log.e(TAG, "Failed to query birthdays: " + e); Log.e(TAG, "Failed to query birthdays", e); } finally { if (cursor != null) { cursor.close(); Loading
packages/SystemUI/src/com/android/systemui/people/widget/PeopleSpaceWidgetManager.java +12 −12 Original line number Diff line number Diff line Loading @@ -275,7 +275,7 @@ public class PeopleSpaceWidgetManager { updateSingleConversationWidgets(widgetIds); } } catch (Exception e) { Log.e(TAG, "Exception: " + e); Log.e(TAG, "failed to update widgets", e); } } Loading Loading @@ -348,7 +348,7 @@ public class PeopleSpaceWidgetManager { try { return getTileForExistingWidgetThrowing(appWidgetId); } catch (Exception e) { Log.e(TAG, "Failed to retrieve conversation for tile: " + e); Log.e(TAG, "failed to retrieve tile for widget ID " + appWidgetId, e); return null; } } Loading Loading @@ -423,7 +423,7 @@ public class PeopleSpaceWidgetManager { // Add current state. return getTileWithCurrentState(storedTile.build(), ACTION_BOOT_COMPLETED); } catch (RemoteException e) { Log.e(TAG, "Could not retrieve data: " + e); Log.e(TAG, "getTileFromPersistentStorage failing", e); return null; } } Loading Loading @@ -476,7 +476,7 @@ public class PeopleSpaceWidgetManager { updateWidgetIdsBasedOnNotifications(tilesUpdated, notifications); } } catch (Exception e) { Log.e(TAG, "Throwing exception: " + e); Log.e(TAG, "updateWidgetsWithNotificationChangedInBackground failing", e); } } Loading @@ -499,7 +499,7 @@ public class PeopleSpaceWidgetManager { id -> getAugmentedTileForExistingWidget(id, groupedNotifications))) .forEach((id, tile) -> updateAppWidgetOptionsAndViewOptional(id, tile)); } catch (Exception e) { Log.e(TAG, "Exception updating widgets: " + e); Log.e(TAG, "updateWidgetIdsBasedOnNotifications failing", e); } } Loading Loading @@ -851,7 +851,7 @@ public class PeopleSpaceWidgetManager { Collections.singletonList(tile.getId()), tile.getUserHandle(), LauncherApps.FLAG_CACHE_PEOPLE_TILE_SHORTCUTS); } catch (Exception e) { Log.w(TAG, "Exception caching shortcut:" + e); Log.w(TAG, "failed to cache shortcut", e); } PeopleSpaceTile finalTile = tile; mBgExecutor.execute( Loading Loading @@ -959,7 +959,7 @@ public class PeopleSpaceWidgetManager { UserHandle.of(key.getUserId()), LauncherApps.FLAG_CACHE_PEOPLE_TILE_SHORTCUTS); } catch (Exception e) { Log.d(TAG, "Exception uncaching shortcut:" + e); Log.d(TAG, "failed to uncache shortcut", e); } } Loading Loading @@ -1042,7 +1042,7 @@ public class PeopleSpaceWidgetManager { packageName, userHandle.getIdentifier(), shortcutId); tile = PeopleSpaceUtils.getTile(channel, mLauncherApps); } catch (Exception e) { Log.w(TAG, "Exception getting tiles: " + e); Log.w(TAG, "failed to get conversation or tile", e); return null; } if (tile == null) { Loading Loading @@ -1091,7 +1091,7 @@ public class PeopleSpaceWidgetManager { } } catch (PackageManager.NameNotFoundException e) { // Delete data for uninstalled widgets. Log.e(TAG, "Package no longer found for tile: " + e); Log.e(TAG, "package no longer found for tile", e); JobScheduler jobScheduler = mContext.getSystemService(JobScheduler.class); if (jobScheduler != null && jobScheduler.getPendingJob(PeopleBackupFollowUpJob.JOB_ID) != null) { Loading Loading @@ -1301,7 +1301,7 @@ public class PeopleSpaceWidgetManager { try { editor.putString(newId, (String) entry.getValue()); } catch (Exception e) { Log.e(TAG, "Malformed entry value: " + entry.getValue()); Log.e(TAG, "malformed entry value: " + entry.getValue(), e); } editor.remove(key); break; Loading @@ -1311,7 +1311,7 @@ public class PeopleSpaceWidgetManager { try { oldWidgetIds = (Set<String>) entry.getValue(); } catch (Exception e) { Log.e(TAG, "Malformed entry value: " + entry.getValue()); Log.e(TAG, "malformed entry value: " + entry.getValue(), e); editor.remove(key); break; } Loading Loading @@ -1342,7 +1342,7 @@ public class PeopleSpaceWidgetManager { try { oldWidgetIds = (Set<String>) entry.getValue(); } catch (Exception e) { Log.e(TAG, "Malformed entry value: " + entry.getValue()); Log.e(TAG, "malformed entry value: " + entry.getValue(), e); followUpEditor.remove(key); continue; } Loading