Home
last modified time | relevance | path

Searched refs:delegate (Results 1 – 22 of 22) 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/signature/lib/common/src/android/signature/cts/
DExpectedFailuresFilter.java33 private final ResultObserver delegate; field in ExpectedFailuresFilter
45 public ExpectedFailuresFilter(ResultObserver delegate, Collection<String> expected) { in ExpectedFailuresFilter() argument
46 this.delegate = delegate; in ExpectedFailuresFilter()
57 delegate.notifyFailure(type, name, errorMessage, throwable); in notifyFailure()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DSipDelegateManagerTest.java137 public TestSipDelegate delegate; field in SipDelegateManagerTest.TransportInterfaces
157 delegate = createSipDelegateConnectionAndVerify(manager, delegateConn, in connect()
159 assertNotNull(delegate); in connect()
170 verifyRegisteredAndSendSipConfig(delegateConn, delegate, request.getFeatureTags(), in connect()
182 verifyOutgoingTransport(delegateConn, delegate); in connectAndVerify()
183 verifyIncomingTransport(delegateConn, delegate); in connectAndVerify()
448 ifaces.delegate.verifyCleanupSession(attr.callId); in testSipDialogStateChanges()
846 TestSipDelegate delegate = createSipDelegateConnectionAndVerify(manager, delegateConn, in testImsServiceDisconnected() local
848 assertNotNull(delegate); in testImsServiceDisconnected()
857 verifyRegisteredAndSendSipConfig(delegateConn, delegate, request.getFeatureTags(), in testImsServiceDisconnected()
[all …]
DTestSipTransport.java79 public void destroySipDelegate(@NonNull SipDelegate delegate, int reason) { in destroySipDelegate() argument
80 if (delegate instanceof TestSipDelegate) { in destroySipDelegate()
82 mDelegates.remove(delegate); in destroySipDelegate()
/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.java638 @NonNull DoubleVisitor<CustomView, ViewStructure> delegate) { in setAsyncDelegate() argument
643 delegate.visit(customView, structure); in setAsyncDelegate()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityDelegateTest.java76 AccessibilityDelegate delegate = new AccessibilityDelegate(); in testAccessibilityDelegateGetAndSet() local
77 mParentView.setAccessibilityDelegate(delegate); in testAccessibilityDelegateGetAndSet()
78 assertThat(mParentView.getAccessibilityDelegate(), is(equalTo(delegate))); in testAccessibilityDelegateGetAndSet()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityDragAndDropActivity.java34 View.AccessibilityDelegate delegate = new View.AccessibilityDelegate() { in onCreate() local
54 text.setAccessibilityDelegate(delegate); in onCreate()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DViewPropertyAnimatorTests.java504 ViewPropertyAnimatorTestDelegate delegate) { in runViewPropertyAnimatorTestWithoutVerification() argument
505 createViewPropertyAnimatorTest(delegate).runWithoutVerification(); in runViewPropertyAnimatorTestWithoutVerification()
509 final ViewPropertyAnimatorTestDelegate delegate) { in createViewPropertyAnimatorTest() argument
514 delegate.configureView(alphaView); in createViewPropertyAnimatorTest()
518 delegate.configureAnimator(animator); in createViewPropertyAnimatorTest()
524 delegate.verifyViewState(alphaView); in createViewPropertyAnimatorTest()
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/
DEnterpriseComponent.kt71 val delegate = RemoteDelegate(RemoteDelegate.sTestApp, deviceState.dpc().user()) in ensureHasDelegate() constant
74 delegate.packageName(), in ensureHasDelegate()
79 primaryPolicyManager = delegate in ensureHasDelegate()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DAppRestrictionsIsCallerDelegateHelper.java17 package com.android.cts.delegate;
DBaseJUnit3TestCase.java16 package com.android.cts.delegate;
DWorkProfileNetworkLoggingDelegateTest.java17 package com.android.cts.delegate;
19 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
DSecurityLoggingDelegateTest.java17 package com.android.cts.delegate;
22 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
DBaseTestCase.java16 package com.android.cts.delegate;
DDelegatedScopesReceiverActivity.java16 package com.android.cts.delegate;
DDelegateTestUtils.java16 package com.android.cts.delegate;
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionDefaultMethodTest.java205 TestInputConnection(InputConnection delegate) { in TestInputConnection() argument
206 mDelegate = delegate; in TestInputConnection()
DStylusHandwritingTest.java1736 EditText delegate =
1738 TestUtils.waitOnMainUntil(() -> delegate.getText().toString().equals("abc"),
1800 EditText delegate =
1802 TestUtils.waitOnMainUntil(() -> delegate.getText().toString().equals("abc"),
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DProxyVoiceInteractionService.java471 HotwordDetectorCallbackAdapter(IProxyDetectorCallback delegate) { in HotwordDetectorCallbackAdapter() argument
472 mDelegate = delegate; in HotwordDetectorCallbackAdapter()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java436 TouchDelegate delegate = spy(new TouchDelegate(rect, button)); in testAccessTouchDelegate() local
440 view.setTouchDelegate(delegate); in testAccessTouchDelegate()
441 assertSame(delegate, view.getTouchDelegate()); in testAccessTouchDelegate()
442 verify(delegate, never()).onTouchEvent(any()); in testAccessTouchDelegate()
445 verify(delegate, times(1)).onTouchEvent(any()); in testAccessTouchDelegate()
449 verifyZeroInteractions(delegate); in testAccessTouchDelegate()