diff options
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/content/Context.java | 9 | ||||
-rw-r--r-- | core/java/android/content/Loader.java | 26 | ||||
-rw-r--r-- | core/java/android/inputmethodservice/SoftInputWindow.java | 6 | ||||
-rw-r--r-- | core/java/android/view/IApplicationToken.aidl | 1 |
4 files changed, 35 insertions, 7 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 9468581..bfbd0ac 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -185,7 +185,14 @@ public abstract class Context { * used to reduce the amount that the client process's overall importance * is used to impact it. */ - public static final int BIND_ADJUST_WITH_ACTIVITY = 0x0040; + public static final int BIND_ADJUST_WITH_ACTIVITY = 0x0080; + + /** + * Flag for {@link #bindService}: Don't consider the bound service to be + * visible, even if the caller is visible. + * @hide + */ + public static final int BIND_NOT_VISIBLE = 0x40000000; /** Return an AssetManager instance for your application's package. */ public abstract AssetManager getAssets(); diff --git a/core/java/android/content/Loader.java b/core/java/android/content/Loader.java index b962800..2d2a90d 100644 --- a/core/java/android/content/Loader.java +++ b/core/java/android/content/Loader.java @@ -183,6 +183,12 @@ public class Loader<D> { } /** + * This function will normally be called for you automatically by + * {@link android.app.LoaderManager} when the associated fragment/activity + * is being started. When using a Loader with {@link android.app.LoaderManager}, + * you <em>must not</em> call this method yourself, or you will conflict + * with its management of the Loader. + * * Starts an asynchronous load of the Loader's data. When the result * is ready the callbacks will be called on the process's main thread. * If a previous load has been completed and is still valid @@ -232,7 +238,13 @@ public class Loader<D> { } /** - * Stops delivery of updates until the next time {@link #startLoading()} is called. + * This function will normally be called for you automatically by + * {@link android.app.LoaderManager} when the associated fragment/activity + * is being stopped. When using a Loader with {@link android.app.LoaderManager}, + * you <em>must not</em> call this method yourself, or you will conflict + * with its management of the Loader. + * + * <p>Stops delivery of updates until the next time {@link #startLoading()} is called. * Implementations should <em>not</em> invalidate their data at this point -- * clients are still free to use the last data the loader reported. They will, * however, typically stop reporting new data if the data changes; they can @@ -260,6 +272,12 @@ public class Loader<D> { } /** + * This function will normally be called for you automatically by + * {@link android.app.LoaderManager} when restarting a Loader. When using + * a Loader with {@link android.app.LoaderManager}, + * you <em>must not</em> call this method yourself, or you will conflict + * with its management of the Loader. + * * Tell the Loader that it is being abandoned. This is called prior * to {@link #reset} to have it retain its current data but not report * any new data. @@ -282,6 +300,12 @@ public class Loader<D> { } /** + * This function will normally be called for you automatically by + * {@link android.app.LoaderManager} when destroying a Loader. When using + * a Loader with {@link android.app.LoaderManager}, + * you <em>must not</em> call this method yourself, or you will conflict + * with its management of the Loader. + * * Resets the state of the Loader. The Loader should at this point free * all of its resources, since it may never be called again; however, its * {@link #startLoading()} may later be called at which point it must be diff --git a/core/java/android/inputmethodservice/SoftInputWindow.java b/core/java/android/inputmethodservice/SoftInputWindow.java index 7159260..df1afee 100644 --- a/core/java/android/inputmethodservice/SoftInputWindow.java +++ b/core/java/android/inputmethodservice/SoftInputWindow.java @@ -18,17 +18,13 @@ package android.inputmethodservice; import android.app.Dialog; import android.content.Context; -import android.content.pm.ActivityInfo; import android.graphics.Rect; import android.os.IBinder; import android.view.Gravity; import android.view.KeyEvent; import android.view.MotionEvent; -import android.view.View; import android.view.WindowManager; -import java.lang.Math; - /** * A SoftInputWindow is a Dialog that is intended to be used for a top-level input * method window. It will be displayed along the edge of the screen, moving @@ -46,7 +42,7 @@ class SoftInputWindow extends Dialog { } /** - * Create a DockWindow that uses a custom style. + * Create a SoftInputWindow that uses a custom style. * * @param context The Context in which the DockWindow should run. In * particular, it uses the window manager and theme from this context diff --git a/core/java/android/view/IApplicationToken.aidl b/core/java/android/view/IApplicationToken.aidl index 6bff5b3..5f0600f 100644 --- a/core/java/android/view/IApplicationToken.aidl +++ b/core/java/android/view/IApplicationToken.aidl @@ -20,6 +20,7 @@ package android.view; /** {@hide} */ interface IApplicationToken { + void windowsDrawn(); void windowsVisible(); void windowsGone(); boolean keyDispatchingTimedOut(); |