Home
last modified time | relevance | path

Searched refs:getActivity (Results 1 – 25 of 595) sorted by relevance

12345678910>>...24

/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerMaxCountTest.java105 assertEquals(getActivity("Launcher_manifest_1"), sa.getActivity()); in testWithManifest()
111 assertEquals(getActivity("Launcher_manifest_2"), sa.getActivity()); in testWithManifest()
125 .selectByActivity(getActivity("Launcher_manifest_1")) in testWithManifest()
133 .selectByActivity(getActivity("Launcher_manifest_1")) in testWithManifest()
144 .selectByActivity(getActivity("Launcher_manifest_2")) in testWithManifest()
153 .selectByActivity(getActivity("Launcher_manifest_2")) in testWithManifest()
164 .selectByActivity(getActivity("Launcher")) in testChangeActivity()
173 .selectByActivity(getActivity("Launcher")) in testChangeActivity()
179 .selectByActivity(getActivity("Launcher2")) in testChangeActivity()
186 makeShortcut("s1", getActivity("Launcher2")) in testChangeActivity()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DTextureViewStressTest.java36 if (!getActivity().waitForCompletion()) { in testTextureViewStress48Hz()
44 if (!getActivity().waitForCompletion()) { in testTextureViewStress60Hz()
52 if (!getActivity().waitForCompletion()) { in testTextureViewStress70Hz()
60 if (!getActivity().waitForCompletion()) { in testTextureViewStress200Hz()
DAutoHandwritingTest.java55 Activity activity = mActivityRule.getActivity(); in autoHandwriting_setToTrueInXml()
63 Activity activity = mActivityRule.getActivity(); in autoHandwriting_setToFalseInXml()
71 Activity activity = mActivityRule.getActivity(); in autoHandwriting_setToFalse()
81 Activity activity = mActivityRule.getActivity(); in autoHandwriting_setToTrue()
91 Activity activity = mActivityRule.getActivity(); in autoHandwriting_textView_defaultValueIsTrue()
DView_InitialFocusTest.java63 Activity activity = mActivityRule.getActivity(); in setup()
72 final Activity activity = mActivityRule.getActivity(); in getInitialAndFirstFocus()
85 Activity activity = mActivityRule.getActivity(); in testNoInitialFocus()
93 Activity activity = mActivityRule.getActivity(); in testDefaultFocus()
101 Activity activity = mActivityRule.getActivity(); in testInitialFocus()
109 Activity activity = mActivityRule.getActivity(); in testClearFocus()
/cts/tests/tests/graphics/src/android/graphics/cts/
DFrameRateOverrideTest.java95 mDisplayManager = mActivityRule.getActivity().getSystemService(DisplayManager.class); in setUp()
131 Window window = mActivityRule.getActivity().getWindow(); in setMode()
156 Display.Mode[] modes = mActivityRule.getActivity().getDisplay().getSupportedModes(); in getModesToTest()
157 Display.Mode currentMode = mActivityRule.getActivity().getDisplay().getMode(); in getModesToTest()
183 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testGlobalFrameRateOverride()
201 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testAppFrameRateOverride()
220 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testAppBackpressure()
228 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testAppChoreographer()
236 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testAppDisplayGetRefreshRate()
244 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testAppDisplayModeGetRefreshRateDisplayModeReturnsPhysicalRefreshRateEnabled()
[all …]
DSetFrameRateTest.java69 FrameRateCtsActivity activity = mActivityRule.getActivity(); in setUp()
91 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testExactFrameRateMatch_Seamless()
97 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testExactFrameRateMatch_NonSeamless()
103 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testFixedSource_Seamless()
109 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testFixedSource_NonSeamless()
115 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testInvalidParams()
122 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testClearFrameRate()
/cts/tests/app/src/android/app/cts/
DActivityActionModeTest.java55 if (!mActivityRule.getActivity().getWindow().hasFeature(Window.FEATURE_ACTION_BAR)) { in testStartPrimaryActionMode()
59 final ActionMode mode = mActivityRule.getActivity().startActionMode( in testStartPrimaryActionMode()
69 if (!mActivityRule.getActivity().getWindow().hasFeature(Window.FEATURE_ACTION_BAR)) { in testStartFloatingActionMode()
73 final ActionMode mode = mActivityRule.getActivity().startActionMode( in testStartFloatingActionMode()
83 if (!mActivityRule.getActivity().getWindow().hasFeature(Window.FEATURE_ACTION_BAR)) { in testStartTypelessActionMode()
87 final ActionMode mode = mActivityRule.getActivity().startActionMode(mCallback); in testStartTypelessActionMode()
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/
DMultiDisplayImeTests.java130 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchToDifferentDisplays()
143 imeTestActivitySession2.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchToDifferentDisplays()
169 final var activity = imeTestActivitySession.getActivity(); in testFallbackImmMaintainsParameters()
200 imeTestActivitySession.getActivity(); in testImeApiForBug118341760()
247 .getTaskByActivity(imeTestActivitySession.getActivity().getComponentName()); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
250 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
257 imeTestActivitySession2.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
263 .getTaskByActivity(imeTestActivitySession.getActivity().getComponentName()); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
266 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
300 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testCrossDisplayBasicImeOperations()
[all …]
DMultiDisplaySecurityImeTests.java74 imeTestActivitySession.getActivity().getComponentName().toString()); in testNoInputConnectionForUntrustedVirtualDisplay()
78 final EditText editText = imeTestActivitySession.getActivity().mEditText; in testNoInputConnectionForUntrustedVirtualDisplay()
80 imeTestActivitySession.getActivity()::showSoftInput); in testNoInputConnectionForUntrustedVirtualDisplay()
90 imeTestActivitySession.getActivity()::showSoftInput); in testNoInputConnectionForUntrustedVirtualDisplay()
100 imeTestActivitySession.getActivity().resetPrivateImeOptionsIdentifier(); in testNoInputConnectionForUntrustedVirtualDisplay()
102 imeTestActivitySession.getActivity()::showSoftInput); in testNoInputConnectionForUntrustedVirtualDisplay()
/cts/tests/sample/src/android/sample/cts/
DSampleDeviceTest.java59 mActivityRule.getActivity().savePreference(KEY, VALUE); in testSharedPreferences()
61 mActivityRule.getActivity().getPreference(KEY)); in testSharedPreferences()
64 mActivityRule.getActivity().clearPreferences(); in testSharedPreferences()
66 mActivityRule.getActivity().getPreference(KEY)); in testSharedPreferences()
/cts/tests/tests/print/src/android/print/cts/
DPrintJobTest.java255 eventually(() -> assertEquals(getActivity().getString(R.string.testStr1),
256 printJob.getInfo().getStatus(getActivity().getPackageManager())));
262 printJob.getInfo().getStatus(getActivity().getPackageManager())));
268 printJob.getInfo().getStatus(getActivity().getPackageManager())));
271 eventually(() -> assertEquals(getActivity().getString(R.string.testStr2),
272 printJob.getInfo().getStatus(getActivity().getPackageManager())));
286 printJob.getInfo().getStatus(getActivity().getPackageManager())));
292 printJob.getInfo().getStatus(getActivity().getPackageManager())));
423 getActivity().getSystemService(PrintManager.class).getPrintJobs().stream()
474 eventually(() -> assertEquals(getActivity().getString(R.string.testStr1),
[all …]
DInterfaceForAppsTest.java214 PrintJob job = getPrintJob(getPrintManager(getActivity()), printJobName);
254 PrintJob job = getPrintJob(getPrintManager(getActivity()),
291 PrintJob job = getPrintJob(getPrintManager(getActivity()), "testRestartFailedPrintJob");
317 PrintJob job1 = getPrintJob(getPrintManager(getActivity()),
326 PrintJob job2 = getPrintJob(getPrintManager(getActivity()),
337 getPrintJob(getPrintManager(getActivity()),
339 assertEquals(job1, getPrintJob(getPrintManager(getActivity()),
342 assertEquals(job2.getId(), getPrintJob(getPrintManager(getActivity()),
344 assertEquals(job2, getPrintJob(getPrintManager(getActivity()),
348 PrintJob job1again = getPrintJob(getPrintManager(getActivity()),
[all …]
/cts/tests/fragment/src/android/fragment/cts/
DFragmentViewTests.java52 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in addFragments()
53 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in addFragments()
98 mActivityRule.getActivity().findViewById(R.id.fragmentContainer1); in addTwoContainers()
100 mActivityRule.getActivity().findViewById(R.id.fragmentContainer2); in addTwoContainers()
101 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in addTwoContainers()
144 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in doubleAdd()
172 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in removeFragments()
173 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in removeFragments()
230 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in removeHiddenView()
231 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in removeHiddenView()
[all …]
DFragmentExecuteTests.java53 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in executeAndPopNormal()
54 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in executeAndPopNormal()
85 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in executeAndPopNothing()
99 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in popBackStackImmediateSomething()
100 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in popBackStackImmediateSomething()
122 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in popBackStackImmediateNothing()
123 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in popBackStackImmediateNothing()
142 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in popBackStackImmediateInt()
143 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in popBackStackImmediateInt()
208 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in popBackStackImmediateString()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/
DComplexMovementFragment.java77 GLSurfaceView surfaceView = new GLSurfaceView(getActivity()); in onActivityCreated()
79 mRenderer = new ComplexMovementRenderer(getActivity(), mActivity.getRings()); in onActivityCreated()
93getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.COMPLEX_M… in onCreateView()
105 Toast.makeText(getActivity(), in onCreateView()
108 Toast.makeText(getActivity(), in onCreateView()
111 Toast.makeText(getActivity(), in onCreateView()
114 Toast.makeText(getActivity(), in onCreateView()
140 if (mActivity == null || getActivity() == null) { in setupUILoop()
176 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); in showInitialDialog()
201 dialog.show(getActivity().getFragmentManager(), "ResultDialogFragment"); in onResult()
[all …]
DRobustnessFragment.java79 GLSurfaceView surfaceView = new GLSurfaceView(getActivity()); in onActivityCreated()
81 mRenderer = new RobustnessRenderer(getActivity()); in onActivityCreated()
95getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.ROBUSTNES… in onCreateView()
107 Toast.makeText(getActivity(), in onCreateView()
110 Toast.makeText(getActivity(), in onCreateView()
113 Toast.makeText(getActivity(), in onCreateView()
143 if (mActivity == null || getActivity() == null) { in setupUILoop()
186 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); in showInitialDialog()
198 getActivity().runOnUiThread(new Runnable() { in onResult()
204 dialog.show(getActivity().getFragmentManager(), "ResultDialogFragment"); in onResult()
DAccuracyFragment.java89 GLSurfaceView surfaceView = new GLSurfaceView(getActivity()); in onActivityCreated()
91 mRenderer = new AccuracyRenderer(getActivity()); in onActivityCreated()
105getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.ACCURACY.… in onCreateView()
116 Toast.makeText(getActivity(), in onCreateView()
119 Toast.makeText(getActivity(), in onCreateView()
122 Toast.makeText(getActivity(), in onCreateView()
154 if (mActivity == null || getActivity() == null) { in setupUILoop()
228 dialog.show(getActivity().getFragmentManager(), "ResultDialogFragment"); in onResult()
270 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); in showInitialDialog()
286 dialog.show(getActivity().getFragmentManager(), "Lap2DialogFragment"); in onBackToFirstWaypoint()
/cts/tests/tests/content/src/android/content/cts/
DDeferSyncTest.java85 NotAlwaysSyncableSyncService.getInstance(activity.getActivity()).setNewDelegate(); in noSyncsWhenDeferred()
87 AlwaysSyncableSyncService.getInstance(activity.getActivity()).setNewDelegate(); in noSyncsWhenDeferred()
92 try (Utils.ClosableAccount ignored = withAccount(activity.getActivity())) { in noSyncsWhenDeferred()
112 activity.getActivity()).setNewDelegate(); in deferSyncAndMakeSyncable()
115 try (Utils.ClosableAccount account = withAccount(activity.getActivity())) { in deferSyncAndMakeSyncable()
137 activity.getActivity()).setNewDelegate(); in deferSyncAndReportIsReady()
140 try (Utils.ClosableAccount ignored = withAccount(activity.getActivity())) { in deferSyncAndReportIsReady()
162 activity.getActivity()).setNewDelegate(); in deferSyncAndReportIsReadyAlwaysSyncable()
165 try (Utils.ClosableAccount ignored = withAccount(activity.getActivity())) { in deferSyncAndReportIsReadyAlwaysSyncable()
188 activity.getActivity()).setNewDelegate(); in onNewAccountForEachAccount()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputManagerTest.java167 PackageManager pm = getActivity().getPackageManager(); in prepareStubHardwareTvInputService()
169 new ComponentName(getActivity(), StubHardwareTvInputService.class); in prepareStubHardwareTvInputService()
191 PackageManager pm = getActivity().getPackageManager(); in cleanupStubHardwareTvInputService()
193 new ComponentName(getActivity(), StubHardwareTvInputService.class); in cleanupStubHardwareTvInputService()
214 mActivity = getActivity(); in setUp()
242 if (!Utils.hasTvInputFramework(getActivity())) { in tearDown()
326 if (!Utils.hasTvInputFramework(getActivity())) { in testGetCurrentTunedInfos()
345 if (!Utils.hasTvInputFramework(getActivity())) { in testGetInputState()
352 if (!Utils.hasTvInputFramework(getActivity())) { in testGetTvInputInfo()
359 TvInputInfoTest.compareTvInputInfos(getActivity(), expected, actual)); in testGetTvInputInfo()
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DNativeColorBufferTest.java40 () -> getActivity(), Manifest.permission.START_ACTIVITIES_FROM_SDK_SANDBOX); in setUp()
49 mActivity = getActivity(); in test_RGBA_1001()
68 mActivity = getActivity(); in test_RGBA_1101()
87 mActivity = getActivity(); in test_RGBA_1111()
106 mActivity = getActivity(); in test_RGBA_0101()
125 mActivity = getActivity(); in test_RGBA_0011()
144 mActivity = getActivity(); in test_RGBA_0000()
163 mActivity = getActivity(); in test_RGBA_rand_val_one()
DColorBufferTest.java39 () -> getActivity(), Manifest.permission.START_ACTIVITIES_FROM_SDK_SANDBOX); in setUp()
54 mActivity = getActivity(); in test_RGBA_1001()
73 mActivity = getActivity(); in test_RGBA_1101()
92 mActivity = getActivity(); in test_RGBA_1111()
111 mActivity = getActivity(); in test_RGBA_0101()
130 mActivity = getActivity(); in test_RGBA_0011()
149 mActivity = getActivity(); in test_RGBA_0000()
168 mActivity = getActivity(); in test_RGBA_rand_val_one()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DActivityTestBase.java76 protected DrawActivity getActivity() { in getActivity() method in ActivityTestBase
139 getActivity().runOnUiThread(() -> { in waitForScreenshottable()
141 getActivity().getWindow().getRootSurfaceControl(); in waitForScreenshottable()
150 getActivity().waitForRedraw(); in waitForScreenshottable()
159 getActivity().getWindow().isWideColorGamut() in takeScreenshot()
164 int copyResult = copy.request(getActivity().getWindow(), srcRect, dest); in takeScreenshot()
173 TestPositionInfo testPositionInfo = getActivity().enqueueRenderSpecAndWait( in runRenderSpec()
181 getActivity().waitForRedraw(); in runRenderSpec()
250 getActivity().reset(); in runWithComparer()
270 getActivity().reset(); in runWithVerifier()
[all …]
/cts/tests/tests/gameframerate/src/
DGameFrameRateTest.java97 mDisplayManager = mActivityRule.getActivity().getSystemService(DisplayManager.class); in setUp()
134 Window window = mActivityRule.getActivity().getWindow(); in setMode()
159 Display.Mode[] modes = mActivityRule.getActivity().getDisplay().getSupportedModes(); in getModesToTest()
160 Display.Mode currentMode = mActivityRule.getActivity().getDisplay().getMode(); in getModesToTest()
176 GameFrameRateCtsActivity activity = mActivityRule.getActivity(); in testGameModeFrameRateOverride()
200 GameFrameRateCtsActivity activity = mActivityRule.getActivity(); in testGameModeBackpressure()
209 GameFrameRateCtsActivity activity = mActivityRule.getActivity(); in testGameModeChoreographer()
218 GameFrameRateCtsActivity activity = mActivityRule.getActivity(); in testGameModeDisplayGetRefreshRate()
228 GameFrameRateCtsActivity activity = mActivityRule.getActivity(); in testGameModeDisplayModeGetRefreshRateDisplayModeReturnsPhysicalRefreshRate()
/cts/hostsidetests/shortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/
DShortcutManagerPreBackupTest.java42 .setActivity(getActivity("MainActivity2")) in testPreBackup()
51 .setActivity(getActivity("MainActivity2")) in testPreBackup()
58 .setActivity(getActivity("MainActivity2")) in testPreBackup()
73 .areAllWithActivity(getActivity("MainActivity")); in testPreBackup()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/
DExtensionRearDisplayPresentationKeyguardTest.java161 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_whenKeyguardLocked()
191 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_afterKeyguardLocked()
201 activitySession.getActivity().runOnUiThread(() -> in testStartRearDisplayPresentation_afterKeyguardLocked()
236 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_thenKeyguardLocked()
246 activitySession.getActivity().runOnUiThread(() -> in testStartRearDisplayPresentation_thenKeyguardLocked()
284 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_thenKeyguardLocked_activityFinishes()
294 activitySession.getActivity().runOnUiThread(() -> in testStartRearDisplayPresentation_thenKeyguardLocked_activityFinishes()
304 activitySession.getActivity().finish(); in testStartRearDisplayPresentation_thenKeyguardLocked_activityFinishes()
337 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_persistsAfterDismissingKeyguard()
347 activitySession.getActivity().runOnUiThread(() -> in testStartRearDisplayPresentation_persistsAfterDismissingKeyguard()
[all …]

12345678910>>...24