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

Commit 80be8cc5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add live annotation for Computer.getProcessesForUid"

parents cb46da58 2122bbf1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -617,6 +617,10 @@ public interface Computer {
    @Computer.LiveImplementation(override = LiveImplementation.MANDATORY)
    int getUidTargetSdkVersion(int uid);

    /**
     * @see PackageManagerInternal#getProcessesForUid(int)
     */
    @Computer.LiveImplementation(override = LiveImplementation.MANDATORY)
    @Nullable
    ArrayMap<String, ProcessInfo> getProcessesForUid(int uid);
    // End block
+5 −0
Original line number Diff line number Diff line
@@ -509,6 +509,11 @@ public class PackageManagerServiceTest {
        for (Method m : coreMethods) {
            if (m != null) {
                final String name = "ComputerEngine." + displayName(m);
                if (name.contains(".lambda$static")) {
                    // skip static lambda function
                    continue;
                }

                final int modifiers = m.getModifiers();
                if (isPrivate(modifiers)) {
                    // Okay