/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | WebViewActivityTest.java | 33 import android.autofillservice.cts.testcore.Helper; 121 Helper.assertAutofillEnabled(myWebView.getContext(), true); 155 Helper.findWebViewNodeByFormName(fillRequest.structure, "FORM AM I"); 161 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_USERNAME); 162 Helper.assertTextIsSanitized(usernameNode); 163 final HtmlInfo usernameHtmlInfo = Helper.assertHasHtmlTag(usernameNode, "input"); 164 Helper.assertHasAttribute(usernameHtmlInfo, "type", "text"); 165 Helper.assertHasAttribute(usernameHtmlInfo, "name", "username"); 171 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_PASSWORD); 172 Helper.assertTextIsSanitized(passwordNode); [all …]
|
D | PreFilledLoginActivityTest.java | 18 import static android.autofillservice.cts.testcore.Helper.ID_PASSWORD; 19 import static android.autofillservice.cts.testcore.Helper.ID_PASSWORD_LABEL; 20 import static android.autofillservice.cts.testcore.Helper.ID_USERNAME; 21 import static android.autofillservice.cts.testcore.Helper.ID_USERNAME_LABEL; 22 import static android.autofillservice.cts.testcore.Helper.assertTextAndValue; 23 import static android.autofillservice.cts.testcore.Helper.assertTextFromResources; 24 import static android.autofillservice.cts.testcore.Helper.assertTextIsSanitized; 25 import static android.autofillservice.cts.testcore.Helper.assertTextOnly; 26 import static android.autofillservice.cts.testcore.Helper.findNodeByResourceId;
|
D | LoginWithStringsActivityTest.java | 21 import static android.autofillservice.cts.testcore.Helper.ID_PASSWORD; 22 import static android.autofillservice.cts.testcore.Helper.ID_PASSWORD_LABEL; 23 import static android.autofillservice.cts.testcore.Helper.ID_USERNAME; 24 import static android.autofillservice.cts.testcore.Helper.ID_USERNAME_LABEL; 25 import static android.autofillservice.cts.testcore.Helper.assertHintFromResources; 26 import static android.autofillservice.cts.testcore.Helper.assertTextAndValue; 27 import static android.autofillservice.cts.testcore.Helper.assertTextFromResources; 28 import static android.autofillservice.cts.testcore.Helper.assertTextIsSanitized; 29 import static android.autofillservice.cts.testcore.Helper.findNodeByResourceId;
|
D | InitializedCheckoutActivityTest.java | 24 import static android.autofillservice.cts.testcore.Helper.assertListValue; 25 import static android.autofillservice.cts.testcore.Helper.assertTextAndValue; 26 import static android.autofillservice.cts.testcore.Helper.assertTextIsSanitized; 27 import static android.autofillservice.cts.testcore.Helper.assertToggleValue; 28 import static android.autofillservice.cts.testcore.Helper.findNodeByResourceId;
|
D | DialogLauncherActivityTest.java | 19 import static android.autofillservice.cts.testcore.Helper.ID_USERNAME; 20 import static android.autofillservice.cts.testcore.Helper.assertTextIsSanitized; 27 import android.autofillservice.cts.testcore.Helper; 82 Helper.dumpStructure("D'OH!", fillRequest.structure); 118 if (!Helper.isAutofillWindowFullScreen(mActivity)) {
|
/cts/tests/autofillservice/src/android/autofillservice/cts/inline/ |
D | InlineWebViewActivityTest.java | 33 import android.autofillservice.cts.testcore.Helper; 77 Helper.enableAutofillService(SERVICE_NAME); 123 Helper.assertAutofillEnabled(myWebView.getContext(), true); 155 Helper.findWebViewNodeByFormName(fillRequest.structure, "FORM AM I"); 161 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_USERNAME); 162 Helper.assertTextIsSanitized(usernameNode); 163 final HtmlInfo usernameHtmlInfo = Helper.assertHasHtmlTag(usernameNode, "input"); 164 Helper.assertHasAttribute(usernameHtmlInfo, "type", "text"); 165 Helper.assertHasAttribute(usernameHtmlInfo, "name", "username"); 171 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_PASSWORD); [all …]
|
D | InlineFillEventHistoryTest.java | 19 import static android.autofillservice.cts.testcore.Helper.ID_PASSWORD; 20 import static android.autofillservice.cts.testcore.Helper.ID_USERNAME; 21 import static android.autofillservice.cts.testcore.Helper.NULL_DATASET_ID; 22 import static android.autofillservice.cts.testcore.Helper.assertFillEventForDatasetSelected; 23 import static android.autofillservice.cts.testcore.Helper.assertFillEventForDatasetShown; 24 import static android.autofillservice.cts.testcore.Helper.assertFillEventForSaveShown; 25 import static android.autofillservice.cts.testcore.Helper.assertNoDeprecatedClientState; 34 import android.autofillservice.cts.testcore.Helper; 68 Helper.enableAutofillService(SERVICE_NAME); in enableService()
|
D | InlineTooltipTest.java | 18 import static android.autofillservice.cts.testcore.Helper.ID_PASSWORD; 19 import static android.autofillservice.cts.testcore.Helper.ID_USERNAME; 24 import android.autofillservice.cts.testcore.Helper; 54 Helper.enableAutofillService(SERVICE_NAME); in enableService() 68 Helper.createInlineTooltipPresentation("The Username Tooltip")) in testShowTooltip() 93 Helper.createInlineTooltipPresentation("The Username Tooltip")) in testShowTooltipWithTwoFields() 105 Helper.createInlineTooltipPresentation("The Password Tooltip")) in testShowTooltipWithTwoFields() 156 Helper.createInlineTooltipPresentation("The Username Tooltip")) in testShowTooltipWithSecondDataset()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | HotwordDetectionServiceBasicTest.java | 27 import static android.voiceinteraction.cts.testcore.Helper.CTS_SERVICE_PACKAGE; 28 import static android.voiceinteraction.cts.testcore.Helper.MANAGE_VOICE_KEYPHRASES; 29 import static android.voiceinteraction.cts.testcore.Helper.WAIT_TIMEOUT_IN_MS; 30 import static android.voiceinteraction.cts.testcore.Helper.createKeyphraseRecognitionExtraList; 31 import static android.voiceinteraction.cts.testcore.Helper.waitForFutureDoneAndAssertSuccessful; 79 import android.voiceinteraction.cts.testcore.Helper; 185 sWasIndicatorEnabled = Helper.getIndicatorEnabledState(); in enableIndicators() 186 Helper.setIndicatorEnabledState(Boolean.toString(true)); in enableIndicators() 191 Helper.setIndicatorEnabledState(sWasIndicatorEnabled); in resetIndicators() 211 Helper.getHotwordDetectionServiceRestartPeriod(); in getHotwordDetectionServiceRestartPeriodValue() [all …]
|
D | HotwordDetectionServiceStressTest.java | 23 import static android.voiceinteraction.cts.testcore.Helper.CTS_SERVICE_PACKAGE; 49 import android.voiceinteraction.cts.testcore.Helper; 128 sWasIndicatorEnabled = Helper.getIndicatorEnabledState(); in enableIndicators() 129 Helper.setIndicatorEnabledState(Boolean.toString(true)); in enableIndicators() 134 Helper.setIndicatorEnabledState(sWasIndicatorEnabled); in resetIndicators() 238 ParcelFileDescriptor audioStream = Helper.createFakeAudioStream(); in testHotwordDetectionService_onDetectFromExternalSource_success() 242 Helper.createFakeAudioFormat(), in testHotwordDetectionService_onDetectFromExternalSource_success() 243 Helper.createFakePersistableBundleData()); in testHotwordDetectionService_onDetectFromExternalSource_success() 250 Helper.verifyDetectedResult(detectResult, Helper.DETECTED_RESULT); in testHotwordDetectionService_onDetectFromExternalSource_success() 277 persistableBundle.putInt(Helper.KEY_TEST_SCENARIO, in testHotwordDetectionService_onDetectFromMic_success() [all …]
|
D | VisualQueryDetectionServiceBasicTest.java | 24 import static android.voiceinteraction.cts.testcore.Helper.CTS_SERVICE_PACKAGE; 49 import android.voiceinteraction.cts.testcore.Helper; 171 final boolean enableMultipleDetectors = Helper.isEnableMultipleDetectors(); in testVoiceInteractionService_disallowCreateVisualQueryDetectorTwice() 217 PersistableBundle options = Helper.createFakePersistableBundleData(); in testVisualQueryDetectionService_startRecogintion_testCameraOpen() 220 visualQueryDetector.updateState(options, Helper.createFakeSharedMemoryData()); in testVisualQueryDetectionService_startRecogintion_testCameraOpen() 248 PersistableBundle options = Helper.createFakePersistableBundleData(); in testVisualQueryDetectionService_startRecogintion_noQuery() 251 visualQueryDetector.updateState(options, Helper.createFakeSharedMemoryData()); in testVisualQueryDetectionService_startRecogintion_noQuery() 277 PersistableBundle options = Helper.createFakePersistableBundleData(); in testVisualQueryDetectionService_startRecogintion_attentionQueryFinishedLeave() 280 visualQueryDetector.updateState(options, Helper.createFakeSharedMemoryData()); in testVisualQueryDetectionService_startRecogintion_attentionQueryFinishedLeave() 313 PersistableBundle options = Helper.createFakePersistableBundleData(); in testVisualQueryDetectionService_startRecogintion_audioVisualAttentionQueryStream() [all …]
|
D | HotwordDetectionServiceMultipleDetectorTest.java | 25 import static android.voiceinteraction.cts.testcore.Helper.CTS_SERVICE_PACKAGE; 26 import static android.voiceinteraction.cts.testcore.Helper.MANAGE_VOICE_KEYPHRASES; 27 import static android.voiceinteraction.cts.testcore.Helper.createKeyphraseRecognitionExtraList; 28 import static android.voiceinteraction.cts.testcore.Helper.waitForFutureDoneAndAssertSuccessful; 52 import android.voiceinteraction.cts.testcore.Helper; 101 mKeyphraseArray = Helper.createKeyphraseArray(mService); in setup() 199 PersistableBundle options = Helper.createFakePersistableBundleData(); in testHotwordDetectionServiceMultipleDetectors_detectHotwordDSPThenVisualQuery() 201 options.putInt(Helper.KEY_TEST_SCENARIO, in testHotwordDetectionServiceMultipleDetectors_detectHotwordDSPThenVisualQuery() 206 finalVisualQueryDetector.updateState(options, Helper.createFakeSharedMemoryData()); in testHotwordDetectionServiceMultipleDetectors_detectHotwordDSPThenVisualQuery() 209 Helper.createFakeSharedMemoryData()); in testHotwordDetectionServiceMultipleDetectors_detectHotwordDSPThenVisualQuery() [all …]
|
D | AlwaysOnHotwordDetectorNoDspTest.java | 24 import static android.voiceinteraction.cts.testcore.Helper.CTS_SERVICE_PACKAGE; 25 import static android.voiceinteraction.cts.testcore.Helper.KEYPHRASE_LOCALE; 26 import static android.voiceinteraction.cts.testcore.Helper.KEYPHRASE_TEXT; 27 import static android.voiceinteraction.cts.testcore.Helper.MANAGE_VOICE_KEYPHRASES; 28 import static android.voiceinteraction.cts.testcore.Helper.createKeyphraseArray; 49 import android.voiceinteraction.cts.testcore.Helper; 187 Helper.createFakePersistableBundleData(), in testCreateAlwaysOnHotwordDetector_noSTModule_throwsExceptionWhenChangeIdEnabled() 188 Helper.createFakeSharedMemoryData(), in testCreateAlwaysOnHotwordDetector_noSTModule_throwsExceptionWhenChangeIdEnabled() 213 Helper.createFakePersistableBundleData(), in testCreateAlwaysOnHotwordDetector_noSTModule_stateUnavailableWhenChangeIdDisabled() 214 Helper.createFakeSharedMemoryData(), in testCreateAlwaysOnHotwordDetector_noSTModule_stateUnavailableWhenChangeIdDisabled()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | ServiceEnabledForSureTest.java | 20 import static android.autofillservice.cts.testcore.Helper.disableAutofillService; 21 import static android.autofillservice.cts.testcore.Helper.enableAutofillService; 28 import android.autofillservice.cts.testcore.Helper; 74 Helper.assertAutofillEnabled(afm, true); 77 Helper.assertAutofillEnabled(afm, false); 80 Helper.assertAutofillEnabled(afm, true);
|
D | ServiceDisabledForSureTest.java | 20 import static android.autofillservice.cts.testcore.Helper.disableAutofillService; 21 import static android.autofillservice.cts.testcore.Helper.enableAutofillService; 28 import android.autofillservice.cts.testcore.Helper; 76 Helper.assertAutofillEnabled(afm, false); 79 Helper.assertAutofillEnabled(afm, true); 82 Helper.assertAutofillEnabled(afm, false);
|
/cts/tests/translation/src/android/translation/cts/ |
D | CtsTestIme.java | 19 import static android.translation.cts.Helper.ACTION_ASSERT_UI_TRANSLATION_CALLBACK_ON_FINISH; 20 import static android.translation.cts.Helper.ACTION_ASSERT_UI_TRANSLATION_CALLBACK_ON_PAUSE; 21 import static android.translation.cts.Helper.ACTION_ASSERT_UI_TRANSLATION_CALLBACK_ON_RESUME; 22 import static android.translation.cts.Helper.ACTION_ASSERT_UI_TRANSLATION_CALLBACK_ON_START; 23 import static android.translation.cts.Helper.ACTION_REGISTER_UI_TRANSLATION_CALLBACK; 24 import static android.translation.cts.Helper.ACTION_UNREGISTER_UI_TRANSLATION_CALLBACK; 25 import static android.translation.cts.Helper.EXTRA_CALL_COUNT; 26 import static android.translation.cts.Helper.EXTRA_FINISH_COMMAND; 27 import static android.translation.cts.Helper.EXTRA_PACKAGE_NAME; 28 import static android.translation.cts.Helper.EXTRA_SOURCE_LOCALE; [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dialog/ |
D | WebViewActivityTest.java | 20 import static android.autofillservice.cts.testcore.Helper.assertHasFlags; 21 import static android.autofillservice.cts.testcore.Helper.setFillDialogHints; 30 import android.autofillservice.cts.testcore.Helper; 80 Helper.assertAutofillEnabled(myWebView.getContext(), true); 104 Helper.assertAutofillEnabled(myWebView.getContext(), true); 128 Helper.assertAutofillEnabled(myWebView.getContext(), true); 152 Helper.assertAutofillEnabled(myWebView.getContext(), true); 173 Helper.assertAutofillEnabled(myWebView.getContext(), true); 190 Helper.assertAutofillEnabled(myWebView.getContext(), true);
|
D | FadeInActivityTest.java | 19 import static android.autofillservice.cts.testcore.Helper.ID_PASSWORD; 20 import static android.autofillservice.cts.testcore.Helper.assertHasFlags; 21 import static android.autofillservice.cts.testcore.Helper.enableFillDialogFeature; 30 import android.autofillservice.cts.testcore.Helper; 83 mUiBot.assertShownByRelativeId(Helper.ID_PASSWORD_LABEL); in startFadeInActivity()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/ |
D | AutofillForAllAppsTest.java | 18 import static android.autofillservice.cts.testcore.Helper.ID_IMEACTION_LABEL; 19 import static android.autofillservice.cts.testcore.Helper.ID_IMEACTION_TEXT; 20 import static android.autofillservice.cts.testcore.Helper.ID_PASSWORD; 21 import static android.autofillservice.cts.testcore.Helper.ID_USERNAME; 22 import static android.autofillservice.cts.testcore.Helper.ID_USERNAME_LABEL; 23 import static android.autofillservice.cts.testcore.Helper.findNodeByResourceId; 35 import android.autofillservice.cts.testcore.Helper; 300 mUiBot.selectByRelativeId(Helper.ID_IMEACTION_TEXT_IMPORTANT_FOR_AUTOFILL); in testAddingSeveralHeuristicsCanStopTriggeringFillRequestOnImportantViews() 424 mUiBot.selectByRelativeId(Helper.ID_PASSWORD); in testAssistStructure_includeAutofillTypeNotNoneViews() 455 mUiBot.selectByRelativeId(Helper.ID_PASSWORD); in testAssistStructure_includeAllViews() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | MaxVisibleDatasetsRule.java | 53 final int original = Helper.getMaxVisibleDatasets(); in apply() 54 Helper.setMaxVisibleDatasets(mMaxNumber); in apply() 58 Helper.setMaxVisibleDatasets(original); in apply()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/ |
D | AutoFillServiceTestCase.java | 19 import static android.autofillservice.cts.testcore.Helper.DEVICE_CONFIG_AUTOFILL_DIALOG_HINTS; 20 import static android.autofillservice.cts.testcore.Helper.getContext; 43 import android.autofillservice.cts.testcore.Helper; 219 mUiBot.assertShownByRelativeId(Helper.ID_USERNAME_LABEL); 231 mUiBot.assertShownByRelativeId(Helper.ID_USERNAME_LABEL); 243 mUiBot.assertShownByRelativeId(Helper.ID_USERNAME_LABEL); 491 Helper.setDefaultAugmentedAutofillServiceEnabled(false); 497 Helper.setDefaultAugmentedAutofillServiceEnabled(true); 514 Helper.isDeviceInState(mContext, Helper.DeviceStateEnum.HALF_FOLDED)); 516 assumeFalse("Device is TV", Helper.isTv(mContext)); [all …]
|
D | FieldClassificationServiceManualActivityLaunchTestCase.java | 19 import android.autofillservice.cts.testcore.Helper; 46 Helper.resetAutofillDetectionService(); in resetService() 56 Helper.setAutofillDetectionService(InstrumentedFieldClassificationService.SERVICE_NAME); in enablePccDetectionService()
|
D | TimePickerTestCase.java | 20 import static android.autofillservice.cts.testcore.Helper.assertNumberOfChildren; 21 import static android.autofillservice.cts.testcore.Helper.assertTextAndValue; 22 import static android.autofillservice.cts.testcore.Helper.assertTextIsSanitized; 23 import static android.autofillservice.cts.testcore.Helper.assertTimeValue; 24 import static android.autofillservice.cts.testcore.Helper.findNodeByResourceId;
|
/cts/tests/autofillservice/src/android/autofillservice/cts/androidx-tests/ |
D | SaveUiTest.java | 30 import android.autofillservice.cts.testcore.Helper; 80 Assume.assumeTrue("Rotation is supported", Helper.isRotationSupported(mContext)); in testTapLink_changeOrientationThenTapBack() 83 !Helper.isDeviceInState(mContext, Helper.DeviceStateEnum.REAR_DISPLAY)); in testTapLink_changeOrientationThenTapBack() 95 Helper.CustomDescriptionUtils in testTapLink_changeOrientationThenTapBack() 149 Helper.assertTextAndValue( in testTapLink_changeOrientationThenTapBack() 150 Helper.findNodeByResourceId(saveRequest.structure, SimpleSaveActivity.ID_INPUT), in testTapLink_changeOrientationThenTapBack()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | AbstractContentCaptureIntegrationTest.java | 19 import static android.contentcaptureservice.cts.Helper.MY_PACKAGE; 20 import static android.contentcaptureservice.cts.Helper.resetService; 21 import static android.contentcaptureservice.cts.Helper.sContext; 22 import static android.contentcaptureservice.cts.Helper.sUserSettings; 23 import static android.contentcaptureservice.cts.Helper.setService; 24 import static android.contentcaptureservice.cts.Helper.toSet; 176 Helper.setDefaultServiceEnabled(false); in disableDefaultService() 182 Helper.setDefaultServiceEnabled(true); in enableDefaultService()
|