Home
last modified time | relevance | path

Searched refs:mActivity (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/cts/tests/autofillservice/src/android/autofillservice/cts/saveui/
DOptionalSaveActivityTest.java61 private OptionalSaveActivity mActivity; field in OptionalSaveActivityTest
68 mActivity = getActivity(); in getActivityRule()
85 mActivity.mAddress1.setText("742 Evergreen Terrace"); // required
86 mActivity.mAddress2.setText("Simpsons House"); // not required
87 mActivity.mCity.setText("Springfield"); // required
88 mActivity.mFavoriteColor.setText("Yellow"); // lol
100 mActivity.mAddress1.setText("742 Evergreen Terrace"); // required
101 mActivity.mCity.setText("Springfield"); // required
123 mActivity.syncRunOnUiThread(() -> mActivity.mAddress1.requestFocus());
133 mActivity.syncRunOnUiThread(changes);
[all …]
DSimpleSaveActivityTest.java119 mActivity.startActivity(intent); in restartActivity()
141 mActivity.syncRunOnUiThread(() -> mActivity.mInput.requestFocus()); in testAutoFillOneDatasetAndSave()
145 final FillExpectation autofillExpecation = mActivity.expectAutoFill("id", "pass"); in testAutoFillOneDatasetAndSave()
149 mActivity.syncRunOnUiThread(() -> { in testAutoFillOneDatasetAndSave()
150 mActivity.mInput.setText("ID"); in testAutoFillOneDatasetAndSave()
151 mActivity.mPassword.setText("PASS"); in testAutoFillOneDatasetAndSave()
152 mActivity.mCommit.performClick(); in testAutoFillOneDatasetAndSave()
170 mActivity.syncRunOnUiThread( in testAutoFillOneDatasetAndSave_largeAssistStructure()
171 () -> mActivity.mInput.setAutofillHints(LARGE_STRING, LARGE_STRING, LARGE_STRING)); in testAutoFillOneDatasetAndSave_largeAssistStructure()
187 mActivity.syncRunOnUiThread(() -> mActivity.mInput.requestFocus()); in testAutoFillOneDatasetAndSave_largeAssistStructure()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/
DWebViewActivityTest.java52 private WebViewActivity mActivity; field in WebViewActivityTest
72 mActivity = getActivity(); in getActivityRule()
84 mActivity.loadWebView(mUiBot);
90 mActivity.getUsernameInput().click();
114 final MyWebView myWebView = mActivity.loadWebView(mUiBot, usesAppContext);
120 final MyAutofillCallback callback = mActivity.registerCallback();
128 mActivity.getUsernameInput().click();
134 mActivity.getUsernameLabel().click();
137 mActivity.getPasswordInput().click();
187 mActivity.loadWebView(mUiBot);
[all …]
DVirtualContainerActivityTest.java77 protected VirtualContainerActivity mActivity; field in VirtualContainerActivityTest
109 mActivity = getActivity(); in getActivityRule()
135 mActivity.mCustomView.setAutofillManager(mActivity.getApplicationContext()); in testAutofill_appContext()
138 assertThat(mActivity.getApplicationContext().getSystemService(AutofillManager.class) in testAutofill_appContext()
146 mUiBot.waitForWindowChange(() -> mActivity.mUsername.changeFocus(true)); in focusToUsername()
154 mActivityRule.runOnUiThread(() -> mActivity.mUsername.changeFocus(true)); in focusToUsernameExpectNoWindowEvent()
161 mUiBot.waitForWindowChange(() -> mActivity.mPassword.changeFocus(true)); in focusToPassword()
169 mActivityRule.runOnUiThread(() -> mActivity.mPassword.changeFocus(true)); in focusToPasswordExpectNoWindowEvent()
184 mActivity.expectAutoFill("dude", "sweet"); in autofillTest()
185 mActivity.mCustomView.setSync(sync); in autofillTest()
[all …]
DLoginActivityTest.java145 mActivity.expectAutoFill("dude", "sweet"); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
148 mActivity.onUsername(View::requestFocus); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
155 final EditText child = new EditText(mActivity); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
157 mActivity.addChild(child); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
167 mActivity.syncRunOnUiThread(() -> child.requestFocus()); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
175 mActivity.assertAutoFilled(); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
187 mActivity.expectAutoFill("dude", "sweet"); in testAutofillManuallyAfterServiceReturnedNoDatasets()
190 mActivity.onUsername(View::requestFocus); in testAutofillManuallyAfterServiceReturnedNoDatasets()
203 mActivity.forceAutofillOnUsername(); in testAutofillManuallyAfterServiceReturnedNoDatasets()
212 mActivity.assertAutoFilled(); in testAutofillManuallyAfterServiceReturnedNoDatasets()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DCountDownTimerTest.java28 private CountDownTimerTestStub mActivity; field in CountDownTimerTest
38 mActivity = (CountDownTimerTestStub) getInstrumentation().startActivitySync(intent); in setUp()
40 mActivity.countDownTimer.start(); in setUp()
44 int count = (int) (mActivity.MILLISINFUTURE / mActivity.INTERVAL); in testCountDownTimer()
45 final long TIMEOUT_MSEC = mActivity.MILLISINFUTURE + mActivity.INTERVAL + OFFSET * count; in testCountDownTimer()
47 assertTrue(mActivity.onFinished); in testCountDownTimer()
48 assertEqualsTickTime(mActivity.tickTimes, OFFSET); in testCountDownTimer()
52 final long DELAY_MSEC = mActivity.INTERVAL + OFFSET; in testCountDownTimerCancel()
53 assertTrue(DELAY_MSEC < mActivity.MILLISINFUTURE); in testCountDownTimerCancel()
55 assertFalse(mActivity.onFinished); in testCountDownTimerCancel()
[all …]
/cts/tests/vr/src/android/vr/cts/
DVrExtensionBehaviorTest.java34 private OpenGLESActivity mActivity; field in VrExtensionBehaviorTest
57 mActivity = getGlEsActivity(OpenGLESActivity.RENDERER_BASIC, 1, 0, 0); in testProtectedContent()
58 if (!mActivity.supportsVrHighPerformance()) in testProtectedContent()
61 int error = mActivity.glGetError(); in testProtectedContent()
64 mActivity.runOnGlThread(new Runnable() { in testProtectedContent()
81 mActivity = getGlEsActivity(OpenGLESActivity.RENDERER_PROTECTEDTEXTURES, 1, 0, 0); in testProtectedTextures()
82 if (!mActivity.supportsVrHighPerformance()) in testProtectedTextures()
85 int error = mActivity.glGetError(); in testProtectedTextures()
88 mActivity.runOnGlThread(new Runnable() { in testProtectedTextures()
130 mActivity = getGlEsActivity(OpenGLESActivity.RENDERER_BASIC, 0, 0, 1); in testMutableRenderBuffer()
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DNativeColorBufferTest.java27 private OpenGLES20NativeActivityTwo mActivity; field in NativeColorBufferTest
36 mActivity = getActivity(); in setUp()
45 mActivity = getActivity(); in test_RGBA_1001()
49 mActivity.setView(Constants.COLOR, 1, vertexColors); in test_RGBA_1001()
52 assertTrue(mActivity.waitForFrameDrawn()); in test_RGBA_1001()
53 float[] actualColor = mActivity.getActualColor(); in test_RGBA_1001()
64 mActivity = getActivity(); in test_RGBA_1101()
67 mActivity.setView(Constants.COLOR, 1, vertexColors); in test_RGBA_1101()
70 assertTrue(mActivity.waitForFrameDrawn()); in test_RGBA_1101()
71 float[] actualColor = mActivity.getActualColor(); in test_RGBA_1101()
[all …]
DColorBufferTest.java26 private OpenGLES20ActivityTwo mActivity; field in ColorBufferTest
35 mActivity = getActivity(); in setUp()
50 mActivity = getActivity(); in test_RGBA_1001()
54 mActivity.setView(Constants.COLOR, 1, vertexColors); in test_RGBA_1001()
57 assertTrue(mActivity.waitForFrameDrawn()); in test_RGBA_1001()
58 float[] actualColor = mActivity.getActualColor(); in test_RGBA_1001()
69 mActivity = getActivity(); in test_RGBA_1101()
72 mActivity.setView(Constants.COLOR, 1, vertexColors); in test_RGBA_1101()
75 assertTrue(mActivity.waitForFrameDrawn()); in test_RGBA_1101()
76 float[] actualColor = mActivity.getActualColor(); in test_RGBA_1101()
[all …]
DNativeAttachShaderTest.java25 private OpenGLES20NativeActivityOne mActivity; field in NativeAttachShaderTest
49 mActivity = getShaderActivity(Constants.SHADER, 1); in test_glAttachedShaders_validshader()
50 int shaderCount = mActivity.mRenderer.mShaderCount; in test_glAttachedShaders_validshader()
52 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_validshader()
65 mActivity = getShaderActivity(Constants.SHADER, 2); in test_glAttachedShaders_invalidshader()
66 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_invalidshader()
79 mActivity = getShaderActivity(Constants.SHADER, 3); in test_glAttachedShaders_attach_same_shader()
80 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_attach_same_shader()
93 mActivity = getShaderActivity(Constants.SHADER, 4); in test_glAttachedShaders_noshader()
97 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_noshader()
[all …]
DAttachShaderTest.java24 private OpenGLES20ActivityOne mActivity; field in AttachShaderTest
48 mActivity = getShaderActivity(Constants.SHADER, 1); in test_glAttachedShaders_validshader()
49 int shaderCount = mActivity.getNoOfAttachedShaders(); in test_glAttachedShaders_validshader()
51 int error = mActivity.glGetError(); in test_glAttachedShaders_validshader()
96 mActivity = getShaderActivity(Constants.SHADER, 4); in test_glAttachedShaders_noshader()
97 int shaderCount = mActivity.getNoOfAttachedShaders(); in test_glAttachedShaders_noshader()
99 int error = mActivity.glGetError(); in test_glAttachedShaders_noshader()
112 mActivity = getShaderActivity(Constants.SHADER, 6); in test_glAttachShaders_emptyfragshader_emptyvertexshader()
113 int error = mActivity.glGetError(); in test_glAttachShaders_emptyfragshader_emptyvertexshader()
127 mActivity = getShaderActivity(Constants.SHADER, 8); in test_glAttachShaders_programobject_attach_fragshaderobject()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceActivityTest.java28 private PreferenceActivity mActivity; field in PreferenceActivityTest
37 mActivity = getActivity(); in setUp()
41 assertNull(mActivity.findPreference("check_box_preference_from_intent")); in testAddPreferencesFromIntent()
43 Intent intent = new Intent(mActivity, PreferenceCtsActivity.class); in testAddPreferencesFromIntent()
44 mActivity.addPreferencesFromIntent(intent); in testAddPreferencesFromIntent()
46 assertNotNull(mActivity.findPreference("check_box_preference_from_intent")); in testAddPreferencesFromIntent()
50 assertNull(mActivity.findPreference("check_box_preference_from_resource")); in testAddPreferencesFromResource()
52 mActivity.addPreferencesFromResource(R.xml.preferences_from_resource); in testAddPreferencesFromResource()
54 assertNotNull(mActivity.findPreference("check_box_preference_from_resource")); in testAddPreferencesFromResource()
58 assertNotNull(mActivity.getPreferenceManager()); in testGetPreferenceManager()
[all …]
/cts/tests/app/src/android/app/cts/
DAlertDialogTest.java52 private DialogStubActivity mActivity; field in AlertDialogTest
74 mActivity = activity; in startDialogActivity()
77 PollingCheck.waitFor(mActivity.getDialog()::isShowing); in startDialogActivity()
78 PollingCheck.waitFor(mActivity.getDialog().getWindow().getDecorView()::hasWindowFocus); in startDialogActivity()
88 assertTrue(mActivity.getDialog().isShowing()); in doTestAlertDialog()
90 mPositiveButton = ((AlertDialog) (mActivity.getDialog())).getButton( in doTestAlertDialog()
93 assertEquals(mActivity.getString(R.string.alert_dialog_positive), in doTestAlertDialog()
95 mNeutralButton = ((AlertDialog) (mActivity.getDialog())).getButton( in doTestAlertDialog()
98 assertEquals(mActivity.getString(R.string.alert_dialog_neutral), in doTestAlertDialog()
100 mNegativeButton = ((AlertDialog) (mActivity.getDialog())).getButton( in doTestAlertDialog()
[all …]
DToolbarActionBarTest.java27 private ToolbarActivity mActivity; field in ToolbarActionBarTest
36 mActivity = getActivity(); in setUp()
38 () -> mActivity.getToolbar().inflateMenu(R.menu.flat_menu)); in setUp()
42 if (!mActivity.getWindow().hasFeature(Window.FEATURE_OPTIONS_PANEL)) { in testOptionsMenuKey()
46 mActivity.getActionBar().addOnMenuVisibilityListener( in testOptionsMenuKey()
51 assertTrue(mActivity.getToolbar().isOverflowMenuShowing()); in testOptionsMenuKey()
55 assertFalse(mActivity.getToolbar().isOverflowMenuShowing()); in testOptionsMenuKey()
59 if (!mActivity.getWindow().hasFeature(Window.FEATURE_OPTIONS_PANEL)) { in testOpenOptionsMenu()
63 mActivity.getActionBar().addOnMenuVisibilityListener( in testOpenOptionsMenu()
65 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testOpenOptionsMenu()
[all …]
DListActivityTest.java34 private ListActivity mActivity; field in ListActivityTest
43 mActivity = getActivity(); in setUp()
47 final ListAdapter listAdapter = new ArrayAdapter<String>(mActivity, in testAdapter()
53 mActivity.setListAdapter(listAdapter); in testAdapter()
56 assertEquals(listAdapter, mActivity.getListAdapter()); in testAdapter()
57 assertEquals(listAdapter, mActivity.getListView().getAdapter()); in testAdapter()
61 final ListAdapter listAdapter = new ArrayAdapter<String>(mActivity, in testSelection()
67 mActivity.setListAdapter(listAdapter); in testSelection()
70 assertEquals(0, mActivity.getSelectedItemPosition()); in testSelection()
71 assertEquals(0, mActivity.getSelectedItemId()); in testSelection()
[all …]
DActivityKeyboardShortcutsTest.java37 private KeyboardShortcutsActivity mActivity; field in ActivityKeyboardShortcutsTest
47 mActivity = getActivity(); in setUp()
48 mMenu = new PopupMenu(mActivity, null).getMenu(); in setUp()
60 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testRequestShowKeyboardShortcuts()
61 mActivity.waitForMenuToBeOpen(); in testRequestShowKeyboardShortcuts()
64 getInstrumentation().runOnMainSync(() -> mActivity.requestShowKeyboardShortcuts()); in testRequestShowKeyboardShortcuts()
65 mActivity.waitForKeyboardShortcutsToBeRequested(); in testRequestShowKeyboardShortcuts()
68 getInstrumentation().runOnMainSync(() -> mActivity.dismissKeyboardShortcutsHelper()); in testRequestShowKeyboardShortcuts()
72 assertTrue(mActivity.onProvideKeyboardShortcutsCalled()); in testRequestShowKeyboardShortcuts()
80 mActivity.onCreateOptionsMenu(mMenu); in testOnProvideKeyboardShortcuts()
[all …]
DInstrumentationTest.java64 private InstrumentationTestActivity mActivity; field in InstrumentationTest
77 mActivity = (InstrumentationTestActivity) mInstrumentation.startActivitySync(mIntent); in setUp()
78 PollingCheck.waitFor(mActivity::hasWindowFocus); in setUp()
84 if (mActivity != null) { in tearDown()
85 mActivity.finish(); in tearDown()
86 mActivity = null; in tearDown()
122 if (mActivity != null) in testMonitor()
123 mActivity.finish(); in testMonitor()
162 mActivity.setOnCreateCalled(false); in testCallActivityOnCreate()
165 mInstrumentation.callActivityOnCreate(mActivity, new Bundle()); in testCallActivityOnCreate()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DTouchDelegateTest.java47 private TouchDelegateTestActivity mActivity; field in TouchDelegateTest
55 mActivity = mActivityRule.getActivity(); in setup()
56 mActivity.resetCounters(); in setup()
65 assertEquals(0, mActivity.getButtonClickCount()); in testParentClick()
66 assertEquals(1, mActivity.getParentClickCount()); in testParentClick()
70 mActivity.resetCounters(); in testParentClick()
72 assertEquals(1, mActivity.getButtonClickCount()); in testParentClick()
73 assertEquals(0, mActivity.getParentClickCount()); in testParentClick()
76 mActivity.resetCounters(); in testParentClick()
78 assertEquals(0, mActivity.getButtonClickCount()); in testParentClick()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedLoginActivityTest.java79 protected AugmentedLoginActivity mActivity; field in AugmentedLoginActivityTest
87 mActivity = getActivity(); in getActivityRule()
110 final EditText username = mActivity.getUsername();
117 mActivity.onUsername(View::requestFocus);
122 assertBasicRequestInfo(augmentedRequest, mActivity, usernameId, expectedFocusedValue);
139 final EditText username = mActivity.getUsername();
146 mActivity.forceAutofillOnUsername();
152 assertBasicRequestInfo(augmentedRequest, mActivity, usernameId, expectedFocusedValue,
170 final EditText username = mActivity.getUsername();
177 mActivity.onUsername(View::requestFocus);
[all …]
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DActivityTransitionTest.java36 protected ActivityTransitionActivity mActivity; field in ActivityTransitionTest
53 mActivity = getActivity(); in setUp()
63 mActivity.setExitSharedElementCallback(new SharedElementCallback() { in testOnSharedElementsArrived()
75 mActivity.getWindow().getDecorView().postDelayed(new Runnable() { in testOnSharedElementsArrived()
89 Bundle options = ActivityOptions.makeSceneTransitionAnimation(mActivity, in testOnSharedElementsArrived()
90 mActivity.findViewById(R.id.hello), "target").toBundle(); in testOnSharedElementsArrived()
91 Intent intent = new Intent(mActivity, ActivityTransitionActivity.class); in testOnSharedElementsArrived()
96 mActivity.startActivityForResult(intent, 0, options); in testOnSharedElementsArrived()
101 mActivity.returnLatch.await(3000, TimeUnit.MILLISECONDS)); in testOnSharedElementsArrived()
102 assertTrue(mActivity.reenterLatch.await(1000, TimeUnit.MILLISECONDS)); in testOnSharedElementsArrived()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/voicemail/
DDefaultDialerChanger.java41 private final Activity mActivity; field in DefaultDialerChanger
52 mActivity = activity; in DefaultDialerChanger()
54 mSetDefaultDialerImage = (ImageView) mActivity.findViewById(R.id.set_default_dialer_image); in DefaultDialerChanger()
55 mRestoreDefaultDialerImage = (ImageView) mActivity in DefaultDialerChanger()
58 mSetDefaultDialerButton = (Button) mActivity.findViewById(R.id.set_default_dialer); in DefaultDialerChanger()
59 mRestoreDefaultDialerButton = (Button) mActivity.findViewById(R.id.restore_default_dialer); in DefaultDialerChanger()
61 final TelecomManager telecomManager = mActivity.getSystemService(TelecomManager.class); in DefaultDialerChanger()
67 if (telecomManager.getDefaultDialerPackage().equals(mActivity.getPackageName())) { in DefaultDialerChanger()
68 Toast.makeText(mActivity, in DefaultDialerChanger()
74 final RoleManager roleManager = mActivity.getSystemService(RoleManager.class); in DefaultDialerChanger()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/
DAbstractLoginNotImportantForAutofillTestCase.java38 protected A mActivity; field in AbstractLoginNotImportantForAutofillTestCase
47 final EditText username = mActivity.getUsername(); in testAutofill_none()
53 mActivity.onUsername(View::requestFocus); in testAutofill_none()
57 assertBasicRequestInfo(request, mActivity, expectedFocusedId, expectedFocusedValue); in testAutofill_none()
73 final EditText username = mActivity.getUsername(); in testAutofill_oneField()
81 mActivity.expectAutoFill("dude"); in testAutofill_oneField()
84 mActivity.onUsername(View::requestFocus); in testAutofill_oneField()
88 assertBasicRequestInfo(request, mActivity, usernameId, expectedFocusedValue); in testAutofill_oneField()
98 mActivity.assertAutoFilled(); in testAutofill_oneField()
109 final EditText username = mActivity.getUsername(); in testAutofill_twoFields()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DWebViewMultiScreenLoginActivityTest.java64 private WebViewMultiScreenLoginActivity mActivity; field in WebViewMultiScreenLoginActivityTest
85 mActivity = getActivity(); in getActivityRule()
96 final MyWebView myWebView = mActivity.loadWebView(mUiBot);
116 mActivity.getUsernameInput().click();
126 mActivity.getUsernameInput().click();
127 mActivity.dispatchKeyPress(KeyEvent.KEYCODE_D);
128 mActivity.dispatchKeyPress(KeyEvent.KEYCODE_U);
129 mActivity.dispatchKeyPress(KeyEvent.KEYCODE_D);
130 mActivity.dispatchKeyPress(KeyEvent.KEYCODE_E);
132 mActivity.getUsernameInput().setText("dude");
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DMediaControllerTest.java60 private Activity mActivity; field in MediaControllerTest
70 mActivity = mActivityRule.getActivity(); in setup()
76 new MediaController(mActivity, null); in testConstructor()
78 new MediaController(mActivity, true); in testConstructor()
80 new MediaController(mActivity); in testConstructor()
83 mActivity.getResources().getXml(R.layout.mediacontroller_layout); in testConstructor()
85 new MediaController(mActivity, attrs); in testConstructor()
96 mMediaController = new MediaController(mActivity); in testMediaController()
106 View videoview = mActivity.findViewById(R.id.mediacontroller_videoview); in testMediaController()
115 mMediaController = new MediaController(mActivity, false); in testMediaController()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInsetsAnimationTests.java66 mActivity = startActivity(TestActivity.class); in setup()
67 mRootView = mActivity.getWindow().getDecorView(); in setup()
73 WindowInsets before = mActivity.mLastWindowInsets; in testAnimationCallbacksHide()
78 waitForOrFail("Waiting until animation done", () -> mActivity.mCallback.animationDone); in testAnimationCallbacksHide()
80 commonAnimationAssertions(mActivity, before, false /* show */, systemBars()); in testAnimationCallbacksHide()
88 waitForOrFail("Waiting until animation done", () -> mActivity.mCallback.animationDone); in testAnimationCallbacksShow()
89 mActivity.mCallback.animationDone = false; in testAnimationCallbacksShow()
91 WindowInsets before = mActivity.mLastWindowInsets; in testAnimationCallbacksShow()
96 waitForOrFail("Waiting until animation done", () -> mActivity.mCallback.animationDone); in testAnimationCallbacksShow()
98 commonAnimationAssertions(mActivity, before, true /* show */, systemBars()); in testAnimationCallbacksShow()
[all …]

12345678910>>...16