Loading Ravenwood.bp +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ android_ravenwood_libgroup { "junit", "truth", "ravenwood-junit-impl", "android.test.mock", "android.test.mock.ravenwood", ], } Loading core/java/android/content/ContextWrapper.java +3 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ import java.util.function.IntConsumer; * another Context. Can be subclassed to modify behavior without changing * the original Context. */ @android.ravenwood.annotation.RavenwoodKeepWholeClass public class ContextWrapper extends Context { @UnsupportedAppUsage Context mBase; Loading Loading @@ -1430,6 +1431,7 @@ public class ContextWrapper extends Context { * @throws IllegalStateException if this method calls before {@link #attachBaseContext(Context)} */ @Override @android.ravenwood.annotation.RavenwoodThrow public void registerComponentCallbacks(ComponentCallbacks callback) { if (mBase != null) { mBase.registerComponentCallbacks(callback); Loading Loading @@ -1464,6 +1466,7 @@ public class ContextWrapper extends Context { * @throws IllegalStateException if this method calls before {@link #attachBaseContext(Context)} */ @Override @android.ravenwood.annotation.RavenwoodThrow public void unregisterComponentCallbacks(ComponentCallbacks callback) { // It usually means the ComponentCallbacks is registered before this ContextWrapper attaches // to a base Context and Application is targeting prior to S-v2. We should unregister the Loading ravenwood/OWNERS +2 −0 Original line number Diff line number Diff line set noparent jsharkey@google.com omakoto@google.com jaggies@google.com ravenwood/framework-minus-apex-ravenwood-policies.txt +3 −1 Original line number Diff line number Diff line Loading @@ -134,6 +134,8 @@ class com.android.modules.utils.TypedXmlSerializer stubclass class android.net.Uri stubclass class android.net.UriCodec stubclass # Context: just enough to support wrapper, no further functionality # Just enough to support mocking, no further functionality class android.content.Context stub method <init> ()V stub class android.content.pm.PackageManager stub method <init> ()V stub ravenwood/ravenwood-annotation-allowed-classes.txt +1 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ android.content.ClipDescription android.content.ComponentName android.content.ContentUris android.content.ContentValues android.content.ContextWrapper android.content.Intent android.content.IntentFilter android.content.UriMatcher Loading Loading
Ravenwood.bp +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ android_ravenwood_libgroup { "junit", "truth", "ravenwood-junit-impl", "android.test.mock", "android.test.mock.ravenwood", ], } Loading
core/java/android/content/ContextWrapper.java +3 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ import java.util.function.IntConsumer; * another Context. Can be subclassed to modify behavior without changing * the original Context. */ @android.ravenwood.annotation.RavenwoodKeepWholeClass public class ContextWrapper extends Context { @UnsupportedAppUsage Context mBase; Loading Loading @@ -1430,6 +1431,7 @@ public class ContextWrapper extends Context { * @throws IllegalStateException if this method calls before {@link #attachBaseContext(Context)} */ @Override @android.ravenwood.annotation.RavenwoodThrow public void registerComponentCallbacks(ComponentCallbacks callback) { if (mBase != null) { mBase.registerComponentCallbacks(callback); Loading Loading @@ -1464,6 +1466,7 @@ public class ContextWrapper extends Context { * @throws IllegalStateException if this method calls before {@link #attachBaseContext(Context)} */ @Override @android.ravenwood.annotation.RavenwoodThrow public void unregisterComponentCallbacks(ComponentCallbacks callback) { // It usually means the ComponentCallbacks is registered before this ContextWrapper attaches // to a base Context and Application is targeting prior to S-v2. We should unregister the Loading
ravenwood/OWNERS +2 −0 Original line number Diff line number Diff line set noparent jsharkey@google.com omakoto@google.com jaggies@google.com
ravenwood/framework-minus-apex-ravenwood-policies.txt +3 −1 Original line number Diff line number Diff line Loading @@ -134,6 +134,8 @@ class com.android.modules.utils.TypedXmlSerializer stubclass class android.net.Uri stubclass class android.net.UriCodec stubclass # Context: just enough to support wrapper, no further functionality # Just enough to support mocking, no further functionality class android.content.Context stub method <init> ()V stub class android.content.pm.PackageManager stub method <init> ()V stub
ravenwood/ravenwood-annotation-allowed-classes.txt +1 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ android.content.ClipDescription android.content.ComponentName android.content.ContentUris android.content.ContentValues android.content.ContextWrapper android.content.Intent android.content.IntentFilter android.content.UriMatcher Loading