From e6a3a044182309b68e66bd16ff62f3756bcc027a Mon Sep 17 00:00:00 2001 From: Jeff Gaston Date: Mon, 1 Jul 2019 18:23:37 -0400 Subject: Making restricted api txt files also include public apis Also, regenerating previous apis via `./gradlew regenerateOldApis` Also, ignoring some new errors via `./gradlew ignoreApiChanges` Bug: 129072008 Bug: 136509530 Test: ./gradlew checkApi Test: sed -i '/.*LIBRARY_GROUP.*/d' ./core/core/src/main/java/androidx/core/app/RemoteActionCompat.java && \ sed -i '/.*hide.*/d' ./core/core/src/main/java/androidx/core/app/RemoteActionCompat.java && \ ./gradlew :core:core:updateApi && ./gradlew :core:core:checkApi # Unrestrict an api and confirm that this is considered binary compatible Test: sed -i 's/\(showOverflowMenu();\)/\1\nsampleMethod();/' appcompat/api/1.1.0-beta02.txt && \ ./gradlew :appcompat:checkApi || echo successfully disallowed api removal Change-Id: Iea4118d004d88741fcc92af1e584d73a5cbe9f17 --- concurrent/futures/api/restricted_1.0.0-beta01.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'concurrent/futures/api/restricted_1.0.0-beta01.txt') diff --git a/concurrent/futures/api/restricted_1.0.0-beta01.txt b/concurrent/futures/api/restricted_1.0.0-beta01.txt index 1c05c569c2a..6dabf0b94e3 100644 --- a/concurrent/futures/api/restricted_1.0.0-beta01.txt +++ b/concurrent/futures/api/restricted_1.0.0-beta01.txt @@ -18,6 +18,22 @@ package androidx.concurrent.futures { method protected final boolean wasInterrupted(); } + public final class CallbackToFutureAdapter { + method public static com.google.common.util.concurrent.ListenableFuture getFuture(androidx.concurrent.futures.CallbackToFutureAdapter.Resolver); + } + + public static final class CallbackToFutureAdapter.Completer { + method public void addCancellationListener(Runnable, java.util.concurrent.Executor); + method protected void finalize(); + method public boolean set(T!); + method public boolean setCancelled(); + method public boolean setException(Throwable); + } + + public static interface CallbackToFutureAdapter.Resolver { + method public Object? attachCompleter(androidx.concurrent.futures.CallbackToFutureAdapter.Completer) throws java.lang.Exception; + } + @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public final class ResolvableFuture extends androidx.concurrent.futures.AbstractResolvableFuture { method public static androidx.concurrent.futures.ResolvableFuture! create(); method public boolean set(V?); -- cgit v1.2.3