Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aed2aa04 authored by Kevin Lim's avatar Kevin Lim
Browse files

[AllAppsStore] Dump class name in addition to package name for debugging

Bug: 333889822
Flag: EXEMPT Logging fix
Test: EXEMPT Logging fix
Change-Id: I9e1515c04bdc8381f96341e7211968fcc53f97cc
parent 9f8e1471
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.function.Consumer;
@@ -260,8 +261,12 @@ public class AllAppsStore<T extends Context & ActivityContext> {
    public void dump(String prefix, PrintWriter writer) {
        writer.println(prefix + "\tAllAppsStore Apps[] size: " + mApps.length);
        for (int i = 0; i < mApps.length; i++) {
            writer.println(String.format("%s\tPackage index and name: %d/%s", prefix, i,
                    mApps[i].componentName.getPackageName()));
            writer.println(String.format(Locale.getDefault(),
                    "%s\tPackage index, name, and class: " + "%d/%s:%s",
                    prefix,
                    i,
                    mApps[i].componentName.getPackageName(),
                    mApps[i].componentName.getClassName()));
        }
    }
}