Home
last modified time | relevance | path

Searched refs:getContext (Results 1 – 25 of 68) sorted by relevance

123

/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DWindowUtils.java35 InstrumentationRegistry.getContext() in getDisplayBounds()
44 InstrumentationRegistry.getContext() in getCurrentRotation()
92 Resources resources = InstrumentationRegistry.getContext().getResources(); in getStatusBarPosition()
111 Resources resources = InstrumentationRegistry.getContext().getResources(); in getNavigationBarPosition()
136 Resources resources = InstrumentationRegistry.getContext().getResources(); in getNavigationBarHeight()
142 Resources resources = InstrumentationRegistry.getContext().getResources(); in getDockedStackDividerInset()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DHelperAccessor.java53 InstrumentationRegistry.getContext(), in get()
59 InstrumentationRegistry.getContext(), in get()
DAbstractStandardAppHelper.java126 mInstrumentation.getContext().startActivity(getOpenAppIntent()); in open()
168 .getContext() in getOpenAppIntent()
216 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in getVersion()
236 return mInstrumentation.getContext().getResources().getConfiguration().orientation; in getOrientation()
252 Context context = mInstrumentation.getContext(); in hasRegisteredGoogleAccount()
DHelperTest.java149 InstrumentationRegistry.getContext(), in getHelper()
/platform_testing/utils/permissions/src/com/android/permissionutils/
DPermissionInstrumentation.java40 GrantPermissionUtil.dumpMissingPermissions(getContext()); in onCreate()
42 GrantPermissionUtil.grantAllPermissions(getContext()); in onCreate()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DTestWatcher.java70 protected Context getContext() { in getContext() method in TestWatcher
71 return InstrumentationRegistry.getContext(); in getContext()
DQuickstepPressureRule.java54 getContext().startActivity(getContext().getPackageManager().getLaunchIntentForPackage(pkg)); in startActivity()
DDropCachesRule.java51 InstrumentationRegistry.getInstrumentation().getContext().getCacheDir(); in executeDropCaches()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DTestFileUtils.java26 Context context = InstrumentationRegistry.getContext(); in readTestFile()
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/
DDialerJankTests.java85 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp()
88 getInstrumentation().getContext().startActivity(appIntent); in launchApp()
188 getInstrumentation().getContext().getContentResolver() in insertNewContacts()
196 Cursor contactLookup = getInstrumentation().getContext().getContentResolver().query( in doesContactExist()
231 getInstrumentation().getContext().getContentResolver() in addNumToCalLog()
237 Cursor cursor = getInstrumentation().getContext().getContentResolver() in getCallLogCount()
/platform_testing/tests/jank/touch_latency_wear/src/com/android/wearable/touch/janktests/
DTouchLatencyHelper.java75 Intent intent = mInstrumentation.getContext() in launchActivityFromLauncher()
78 mInstrumentation.getContext().startActivity(intent); in launchActivityFromLauncher()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java114 getInstrumentation().getContext().startActivity(intent); in launchIntent()
192 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in getPackageVersion()
212 Account[] accounts = AccountManager.get(getInstrumentation().getContext()).getAccounts(); in getRegisteredEmailAccount()
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/
DSystemAppJankTests.java111 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp()
114 getInstrumentation().getContext().startActivity(appIntent); in launchApp()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/performancelaunch/hermeticapp/
DPerformanceBase.java42 Context context = InstrumentationRegistry.getContext(); in open()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DQuickSettingsHelper.java110 (mInstrumentation.getContext().getContentResolver(), in addQuickSettingTileFromEditMenu()
122 Settings.Secure.putString(mInstrumentation.getContext().getContentResolver(), in modifyListOfQuickSettingsTiles()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchWebView.java43 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp()
DUiBenchTransitionsJankTests.java46 this.getInstrumentation().getContext(), mDevice); in setUp()
DUiBenchRenderingJankTests.java46 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp()
DUiBenchTextJankTests.java47 this.getInstrumentation().getContext(), mDevice); in setUp()
/platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/
DSysAppTestHelper.java176 instrumentation.getContext().sendBroadcast(mIntent); in reloadDemoCards()
184 instrumentation.getContext().startActivity(mIntent); in launchActivity()
/platform_testing/tests/functional/devicehealthtests/src/com/android/devicehealth/tests/
DHealthCheckBase.java39 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in setUp()
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
DOverviewHelper.java57 mPackageManager = inst.getContext().getPackageManager(); in OverviewHelper()
74 mInstrumentation.getContext().startActivity(appIntent); in launchAppWithIntent()
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationSecurityTests.java41 mContext = getInstrumentation().getContext(); in setUp()
/platform_testing/utils/esimutility/src/com/android/test/util/esimutility/
DESimUtilityInstrumentation.java42 …TelephonyManager telephonyManager = (TelephonyManager) getContext().getSystemService(Context.TELEP… in onStart()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DHelperTestUtility.java107 Context context = InstrumentationRegistry.getContext(); in wakeUpAndUnlock()

123