Searched refs:delegate (Results 1 – 13 of 13) sorted by relevance
34 AbstractThreadedSyncAdapter delegate = mock(AbstractThreadedSyncAdapter.class); in setNewDelegate() local35 when(delegate.onUnsyncableAccount()).thenCallRealMethod(); in setNewDelegate()38 mDelegate = delegate; in setNewDelegate()41 return delegate; in setNewDelegate()57 AbstractThreadedSyncAdapter delegate = getCopyOfDelegate(); in onPerformSync() local59 if (delegate != null) { in onPerformSync()60 delegate.onPerformSync(account, extras, authority, provider, syncResult); in onPerformSync()66 AbstractThreadedSyncAdapter delegate = getCopyOfDelegate(); in onUnsyncableAccount() local68 if (delegate == null) { in onUnsyncableAccount()71 return delegate.onUnsyncableAccount(); in onUnsyncableAccount()
16 package com.android.cts.delegate;19 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
16 package com.android.cts.delegate;22 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
16 package com.android.cts.delegate;23 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
16 package com.android.cts.delegate;
META-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
399 TouchDelegate delegate = spy(new TouchDelegate(rect, button)); in testAccessTouchDelegate() local403 view.setTouchDelegate(delegate); in testAccessTouchDelegate()404 assertSame(delegate, view.getTouchDelegate()); in testAccessTouchDelegate()405 verify(delegate, never()).onTouchEvent(any()); in testAccessTouchDelegate()408 verify(delegate, times(1)).onTouchEvent(any()); in testAccessTouchDelegate()