Home
last modified time | relevance | path

Searched refs:delegate (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
DSyncAdapter.java34 AbstractThreadedSyncAdapter delegate = mock(AbstractThreadedSyncAdapter.class); in setNewDelegate() local
35 when(delegate.onUnsyncableAccount()).thenCallRealMethod(); in setNewDelegate()
38 mDelegate = delegate; in setNewDelegate()
41 return delegate; in setNewDelegate()
57 AbstractThreadedSyncAdapter delegate = getCopyOfDelegate(); in onPerformSync() local
59 if (delegate != null) { in onPerformSync()
60 delegate.onPerformSync(account, extras, authority, provider, syncResult); in onPerformSync()
66 AbstractThreadedSyncAdapter delegate = getCopyOfDelegate(); in onUnsyncableAccount() local
68 if (delegate == null) { in onUnsyncableAccount()
71 return delegate.onUnsyncableAccount(); in onUnsyncableAccount()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityDelegateTest.java66 AccessibilityDelegate delegate = new AccessibilityDelegate(); in testAccessibilityDelegateGetAndSet() local
67 mParentView.setAccessibilityDelegate(delegate); in testAccessibilityDelegateGetAndSet()
68 assertThat(mParentView.getAccessibilityDelegate(), is(equalTo(delegate))); in testAccessibilityDelegateGetAndSet()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DBlockUninstallDelegateTest.java16 package com.android.cts.delegate;
19 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
DEnableSystemAppDelegateTest.java16 package com.android.cts.delegate;
22 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
DPermissionGrantDelegateTest.java16 package com.android.cts.delegate;
23 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
DPackageAccessDelegateTest.java16 package com.android.cts.delegate;
19 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
DNetworkLoggingDelegateTest.java16 package com.android.cts.delegate;
18 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
DCertInstallDelegateTest.java16 package com.android.cts.delegate;
19 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
DAppRestrictionsDelegateTest.java16 package com.android.cts.delegate;
19 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
DAppRestrictionsIsCallerDelegateHelper.java17 package com.android.cts.delegate;
DDelegateTestUtils.java16 package com.android.cts.delegate;
DGeneralDelegateTest.java16 package com.android.cts.delegate;
DDelegatedScopesReceiverActivity.java16 package com.android.cts.delegate;
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCustomView.java66 void setContentCaptureDelegate(@NonNull Visitor<ViewStructure> delegate) { in setContentCaptureDelegate() argument
67 mDelegate = delegate; in setContentCaptureDelegate()
DCustomViewActivity.java65 static void setCustomViewDelegate(@NonNull DoubleVisitor<CustomView, ViewStructure> delegate) { in setCustomViewDelegate() argument
66 sCustomViewDelegate = delegate; in setCustomViewDelegate()
DCustomViewActivityTest.java556 @NonNull DoubleVisitor<CustomView, ViewStructure> delegate) { in setAsyncDelegate() argument
561 delegate.visit(customView, structure); in setAsyncDelegate()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java408 TouchDelegate delegate = spy(new TouchDelegate(rect, button)); in testAccessTouchDelegate() local
412 view.setTouchDelegate(delegate); in testAccessTouchDelegate()
413 assertSame(delegate, view.getTouchDelegate()); in testAccessTouchDelegate()
414 verify(delegate, never()).onTouchEvent(any()); in testAccessTouchDelegate()
417 verify(delegate, times(1)).onTouchEvent(any()); in testAccessTouchDelegate()
421 verifyZeroInteractions(delegate); in testAccessTouchDelegate()