Merge "IBinder.transact: clarify return" am: 2794ff0ca8 am: 5e19eaf0e8

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1990775

Change-Id: I88bf4aaf5564f009667f69c30b2ecb61bad79ebb
This commit is contained in:
Treehugger Robot
2022-03-09 18:08:40 +00:00
committed by Automerger Merge Worker

View File

@@ -293,7 +293,10 @@ public interface IBinder {
* *
* @return Returns the result from {@link Binder#onTransact}. A successful call * @return Returns the result from {@link Binder#onTransact}. A successful call
* generally returns true; false generally means the transaction code was not * generally returns true; false generally means the transaction code was not
* understood. * understood. For a oneway call to a different process false should never be
* returned. If a oneway call is made to code in the same process (usually to
* a C++ or Rust implementation), then there are no oneway semantics, and
* false can still be returned.
*/ */
public boolean transact(int code, @NonNull Parcel data, @Nullable Parcel reply, int flags) public boolean transact(int code, @NonNull Parcel data, @Nullable Parcel reply, int flags)
throws RemoteException; throws RemoteException;