/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/ |
D | UsePermissionTest22.java | 47 final Context context = getInstrumentation().getContext(); in testCompatDefault() 64 assertMediaReadWriteAccess(getInstrumentation().getContext().getContentResolver()); in testCompatDefault() 75 final Context context = getInstrumentation().getContext(); in testCompatRevoked_part2() 94 assertMediaNoAccess(getInstrumentation().getContext().getContentResolver(), true); in testCompatRevoked_part2() 98 "/Android/data/" + getInstrumentation().getContext().getPackageName())); in testCompatRevoked_part2() 103 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testAllPermissionsGrantedByDefault() 105 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testAllPermissionsGrantedByDefault() 108 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testAllPermissionsGrantedByDefault() 110 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testAllPermissionsGrantedByDefault() 112 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testAllPermissionsGrantedByDefault() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityGlobalActionsTest.java | 43 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionBack() 52 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionHome() 62 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionRecents() 73 getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionRecents() 83 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionNotifications() 90 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionNotifications() 100 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionQuickSettings() 107 getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionQuickSettings() 117 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionPowerDialog() 124 getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionPowerDialog() [all …]
|
D | AccessibilityFocusAndInputFocusSyncTest.java | 46 final AccessibilityNodeInfo expected = getInstrumentation().getUiAutomation() in testFindAccessibilityFocus() 53 getInstrumentation().getUiAutomation().executeAndWaitForEvent(new Runnable() { in testFindAccessibilityFocus() 67 AccessibilityNodeInfo received = getInstrumentation().getUiAutomation() in testFindAccessibilityFocus() 79 AccessibilityNodeInfo focused = getInstrumentation().getUiAutomation() in testInitialStateNoAccessibilityFocus() 87 final AccessibilityNodeInfo rootLinearLayout = getInstrumentation().getUiAutomation() in testActionAccessibilityFocus() 93 getInstrumentation().getUiAutomation().executeAndWaitForEvent(new Runnable() { in testActionAccessibilityFocus() 116 final AccessibilityNodeInfo rootLinearLayout = getInstrumentation().getUiAutomation() in testActionClearAccessibilityFocus() 121 getInstrumentation().getUiAutomation().executeAndWaitForEvent(new Runnable() { in testActionClearAccessibilityFocus() 140 getInstrumentation().getUiAutomation().executeAndWaitForEvent(new Runnable() { in testActionClearAccessibilityFocus() 164 final AccessibilityNodeInfo firstEditText = getInstrumentation().getUiAutomation() in testOnlyOneNodeHasAccessibilityFocus() [all …]
|
D | AccessibilityActivityTestCase.java | 54 AccessibilityServiceInfo info = getInstrumentation().getUiAutomation().getServiceInfo(); in setUp() 57 getInstrumentation().getUiAutomation().setServiceInfo(info); in setUp() 70 getInstrumentation().getUiAutomation().waitForIdle( in waitForIdle() 79 return getInstrumentation().getContext().getString(resId); in getString() 88 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in startActivityAndWaitForFirstEvent() 93 getInstrumentation().waitForIdleSync(); in startActivityAndWaitForFirstEvent()
|
D | AccessibilityWindowQueryTest.java | 66 List<AccessibilityNodeInfo> buttons = getInstrumentation().getUiAutomation() in testFindByText() 74 AccessibilityNodeInfo button = getInstrumentation().getUiAutomation() in testFindByContentDescription() 82 verifyNodesInAppWindow(getInstrumentation().getUiAutomation().getRootInActiveWindow()); in testTraverseWindow() 88 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testNoWindowsAccessIfFlagNotSet() 127 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testTraverseAllWindows() 161 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testTraverseWindowFromEvent() 216 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testInteractWithAppWindow() 303 AccessibilityNodeInfo button = getInstrumentation().getUiAutomation() in testPerformActionFocus() 312 button = getInstrumentation().getUiAutomation().getRootInActiveWindow() in testPerformActionFocus() 320 AccessibilityNodeInfo button = getInstrumentation().getUiAutomation() in testPerformActionClearFocus() [all …]
|
D | AccessibilityTextActionTest.java | 40 mUiAutomation = getInstrumentation().getUiAutomation(); in setUp() 51 getInstrumentation().runOnMainSync(new Runnable() { in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 71 getInstrumentation().waitForIdleSync(); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 79 getInstrumentation().runOnMainSync(new Runnable() { in testEditableTextView_shouldExposeAndRespondToSetTextAction() 103 getInstrumentation().waitForIdleSync(); in testEditableTextView_shouldExposeAndRespondToSetTextAction() 111 getInstrumentation().runOnMainSync(new Runnable() { in testEditText_shouldExposeAndRespondToSetTextAction() 135 getInstrumentation().waitForIdleSync(); in testEditText_shouldExposeAndRespondToSetTextAction()
|
D | AccessibilityTextTraversalTest.java | 50 getInstrumentation().runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 58 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 72 AccessibilityEvent firstExpected = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 102 AccessibilityEvent secondExpected = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 132 AccessibilityEvent thirdExpected = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 166 AccessibilityEvent fourthExpected = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 196 AccessibilityEvent fifthExpected = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 226 AccessibilityEvent sixthExpected = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 265 getInstrumentation().runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityWordOverContentDescription() 273 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityWordOverContentDescription() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
D | UsePermissionTest23.java | 57 assertDirReadWriteAccess(getInstrumentation().getContext().getExternalCacheDir()); in testDefault() 58 assertMediaNoAccess(getInstrumentation().getContext().getContentResolver(), false); in testDefault() 65 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testGranted() 67 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testGranted() 71 assertDirReadWriteAccess(getInstrumentation().getContext().getExternalCacheDir()); in testGranted() 72 assertMediaReadWriteAccess(getInstrumentation().getContext().getContentResolver()); in testGranted() 80 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testInteractiveGrant() 82 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testInteractiveGrant() 86 assertDirReadWriteAccess(getInstrumentation().getContext().getExternalCacheDir()); in testInteractiveGrant() 87 assertMediaNoAccess(getInstrumentation().getContext().getContentResolver(), false); in testInteractiveGrant() [all …]
|
D | BasePermissionsTest.java | 132 protected static Instrumentation getInstrumentation() { in getInstrumentation() method in BasePermissionsTest 133 return InstrumentationRegistry.getInstrumentation(); in getInstrumentation() 148 return UiDevice.getInstance(getInstrumentation()); in getUiDevice() 159 Activity activity = getInstrumentation().startActivitySync(intent); in launchActivity() 160 getInstrumentation().waitForIdleSync(); in launchActivity() 186 getInstrumentation().getTargetContext().getPackageName(), clazz, null); in requestPermissions() 194 getInstrumentation().getUiAutomation().waitForIdle( in requestPermissions() 297 String packageName = getInstrumentation().getContext().getPackageManager() in setPermissionGrantState() 301 Resources resources = getInstrumentation().getContext() in setPermissionGrantState() 328 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in startActivity() [all …]
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTest.java | 57 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in setUp() 67 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testWindowContentFrameStats() 70 Intent intent = new Intent(getInstrumentation().getContext(), in testWindowContentFrameStats() 73 activity = getInstrumentation().startActivitySync(intent); in testWindowContentFrameStats() 125 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testWindowContentFrameStatsNoAnimation() 128 Intent intent = new Intent(getInstrumentation().getContext(), in testWindowContentFrameStatsNoAnimation() 131 activity = getInstrumentation().startActivitySync(intent); in testWindowContentFrameStatsNoAnimation() 138 getInstrumentation().waitForIdleSync(); in testWindowContentFrameStatsNoAnimation() 176 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testWindowAnimationFrameStats() 179 Intent firstIntent = new Intent(getInstrumentation().getContext(), in testWindowAnimationFrameStats() [all …]
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | DisableContextTest.java | 57 SystemUtil.runShellCommand(getInstrumentation(), in tearDown() 59 SystemUtil.runShellCommand(getInstrumentation(), in tearDown() 72 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 74 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 84 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 86 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 96 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 98 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | DefaultDialerOperationsTest.java | 45 mContext = getInstrumentation().getContext(); in setUp() 50 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 53 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp() 55 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp() 69 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 79 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testGetDefaultDialerPackage() 110 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testVoicemailReadWritePermissions() 128 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testSilenceRingerPermissions() 145 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testCancelMissedCallsNotificationPermissions() 167 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testHandlePinMmPermissions() [all …]
|
D | SimCallManagerTest.java | 63 mContext = getInstrumentation().getContext(); in setUp() 68 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 71 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp() 73 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp() 83 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 113 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testGetSimCallManager() 130 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in testGetSimCallManager()
|
D | BasicInCallServiceTest.java | 46 mContext = getInstrumentation().getContext(); in setUp() 47 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 48 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in setUp() 54 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ContentPaneFocusTest.java | 47 getInstrumentation().waitForIdleSync(); in testAccessActionBar() 49 getInstrumentation().waitForIdleSync(); in testAccessActionBar() 82 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testAccessActionBar() 83 getInstrumentation().waitForIdleSync(); in testAccessActionBar() 92 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testAccessActionBar() 93 getInstrumentation().waitForIdleSync(); in testAccessActionBar() 120 getInstrumentation().sendKeySync(controlKey); in sendControlChar() 130 getInstrumentation().sendKeySync(keyEvent); in sendControlKey()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp24/src/com/android/cts/usepermission/ |
D | UsePermissionTest24.java | 34 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testOnlyRequestedPermissionsGranted() 36 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testOnlyRequestedPermissionsGranted() 59 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testOnlyRequestedPermissionsGranted() 73 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testOnlyRequestedPermissionsGranted() 75 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testOnlyRequestedPermissionsGranted()
|
/cts/tests/tests/os/src/android/os/health/cts/ |
D | SystemHealthManagerTest.java | 38 final Context context = getInstrumentation().getTargetContext(); in testTakeMyUidSnapshot() 49 final Context context = getInstrumentation().getTargetContext(); in testTakeUidSnapshotWithMe() 60 final Context context = getInstrumentation().getTargetContext(); in testTakeMyUidSnapshotWithSystem() 78 final Context context = getInstrumentation().getTargetContext(); in testTakeUidSnapshotsWithEmptyArray() 90 final Context context = getInstrumentation().getTargetContext(); in testTakeUidSnapshotsWithMe() 107 final Context context = getInstrumentation().getTargetContext(); in testTakeMyUidSnapshotsWithSystem()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ExpandableListViewBasicTest.java | 57 mListUtil = new ListUtil(mExpandableListView, getInstrumentation()); in setUp() 72 getInstrumentation().waitForIdleSync(); in expandGroup() 74 getInstrumentation().waitForIdleSync(); in expandGroup() 90 getInstrumentation().waitForIdleSync(); in testCollapseGroup() 99 getInstrumentation().waitForIdleSync(); in testExpandedGroupMovement() 105 getInstrumentation().waitForIdleSync(); in testExpandedGroupMovement() 125 getInstrumentation().waitForIdleSync(); in testExpandedGroupMovement()
|
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
D | DefaultDialerOperationsNoPermissionsTest.java | 36 mContext = getInstrumentation().getContext(); in setUp() 41 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 44 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp() 46 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp() 56 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 154 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in verifyForReadPhoneStateOrDefaultDialer()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTestCase.java | 61 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 62 mActivity = launchActivity(getInstrumentation().getTargetContext().getPackageName(), in setUp() 74 final ContentResolver resolver = getInstrumentation().getContext().getContentResolver(); in getColumn() 85 final InputStream in = getInstrumentation().getContext().getContentResolver() in readFully() 92 getInstrumentation().getContext().getContentResolver() in readTypedFully() 114 OutputStream out = getInstrumentation().getContext().getContentResolver() in writeFully() 124 final PackageManager pm = getInstrumentation().getContext().getPackageManager(); in supportedHardware() 148 final String result = runShellCommand(getInstrumentation(), command).trim(); in executeShellCommand()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | RingtoneTest.java | 45 mContext = getInstrumentation().getContext(); in setUp() 57 mContext.getPackageName(), getInstrumentation(), true); in setUp() 65 mContext.getPackageName(), getInstrumentation(), false); in setUp() 75 cmd.append(getInstrumentation().getContext().getPackageName()); in enableAppOps() 77 getInstrumentation().getUiAutomation().executeShellCommand(cmd.toString()); in enableAppOps() 94 mContext.getPackageName(), getInstrumentation(), true); in tearDown() 100 mContext.getPackageName(), getInstrumentation(), false); in tearDown() 109 return getInstrumentation().getContext().getPackageManager() in hasAudioOutput()
|
D | AudioManagerTest.java | 65 mContext = getInstrumentation().getContext(); in setUp() 66 Utils.enableAppOps(mContext.getPackageName(), APPOPS_OP_STR, getInstrumentation()); in setUp() 89 mContext.getPackageName(), getInstrumentation(), true); in testSoundEffects() 94 mContext.getPackageName(), getInstrumentation(), false); in testSoundEffects() 195 mContext.getPackageName(), getInstrumentation(), true); in testVibrateNotification() 253 mContext.getPackageName(), getInstrumentation(), false); in testVibrateNotification() 263 mContext.getPackageName(), getInstrumentation(), true); in testVibrateRinger() 322 mContext.getPackageName(), getInstrumentation(), false); in testVibrateRinger() 329 mContext.getPackageName(), getInstrumentation(), true); in testAccessRingMode() 351 mContext.getPackageName(), getInstrumentation(), false); in testAccessRingMode() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TouchTest.java | 66 getInstrumentation().waitForIdleSync(); in testScrollTo() 75 getInstrumentation().waitForIdleSync(); in testScrollTo() 85 getInstrumentation().waitForIdleSync(); in testScrollTo() 95 getInstrumentation().waitForIdleSync(); in testScrollTo() 104 getInstrumentation().waitForIdleSync(); in testScrollTo() 136 getInstrumentation().waitForIdleSync(); in testOnTouchEvent() 154 getInstrumentation().waitForIdleSync(); in testOnTouchEvent() 168 getInstrumentation().waitForIdleSync(); in testOnTouchEvent() 182 getInstrumentation().waitForIdleSync(); in testOnTouchEvent()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 88 System.setProperty("dexmaker.dexcache", getInstrumentation() in setUp() 100 return getInstrumentation().getTargetContext().getPackageManager() in hasAppWidgets() 135 UserManager userManager = (UserManager) getInstrumentation() in testGetAppInstalledProvidersForCurrentUserNewAllProfiles() 159 AppWidgetHost host = new AppWidgetHost(getInstrumentation().getTargetContext(), 0); in testBindAppWidget() 212 AppWidgetHost host = spy(new AppWidgetHost(getInstrumentation().getTargetContext(), 0)); in testAppWidgetProviderCallbacks() 327 getInstrumentation().getTargetContext(), 0)); in testTwoAppWidgetProviderCallbacks() 410 getInstrumentation().getTargetContext(), 0); in testGetAppWidgetIds() 461 getInstrumentation().getTargetContext(), 0); in testGetAppWidgetInfo() 488 Context context = getInstrumentation().getTargetContext(); in testGetAppWidgetInfo() 517 getInstrumentation().getTargetContext(), 0); in testGetAppWidgetOptions() [all …]
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityServiceInfoTest.java | 39 ServiceControlUtils.enableSpeakingAndVibratingServices(getInstrumentation()); in setUp() 44 ServiceControlUtils.turnAccessibilityOff(getInstrumentation()); in tearDown() 55 getInstrumentation().getContext().getSystemService(Service.ACCESSIBILITY_SERVICE); in testAccessibilityServiceInfoForEnabledService() 81 getInstrumentation().getContext().getPackageManager())); in testAccessibilityServiceInfoForEnabledService()
|