Loading core/java/android/content/Context.java +6 −4 Original line number Original line Diff line number Diff line Loading @@ -2851,10 +2851,12 @@ public abstract class Context { * {@link #BIND_NOT_FOREGROUND}, {@link #BIND_ABOVE_CLIENT}, * {@link #BIND_NOT_FOREGROUND}, {@link #BIND_ABOVE_CLIENT}, * {@link #BIND_ALLOW_OOM_MANAGEMENT}, or * {@link #BIND_ALLOW_OOM_MANAGEMENT}, or * {@link #BIND_WAIVE_PRIORITY}. * {@link #BIND_WAIVE_PRIORITY}. * @return If you have successfully bound to the service, {@code true} is returned; * @return {@code true} if the system is in the process of bringing up a * {@code false} is returned if the connection is not made so you will not * service that your client has permission to bind to; {@code false} * receive the service object. You should still call {@link #unbindService} * if the system couldn't find the service or if your client doesn't * to release the connection even if this method returned {@code false}. * have permission to bind to it. If this value is {@code true}, you * should later call {@link #unbindService} to release the * connection. * * * @throws SecurityException If the caller does not have permission to access the service * @throws SecurityException If the caller does not have permission to access the service * or the service can not be found. * or the service can not be found. Loading core/java/android/content/ServiceConnection.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -31,6 +31,11 @@ public interface ServiceConnection { * the {@link android.os.IBinder} of the communication channel to the * the {@link android.os.IBinder} of the communication channel to the * Service. * Service. * * * <p class="note"><b>Note:</b> If the system has started to bind your * client app to a service, it's possible that your app will never receive * this callback. Your app won't receive a callback if there's an issue with * the service, such as the service crashing while being created. * * @param name The concrete component name of the service that has * @param name The concrete component name of the service that has * been connected. * been connected. * * Loading Loading
core/java/android/content/Context.java +6 −4 Original line number Original line Diff line number Diff line Loading @@ -2851,10 +2851,12 @@ public abstract class Context { * {@link #BIND_NOT_FOREGROUND}, {@link #BIND_ABOVE_CLIENT}, * {@link #BIND_NOT_FOREGROUND}, {@link #BIND_ABOVE_CLIENT}, * {@link #BIND_ALLOW_OOM_MANAGEMENT}, or * {@link #BIND_ALLOW_OOM_MANAGEMENT}, or * {@link #BIND_WAIVE_PRIORITY}. * {@link #BIND_WAIVE_PRIORITY}. * @return If you have successfully bound to the service, {@code true} is returned; * @return {@code true} if the system is in the process of bringing up a * {@code false} is returned if the connection is not made so you will not * service that your client has permission to bind to; {@code false} * receive the service object. You should still call {@link #unbindService} * if the system couldn't find the service or if your client doesn't * to release the connection even if this method returned {@code false}. * have permission to bind to it. If this value is {@code true}, you * should later call {@link #unbindService} to release the * connection. * * * @throws SecurityException If the caller does not have permission to access the service * @throws SecurityException If the caller does not have permission to access the service * or the service can not be found. * or the service can not be found. Loading
core/java/android/content/ServiceConnection.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -31,6 +31,11 @@ public interface ServiceConnection { * the {@link android.os.IBinder} of the communication channel to the * the {@link android.os.IBinder} of the communication channel to the * Service. * Service. * * * <p class="note"><b>Note:</b> If the system has started to bind your * client app to a service, it's possible that your app will never receive * this callback. Your app won't receive a callback if there's an issue with * the service, such as the service crashing while being created. * * @param name The concrete component name of the service that has * @param name The concrete component name of the service that has * been connected. * been connected. * * Loading