Loading api/current.xml +14 −75 Original line number Diff line number Diff line Loading @@ -177,17 +177,6 @@ visibility="public" > </field> <field name="BIND_WALLPAPER" type="java.lang.String" transient="false" volatile="false" value=""android.permission.BIND_WALLPAPER"" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="BLUETOOTH" type="java.lang.String" transient="false" Loading Loading @@ -42811,25 +42800,6 @@ > </field> </class> <interface name="RegisteredServicesCacheListener" abstract="true" static="false" final="false" deprecated="not deprecated" visibility="public" > <method name="onRegisteredServicesCacheChanged" return="void" abstract="true" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > </method> </interface> <class name="ResolveInfo" extends="java.lang.Object" abstract="false" Loading Loading @@ -122193,37 +122163,6 @@ </implements> </interface> </package> <package name="android.service.wallpaper" > <class name="WallpaperSettingsActivity" extends="android.preference.PreferenceActivity" abstract="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <constructor name="WallpaperSettingsActivity" type="android.service.wallpaper.WallpaperSettingsActivity" static="false" final="false" deprecated="not deprecated" visibility="public" > </constructor> <field name="EXTRA_PREVIEW_MODE" type="java.lang.String" transient="false" volatile="false" value=""android.service.wallpaper.PREVIEW_MODE"" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> </class> </package> <package name="android.speech" > <class name="RecognizerIntent" Loading Loading @@ -155177,7 +155116,20 @@ visibility="public" > </method> <method name="setOnTop" <method name="setZOrderMediaOverlay" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="isMediaOverlay" type="boolean"> </parameter> </method> <method name="setZOrderOnTop" return="void" abstract="false" native="false" Loading Loading @@ -157342,19 +157294,6 @@ visibility="public" > </method> <method name="onCloseSystemDialogs" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="reason" type="java.lang.String"> </parameter> </method> <method name="onCreateContextMenu" return="void" abstract="false" core/java/android/app/Service.java +28 −6 Original line number Diff line number Diff line Loading @@ -158,9 +158,9 @@ import java.io.PrintWriter; * happens, the system will later try to restart the service. An important * consequence of this is that if you implement {@link #onStartCommand onStartCommand()} * to schedule work to be done asynchronously or in another thread, then you * may want to write information about that work into persistent storage * during the onStartCommand() call so that it does not get lost if the service later * gets killed. * may want to use {@link #START_FLAG_REDELIVERY} to have the system * re-deliver an Intent for you so that it does not get lost if your service * is killed while processing it. * * <p>Other application components running in the same process as the service * (such as an {@link android.app.Activity}) can, of course, increase the Loading Loading @@ -230,7 +230,10 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac * {@link #onStartCommand}), and there are no new start intents to * deliver to it, then take the service out of the started state and * don't recreate until a future explicit call to * {@link Context#startService Context.startService(Intent)}. * {@link Context#startService Context.startService(Intent)}. The * service will not receive a {@link #onStartCommand(Intent, int, int)} * call with a null Intent because it will not be re-started if there * are no pending Intents to deliver. * * <p>This mode makes sense for things that want to do some work as a * result of being started, but can be stopped when under memory pressure Loading @@ -252,7 +255,11 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac * and the last delivered Intent re-delivered to it again via * {@link #onStartCommand}. This Intent will remain scheduled for * redelivery until the service calls {@link #stopSelf(int)} with the * start ID provided to {@link #onStartCommand}. * start ID provided to {@link #onStartCommand}. The * service will not receive a {@link #onStartCommand(Intent, int, int)} * call with a null Intent because it will will only be re-started if * it is not finished processing all Intents sent to it (and any such * pending events will be delivered at the point of restart). */ public static final int START_REDELIVER_INTENT = 3; Loading Loading @@ -402,6 +409,13 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac * safely avoid stopping if there is a start request from a client that you * haven't yet seen in {@link #onStart}. * * <p><em>Be careful about ordering of your calls to this function.</em>. * If you call this function with the most-recently received ID before * you have called it for previously received IDs, the service will be * immediately stopped anyway. If you may end up processing IDs out * of order (such as by dispatching them on separate threads), then you * are responsible for stopping them in the same order you received them.</p> * * @param startId The most recent start identifier received in {@link * #onStart}. * @return Returns true if the startId matches the last start request Loading @@ -423,7 +437,15 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac /** * @deprecated This is a now a no-op, use * {@link #startForeground(int, Notification)} instead. * {@link #startForeground(int, Notification)} instead. This method * has been turned into a no-op rather than simply being deprecated * because analysis of numerous poorly behaving devices has shown that * increasingly often the trouble is being caused in part by applications * that are abusing it. Thus, given a choice between introducing * problems in existing applications using this API (by allowing them to * be killed when they would like to avoid it), vs allowing the performance * of the entire system to be decreased, this method was deemed less * important. */ @Deprecated public final void setForeground(boolean isForeground) { Loading core/java/android/content/pm/RegisteredServicesCacheListener.java +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ package android.content.pm; /** * Listener for changes to the set of registered services managed by a RegisteredServicesCache. * @hide */ public interface RegisteredServicesCacheListener { /** Loading core/java/android/provider/Contacts.java +5 −0 Original line number Diff line number Diff line Loading @@ -668,12 +668,14 @@ public class Contacts { /** * The directory twig for this sub-table * @deprecated see {@link android.provider.ContactsContract} */ @Deprecated public static final String CONTENT_DIRECTORY = "phones"; /** * The default sort order for this table * @deprecated see {@link android.provider.ContactsContract} */ @Deprecated public static final String DEFAULT_SORT_ORDER = "number ASC"; Loading Loading @@ -1925,6 +1927,9 @@ public class Contacts { */ @Deprecated public static final class Intents { /** * @deprecated see {@link android.provider.ContactsContract} */ @Deprecated public Intents() { } Loading core/java/android/service/wallpaper/WallpaperSettingsActivity.java +1 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.preference.PreferenceActivity; * Base class for activities that will be used to configure the settings of * a wallpaper. You should derive from this class to allow it to select the * proper theme of the activity depending on how it is being used. * @hide Live Wallpaper */ public class WallpaperSettingsActivity extends PreferenceActivity { /** Loading Loading
api/current.xml +14 −75 Original line number Diff line number Diff line Loading @@ -177,17 +177,6 @@ visibility="public" > </field> <field name="BIND_WALLPAPER" type="java.lang.String" transient="false" volatile="false" value=""android.permission.BIND_WALLPAPER"" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="BLUETOOTH" type="java.lang.String" transient="false" Loading Loading @@ -42811,25 +42800,6 @@ > </field> </class> <interface name="RegisteredServicesCacheListener" abstract="true" static="false" final="false" deprecated="not deprecated" visibility="public" > <method name="onRegisteredServicesCacheChanged" return="void" abstract="true" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > </method> </interface> <class name="ResolveInfo" extends="java.lang.Object" abstract="false" Loading Loading @@ -122193,37 +122163,6 @@ </implements> </interface> </package> <package name="android.service.wallpaper" > <class name="WallpaperSettingsActivity" extends="android.preference.PreferenceActivity" abstract="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <constructor name="WallpaperSettingsActivity" type="android.service.wallpaper.WallpaperSettingsActivity" static="false" final="false" deprecated="not deprecated" visibility="public" > </constructor> <field name="EXTRA_PREVIEW_MODE" type="java.lang.String" transient="false" volatile="false" value=""android.service.wallpaper.PREVIEW_MODE"" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> </class> </package> <package name="android.speech" > <class name="RecognizerIntent" Loading Loading @@ -155177,7 +155116,20 @@ visibility="public" > </method> <method name="setOnTop" <method name="setZOrderMediaOverlay" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="isMediaOverlay" type="boolean"> </parameter> </method> <method name="setZOrderOnTop" return="void" abstract="false" native="false" Loading Loading @@ -157342,19 +157294,6 @@ visibility="public" > </method> <method name="onCloseSystemDialogs" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="reason" type="java.lang.String"> </parameter> </method> <method name="onCreateContextMenu" return="void" abstract="false"
core/java/android/app/Service.java +28 −6 Original line number Diff line number Diff line Loading @@ -158,9 +158,9 @@ import java.io.PrintWriter; * happens, the system will later try to restart the service. An important * consequence of this is that if you implement {@link #onStartCommand onStartCommand()} * to schedule work to be done asynchronously or in another thread, then you * may want to write information about that work into persistent storage * during the onStartCommand() call so that it does not get lost if the service later * gets killed. * may want to use {@link #START_FLAG_REDELIVERY} to have the system * re-deliver an Intent for you so that it does not get lost if your service * is killed while processing it. * * <p>Other application components running in the same process as the service * (such as an {@link android.app.Activity}) can, of course, increase the Loading Loading @@ -230,7 +230,10 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac * {@link #onStartCommand}), and there are no new start intents to * deliver to it, then take the service out of the started state and * don't recreate until a future explicit call to * {@link Context#startService Context.startService(Intent)}. * {@link Context#startService Context.startService(Intent)}. The * service will not receive a {@link #onStartCommand(Intent, int, int)} * call with a null Intent because it will not be re-started if there * are no pending Intents to deliver. * * <p>This mode makes sense for things that want to do some work as a * result of being started, but can be stopped when under memory pressure Loading @@ -252,7 +255,11 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac * and the last delivered Intent re-delivered to it again via * {@link #onStartCommand}. This Intent will remain scheduled for * redelivery until the service calls {@link #stopSelf(int)} with the * start ID provided to {@link #onStartCommand}. * start ID provided to {@link #onStartCommand}. The * service will not receive a {@link #onStartCommand(Intent, int, int)} * call with a null Intent because it will will only be re-started if * it is not finished processing all Intents sent to it (and any such * pending events will be delivered at the point of restart). */ public static final int START_REDELIVER_INTENT = 3; Loading Loading @@ -402,6 +409,13 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac * safely avoid stopping if there is a start request from a client that you * haven't yet seen in {@link #onStart}. * * <p><em>Be careful about ordering of your calls to this function.</em>. * If you call this function with the most-recently received ID before * you have called it for previously received IDs, the service will be * immediately stopped anyway. If you may end up processing IDs out * of order (such as by dispatching them on separate threads), then you * are responsible for stopping them in the same order you received them.</p> * * @param startId The most recent start identifier received in {@link * #onStart}. * @return Returns true if the startId matches the last start request Loading @@ -423,7 +437,15 @@ public abstract class Service extends ContextWrapper implements ComponentCallbac /** * @deprecated This is a now a no-op, use * {@link #startForeground(int, Notification)} instead. * {@link #startForeground(int, Notification)} instead. This method * has been turned into a no-op rather than simply being deprecated * because analysis of numerous poorly behaving devices has shown that * increasingly often the trouble is being caused in part by applications * that are abusing it. Thus, given a choice between introducing * problems in existing applications using this API (by allowing them to * be killed when they would like to avoid it), vs allowing the performance * of the entire system to be decreased, this method was deemed less * important. */ @Deprecated public final void setForeground(boolean isForeground) { Loading
core/java/android/content/pm/RegisteredServicesCacheListener.java +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ package android.content.pm; /** * Listener for changes to the set of registered services managed by a RegisteredServicesCache. * @hide */ public interface RegisteredServicesCacheListener { /** Loading
core/java/android/provider/Contacts.java +5 −0 Original line number Diff line number Diff line Loading @@ -668,12 +668,14 @@ public class Contacts { /** * The directory twig for this sub-table * @deprecated see {@link android.provider.ContactsContract} */ @Deprecated public static final String CONTENT_DIRECTORY = "phones"; /** * The default sort order for this table * @deprecated see {@link android.provider.ContactsContract} */ @Deprecated public static final String DEFAULT_SORT_ORDER = "number ASC"; Loading Loading @@ -1925,6 +1927,9 @@ public class Contacts { */ @Deprecated public static final class Intents { /** * @deprecated see {@link android.provider.ContactsContract} */ @Deprecated public Intents() { } Loading
core/java/android/service/wallpaper/WallpaperSettingsActivity.java +1 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.preference.PreferenceActivity; * Base class for activities that will be used to configure the settings of * a wallpaper. You should derive from this class to allow it to select the * proper theme of the activity depending on how it is being used. * @hide Live Wallpaper */ public class WallpaperSettingsActivity extends PreferenceActivity { /** Loading