Loading packages/SystemUI/src/com/android/systemui/Dependency.java +12 −2 Original line number Diff line number Diff line Loading @@ -484,8 +484,18 @@ public class Dependency extends SystemUI { // with Dependency#get. getDependency(DumpController.class); // If an arg is specified, try to dump the dependency String controller = args != null && args.length > 1 ? args[1].toLowerCase() : null; if (controller != null) { pw.println("Dumping controller=" + controller + ":"); } else { pw.println("Dumping existing controllers:"); mDependencies.values().stream().filter(obj -> obj instanceof Dumpable) } mDependencies.values().stream() .filter(obj -> obj instanceof Dumpable && (controller == null || obj.getClass().getName().toLowerCase().endsWith(controller))) .forEach(o -> ((Dumpable) o).dump(fd, pw, args)); } Loading packages/SystemUI/src/com/android/systemui/SystemUIService.java +2 −2 Original line number Diff line number Diff line Loading @@ -77,9 +77,9 @@ public class SystemUIService extends Service { ((PluginManagerImpl) Dependency.get(PluginManager.class)).dump(fd, pw, args); } } else { String svc = args[0]; String svc = args[0].toLowerCase(); for (SystemUI ui: services) { String name = ui.getClass().getName(); String name = ui.getClass().getName().toLowerCase(); if (name.endsWith(svc)) { ui.dump(fd, pw, args); } Loading Loading
packages/SystemUI/src/com/android/systemui/Dependency.java +12 −2 Original line number Diff line number Diff line Loading @@ -484,8 +484,18 @@ public class Dependency extends SystemUI { // with Dependency#get. getDependency(DumpController.class); // If an arg is specified, try to dump the dependency String controller = args != null && args.length > 1 ? args[1].toLowerCase() : null; if (controller != null) { pw.println("Dumping controller=" + controller + ":"); } else { pw.println("Dumping existing controllers:"); mDependencies.values().stream().filter(obj -> obj instanceof Dumpable) } mDependencies.values().stream() .filter(obj -> obj instanceof Dumpable && (controller == null || obj.getClass().getName().toLowerCase().endsWith(controller))) .forEach(o -> ((Dumpable) o).dump(fd, pw, args)); } Loading
packages/SystemUI/src/com/android/systemui/SystemUIService.java +2 −2 Original line number Diff line number Diff line Loading @@ -77,9 +77,9 @@ public class SystemUIService extends Service { ((PluginManagerImpl) Dependency.get(PluginManager.class)).dump(fd, pw, args); } } else { String svc = args[0]; String svc = args[0].toLowerCase(); for (SystemUI ui: services) { String name = ui.getClass().getName(); String name = ui.getClass().getName().toLowerCase(); if (name.endsWith(svc)) { ui.dump(fd, pw, args); } Loading