Home
last modified time | relevance | path

Searched defs:delegate (Results 1 – 25 of 1145) sorted by relevance

12345678910>>...46

/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/nnapi/
DNnApiDelegateTest.java50 try (NnApiDelegate delegate = new NnApiDelegate(); // Without options. in testBasic()
51 Interpreter interpreter = new Interpreter(MODEL_BUFFER, options.addDelegate(delegate))) { in testBasic()
58 try (NnApiDelegate delegate = new NnApiDelegate()) { in testAccessBeforeInterpreterInitialized()
84 try (NnApiDelegate delegate = new NnApiDelegate(); // Without options. in testWithoutNnApiDelegateOptions()
85 Interpreter interpreter = new Interpreter(MODEL_BUFFER, options.addDelegate(delegate))) { in testWithoutNnApiDelegateOptions()
104 try (NnApiDelegate delegate = new NnApiDelegate(); in testInterpreterWithNnApi()
105 Interpreter interpreter = new Interpreter(MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithNnApi()
127 try (NnApiDelegate delegate = new NnApiDelegate(); in testInterpreterWithNnApiAndXNNPack()
128 Interpreter interpreter = new Interpreter(MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithNnApiAndXNNPack()
147 try (NnApiDelegate delegate = new NnApiDelegate(nnApiOptions); in testInterpreterWithNnApiAllowFp16()
[all …]
/external/guava/android/guava-tests/test/com/google/common/reflect/
DAbstractInvocationHandlerTest.java82 private static List<String> newDelegatingList(List<String> delegate) { in newDelegatingList()
87 private static List<String> newDelegatingListWithEquals(List<String> delegate) { in newDelegatingListWithEquals()
92 private static Iterable<String> newDelegatingIterableWithEquals(Iterable<String> delegate) { in newDelegatingIterableWithEquals()
97 private static List<String> newProxyWithSubHandler1(List<String> delegate) { in newProxyWithSubHandler1()
102 private static List<String> newProxyWithSubHandler2(List<String> delegate) { in newProxyWithSubHandler2()
115 final Object delegate; field in AbstractInvocationHandlerTest.DelegatingInvocationHandler
117 DelegatingInvocationHandler(Object delegate) { in DelegatingInvocationHandler()
134 DelegatingInvocationHandlerWithEquals(Object delegate) { in DelegatingInvocationHandlerWithEquals()
160 SubHandler1(Object delegate) { in SubHandler1()
166 SubHandler2(Object delegate) { in SubHandler2()
DInvokableTest.java258 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_parameters() local
272 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_call() local
279 Invokable<?, Prepender> delegate = in testConstructor_returning() local
287 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_invalidReturning() local
296 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_returnType() local
301 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_exceptionTypes() local
306 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_typeParameters() local
313 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_parameters() local
327 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_call() local
335 Invokable<?, Iterable<String>> delegate = in testStaticMethod_returning() local
[all …]
/external/guava/guava-tests/test/com/google/common/reflect/
DAbstractInvocationHandlerTest.java82 private static List<String> newDelegatingList(List<String> delegate) { in newDelegatingList()
87 private static List<String> newDelegatingListWithEquals(List<String> delegate) { in newDelegatingListWithEquals()
92 private static Iterable<String> newDelegatingIterableWithEquals(Iterable<String> delegate) { in newDelegatingIterableWithEquals()
97 private static List<String> newProxyWithSubHandler1(List<String> delegate) { in newProxyWithSubHandler1()
102 private static List<String> newProxyWithSubHandler2(List<String> delegate) { in newProxyWithSubHandler2()
115 final Object delegate; field in AbstractInvocationHandlerTest.DelegatingInvocationHandler
117 DelegatingInvocationHandler(Object delegate) { in DelegatingInvocationHandler()
134 DelegatingInvocationHandlerWithEquals(Object delegate) { in DelegatingInvocationHandlerWithEquals()
160 SubHandler1(Object delegate) { in SubHandler1()
166 SubHandler2(Object delegate) { in SubHandler2()
DInvokableTest.java258 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_parameters() local
272 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_call() local
279 Invokable<?, Prepender> delegate = in testConstructor_returning() local
287 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_invalidReturning() local
296 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_returnType() local
301 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_exceptionTypes() local
306 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_typeParameters() local
313 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_parameters() local
327 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_call() local
335 Invokable<?, Iterable<String>> delegate = in testStaticMethod_returning() local
[all …]
/external/tensorflow/tensorflow/lite/g3doc/performance/
Dimplementing_delegate.md73 ### 1 - `SimpleDelegateInterface`
81 ### 2 - `SimpleDelegateKernelInterface`
95 ### Example
264 ### Choosing the best approach
277 ### Option 1: Leverage delegate registrar
418 ### Option 2: Leverage external delegate
/external/guava/guava/src/com/google/common/base/
DSuppliers.java108 public static <T extends @Nullable Object> Supplier<T> memoize(Supplier<T> delegate) { in memoize()
120 final Supplier<T> delegate; field in Suppliers.MemoizingSupplier
126 MemoizingSupplier(Supplier<T> delegate) { in MemoizingSupplier()
160 @CheckForNull volatile Supplier<T> delegate; field in Suppliers.NonSerializableMemoizingSupplier
166 NonSerializableMemoizingSupplier(Supplier<T> delegate) { in NonSerializableMemoizingSupplier()
198 Supplier<T> delegate = this.delegate; in toString() local
228 Supplier<T> delegate, long duration, TimeUnit unit) { in memoizeWithExpiration()
236 final Supplier<T> delegate; field in Suppliers.ExpiringMemoizingSupplier
242 ExpiringMemoizingSupplier(Supplier<T> delegate, long duration, TimeUnit unit) { in ExpiringMemoizingSupplier()
333 Supplier<T> delegate) { in synchronizedSupplier()
[all …]
/external/guava/android/guava/src/com/google/common/base/
DSuppliers.java108 public static <T extends @Nullable Object> Supplier<T> memoize(Supplier<T> delegate) { in memoize()
120 final Supplier<T> delegate; field in Suppliers.MemoizingSupplier
126 MemoizingSupplier(Supplier<T> delegate) { in MemoizingSupplier()
160 @CheckForNull volatile Supplier<T> delegate; field in Suppliers.NonSerializableMemoizingSupplier
166 NonSerializableMemoizingSupplier(Supplier<T> delegate) { in NonSerializableMemoizingSupplier()
198 Supplier<T> delegate = this.delegate; in toString() local
228 Supplier<T> delegate, long duration, TimeUnit unit) { in memoizeWithExpiration()
236 final Supplier<T> delegate; field in Suppliers.ExpiringMemoizingSupplier
242 ExpiringMemoizingSupplier(Supplier<T> delegate, long duration, TimeUnit unit) { in ExpiringMemoizingSupplier()
333 Supplier<T> delegate) { in synchronizedSupplier()
[all …]
/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc58 void OnChange(TestDelegate* delegate) { in OnChange()
64 void Register(TestDelegate* delegate) { in Register()
81 void RecordChange(TestDelegate* delegate) { in RecordChange()
221 TestDelegateBase* delegate, in SetupWatch()
231 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
243 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
257 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
269 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
318 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
341 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DForwardingClientCallListener.java29 protected abstract ClientCall.Listener<RespT> delegate(); in delegate() method in ForwardingClientCallListener
43 private final ClientCall.Listener<RespT> delegate; field in ForwardingClientCallListener.SimpleForwardingClientCallListener
45 protected SimpleForwardingClientCallListener(ClientCall.Listener<RespT> delegate) { in SimpleForwardingClientCallListener()
50 protected ClientCall.Listener<RespT> delegate() { in delegate() method in ForwardingClientCallListener.SimpleForwardingClientCallListener
DForwardingServerCallListener.java29 protected abstract ServerCall.Listener<ReqT> delegate(); in delegate() method in ForwardingServerCallListener
43 private final ServerCall.Listener<ReqT> delegate; field in ForwardingServerCallListener.SimpleForwardingServerCallListener
45 protected SimpleForwardingServerCallListener(ServerCall.Listener<ReqT> delegate) { in SimpleForwardingServerCallListener()
50 protected ServerCall.Listener<ReqT> delegate() { in delegate() method in ForwardingServerCallListener.SimpleForwardingServerCallListener
DForwardingServerCall.java28 protected abstract ServerCall<ReqT, RespT> delegate(); in delegate() method in ForwardingServerCall
42 private final ServerCall<ReqT, RespT> delegate; field in ForwardingServerCall.SimpleForwardingServerCall
44 protected SimpleForwardingServerCall(ServerCall<ReqT, RespT> delegate) { in SimpleForwardingServerCall()
49 protected ServerCall<ReqT, RespT> delegate() { in delegate() method in ForwardingServerCall.SimpleForwardingServerCall
DForwardingClientCall.java28 protected abstract ClientCall<ReqT, RespT> delegate(); in delegate() method in ForwardingClientCall
46 private final ClientCall<ReqT, RespT> delegate; field in ForwardingClientCall.SimpleForwardingClientCall
48 protected SimpleForwardingClientCall(ClientCall<ReqT, RespT> delegate) { in SimpleForwardingClientCall()
53 protected ClientCall<ReqT, RespT> delegate() { in delegate() method in ForwardingClientCall.SimpleForwardingClientCall
/external/libchrome/base/
Drun_loop.cc56 void RunLoop::RegisterDelegateForCurrentThread(Delegate* delegate) { in RegisterDelegateForCurrentThread()
179 Delegate* delegate = tls_delegate.Get().Get(); in IsRunningOnCurrentThread() local
185 Delegate* delegate = tls_delegate.Get().Get(); in IsNestedOnCurrentThread() local
191 Delegate* delegate = tls_delegate.Get().Get(); in AddNestingObserverOnCurrentThread() local
198 Delegate* delegate = tls_delegate.Get().Get(); in RemoveNestingObserverOnCurrentThread() local
206 Delegate* delegate = tls_delegate.Get().Get(); in QuitCurrentDeprecated() local
215 Delegate* delegate = tls_delegate.Get().Get(); in QuitCurrentWhenIdleDeprecated() local
/external/guava/guava/src/com/google/common/util/concurrent/
DForwardingListenableFuture.java43 protected abstract ListenableFuture<? extends V> delegate(); in delegate() method in ForwardingListenableFuture
59 private final ListenableFuture<V> delegate; field in ForwardingListenableFuture.SimpleForwardingListenableFuture
61 protected SimpleForwardingListenableFuture(ListenableFuture<V> delegate) { in SimpleForwardingListenableFuture()
66 protected final ListenableFuture<V> delegate() { in delegate() method in ForwardingListenableFuture.SimpleForwardingListenableFuture
DForwardingFuture.java46 protected abstract Future<? extends V> delegate(); in delegate() method in ForwardingFuture
85 private final Future<V> delegate; field in ForwardingFuture.SimpleForwardingFuture
87 protected SimpleForwardingFuture(Future<V> delegate) { in SimpleForwardingFuture()
92 protected final Future<V> delegate() { in delegate() method in ForwardingFuture.SimpleForwardingFuture
/external/guava/android/guava/src/com/google/common/util/concurrent/
DForwardingListenableFuture.java43 protected abstract ListenableFuture<? extends V> delegate(); in delegate() method in ForwardingListenableFuture
59 private final ListenableFuture<V> delegate; field in ForwardingListenableFuture.SimpleForwardingListenableFuture
61 protected SimpleForwardingListenableFuture(ListenableFuture<V> delegate) { in SimpleForwardingListenableFuture()
66 protected final ListenableFuture<V> delegate() { in delegate() method in ForwardingListenableFuture.SimpleForwardingListenableFuture
DForwardingFuture.java46 protected abstract Future<? extends V> delegate(); in delegate() method in ForwardingFuture
85 private final Future<V> delegate; field in ForwardingFuture.SimpleForwardingFuture
87 protected SimpleForwardingFuture(Future<V> delegate) { in SimpleForwardingFuture()
92 protected final Future<V> delegate() { in delegate() method in ForwardingFuture.SimpleForwardingFuture
/external/cronet/base/files/
Dfile_path_watcher_unittest.cc67 void OnChange(TestDelegate* delegate) { in OnChange()
73 void Register(TestDelegate* delegate) { in Register()
90 void RecordChange(TestDelegate* delegate) { in RecordChange()
237 TestDelegateBase* delegate, in SetupWatch()
247 TestDelegateBase* delegate, in SetupWatchWithOptions()
258 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
271 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
286 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
299 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
349 std::unique_ptr<TestDelegate> delegate(new TestDelegate(collector())); in TEST_F() local
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DCallCredentialsApplyingTransportFactory.java34 private final ClientTransportFactory delegate; field in CallCredentialsApplyingTransportFactory
38 ClientTransportFactory delegate, Executor appExecutor) { in CallCredentialsApplyingTransportFactory()
61 private final ConnectionClientTransport delegate; field in CallCredentialsApplyingTransportFactory.CallCredentialsApplyingTransport
64 CallCredentialsApplyingTransport(ConnectionClientTransport delegate, String authority) { in CallCredentialsApplyingTransport()
70 protected ConnectionClientTransport delegate() { in delegate() method in CallCredentialsApplyingTransportFactory.CallCredentialsApplyingTransport
/external/cronet/base/task/
Ddelayed_task_handle_unittest.cc50 auto delegate = std::make_unique<TestDelegate>(); in TEST() local
65 auto delegate = std::make_unique<TestDelegate>(&was_cancel_task_called); in TEST() local
94 auto delegate = std::make_unique<TestDelegate>(&was_cancel_task_called); in TEST() local
122 auto delegate = std::make_unique<TestDelegate>(); in TEST() local
138 auto delegate = std::make_unique<TestDelegate>(); in TEST() local
151 auto delegate = std::make_unique<TestDelegate>(); in TEST() local
169 auto delegate = std::make_unique<TestDelegate>(); in TEST() local
190 auto delegate = std::make_unique<TestDelegate>(); in TEST() local
/external/cronet/net/url_request/
Durl_request_http_job_unittest.cc230 TestDelegate delegate; in TEST_F() local
275 TestDelegate delegate; in TEST_F() local
324 TestDelegate delegate; in TEST_F() local
365 URLRequest::Delegate* delegate) { in CreateFirstPartyRequest()
401 TestDelegate delegate; in TEST_F() local
426 TestDelegate delegate; in TEST_F() local
453 TestDelegate delegate; in TEST_F() local
485 TestDelegate delegate; in TEST_F() local
511 TestDelegate delegate; in TEST_F() local
540 TestDelegate delegate; in TEST_F() local
[all …]
/external/cronet/net/test/embedded_test_server/
Dhttp_response.cc41 base::WeakPtr<HttpResponseDelegate> delegate) { in SendResponse()
95 base::WeakPtr<HttpResponseDelegate> delegate) { in SendResponse()
106 base::WeakPtr<HttpResponseDelegate> delegate) { in SendResponse()
114 void HungResponse::SendResponse(base::WeakPtr<HttpResponseDelegate> delegate) {} in SendResponse()
122 base::WeakPtr<HttpResponseDelegate> delegate) { in SendResponse()
/external/cronet/base/task/sequence_manager/test/
Dmock_time_message_pump_unittest.cc42 StrictMock<MockMessagePumpDelegate> delegate; in TEST() local
64 StrictMock<MockMessagePumpDelegate> delegate; in TEST() local
84 StrictMock<MockMessagePumpDelegate> delegate; in TEST() local
96 StrictMock<MockMessagePumpDelegate> delegate; in TEST() local
116 StrictMock<MockMessagePumpDelegate> delegate; in TEST() local
135 StrictMock<MockMessagePumpDelegate> delegate; in TEST() local
149 StrictMock<MockMessagePumpDelegate> delegate; in TEST() local
169 StrictMock<MockMessagePumpDelegate> delegate; in TEST() local
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/gpu/
DGpuDelegateTest.java53 try (GpuDelegate delegate = new GpuDelegate()) { in testBasic()
61 try (GpuDelegate delegate = new GpuDelegate(); in testInterpreterWithGpu_FloatModel()
62 Interpreter interpreter = new Interpreter(MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithGpu_FloatModel()
87 try (GpuDelegate delegate = new GpuDelegate(); in testInterpreterWithGpu_QuantModelRunWithDelegate()
89 new Interpreter(MOBILENET_QUANTIZED_MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithGpu_QuantModelRunWithDelegate()
108 try (GpuDelegate delegate = in testInterpreterWithGpu_QuantModelRunOnCPU()
111 new Interpreter(MOBILENET_QUANTIZED_MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithGpu_QuantModelRunOnCPU()

12345678910>>...46