/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContextTest.java | 46 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForTestContext() 54 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForDefaultDisplayContext() 66 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNullUser() 73 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNonNullUser() 80 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNullUser() 87 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNonNullUser()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | PackageManagerPerfTest.java | 49 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testCheckPermissionExists() 60 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testCheckPermissionDoesntExist() 71 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testQueryIntentActivities() 82 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetPackageInfo() 93 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetApplicationInfo() 104 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetActivityInfo()
|
D | StrictModeTest.java | 63 final Context context = InstrumentationRegistry.getTargetContext(); in causeVmViolations() 107 final Context context = InstrumentationRegistry.getTargetContext(); in causeCrossProcessThreadViolations()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractE2ETest.java | 58 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); 77 InstrumentationRegistry.getInstrumentation().getTargetContext()); in setUp() 83 InstrumentationRegistry.getInstrumentation().getTargetContext()); in tearDown() 117 Context ctx = inst.getTargetContext(); in typefaceCacheTest() 156 Context ctx = inst.getTargetContext(); in typefaceNotCacheTest() 179 Context ctx = inst.getTargetContext(); in typefaceNullFdTest()
|
/frameworks/base/startop/view_compiler/dex_builder_test/src/android/startop/test/ |
D | ApkLayoutCompilerTest.java | 28 Context context = InstrumentationRegistry.getTargetContext(); in loadDexFile() 45 Context context = InstrumentationRegistry.getTargetContext(); in loadAndInflateLayout1() 54 Context context = InstrumentationRegistry.getTargetContext(); in loadAndInflateLayout2()
|
D | LayoutCompilerTest.java | 40 Context context = InstrumentationRegistry.getTargetContext(); in loadAndInflateLayout1() 49 Context context = InstrumentationRegistry.getTargetContext(); in loadAndInflateLayout2()
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | HeaderRecyclerViewTest.java | 77 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemChangedWithHeader() 97 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemInsertedWithHeader() 117 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemRemovedWithHeader() 137 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemMovedWithHeader()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesDrawableTest.java | 43 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadColorAsDrawable() 51 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadColorAsDrawableFailureThrowsOriginalException() 76 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadNormalDrawableInColorDir()
|
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/ |
D | AbstractAutofillPerfTestCase.java | 45 new SettingsStateKeeperRule(InstrumentationRegistry.getTargetContext(), 100 SettingsHelper.syncSet(InstrumentationRegistry.getTargetContext(), in setService() 110 SettingsHelper.syncDelete(InstrumentationRegistry.getTargetContext(), in resetService()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerVrTest.java | 49 Context context = getInstrumentation().getTargetContext(); in setUp() 50 mPm = (PowerManager) getInstrumentation().getTargetContext().getSystemService( in setUp() 141 Context context = getInstrumentation().getTargetContext(); in setTestVrListener()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | FontFileUtilTest.java | 47 Context ctx = InstrumentationRegistry.getTargetContext(); in getTempFile() 102 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testRegularFonts() 117 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testTtcFont() 133 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testVariationFont()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverySnapshotListenersStorageTest.java | 43 InstrumentationRegistry.getTargetContext(), /*requestCode=*/ 1, in hasListener_isTrueForRegisteredUid() 53 Context context = InstrumentationRegistry.getTargetContext(); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() 74 Context context = InstrumentationRegistry.getTargetContext(); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | ListViewTest.java | 98 return getInstrumentation().getTargetContext().getResources(); in getResources() 103 return getInstrumentation().getTargetContext().getTheme(); in getTheme() 109 return getInstrumentation().getTargetContext().getSystemService(name); in getSystemService()
|
/frameworks/base/apct-tests/perftests/core/src/android/view/ |
D | ViewPerfTest.java | 40 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testSimpleViewInflate() 51 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testTwelveKeyInflate()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestHelper.java | 74 InstrumentationRegistry.getInstrumentation().getTargetContext() 100 InstrumentationRegistry.getInstrumentation().getTargetContext() in setupCameraTest() 135 InstrumentationRegistry.getInstrumentation().getTargetContext() in cleanupTestImages()
|
/frameworks/base/apct-tests/perftests/textclassifier/src/android/view/textclassifier/ |
D | TextClassificationManagerPerfTest.java | 45 Context context = InstrumentationRegistry.getTargetContext(); in testGetTextClassifier_systemTextClassifierDisabled() 61 Context context = InstrumentationRegistry.getTargetContext(); in testGetTextClassifier_systemTextClassifierEnabled()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | TextViewOnMeasurePerfTest.java | 104 final Context context = InstrumentationRegistry.getTargetContext(); in testMeasure_AtMost() 121 final Context context = InstrumentationRegistry.getTargetContext(); in testMeasure_Exactly() 138 final Context context = InstrumentationRegistry.getTargetContext(); in testMeasure_Unspecified()
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | ActionsSuggestionsHelperTest.java | 162 InstrumentationRegistry.getTargetContext(), in testDeduplicateActions() 217 InstrumentationRegistry.getTargetContext(), in testDeduplicateActions_nullComponent() 255 InstrumentationRegistry.getTargetContext(), in createLabeledIntentResult_null() 276 InstrumentationRegistry.getTargetContext(), in createLabeledIntentResult_emptyList() 309 InstrumentationRegistry.getTargetContext(), in createLabeledIntentResult()
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatGatingTest.java | 86 InstrumentationRegistry.getInstrumentation().getTargetContext())).isTrue(); in testDummyGatingPositiveSystemServer() 93 InstrumentationRegistry.getInstrumentation().getTargetContext())).isFalse(); in testDummyGatingNegativeSystemServer()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | ItemLayoutTest.java | 19 import static android.support.test.InstrumentationRegistry.getTargetContext; 75 mContext = new ContextThemeWrapper(getTargetContext(), theme); in ItemLayoutTest()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | AbstractResolverComparatorTest.java | 47 Context context = InstrumentationRegistry.getTargetContext(); in testPinned() 72 Context context = InstrumentationRegistry.getTargetContext(); in testBothPinned()
|
/frameworks/base/tests/Internal/src/android/app/ |
D | WallpaperInfoTest.java | 48 Context context = InstrumentationRegistry.getTargetContext(); in testSupportsAmbientMode() 72 Context context = InstrumentationRegistry.getTargetContext(); in testGetSettingsSliceUri()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotPersisterTestBase.java | 55 static final File FILES_DIR = getInstrumentation().getTargetContext().getFilesDir(); 74 final UserManager um = UserManager.get(getInstrumentation().getTargetContext()); in setUp()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/ |
D | InputMethodPreferenceTest.java | 111 InstrumentationRegistry.getTargetContext(), in createPreference() 120 final Context targetContext = InstrumentationRegistry.getTargetContext(); in createInputMethodInfo()
|
/frameworks/multidex/instrumentation/src/com/android/test/runner/ |
D | MultiDexTestRunner.java | 35 MultiDex.installInstrumentation(getContext(), getTargetContext()); in onCreate()
|