Merge "Add live annotation for Computer.getProcessesForUid"
This commit is contained in:
committed by
Android (Google) Code Review
commit
80be8cc5cb
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user