/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 | 47 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionBack() 56 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionHome() 67 getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionRecents() 79 getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionRecents() 90 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionNotifications() 97 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionNotifications() 107 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionQuickSettings() 117 getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionQuickSettings() 127 assertTrue(getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionPowerDialog() 134 getInstrumentation().getUiAutomation().performGlobalAction( in testPerformGlobalActionPowerDialog() [all …]
|
D | AccessibilityWindowQueryTest.java | 91 isDividerWindowPresent(getInstrumentation().getUiAutomation()) ); 99 !isDividerWindowPresent(getInstrumentation().getUiAutomation()) ); 117 final AccessibilityNodeInfo addedContent = getInstrumentation().getUiAutomation() in testFindByText() 130 AccessibilityNodeInfo button = getInstrumentation().getUiAutomation() in testFindByContentDescription() 138 verifyNodesInAppWindow(getInstrumentation().getUiAutomation().getRootInActiveWindow()); in testTraverseWindow() 144 AccessibilityServiceInfo info = getInstrumentation().getUiAutomation().getServiceInfo(); in testNoWindowsAccessIfFlagNotSet() 146 getInstrumentation().getUiAutomation().setServiceInfo(info); in testNoWindowsAccessIfFlagNotSet() 149 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testNoWindowsAccessIfFlagNotSet() 170 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testTraverseAllWindows() 204 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testTraverseWindowFromEvent() [all …]
|
D | AccessibilityActivityTestCase.java | 57 AccessibilityServiceInfo info = getInstrumentation().getUiAutomation().getServiceInfo(); in setUp() 61 getInstrumentation().getUiAutomation().setServiceInfo(info); in setUp() 74 getInstrumentation().getUiAutomation().waitForIdle( in waitForIdle() 83 return getInstrumentation().getContext().getString(resId); in getString() 92 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in startActivityAndWaitForFirstEvent() 97 getInstrumentation().waitForIdleSync(); in startActivityAndWaitForFirstEvent() 103 List<AccessibilityWindowInfo> windows = getInstrumentation().getUiAutomation() in startActivityAndWaitForFirstEvent()
|
D | AccessibilityFocusAndInputFocusSyncTest.java | 50 getInstrumentation().runOnMainSync(() -> { in testFindAccessibilityFocus() 54 final AccessibilityNodeInfo expected = getInstrumentation().getUiAutomation() in testFindAccessibilityFocus() 61 getInstrumentation().getUiAutomation().executeAndWaitForEvent(new Runnable() { in testFindAccessibilityFocus() 75 AccessibilityNodeInfo received = getInstrumentation().getUiAutomation() in testFindAccessibilityFocus() 88 AccessibilityNodeInfo focused = getInstrumentation().getUiAutomation() in testInitialStateNoAccessibilityFocus() 96 final AccessibilityNodeInfo rootLinearLayout = getInstrumentation().getUiAutomation() in testActionAccessibilityFocus() 102 getInstrumentation().getUiAutomation().executeAndWaitForEvent(new Runnable() { in testActionAccessibilityFocus() 126 final AccessibilityNodeInfo rootLinearLayout = getInstrumentation().getUiAutomation() in testActionClearAccessibilityFocus() 131 getInstrumentation().getUiAutomation().executeAndWaitForEvent(new Runnable() { in testActionClearAccessibilityFocus() 150 getInstrumentation().getUiAutomation().executeAndWaitForEvent(new Runnable() { in testActionClearAccessibilityFocus() [all …]
|
D | AccessibilityEndToEndTest.java | 114 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in testTypeViewSelectedAccessibilityEvent() 151 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in testTypeViewClickedAccessibilityEvent() 188 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in testTypeViewLongClickedAccessibilityEvent() 227 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in testTypeViewFocusedAccessibilityEvent() 241 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in testTypeViewTextChangedAccessibilityEvent() 280 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in testTypeViewTextChangedAccessibilityEvent() 316 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in testTypeWindowStateChangedAccessibilityEvent() 352 PackageManager pm = getInstrumentation().getTargetContext().getPackageManager(); in testTypeNotificationStateChangedAccessibilityEvent() 398 getInstrumentation().getUiAutomation().executeAndWaitForEvent( in testTypeNotificationStateChangedAccessibilityEvent() 430 getInstrumentation() in testInterrupt_notifiesService() [all …]
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | DisableContextTest.java | 43 SystemUtil.runShellCommand(getInstrumentation(), in tearDown() 45 SystemUtil.runShellCommand(getInstrumentation(), in tearDown() 58 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 60 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 70 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 72 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 82 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 84 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
|
/cts/tests/app/src/android/app/cts/ |
D | ToolbarActionBarTest.java | 37 getInstrumentation().runOnMainSync( in setUp() 48 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_MENU); in testOptionsMenuKey() 49 getInstrumentation().waitForIdleSync(); in testOptionsMenuKey() 52 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_MENU); in testOptionsMenuKey() 53 getInstrumentation().waitForIdleSync(); in testOptionsMenuKey() 65 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testOpenOptionsMenu() 66 getInstrumentation().waitForIdleSync(); in testOpenOptionsMenu() 69 getInstrumentation().runOnMainSync(() -> mActivity.closeOptionsMenu()); in testOpenOptionsMenu() 70 getInstrumentation().waitForIdleSync(); in testOpenOptionsMenu()
|
D | ApplicationTest.java | 40 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in tearDown() 45 final Instrumentation instrumentation = getInstrumentation(); in testApplication() 62 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in toggleFontScale() 63 getInstrumentation().waitForIdleSync(); in toggleFontScale() 64 SystemUtil.runShellCommand(getInstrumentation(), PUT_FONT_SCALE_CMD); in toggleFontScale() 65 getInstrumentation().waitForIdleSync(); in toggleFontScale() 66 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in toggleFontScale()
|
D | FragmentTransactionTest.java | 55 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithValidFragment() 65 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithValidFragment() 72 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithPrivateFragment() 90 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithPrivateFragment() 96 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithPackagePrivateFragment() 114 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithPackagePrivateFragment() 120 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithAnonymousFragment() 138 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithAnonymousFragment() 144 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithNonStaticFragment() 162 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithNonStaticFragment() [all …]
|
D | ActionBarTest.java | 100 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_MENU); in testOptionsMenuKey() 101 getInstrumentation().waitForIdleSync(); in testOptionsMenuKey() 104 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_MENU); in testOptionsMenuKey() 105 getInstrumentation().waitForIdleSync(); in testOptionsMenuKey() 119 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testOpenOptionsMenu() 120 getInstrumentation().waitForIdleSync(); in testOpenOptionsMenu() 122 getInstrumentation().runOnMainSync(() -> mActivity.closeOptionsMenu()); in testOpenOptionsMenu() 123 getInstrumentation().waitForIdleSync(); in testOpenOptionsMenu()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
D | UsePermissionTest23.java | 47 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in initialize() 71 assertDirReadWriteAccess(getInstrumentation().getContext().getExternalCacheDir()); in testDefault() 72 assertMediaNoAccess(getInstrumentation().getContext().getContentResolver(), false); in testDefault() 79 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testGranted() 81 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() in testGranted() 85 assertDirReadWriteAccess(getInstrumentation().getContext().getExternalCacheDir()); in testGranted() 86 assertMediaReadWriteAccess(getInstrumentation().getContext().getContentResolver()); in testGranted() 94 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testInteractiveGrant() 96 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testInteractiveGrant() 100 assertDirReadWriteAccess(getInstrumentation().getContext().getExternalCacheDir()); in testInteractiveGrant() [all …]
|
/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 | SelfManagedConnectionServiceTest.java | 52 mContext = getInstrumentation().getContext(); in setUp() 226 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, handle, address); in addAndVerifyIncomingCall() 269 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, in testDisallowOutgoingCallWhileOngoingManagedCallCanNotBeHeld() 295 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, handle, address); in placeAndVerifyOutgoingCall() 328 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, in testAudioRoute() 383 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, in testIncomingWhileOngoingWithinLimit() 389 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, in testIncomingWhileOngoingWithinLimit() 406 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, in testSelfManagedConnectionServiceGainedFocus() 424 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, in testSelfManagedConnectionServiceLostFocus() 453 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, in testRingCallLimitForOnePhoneAccount() [all …]
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTest.java | 58 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in setUp() 69 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testWindowContentFrameStats() 72 Intent intent = new Intent(getInstrumentation().getContext(), in testWindowContentFrameStats() 75 activity = getInstrumentation().startActivitySync(intent); in testWindowContentFrameStats() 127 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testWindowContentFrameStatsNoAnimation() 130 Intent intent = new Intent(getInstrumentation().getContext(), in testWindowContentFrameStatsNoAnimation() 133 activity = getInstrumentation().startActivitySync(intent); in testWindowContentFrameStatsNoAnimation() 140 getInstrumentation().waitForIdleSync(); in testWindowContentFrameStatsNoAnimation() 179 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testWindowAnimationFrameStats() 182 Intent firstIntent = new Intent(getInstrumentation().getContext(), in testWindowAnimationFrameStats() [all …]
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityManagerTest.java | 58 getInstrumentation().getContext().getSystemService(Service.ACCESSIBILITY_SERVICE); in setUp() 59 mTargetContext = getInstrumentation().getTargetContext(); in setUp() 62 getInstrumentation().getUiAutomation().destroy(); in setUp() 63 ServiceControlUtils.turnAccessibilityOff(getInstrumentation()); in setUp() 68 ServiceControlUtils.turnAccessibilityOff(getInstrumentation()); in tearDown() 90 ServiceControlUtils.enableSpeakingAndVibratingServices(getInstrumentation()); in testIsTouchExplorationEnabled() 123 ServiceControlUtils.enableSpeakingAndVibratingServices(getInstrumentation()); in testGetEnabledAccessibilityServiceList() 147 ServiceControlUtils.enableSpeakingAndVibratingServices(getInstrumentation()); in testGetEnabledAccessibilityServiceListForType() 165 ServiceControlUtils.enableSpeakingAndVibratingServices(getInstrumentation()); in testGetEnabledAccessibilityServiceListForTypes() 167 ServiceControlUtils.enableMultipleFeedbackTypesService(getInstrumentation()); in testGetEnabledAccessibilityServiceListForTypes() [all …]
|
D | AccessibilityServiceInfoTest.java | 39 ServiceControlUtils.enableSpeakingAndVibratingServices(getInstrumentation()); in setUp() 44 ServiceControlUtils.turnAccessibilityOff(getInstrumentation()); in tearDown() 55 getInstrumentation().getContext().getSystemService(Service.ACCESSIBILITY_SERVICE); in testAccessibilityServiceInfoForEnabledService() 79 getInstrumentation().getContext().getPackageManager())); in testAccessibilityServiceInfoForEnabledService() 81 getInstrumentation().getContext().getPackageManager())); in testAccessibilityServiceInfoForEnabledService()
|
/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/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerConfigActivityTest.java | 43 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testGetShortcutConfigActivityList() 51 setDefaultLauncher(getInstrumentation(), mLauncherContext4); in testGetShortcutConfigActivityList() 62 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCorrectIntentSenderCreated() 68 getInstrumentation().addMonitor((String) null, null, false); in testCorrectIntentSenderCreated() 88 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCreateShortcutResultIntent_defaultLauncher() 97 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCreateShortcutResultIntent_defaultChanges() 100 setDefaultLauncher(getInstrumentation(), mLauncherContext4); in testCreateShortcutResultIntent_defaultChanges() 109 setDefaultLauncher(getInstrumentation(), mLauncherContext4); in testCreateShortcutResultIntent_noDefault()
|
/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/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | ScreenCaptureDisabledTest.java | 53 if (getInstrumentation().getUiAutomation().takeScreenshot() == null) { in testScreenCaptureImpossible() 57 assertNull(getInstrumentation().getUiAutomation().takeScreenshot()); in testScreenCaptureImpossible() 64 if (getInstrumentation().getUiAutomation().takeScreenshot() != null) { in testScreenCapturePossible() 68 assertNotNull(getInstrumentation().getUiAutomation().takeScreenshot()); in testScreenCapturePossible()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTestCase.java | 74 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 75 mActivity = launchActivity(getInstrumentation().getTargetContext().getPackageName(), in setUp() 89 final ContentResolver resolver = getInstrumentation().getContext().getContentResolver(); in getColumn() 100 final InputStream in = getInstrumentation().getContext().getContentResolver() in readFully() 107 getInstrumentation().getContext().getContentResolver() in readTypedFully() 129 OutputStream out = getInstrumentation().getContext().getContentResolver() in writeFully() 139 final PackageManager pm = getInstrumentation().getContext().getPackageManager(); in supportedHardware() 148 final PackageManager pm = getInstrumentation().getContext().getPackageManager(); in supportedHardwareForScopedDirectoryAccess() 171 final String result = runShellCommand(getInstrumentation(), command).trim(); in executeShellCommand()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BatteryConstraintTest.java | 57 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery on"); in setUp() 64 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery off"); in tearDown() 65 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery reset"); in tearDown() 70 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery set ac 1"); in setBatteryState() 72 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery unplug"); in setBatteryState() 74 int seq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState() 83 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState() 89 curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState() 101 boolean curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in verifyChargingState() 107 boolean curNotLow = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in verifyBatteryNotLowState()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTestCase.java | 55 return getInstrumentation().getTargetContext().getPackageManager() in hasAppWidgets() 59 protected Instrumentation getInstrumentation() { in getInstrumentation() method in AppWidgetTestCase 60 return InstrumentationRegistry.getInstrumentation(); in getInstrumentation() 86 assertEquals(getInstrumentation().getTargetContext().getPackageName(), in verifyInstalledProviders() 115 assertEquals(getInstrumentation().getTargetContext().getPackageName(), in verifyInstalledProviders() 139 return getInstrumentation().getTargetContext().getResources() in getNormalizedDimensionResource() 144 return getInstrumentation().getTargetContext().getResources().getInteger(resId); in getIntResource() 149 getInstrumentation().getTargetContext().getPackageName(), in getFirstWidgetComponent() 155 getInstrumentation().getTargetContext().getPackageName(), in getSecondWidgetComponent() 160 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in runShellCommand()
|