Home
last modified time | relevance | path

Searched refs:CtsContentCaptureService (Results 1 – 25 of 26) sorted by relevance

12

/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DWhitelistTest.java62 final CtsContentCaptureService service = enableService(NO_PACKAGES, NO_ACTIVITIES); in testNothingWhitelisted()
69 final CtsContentCaptureService service = enableService(toSet("not.me"), NO_ACTIVITIES); in testNotWhitelisted_byPackage()
75 final CtsContentCaptureService service = enableService(NO_PACKAGES, in testNotWhitelisted_byActivity()
82 final CtsContentCaptureService service = enableService(toSet(MY_PACKAGE), NO_ACTIVITIES); in testWhitelisted_byPackage()
88 final CtsContentCaptureService service = enableService(NO_PACKAGES, in testWhitelisted_byActivity()
113 final CtsContentCaptureService service = enableService(toSet(MY_PACKAGE), NO_ACTIVITIES); in testRinseAndRepeat()
126 private void assertAllowlisted(@NonNull CtsContentCaptureService service) throws Exception { in assertAllowlisted()
130 private void assertNotAllowlisted(@NonNull CtsContentCaptureService service) throws Exception { in assertNotAllowlisted()
143 private void launchActivityAndAssert(@NonNull CtsContentCaptureService service, in launchActivityAndAssert()
DAbstractContentCaptureIntegrationTest.java31 import android.contentcaptureservice.cts.CtsContentCaptureService.ServiceWatcher;
93 return CtsContentCaptureService.getExceptions();
202 CtsContentCaptureService.resetStaticState(); in clearState()
208 CtsContentCaptureService.clearServiceWatcher(); in clearServiceWatcher()
220 public CtsContentCaptureService enableService() throws InterruptedException { in enableService()
224 public CtsContentCaptureService enableService(@Nullable Set<String> whitelistedPackages, in enableService()
229 public CtsContentCaptureService enableService( in enableService()
234 mServiceWatcher = CtsContentCaptureService.setServiceWatcher(); in enableService()
235 setService(CtsContentCaptureService.SERVICE_NAME); in enableService()
DBlankActivityTest.java20 import static android.contentcaptureservice.cts.CtsContentCaptureService.CONTENT_CAPTURE_SERVICE_CO…
37 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
89 final CtsContentCaptureService service = enableService(); in testSimpleSessionLifecycle()
106 final CtsContentCaptureService service = enableService(); in testGetServiceComponentName()
131 final CtsContentCaptureService service = enableService(); in testGetServiceComponentName_onUiThread()
151 final CtsContentCaptureService service = enableService(); in testIsContentCaptureFeatureEnabled_onUiThread()
171 final CtsContentCaptureService service = enableService(); in testDisableContentCaptureService_onUiThread()
187 final CtsContentCaptureService service = enableService(); in testOnConnectionEvents()
196 final CtsContentCaptureService service = enableService(); in testOutsideOfPackageActivity_noSessionCreated()
209 final CtsContentCaptureService service = enableService(); in testOutsideOfPackageContentCaptureEnable_updateAllowList()
[all …]
DDataSharingServiceTest.java74 CtsContentCaptureService ccService = enableService(); in testDataSharingSessionAccepted()
93 CtsContentCaptureService ccService = enableService(); in testDataSharingSessionRejected()
108 CtsContentCaptureService ccService = enableService(); in testDataShareRequest_valuesPropagatedToReceiver()
125 CtsContentCaptureService ccService = enableService(); in testDataSharingSessionError_concurrentRequests()
141 CtsContentCaptureService ccService = enableService(); in testDataSharingSessionError_senderWasKilledBeforeWrite()
156 CtsContentCaptureService ccService = enableService(); in testDataSharingSessionError_senderWasKilledDuringWrite()
DBlankWithTitleActivityTest.java22 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
51 final CtsContentCaptureService service = enableService(); in testSimpleSessionLifecycle()
69 final CtsContentCaptureService service = enableService(); in testSimpleSessionLifecycle_noAnimation()
DLoginActivityTest.java47 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
112 final CtsContentCaptureService service = enableService(); in testSimpleLifecycle_defaultSession()
135 final CtsContentCaptureService service = enableService(); in testContentCaptureSessionCache()
175 final CtsContentCaptureService service = enableService(); in testSimpleLifecycle_rootViewSession()
292 final CtsContentCaptureService service = enableService(); in testSimpleLifecycle_changeContextAfterCreate()
334 final CtsContentCaptureService service = enableService(); in testSimpleLifecycle_changeContextOnCreate()
394 final CtsContentCaptureService service = enableService(); in testTextChanged()
426 final CtsContentCaptureService service = enableService(); in testTextChangeBuffer()
481 final CtsContentCaptureService service = enableService(); in testComposingSpan_mergedEvent()
518 final CtsContentCaptureService service = enableService(); in testComposingSpan_notMergedWithoutComposing()
[all …]
DAppKilledTest.java27 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
44 final CtsContentCaptureService service = enableService(); in testDoIt()
DCustomViewActivityTest.java33 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
88 final CtsContentCaptureService service = enableService(); in testLifecycle()
108 final CtsContentCaptureService service = enableService(); in testSessionLifecycleEvents()
164 final CtsContentCaptureService service = enableService(); in testVirtualView_wrongWay()
227 final CtsContentCaptureService service = enableService(); in testVirtualView_oneLevel()
292 final CtsContentCaptureService service = enableService(); in testVirtualView_multipleLevels()
406 final CtsContentCaptureService service = enableService(); in testVirtualView_batchDisappear()
464 final CtsContentCaptureService service = enableService(); in testVirtualView_batchAppear()
516 final CtsContentCaptureService service = enableService(); in testContentCaptureConditions()
540 final CtsContentCaptureService service = enableService(); in testContentCaptureConditions_otherPackage()
[all …]
DPartialNotImportantActivityTest.java22 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
72 final CtsContentCaptureService service = enableService(); in testAddAndRemoveNoImportantChild()
116 final CtsContentCaptureService service = enableService(); in testAddAndRemoveImportantChild()
161 final CtsContentCaptureService service = enableService(); in testAddImportantChildAfterSessionStarted()
DChildlessActivityTest.java45 import android.contentcaptureservice.cts.CtsContentCaptureService.DisconnectListener;
46 import android.contentcaptureservice.cts.CtsContentCaptureService.ServiceWatcher;
47 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
102 final CtsContentCaptureService service = enableService(); in testDefaultLifecycle()
147 final CtsContentCaptureService service = enableService(); in testLaunchAnotherActivity()
182 final CtsContentCaptureService service = enableService(); in testLaunchAnotherActivity_onTopOfIt()
241 final CtsContentCaptureService service = enableService(); in testAddAndRemoveNoImportantChild()
279 final CtsContentCaptureService service = enableService(); in testAddAndRemoveImportantChild()
338 final CtsContentCaptureService service = enableService(); in testAddImportantChildAfterSessionStarted()
381 final CtsContentCaptureService service = enableService(); in testAddAndRemoveImportantChildOnDifferentSession()
[all …]
DDataSharingActivityTest.java54 final CtsContentCaptureService service = enableService(); in testHappyPath_dataCopiedSuccessfully()
74 final CtsContentCaptureService service = enableService(); in testDataSharingSessionIsRejected_propagatedToClient()
DBlankActivity.java20 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
DChildlessActivity.java20 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
DResizingEditActivityTest.java24 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
85 final CtsContentCaptureService service = enableService(); in testInsetsChangedOnImeAction()
DPartialNotImportantActivity.java20 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
DNullTextViewActivity.java18 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
DResizingEditActivity.java18 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
DBlankWithTitleActivity.java20 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
DCtsContentCaptureService.java65 public class CtsContentCaptureService extends ContentCaptureService { class
67 private static final String TAG = CtsContentCaptureService.class.getSimpleName();
70 + CtsContentCaptureService.class.getSimpleName();
72 componentNameFor(CtsContentCaptureService.class);
649 private CtsContentCaptureService mService;
652 public CtsContentCaptureService waitOnCreate() throws InterruptedException { in waitOnCreate()
DDataSharingActivity.java21 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
DAbstractContentCaptureActivity.java21 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
DCustomViewActivity.java30 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
DLoginActivity.java29 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
/cts/tests/translation/src/android/translation/cts/
DCtsContentCaptureService.java42 public class CtsContentCaptureService extends ContentCaptureService { class
48 + CtsContentCaptureService.class.getSimpleName();
154 CtsContentCaptureService mService;
158 public CtsContentCaptureService waitOnConnected() throws InterruptedException { in waitOnConnected()
DUiTranslationManagerTest.java136 private CtsContentCaptureService.ServiceWatcher mContentCaptureServiceWatcher;
179 CtsContentCaptureService.resetStaticState(); in setup()
1166 CtsContentCaptureService contentcaptureService = enableContentCaptureService(); in testVirtualViewUiTranslation()
1236 CtsContentCaptureService contentcaptureService = enableContentCaptureService(); in testUiTranslation_translationResponseNotSetForCustomTextView()
1268 CtsContentCaptureService contentcaptureService = enableContentCaptureService(); in testUiTranslation_customTextView()
1472 private CtsContentCaptureService enableContentCaptureService() throws Exception { in enableContentCaptureService()
1473 mContentCaptureServiceWatcher = CtsContentCaptureService.setServiceWatcher(); in enableContentCaptureService()
1474 Helper.setTemporaryContentCaptureService(CtsContentCaptureService.SERVICE_NAME); in enableContentCaptureService()
1480 CtsContentCaptureService service) { in getContentCaptureContextFromContentCaptureService()
1481 service.awaitSessionCreated(CtsContentCaptureService.GENERIC_TIMEOUT_MS); in getContentCaptureContextFromContentCaptureService()
[all …]

12