Home
last modified time | relevance | path

Searched refs:InvocationHandlerAdapter (Results 1 – 10 of 10) sorted by relevance

/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/
DMarkerToHandlerMap.java21 class MarkerToHandlerMap implements Map<Object, InvocationHandlerAdapter> {
23 private final Map<MockMarkerKey, InvocationHandlerAdapter> markerToHandler = new HashMap<>();
46 public InvocationHandlerAdapter get(Object key) { in get()
51 public InvocationHandlerAdapter put(Object key, InvocationHandlerAdapter value) { in put()
56 public InvocationHandlerAdapter remove(Object key) { in remove()
61 public void putAll(Map<?, ? extends InvocationHandlerAdapter> m) { in putAll()
62 for (Entry<?, ? extends InvocationHandlerAdapter> entry : m.entrySet()) { in putAll()
82 public Collection<InvocationHandlerAdapter> values() { in values()
87 public Set<Entry<Object, InvocationHandlerAdapter>> entrySet() { in entrySet()
88 Set<Entry<Object, InvocationHandlerAdapter>> set = new HashSet<>(entrySet().size()); in entrySet()
[all …]
DInlineStaticMockMaker.java115 private final Map<Object, InvocationHandlerAdapter> markerToHandler = new MarkerToHandlerMap();
146 InvocationHandlerAdapter handlerAdapter = new InvocationHandlerAdapter(handler); in createMock()
172 InvocationHandlerAdapter adapter = getInvocationHandlerAdapter(mock); in resetMock()
217 InvocationHandlerAdapter adapter = getInvocationHandlerAdapter(mock);
227 private InvocationHandlerAdapter getInvocationHandlerAdapter(Object marker) {
DStaticMockMethodAdvice.java33 private final Map<Object, InvocationHandlerAdapter> markersToHandler;
38 StaticMockMethodAdvice(Map<Object, InvocationHandlerAdapter> markerToHandler, Map<Class, Object> in StaticMockMethodAdvice()
231 InvocationHandlerAdapter interceptor = markersToHandler.get(marker); in handle()
304 private static class SuperMethodCall implements InvocationHandlerAdapter.SuperMethod {
DStaticClassTransformer.java90 Map<Object, InvocationHandlerAdapter> markerToHandler, Map<Class, Object> in StaticClassTransformer()
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DInlineDexmakerMockMaker.java168 private final Map<Object, InvocationHandlerAdapter> mocks;
249 InvocationHandlerAdapter handlerAdapter = new InvocationHandlerAdapter(handler); in createMock()
320 InvocationHandlerAdapter adapter = getInvocationHandlerAdapter(mock); in resetMock()
361 InvocationHandlerAdapter adapter = getInvocationHandlerAdapter(mock);
372 private InvocationHandlerAdapter getInvocationHandlerAdapter(Object instance) {
385 implements Map<Object, InvocationHandlerAdapter> {
392 private HashMap<WeakKey, InvocationHandlerAdapter> adapters = new HashMap<>();
477 public InvocationHandlerAdapter get(Object mock) {
487 InvocationHandlerAdapter adapter = adapters.get(key);
529 public InvocationHandlerAdapter put(Object mock, InvocationHandlerAdapter adapter) {
[all …]
DMockMethodAdvice.java23 private final Map<Object, InvocationHandlerAdapter> interceptors;
31 MockMethodAdvice(Map<Object, InvocationHandlerAdapter> interceptors) { in MockMethodAdvice()
196 InvocationHandlerAdapter interceptor = interceptors.get(instance); in handle()
257 private static class SuperMethodCall implements InvocationHandlerAdapter.SuperMethod {
DInvocationHandlerAdapter.java35 final class InvocationHandlerAdapter implements InvocationHandler { class
38 InvocationHandlerAdapter(MockHandler handler) { in InvocationHandlerAdapter() method in InvocationHandlerAdapter
DClassTransformer.java97 Map<Object, InvocationHandlerAdapter> mocks) { in ClassTransformer()
/external/dexmaker/dexmaker-mockito/src/main/java/com/android/dx/mockito/
DDexmakerMockMaker.java99 InvocationHandler invocationHandler = new InvocationHandlerAdapter(handler); in createMock()
140 InvocationHandlerAdapter adapter = getInvocationHandlerAdapter(mock); in resetMock()
169 InvocationHandlerAdapter adapter = getInvocationHandlerAdapter(mock);
191 private InvocationHandlerAdapter getInvocationHandlerAdapter(Object mock) {
197 return invocationHandler instanceof InvocationHandlerAdapter
198 ? (InvocationHandlerAdapter) invocationHandler
204 return invocationHandler instanceof InvocationHandlerAdapter
205 ? (InvocationHandlerAdapter) invocationHandler
DInvocationHandlerAdapter.java34 final class InvocationHandlerAdapter implements InvocationHandler { class
37 public InvocationHandlerAdapter(MockHandler handler) { in InvocationHandlerAdapter() method in InvocationHandlerAdapter