Home
last modified time | relevance | path

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

12345678910>>...24

/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerMaxCountTest.java106 assertEquals(getActivity("Launcher_manifest_1"), sa.getActivity()); in testWithManifest()
112 assertEquals(getActivity("Launcher_manifest_2"), sa.getActivity()); in testWithManifest()
126 .selectByActivity(getActivity("Launcher_manifest_1")) in testWithManifest()
134 .selectByActivity(getActivity("Launcher_manifest_1")) in testWithManifest()
145 .selectByActivity(getActivity("Launcher_manifest_2")) in testWithManifest()
154 .selectByActivity(getActivity("Launcher_manifest_2")) in testWithManifest()
165 .selectByActivity(getActivity("Launcher")) in testChangeActivity()
174 .selectByActivity(getActivity("Launcher")) in testChangeActivity()
180 .selectByActivity(getActivity("Launcher2")) in testChangeActivity()
187 makeShortcut("s1", getActivity("Launcher2")) in testChangeActivity()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DSetFrameRateTest.java70 FrameRateCtsActivity activity = mActivityRule.getActivity(); in setUp()
92 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testExactFrameRateMatch_Seamless()
102 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testExactFrameRateMatch_Seamless_arr()
109 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testExactFrameRateMatch_NonSeamless()
119 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testExactFrameRateMatch_NonSeamless_arr()
129 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testAtLeast_Seamless()
141 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testAtLeast_NonSeamless()
148 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testFixedSource_Seamless()
157 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testFixedSource_Seamless_arr()
163 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testFixedSource_NonSeamless()
[all …]
DFrameRateOverrideTest.java98 mDisplayManager = mActivityRule.getActivity().getSystemService(DisplayManager.class); in setUp()
135 Window window = mActivityRule.getActivity().getWindow(); in setMode()
160 Display.Mode[] modes = mActivityRule.getActivity().getDisplay().getSupportedModes(); in getModesToTest()
161 Display.Mode currentMode = mActivityRule.getActivity().getDisplay().getMode(); in getModesToTest()
196 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testGlobalFrameRateOverride()
214 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testAppFrameRateOverride()
233 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testAppBackpressure()
241 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testAppChoreographer()
249 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testAppDisplayGetRefreshRate()
257 FrameRateOverrideCtsActivity activity = mActivityRule.getActivity(); in testAppDisplayModeGetRefreshRateDisplayModeReturnsPhysicalRefreshRateEnabled()
[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/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.java140 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchToDifferentDisplays()
154 imeTestActivitySession2.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchToDifferentDisplays()
181 final var activity = imeTestActivitySession.getActivity(); in testFallbackImmMaintainsParameters()
212 imeTestActivitySession.getActivity(); in testImeApiForBug118341760()
259 .getTaskByActivity(imeTestActivitySession.getActivity().getComponentName()); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
262 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
269 imeTestActivitySession2.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
275 .getTaskByActivity(imeTestActivitySession.getActivity().getComponentName()); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
278 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
312 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testCrossDisplayBasicImeOperations()
[all …]
DMultiDisplaySecurityImeTests.java78 imeTestActivitySession.getActivity().getComponentName().toString()); in testNoInputConnectionForUntrustedVirtualDisplay()
82 final EditText editText = imeTestActivitySession.getActivity().mEditText; in testNoInputConnectionForUntrustedVirtualDisplay()
84 imeTestActivitySession.getActivity()::showSoftInput); in testNoInputConnectionForUntrustedVirtualDisplay()
94 imeTestActivitySession.getActivity()::showSoftInput); in testNoInputConnectionForUntrustedVirtualDisplay()
104 imeTestActivitySession.getActivity().resetPrivateImeOptionsIdentifier(); in testNoInputConnectionForUntrustedVirtualDisplay()
106 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.java257 eventually(() -> assertEquals(getActivity().getString(R.string.testStr1),
258 printJob.getInfo().getStatus(getActivity().getPackageManager())));
264 printJob.getInfo().getStatus(getActivity().getPackageManager())));
270 printJob.getInfo().getStatus(getActivity().getPackageManager())));
273 eventually(() -> assertEquals(getActivity().getString(R.string.testStr2),
274 printJob.getInfo().getStatus(getActivity().getPackageManager())));
288 printJob.getInfo().getStatus(getActivity().getPackageManager())));
294 printJob.getInfo().getStatus(getActivity().getPackageManager())));
425 getActivity().getSystemService(PrintManager.class).getPrintJobs().stream()
476 eventually(() -> assertEquals(getActivity().getString(R.string.testStr1),
[all …]
DInterfaceForAppsTest.java216 PrintJob job = getPrintJob(getPrintManager(getActivity()), printJobName);
256 PrintJob job = getPrintJob(getPrintManager(getActivity()),
293 PrintJob job = getPrintJob(getPrintManager(getActivity()), "testRestartFailedPrintJob");
319 PrintJob job1 = getPrintJob(getPrintManager(getActivity()),
328 PrintJob job2 = getPrintJob(getPrintManager(getActivity()),
339 getPrintJob(getPrintManager(getActivity()),
341 assertEquals(job1, getPrintJob(getPrintManager(getActivity()),
344 assertEquals(job2.getId(), getPrintJob(getPrintManager(getActivity()),
346 assertEquals(job2, getPrintJob(getPrintManager(getActivity()),
350 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()
/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.java180 PackageManager pm = getActivity().getPackageManager(); in prepareStubHardwareTvInputService()
182 new ComponentName(getActivity(), StubHardwareTvInputService.class); in prepareStubHardwareTvInputService()
205 PackageManager pm = getActivity().getPackageManager(); in cleanupStubHardwareTvInputService()
207 new ComponentName(getActivity(), StubHardwareTvInputService.class); in cleanupStubHardwareTvInputService()
228 mActivity = getActivity(); in setUp()
256 if (!Utils.hasTvInputFramework(getActivity())) { in tearDown()
340 if (!Utils.hasTvInputFramework(getActivity())) { in testGetCurrentTunedInfos()
359 if (!Utils.hasTvInputFramework(getActivity())) { in testGetInputState()
366 if (!Utils.hasTvInputFramework(getActivity())) { in testGetTvInputInfo()
373 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/framework/base/windowmanager/src/android/server/wm/activity/
DOpenInBrowserTests.kt46 getActivity(activity.componentName)?.requestOpenInBrowserEducationTimestamp in requestOpenInBrowserEducation_requestTimestampRecorded()
50 private fun getActivity(componentName: ComponentName): WindowManagerState.Activity? { in getActivity() method in android.server.wm.activity.OpenInBrowserTests
52 return mWmState.getActivity(componentName) in getActivity()
/cts/tests/tests/gameframerate/src/
DGameFrameRateTest.java99 Context context = mActivityRule.getActivity(); in setUp()
115 mDisplayManager = mActivityRule.getActivity().getSystemService(DisplayManager.class); in setUp()
156 Window window = mActivityRule.getActivity().getWindow(); in setMode()
181 Display.Mode[] modes = mActivityRule.getActivity().getDisplay().getSupportedModes(); in getModesToTest()
182 Display.Mode currentMode = mActivityRule.getActivity().getDisplay().getMode(); in getModesToTest()
213 GameFrameRateCtsActivity activity = mActivityRule.getActivity(); in testGameModeFrameRateOverride()
237 GameFrameRateCtsActivity activity = mActivityRule.getActivity(); in testGameModeBackpressure()
246 GameFrameRateCtsActivity activity = mActivityRule.getActivity(); in testGameModeChoreographer()
255 GameFrameRateCtsActivity activity = mActivityRule.getActivity(); in testGameModeDisplayGetRefreshRate()
265 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.java165 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_whenKeyguardLocked()
196 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_afterKeyguardLocked()
208 activitySession.getActivity().runOnUiThread(() -> in testStartRearDisplayPresentation_afterKeyguardLocked()
244 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_thenKeyguardLocked()
256 activitySession.getActivity().runOnUiThread(() -> in testStartRearDisplayPresentation_thenKeyguardLocked()
295 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_thenKeyguardLocked_activityFinishes()
307 activitySession.getActivity().runOnUiThread(() -> in testStartRearDisplayPresentation_thenKeyguardLocked_activityFinishes()
318 activitySession.getActivity().finish(); in testStartRearDisplayPresentation_thenKeyguardLocked_activityFinishes()
352 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_persistsAfterDismissingKeyguard()
364 activitySession.getActivity().runOnUiThread(() -> in testStartRearDisplayPresentation_persistsAfterDismissingKeyguard()
[all …]

12345678910>>...24