/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerMaxCountTest.java | 105 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/tv/src/android/media/tv/cts/ |
D | TvInputManagerTest.java | 97 mActivity = getActivity(); in setUp() 123 if (!Utils.hasTvInputFramework(getActivity())) { in tearDown() 208 if (!Utils.hasTvInputFramework(getActivity())) { in testGetCurrentTunedInfos() 227 if (!Utils.hasTvInputFramework(getActivity())) { in testGetInputState() 234 if (!Utils.hasTvInputFramework(getActivity())) { in testGetTvInputInfo() 241 TvInputInfoTest.compareTvInputInfos(getActivity(), expected, actual)); in testGetTvInputInfo() 245 if (!Utils.hasTvInputFramework(getActivity())) { in testGetTvInputList() 260 if (!Utils.hasTvInputFramework(getActivity())) { in testIsParentalControlsEnabled() 271 if (!Utils.hasTvInputFramework(getActivity())) { in testIsRatingBlocked() 282 if (!Utils.hasTvInputFramework(getActivity())) { in testRegisterUnregisterCallback() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PrimaryUserTest.java | 52 mPackageManager = getActivity().getPackageManager(); in setUp() 58 getActivity().startActivity(PrimaryUserActivity.ACTION); in testAddCrossProfileIntentFilter_primary() 59 assertTrue(getActivity().checkActivityStarted()); in testAddCrossProfileIntentFilter_primary() 73 getActivity().startActivity(ManagedProfileActivity.ACTION); in testAddCrossProfileIntentFilter_managed() 74 assertTrue(getActivity().checkActivityStarted()); in testAddCrossProfileIntentFilter_managed()
|
D | CrossProfileIntentFilterTest.java | 56 mPackageManager = getActivity().getPackageManager(); in setUp() 58 getActivity().getSystemService(Context.DEVICE_POLICY_SERVICE); in setUp() 82 getActivity().startActivity(ManagedProfileActivity.ACTION); in testClearCrossProfileIntentFilters() 83 assertTrue(getActivity().checkActivityStarted()); in testClearCrossProfileIntentFilters() 100 getActivity().startActivity(PrimaryUserActivity.ACTION); in testAddCrossProfileIntentFilter_primary() 101 assertTrue(getActivity().checkActivityStarted()); in testAddCrossProfileIntentFilter_primary() 137 getActivity().startActivity(ManagedProfileActivity.ACTION); in testAddCrossProfileIntentFilter_work() 138 assertTrue(getActivity().checkActivityStarted()); in testAddCrossProfileIntentFilter_work()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentViewTests.java | 52 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 …]
|
D | FragmentExecuteTests.java | 53 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/tests/tests/print/src/android/print/cts/ |
D | PrintJobTest.java | 255 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 …]
|
D | InterfaceForAppsTest.java | 214 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/tests/webkit/src/android/webkit/cts/ |
D | WebViewDataDirTest.java | 55 try (TestProcessClient process = TestProcessClient.createProcessA(getActivity())) { in testDisableThenUse() 65 assertNotNull(getActivity().getWebView()); in testUseThenDisable() 77 assertNotNull(getActivity().getWebView()); in testUseThenChangeDir() 99 try (TestProcessClient process = TestProcessClient.createProcessA(getActivity())) { in testInvalidDir() 119 assertNotNull(getActivity().getWebView()); in testSameDirTwoProcesses() 121 try (TestProcessClient processA = TestProcessClient.createProcessA(getActivity())) { in testSameDirTwoProcesses() 147 try (TestProcessClient processA = TestProcessClient.createProcessA(getActivity())) { in testCookieJarsSeparate()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityActionModeTest.java | 55 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/ |
D | CloseOnOutsideTests.java | 52 mTestActivity.getActivity().setFinishOnTouchOutside(true); in finishTrue() 58 mTestActivity.getActivity().setFinishOnTouchOutside(false); in finishFalse() 65 mTestActivity.getActivity().getResources().getDisplayMetrics(); in touchAndAssert() 72 instrumentation.runOnMainSync(() -> assertFalse(mTestActivity.getActivity().isFinishing())); in touchAndAssert() 77 () -> assertEquals(shouldBeFinishing, mTestActivity.getActivity().isFinishing())); in touchAndAssert()
|
D | MultiDisplaySystemDecorationTests.java | 405 imeTestActivitySession.getActivity()::showSoftInput); in testImeWindowCanSwitchToDifferentDisplays() 408 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), in testImeWindowCanSwitchToDifferentDisplays() 421 imeTestActivitySession2.getActivity()::showSoftInput); in testImeWindowCanSwitchToDifferentDisplays() 424 imeTestActivitySession2.getActivity().mEditText.getPrivateImeOptions()), in testImeWindowCanSwitchToDifferentDisplays() 451 imeTestActivitySession.getActivity(); in testImeApiForBug118341760() 501 imeTestActivitySession.getActivity()::showSoftInput); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 504 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 511 imeTestActivitySession2.getActivity()::showSoftInput); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 514 imeTestActivitySession2.getActivity().mEditText.getPrivateImeOptions()), in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 520 imeTestActivitySession.getActivity()::showSoftInput); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/ |
D | ComplexMovementFragment.java | 77 GLSurfaceView surfaceView = new GLSurfaceView(getActivity()); in onActivityCreated() 79 mRenderer = new ComplexMovementRenderer(getActivity(), mActivity.getRings()); in onActivityCreated() 93 …getActivity().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 …]
|
D | RobustnessFragment.java | 79 GLSurfaceView surfaceView = new GLSurfaceView(getActivity()); in onActivityCreated() 81 mRenderer = new RobustnessRenderer(getActivity()); in onActivityCreated() 95 …getActivity().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()
|
D | AccuracyFragment.java | 89 GLSurfaceView surfaceView = new GLSurfaceView(getActivity()); in onActivityCreated() 91 mRenderer = new AccuracyRenderer(getActivity()); in onActivityCreated() 105 …getActivity().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/view/src/android/view/cts/ |
D | TextureViewStressTest.java | 36 if (!getActivity().waitForCompletion()) { in testTextureViewStress48Hz() 44 if (!getActivity().waitForCompletion()) { in testTextureViewStress60Hz() 52 if (!getActivity().waitForCompletion()) { in testTextureViewStress70Hz() 60 if (!getActivity().waitForCompletion()) { in testTextureViewStress200Hz()
|
D | View_InitialFocusTest.java | 52 Activity activity = mActivityRule.getActivity(); in setup() 61 final Activity activity = mActivityRule.getActivity(); in getInitialAndFirstFocus() 74 Activity activity = mActivityRule.getActivity(); in testNoInitialFocus() 82 Activity activity = mActivityRule.getActivity(); in testDefaultFocus() 90 Activity activity = mActivityRule.getActivity(); in testInitialFocus() 98 Activity activity = mActivityRule.getActivity(); in testClearFocus()
|
/cts/hostsidetests/graphics/framerateoverride/app/src/com/android/cts/graphics/framerateoverride/ |
D | FrameRateOverrideTest.java | 81 mDisplayManager = mActivityRule.getActivity().getSystemService(DisplayManager.class); in setUp() 116 Window window = mActivityRule.getActivity().getWindow(); in setMode() 135 Display.Mode[] modes = mActivityRule.getActivity().getDisplay().getSupportedModes(); in getModesToTest() 158 FrameRateOverrideTestActivity activity = mActivityRule.getActivity(); in testFrameRateOverride() 173 FrameRateOverrideTestActivity activity = mActivityRule.getActivity(); in testBackpressure() 185 FrameRateOverrideTestActivity activity = mActivityRule.getActivity(); in testChoreographer() 200 FrameRateOverrideTestActivity activity = mActivityRule.getActivity(); in testDisplayGetRefreshRate() 212 FrameRateOverrideTestActivity activity = mActivityRule.getActivity(); in testDisplayModeGetRefreshRateDisplayModeReturnsPhysicalRefreshRateEnabled() 226 FrameRateOverrideTestActivity activity = mActivityRule.getActivity(); in testDisplayModeGetRefreshRateDisplayModeReturnsPhysicalRefreshRateDisabled()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | DeferSyncTest.java | 85 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/sample/src/android/sample/cts/ |
D | SampleJUnit4DeviceTest.java | 55 mActivityRule.getActivity().savePreference(KEY, VALUE); in shouldSaveSharedPreferences() 57 mActivityRule.getActivity().getPreference(KEY)); in shouldSaveSharedPreferences() 60 mActivityRule.getActivity().clearPreferences(); in shouldSaveSharedPreferences() 62 mActivityRule.getActivity().getPreference(KEY)); in shouldSaveSharedPreferences()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | NativeColorBufferTest.java | 36 mActivity = getActivity(); in setUp() 45 mActivity = getActivity(); in test_RGBA_1001() 64 mActivity = getActivity(); in test_RGBA_1101() 83 mActivity = getActivity(); in test_RGBA_1111() 102 mActivity = getActivity(); in test_RGBA_0101() 121 mActivity = getActivity(); in test_RGBA_0011() 140 mActivity = getActivity(); in test_RGBA_0000() 159 mActivity = getActivity(); in test_RGBA_rand_val_one()
|
D | ColorBufferTest.java | 35 mActivity = getActivity(); in setUp() 50 mActivity = getActivity(); in test_RGBA_1001() 69 mActivity = getActivity(); in test_RGBA_1101() 88 mActivity = getActivity(); in test_RGBA_1111() 107 mActivity = getActivity(); in test_RGBA_0101() 126 mActivity = getActivity(); in test_RGBA_0011() 145 mActivity = getActivity(); in test_RGBA_0000() 164 mActivity = getActivity(); in test_RGBA_rand_val_one()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | SetFrameRateTest.java | 86 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testExactFrameRateMatch_Seamless() 92 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testExactFrameRateMatch_NonSeamless() 98 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testFixedSource_Seamless() 104 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testFixedSource_NonSeamless() 110 FrameRateCtsActivity activity = mActivityRule.getActivity(); in testInvalidParams()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ApplyOverrideConfigurationTest.java | 54 if (!isRotationSupported(getActivity())) { in testOverriddenConfigurationIsPassedIntoCallback() 57 final Configuration config = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback() 63 getActivity().watchForSingleOnConfigurationChangedCallback(); in testOverriddenConfigurationIsPassedIntoCallback() 70 final Configuration newConfig = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 98 Bitmap bitmap = takeStatusBarScreenshot(mActivityRule.getActivity()); in testLightStatusBarIcons() 110 final LightBarActivity activity = mActivityRule.getActivity(); in testAppearanceCanOverwriteLegacyFlags() 125 Bitmap bitmap = takeStatusBarScreenshot(mActivityRule.getActivity()); in testAppearanceCanOverwriteLegacyFlags() 137 final LightBarActivity activity = mActivityRule.getActivity(); in testLegacyFlagsCannotOverwriteAppearance() 152 Bitmap bitmap = takeStatusBarScreenshot(mActivityRule.getActivity()); in testLegacyFlagsCannotOverwriteAppearance() 166 int x = mActivityRule.getActivity().getWidth() / 2; in testLightNavigationBar() 167 int y = mActivityRule.getActivity().getBottom() + 10; in testLightNavigationBar() 171 LightBarActivity activity = mActivityRule.getActivity(); in testLightNavigationBar() 182 mActivityRule.getActivity().getWindow().setNavigationBarColor(Color.RED); in testNavigationBarDivider() 183 mActivityRule.getActivity().getWindow().setNavigationBarDividerColor(Color.WHITE); in testNavigationBarDivider() [all …]
|