Loading errorprone/java/com/google/errorprone/bugpatterns/android/RequiresPermissionChecker.java +0 −4 Original line number Diff line number Diff line Loading @@ -130,10 +130,6 @@ public final class RequiresPermissionChecker extends BugChecker .onDescendantOf("android.content.Context") .withNameMatching( Pattern.compile("^send(Ordered|Sticky)?Broadcast.*AsUser.*$"))); private static final Matcher<ExpressionTree> SEND_PENDING_INTENT = methodInvocation( instanceMethod() .onDescendantOf("android.app.PendingIntent") .named("send")); private static final Matcher<ExpressionTree> INTENT_SET_ACTION = methodInvocation( instanceMethod().onDescendantOf("android.content.Intent").named("setAction")); Loading ravenwood/runtime-common-src/com/android/ravenwood/common/RavenwoodCommonUtils.java +0 −5 Original line number Diff line number Diff line Loading @@ -37,8 +37,6 @@ public class RavenwoodCommonUtils { private RavenwoodCommonUtils() { } private static final Object sLock = new Object(); /** * If set to "1", we enable the verbose logging. * Loading Loading @@ -68,9 +66,6 @@ public class RavenwoodCommonUtils { public static final String RAVENWOOD_VERSION_JAVA_SYSPROP = "android.ravenwood.version"; // @GuardedBy("sLock") private static boolean sIntegrityChecked = false; /** * @return if we're running on Ravenwood. */ Loading ravenwood/runtime-helper-src/libcore-fake/libcore/util/NativeAllocationRegistry.java +3 −8 Original line number Diff line number Diff line Loading @@ -32,25 +32,20 @@ public class NativeAllocationRegistry { public static NativeAllocationRegistry createNonmalloced( ClassLoader classLoader, long freeFunction, long size) { return new NativeAllocationRegistry(classLoader, freeFunction, size, false); return new NativeAllocationRegistry(classLoader, freeFunction, size); } public static NativeAllocationRegistry createMalloced( ClassLoader classLoader, long freeFunction, long size) { return new NativeAllocationRegistry(classLoader, freeFunction, size, true); return new NativeAllocationRegistry(classLoader, freeFunction, size); } public static NativeAllocationRegistry createMalloced( ClassLoader classLoader, long freeFunction) { return new NativeAllocationRegistry(classLoader, freeFunction, 0, true); return new NativeAllocationRegistry(classLoader, freeFunction, 0); } public NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size) { this(classLoader, freeFunction, size, size == 0); } private NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size, boolean mallocAllocation) { if (size < 0) { throw new IllegalArgumentException("Invalid native allocation size: " + size); } Loading Loading
errorprone/java/com/google/errorprone/bugpatterns/android/RequiresPermissionChecker.java +0 −4 Original line number Diff line number Diff line Loading @@ -130,10 +130,6 @@ public final class RequiresPermissionChecker extends BugChecker .onDescendantOf("android.content.Context") .withNameMatching( Pattern.compile("^send(Ordered|Sticky)?Broadcast.*AsUser.*$"))); private static final Matcher<ExpressionTree> SEND_PENDING_INTENT = methodInvocation( instanceMethod() .onDescendantOf("android.app.PendingIntent") .named("send")); private static final Matcher<ExpressionTree> INTENT_SET_ACTION = methodInvocation( instanceMethod().onDescendantOf("android.content.Intent").named("setAction")); Loading
ravenwood/runtime-common-src/com/android/ravenwood/common/RavenwoodCommonUtils.java +0 −5 Original line number Diff line number Diff line Loading @@ -37,8 +37,6 @@ public class RavenwoodCommonUtils { private RavenwoodCommonUtils() { } private static final Object sLock = new Object(); /** * If set to "1", we enable the verbose logging. * Loading Loading @@ -68,9 +66,6 @@ public class RavenwoodCommonUtils { public static final String RAVENWOOD_VERSION_JAVA_SYSPROP = "android.ravenwood.version"; // @GuardedBy("sLock") private static boolean sIntegrityChecked = false; /** * @return if we're running on Ravenwood. */ Loading
ravenwood/runtime-helper-src/libcore-fake/libcore/util/NativeAllocationRegistry.java +3 −8 Original line number Diff line number Diff line Loading @@ -32,25 +32,20 @@ public class NativeAllocationRegistry { public static NativeAllocationRegistry createNonmalloced( ClassLoader classLoader, long freeFunction, long size) { return new NativeAllocationRegistry(classLoader, freeFunction, size, false); return new NativeAllocationRegistry(classLoader, freeFunction, size); } public static NativeAllocationRegistry createMalloced( ClassLoader classLoader, long freeFunction, long size) { return new NativeAllocationRegistry(classLoader, freeFunction, size, true); return new NativeAllocationRegistry(classLoader, freeFunction, size); } public static NativeAllocationRegistry createMalloced( ClassLoader classLoader, long freeFunction) { return new NativeAllocationRegistry(classLoader, freeFunction, 0, true); return new NativeAllocationRegistry(classLoader, freeFunction, 0); } public NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size) { this(classLoader, freeFunction, size, size == 0); } private NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size, boolean mallocAllocation) { if (size < 0) { throw new IllegalArgumentException("Invalid native allocation size: " + size); } Loading