Home
last modified time | relevance | path

Searched refs:Callable (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/support/compat/src/androidTest/java/androidx/core/provider/
DSelfDestructiveThreadTest.java38 import java.util.concurrent.Callable;
91 thread.postAndWait(new Callable<Object>() { in testDestruction()
106 Integer generation = thread.postAndWait(new Callable<Integer>() { in testReconstruction()
114 Integer nextGeneration = thread.postAndWait(new Callable<Integer>() { in testReconstruction()
129 Integer generation = thread.postAndWait(new Callable<Integer>() { in testReuseSameThread()
136 Integer nextGeneration = thread.postAndWait(new Callable<Integer>() { in testReuseSameThread()
153 Integer generation = thread.postAndWait(new Callable<Integer>() { in testReuseSameThread_Multiple()
164 Integer nextGeneration = thread.postAndWait(new Callable<Integer>() { in testReuseSameThread_Multiple()
184 thread.postAndWait(new Callable<Object>() { in testTimeout()
259 final Callable<Integer> callable = new Callable<Integer>() { in testPostAndReply()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/util/
DBrNameUtil.java19 import android.databinding.tool.reflection.Callable;
43 public static String brKey(Callable callable) { in brKey()
44 if (callable.type == Callable.Type.FIELD) { in brKey()
62 private static boolean isGetter(Callable callable) { in isGetter()
69 private static boolean isSetter(Callable callable) { in isSetter()
76 private static boolean isBooleanGetter(Callable callable) { in isBooleanGetter()
/frameworks/support/webkit/src/androidTest/java/androidx/webkit/
DServiceWorkerClientCompatTest.java37 import java.util.concurrent.Callable;
155 Callable<Boolean> registrationSuccess = new Callable<Boolean>() { in testServiceWorkerClientInterceptCallback()
164 Callable<Boolean> receivedRequest = new Callable<Boolean>() { in testServiceWorkerClientInterceptCallback()
180 Callable<Boolean> unregisterSuccess = new Callable<Boolean>() { in testServiceWorkerClientInterceptCallback()
DPollingCheck.java21 import java.util.concurrent.Callable;
62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check()
DWebViewOnUiThread.java35 import java.util.concurrent.Callable;
209 new Callable<Boolean>() {
218 private void waitForCriteria(long timeout, Callable<Boolean> doneCriteria) {
339 private void waitOnUiThread(long timeout, final Callable<Boolean> doneCriteria) {
357 private synchronized void waitOnTestThread(long timeout, Callable<Boolean> doneCriteria) {
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/
DModelClass.java18 import android.databinding.tool.reflection.Callable.Type;
28 import static android.databinding.tool.reflection.Callable.CAN_BE_INVALIDATED;
29 import static android.databinding.tool.reflection.Callable.DYNAMIC;
30 import static android.databinding.tool.reflection.Callable.STATIC;
394 public Callable findGetterOrField(String name, boolean staticOnly) { in findGetterOrField()
396 return new Callable(Type.FIELD, name, null, in findGetterOrField()
428 final Callable result = new Callable(Callable.Type.METHOD, methodName, in findGetterOrField()
464 return new Callable(Callable.Type.FIELD, name, setterFieldName, fieldType, 0, flags, null); in findGetterOrField()
DCallable.java20 public class Callable { class
45 public Callable(Type type, String name, String setterName, ModelClass resolvedType, in Callable() method in Callable
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DMethodCallExpr.java20 import android.databinding.tool.reflection.Callable;
21 import android.databinding.tool.reflection.Callable.Type;
33 import static android.databinding.tool.reflection.Callable.DYNAMIC;
34 import static android.databinding.tool.reflection.Callable.STATIC;
39 Callable mGetter;
164 mGetter = new Callable(Type.METHOD, method.getName(), null, method.getReturnType(args), in resolveType()
199 public Callable getGetter() { in getGetter()
DFieldAccessExpr.java25 import android.databinding.tool.reflection.Callable;
26 import android.databinding.tool.reflection.Callable.Type;
43 Callable mGetter;
52 public Callable getGetter() { in getGetter()
284 if (getGetter().type == Callable.Type.FIELD) { in generateCode()
296 if (getGetter().type == Callable.Type.FIELD) { in generateInverse()
/frameworks/support/app-toolkit/core-testing/src/test/java/androidx/arch/core/executor/testing/
DInstantTaskExecutorRuleTest.java28 import java.util.concurrent.Callable;
42 FutureTask<Void> check = new FutureTask<>(new Callable<Void>() { in executeOnMain()
56 FutureTask<Void> check = new FutureTask<>(new Callable<Void>() { in executeOnIO()
/frameworks/base/packages/StatementService/src/com/android/statementservice/
DExceptionLoggingFutureTask.java21 import java.util.concurrent.Callable;
32 public ExceptionLoggingFutureTask(Callable<V> callable, String tag) { in ExceptionLoggingFutureTask()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DBackgroundExecutor.java19 import java.util.concurrent.Callable;
43 public <T> Future<T> submit(Callable<T> callable) { in submit()
/frameworks/base/tests/testables/src/android/testing/
DPollingCheck.java20 import java.util.concurrent.Callable;
62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/
DExpressionVisitorTest.java33 import android.databinding.tool.reflection.Callable;
150 Callable getter = parsed.getGetter(); in testInheritedFieldResolution()
151 assertEquals(Callable.Type.METHOD, getter.type); in testInheritedFieldResolution()
166 Callable getter = parsed.getGetter(); in testGetterResolution()
167 assertEquals(Callable.Type.METHOD, getter.type); in testGetterResolution()
DLayoutBinderTest.java22 import android.databinding.tool.reflection.Callable;
103 final Callable getter = fa.getGetter(); in testParseWithMethods()
104 assertTrue(getter.type == Callable.Type.METHOD); in testParseWithMethods()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
DMffTestCase.java24 import java.util.concurrent.Callable;
43 FutureTask<MffContext> task = new FutureTask<MffContext>(new Callable<MffContext>() { in setUp()
/frameworks/base/services/robotests/src/com/android/server/backup/testing/
DTestUtils.java26 import java.util.concurrent.Callable;
65 public static <T> T uncheck(Callable<T> callable) { in uncheck()
/frameworks/support/room/runtime/src/test/java/androidx/room/
DSharedSQLiteStatementTest.java36 import java.util.concurrent.Callable;
96 new Callable<SupportSQLiteStatement>() { in getFromAnotherThreadWhileHolding()
115 new Callable<SupportSQLiteStatement>() { in getFromAnotherThreadAfterReleasing()
/frameworks/support/room/guava/src/main/java/androidx/room/guava/
DGuavaRoom.java29 import java.util.concurrent.Callable;
47 final Callable<T> callable, in createListenableFuture()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
DAppTransitionAnimationSpecsFuture.java25 import java.util.concurrent.Callable;
36 new Callable<List<AppTransitionAnimationSpecCompat>>() {
/frameworks/support/compat/src/main/java/androidx/core/provider/
DSelfDestructiveThread.java30 import java.util.concurrent.Callable;
135 public <T> void postAndReply(final Callable<T> callable, final ReplyCallback<T> reply) { in postAndReply()
164 public <T> T postAndWait(final Callable<T> callable, int timeoutMillis) in postAndWait()
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/expr/
DExprWriters.kt19 import android.databinding.tool.reflection.Callable
44 …xpr is MethodCallExpr || (myExpr is FieldAccessExpr && myExpr.getter.type == Callable.Type.METHOD)) in <lambda>()
/frameworks/support/room/rxjava2/src/test/java/androidx/room/
DRxRoomTest.java44 import java.util.concurrent.Callable;
123 new Callable<String>() { in internalCallable()
158 new Callable<String>() { in exception()
/frameworks/support/room/rxjava2/src/main/java/androidx/room/
DRxRoom.java23 import java.util.concurrent.Callable;
105 final String[] tableNames, final Callable<T> callable) {
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DEmbeddedTest.java52 import java.util.concurrent.Callable;
168 loadSubFieldsTest(new Callable<List<School>>() { in loadSubFieldsAsPojo()
182 loadSubFieldsTest(new Callable<List<School>>() { in loadSubFieldsAsEntity()
190 public void loadSubFieldsTest(Callable<List<School>> loader) throws Exception { in loadSubFieldsTest()

123