Home
last modified time | relevance | path

Searched refs:interceptor (Results 1 – 25 of 27) sorted by relevance

12

/external/guice/core/test/com/google/inject/internal/
DProxyFactoryTest.java47 SimpleInterceptor interceptor = new SimpleInterceptor(); in testSimpleCase() local
50 aspects.add(new MethodAspect(any(), any(), interceptor)); in testSimpleCase()
58 assertTrue(interceptor.invoked); in testSimpleCase()
80 SimpleInterceptor interceptor = new SimpleInterceptor(); in testInterceptOneMethod() local
82 aspects.add(new MethodAspect(only(Bar.class), annotatedWith(Intercept.class), interceptor)); in testInterceptOneMethod()
94 assertFalse(interceptor.invoked); in testInterceptOneMethod()
98 assertFalse(interceptor.invoked); in testInterceptOneMethod()
102 assertTrue(interceptor.invoked); in testInterceptOneMethod()
133 SimpleInterceptor interceptor = new SimpleInterceptor(); in testWithConstructorArguments() local
135 aspects.add(new MethodAspect(any(), any(), interceptor)); in testWithConstructorArguments()
[all …]
/external/apache-http/src/org/apache/http/protocol/
DBasicHttpProcessor.java152 void addInterceptor(final HttpRequestInterceptor interceptor) { in addInterceptor() argument
153 addRequestInterceptor(interceptor); in addInterceptor()
157 void addInterceptor(final HttpRequestInterceptor interceptor, in addInterceptor() argument
159 addRequestInterceptor(interceptor, index); in addInterceptor()
205 void addInterceptor(final HttpResponseInterceptor interceptor) { in addInterceptor() argument
206 addResponseInterceptor(interceptor); in addInterceptor()
209 public final void addInterceptor(final HttpResponseInterceptor interceptor, in addInterceptor() argument
211 addResponseInterceptor(interceptor, index); in addInterceptor()
293 HttpRequestInterceptor interceptor = in process() local
295 interceptor.process(request, context); in process()
[all …]
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DMockMethodInterceptor.java95 … @FieldValue("mockitoInterceptor") MockMethodInterceptor interceptor, in interceptSuperCallable() argument
99 if (interceptor == null) { in interceptSuperCallable()
102 return interceptor.doIntercept( in interceptSuperCallable()
113 … @FieldValue("mockitoInterceptor") MockMethodInterceptor interceptor, in interceptAbstract() argument
117 if (interceptor == null) { in interceptAbstract()
120 return interceptor.doIntercept( in interceptAbstract()
DInlineByteBuddyMockMaker.java273 MockMethodInterceptor interceptor = mocks.get(mock); in getHandler() local
274 if (interceptor == null) { in getHandler()
277 return interceptor.handler; in getHandler()
DMockMethodAdvice.java66 MockMethodInterceptor interceptor = interceptors.get(instance); in handle() local
67 if (interceptor == null) { in handle()
76 return new ReturnValueWrapper(interceptor.doIntercept(instance, in handle()
/external/guice/jdk8-tests/test/com/google/inject/jdk8/
DDefaultMethodInterceptionTest.java47 private final MethodInterceptor interceptor = invocation -> { field in DefaultMethodInterceptionTest
83 interceptor); in testInterceptedDefaultMethod()
99 interceptor); in testInterceptedDefaultMethod_calledByAnotherMethod()
127 interceptor); in testInterceptedDefaultMethod_whenParentClassDefinesNonInterceptedMethod()
162 interceptor); in testInterceptedDefaultMethod_whenParentClassDefinesInterceptedMethod()
194 bindInterceptor(Matchers.subclassesOf(Baz.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType()
211 bindInterceptor(Matchers.subclassesOf(BazImpl.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType_interceptsInheritedDefaultMethod()
/external/okhttp/okhttp-logging-interceptor/
DREADME.md4 An [OkHttp interceptor][1] which logs HTTP request and response data.
24 **Warning**: The logs generated by this interceptor when using the `HEADERS` or `BODY` levels has
37 <artifactId>logging-interceptor</artifactId>
44 compile 'com.squareup.okhttp:logging-interceptor:(insert latest version)'
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DInterceptorTest.java81 Interceptor interceptor = new Interceptor() { in networkInterceptorsCannotShortCircuitResponses() local
92 client.networkInterceptors().add(interceptor); in networkInterceptorsCannotShortCircuitResponses()
102 assertEquals("network interceptor " + interceptor + " must call proceed() exactly once", in networkInterceptorsCannotShortCircuitResponses()
111 Interceptor interceptor = new Interceptor() { in networkInterceptorsCannotCallProceedMultipleTimes() local
117 client.networkInterceptors().add(interceptor); in networkInterceptorsCannotCallProceedMultipleTimes()
127 assertEquals("network interceptor " + interceptor + " must call proceed() exactly once", in networkInterceptorsCannotCallProceedMultipleTimes()
135 Interceptor interceptor = new Interceptor() { in networkInterceptorsCannotChangeServerAddress() local
145 client.networkInterceptors().add(interceptor); in networkInterceptorsCannotChangeServerAddress()
155 assertEquals("network interceptor " + interceptor + " must retain the same host and port", in networkInterceptorsCannotChangeServerAddress()
561 Interceptor interceptor = new Interceptor() { in applicationInterceptorReturnsNull() local
[all …]
DURLConnectionTest.java3205 Interceptor interceptor = new Interceptor() {
3210 client.client().interceptors().add(interceptor);
3211 client.client().networkInterceptors().add(interceptor);
/external/guice/extensions/struts2/src/com/google/inject/struts2/
DStruts2Factory.java29 import com.opensymphony.xwork2.interceptor.Interceptor;
133 for (ProvidedInterceptor interceptor : interceptors) { in createInjector()
134 interceptor.validate(binder()); in createInjector()
140 for (ProvidedInterceptor interceptor : interceptors) { in createInjector()
141 interceptor.inject(); in createInjector()
DGuiceObjectFactory.java32 import com.opensymphony.xwork2.interceptor.Interceptor;
148 for (ProvidedInterceptor interceptor : interceptors) { in createInjector()
149 interceptor.validate(binder()); in createInjector()
155 for (ProvidedInterceptor interceptor : interceptors) { in createInjector()
156 interceptor.inject(); in createInjector()
/external/flatbuffers/tests/MyGame/Example/
DMonsterStorage_grpc.go74 dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
77 if interceptor == nil { return srv.(MonsterStorageServer).Store(ctx, in) }
86 return interceptor(ctx, in, info, handler)
/external/testng/src/test/java/test/listeners/
DListenerTest.java115 MyMethodInterceptor interceptor = new MyMethodInterceptor(); in methodInterceptorShouldBeRunOnce() local
116 tng.addListener(interceptor); in methodInterceptorShouldBeRunOnce()
118 Assert.assertEquals(interceptor.getCount(), 1); in methodInterceptorShouldBeRunOnce()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCall.java231 Interceptor interceptor = client.interceptors().get(index); in proceed() local
232 Response interceptedResponse = interceptor.intercept(chain); in proceed()
235 throw new NullPointerException("application interceptor " + interceptor in proceed()
/external/v8/src/
Dkeys.cc470 Handle<InterceptorInfo> interceptor, in CollectInterceptorKeysInternal() argument
473 PropertyCallbackArguments args(isolate, interceptor->data(), *receiver, in CollectInterceptorKeysInternal()
476 if (!interceptor->enumerator()->IsUndefined(isolate)) { in CollectInterceptorKeysInternal()
477 Callback enum_fun = v8::ToCData<Callback>(interceptor->enumerator()); in CollectInterceptorKeysInternal()
500 Handle<InterceptorInfo> interceptor(type == kIndexed in CollectInterceptorKeys() local
505 !interceptor->all_can_read()) { in CollectInterceptorKeys()
509 receiver, object, interceptor, accumulator); in CollectInterceptorKeys()
Dlookup.cc909 Object* interceptor = IsElement() ? access_check_info->indexed_interceptor() in GetInterceptorForFailedAccessCheck() local
911 if (interceptor) { in GetInterceptorForFailedAccessCheck()
912 return handle(InterceptorInfo::cast(interceptor), isolate_); in GetInterceptorForFailedAccessCheck()
Dobjects.cc1588 LookupIterator* it, Handle<InterceptorInfo> interceptor, bool* done) { in GetPropertyWithInterceptorInternal() argument
1595 if (interceptor->getter()->IsUndefined(isolate)) { in GetPropertyWithInterceptorInternal()
1606 PropertyCallbackArguments args(isolate, interceptor->data(), *receiver, in GetPropertyWithInterceptorInternal()
1612 v8::ToCData<v8::IndexedPropertyGetterCallback>(interceptor->getter()); in GetPropertyWithInterceptorInternal()
1618 if (name->IsSymbol() && !interceptor->can_intercept_symbols()) { in GetPropertyWithInterceptorInternal()
1624 interceptor->getter()); in GetPropertyWithInterceptorInternal()
1636 LookupIterator* it, Handle<InterceptorInfo> interceptor) { in GetPropertyAttributesWithInterceptorInternal() argument
1645 !interceptor->can_intercept_symbols()) { in GetPropertyAttributesWithInterceptorInternal()
1654 PropertyCallbackArguments args(isolate, interceptor->data(), *receiver, in GetPropertyAttributesWithInterceptorInternal()
1656 if (!interceptor->query()->IsUndefined(isolate)) { in GetPropertyAttributesWithInterceptorInternal()
[all …]
/external/guice/core/test/com/google/inject/
DMethodInterceptionTest.java320 CountingInterceptor interceptor = new CountingInterceptor(); in testDeDuplicateInterceptors()
321 bindInterceptor(Matchers.any(), Matchers.any(), interceptor); in testDeDuplicateInterceptors()
322 bindInterceptor(Matchers.any(), Matchers.any(), interceptor); in testDeDuplicateInterceptors()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpEngine.java694 Interceptor interceptor = client.networkInterceptors().get(index); in proceed() local
695 Response interceptedResponse = interceptor.intercept(chain); in proceed()
699 throw new IllegalStateException("network interceptor " + interceptor in proceed()
703 throw new NullPointerException("network interceptor " + interceptor in proceed()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors_format.inc328 Report("WARNING: unexpected format specifier in scanf interceptor: "
471 " in printf interceptor: %d\n", size); \
486 " in printf interceptor: %d\n", size); \
525 "interceptor: %.*s\n", dir.end - dir.begin, dir.begin);
Dsanitizer_common_interceptors.inc13 // This file should be included into the tool's interceptor file,
1408 // Although request is unsigned long, the rest of the interceptor uses it
3044 // Handle it as part of the interceptor.
4385 // There's no __getdelim() on FreeBSD so we supply the getdelim() interceptor
5807 // FIXME: add other *stat interceptor
Dsanitizer_common_syscalls.inc13 // This file should be included into the tool's interceptor file,
2323 // Note that this is different from the interceptor in
/external/v8/src/ic/
Dic.cc3085 InterceptorInfo* interceptor = holder->GetNamedInterceptor(); in RUNTIME_FUNCTION() local
3086 PropertyCallbackArguments arguments(isolate, interceptor->data(), *receiver, in RUNTIME_FUNCTION()
3091 interceptor->getter()); in RUNTIME_FUNCTION()
3120 InterceptorInfo* interceptor = holder->GetNamedInterceptor(); in RUNTIME_FUNCTION() local
3121 PropertyCallbackArguments arguments(isolate, interceptor->data(), *receiver, in RUNTIME_FUNCTION()
3126 interceptor->getter()); in RUNTIME_FUNCTION()
3175 InterceptorInfo* interceptor = receiver->GetNamedInterceptor(); in RUNTIME_FUNCTION() local
3176 DCHECK(!interceptor->non_masking()); in RUNTIME_FUNCTION()
3177 PropertyCallbackArguments arguments(isolate, interceptor->data(), *receiver, in RUNTIME_FUNCTION()
3182 interceptor->setter()); in RUNTIME_FUNCTION()
[all …]
/external/okhttp/
DCHANGELOG.md58 * Fix: Don't log gzipped data in the logging interceptor.
61 * Fix: Support 204 and 205 'No Content' replies in the logging interceptor.
69 * **New Logging Interceptor.** The `logging-interceptor` subproject offers
76 <artifactId>logging-interceptor</artifactId>
268 * Fix: When a network interceptor mutates a request, that change is now
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DFactoryProvider2Test.java756 final org.aopalliance.intercept.MethodInterceptor interceptor in testMethodInterceptorsOnAssistedTypes() local
768 bindInterceptor(Matchers.any(), Matchers.any(), interceptor); in testMethodInterceptorsOnAssistedTypes()

12