/frameworks/base/services/tests/servicestests/src/com/android/server/companion/datatransfer/contextsync/ |
D | CrossDeviceCallTest.java | 49 InstrumentationRegistry.getTargetContext(), in updateCallDetails_uninitialized() 59 InstrumentationRegistry.getTargetContext(), in updateCallDetails_ringing() 74 InstrumentationRegistry.getTargetContext(), in updateCallDetails_ongoing() 89 InstrumentationRegistry.getTargetContext(), in updateCallDetails_holding() 103 InstrumentationRegistry.getTargetContext(), in updateCallDetails_cannotHold() 117 InstrumentationRegistry.getTargetContext(), in updateCallDetails_cannotMute() 131 InstrumentationRegistry.getTargetContext(), in updateCallDetails_transitionRingingToOngoing() 154 InstrumentationRegistry.getTargetContext(), in updateCallDetails_transitionDialingToOngoing() 175 InstrumentationRegistry.getTargetContext(), in updateSilencedIfRinging_ringing_silenced() 190 InstrumentationRegistry.getTargetContext(), in updateSilencedIfRinging_notRinging_notSilenced() [all …]
|
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/ |
D | PackageManagerPerfTest.java | 117 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetAppMetadata() 135 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testCheckPermissionExists() 154 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testCheckPermissionDoesntExist() 173 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testQueryIntentActivities() 192 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetPackageInfo() 210 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetApplicationInfo() 228 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetActivityInfo() 246 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetInstalledPackages()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContextTest.java | 73 assertNotNull(InstrumentationRegistry.getInstrumentation().getTargetContext()); in testInstrumentationTargetContext() 98 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForTestContext() 107 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForDefaultDisplayContext() 120 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNullUser() 128 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNonNullUser() 136 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNullUser() 144 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNonNullUser() 271 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDeviceIdForTestContext()
|
/frameworks/base/apct-tests/perftests/core/src/android/content/pm/ |
D | PackageManagerBenchmark.java | 38 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in createUserContextBenchmark() 49 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in getResourcesForApplication_byStarAsUser() 61 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in getResourcesApplication_byCreateContextAsUser()
|
/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/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverySnapshotListenersStorageTest.java | 43 InstrumentationRegistry.getTargetContext(), /*requestCode=*/ 1, in hasListener_isTrueForRegisteredUid() 45 .setPackage(InstrumentationRegistry.getTargetContext().getPackageName()), in hasListener_isTrueForRegisteredUid() 55 Context context = InstrumentationRegistry.getTargetContext(); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() 78 Context context = InstrumentationRegistry.getTargetContext(); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
|
/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/services/tests/servicestests/src/com/android/server/accessibility/ |
D | SystemActionPerformerTest.java | 78 InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION1) 79 .setPackage(InstrumentationRegistry.getTargetContext().getPackageName()), 87 InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION2) 88 .setPackage(InstrumentationRegistry.getTargetContext().getPackageName()), 236 br.register(InstrumentationRegistry.getTargetContext()); in testPerformSystemActionNewAction() 243 br.unregister(InstrumentationRegistry.getTargetContext()); in testPerformSystemActionNewAction() 256 br.register(InstrumentationRegistry.getTargetContext()); in testPerformSystemActionOverrideLegacyActionUsingLegacyActionId() 263 br.unregister(InstrumentationRegistry.getTargetContext()); in testPerformSystemActionOverrideLegacyActionUsingLegacyActionId()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesDrawableTest.java | 45 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadColorAsDrawable() 53 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadColorAsDrawableFailureThrowsOriginalException() 78 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadNormalDrawableInColorDir()
|
/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/view/ |
D | ScrollCaptureSearchResultsTest.java | 19 import static androidx.test.InstrumentationRegistry.getTargetContext; 149 ViewGroup targetView1 = new FakeView(getTargetContext(), 0, 0, 60, 60, 1); in testRanking() 156 ViewGroup targetView2 = new FakeView(getTargetContext(), 0, 0, 60, 60, 2); in testRanking() 163 ViewGroup targetView3 = new FakeView(getTargetContext(), 0, 0, 60, 60, 3); in testRanking() 170 ViewGroup targetView4 = new FakeView(getTargetContext(), 0, 0, 60, 60, 4); in testRanking() 177 ViewGroup targetView5 = new FakeView(getTargetContext(), 0, 0, 60, 60, 5); in testRanking() 185 ViewGroup targetView6 = new FakeView(getTargetContext(), 0, 0, 60, 60, 6); in testRanking() 307 View mockView = new View(getTargetContext()); in createTarget()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | AbstractResolverComparatorTest.java | 52 Context context = InstrumentationRegistry.getTargetContext(); in testPositionFixed() 69 Context context = InstrumentationRegistry.getTargetContext(); in testPinned() 94 Context context = InstrumentationRegistry.getTargetContext(); in testBothPinned()
|
D | NoOpResolverComparatorTest.java | 42 .getInstrumentation().getTargetContext().getUser(); 58 InstrumentationRegistry.getInstrumentation().getTargetContext(), in setUp()
|
/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/core/tests/coretests/src/android/graphics/ |
D | FontFileUtilTest.java | 51 Context ctx = InstrumentationRegistry.getTargetContext(); in getTempFile() 106 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testRegularFonts() 121 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testTtcFont() 137 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testVariationFont()
|
/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/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/apct-tests/perftests/textclassifier/src/android/view/textclassifier/ |
D | TextClassificationManagerPerfTest.java | 73 Context context = InstrumentationRegistry.getTargetContext(); in testGetTextClassifier_systemTextClassifierDisabled() 85 Context context = InstrumentationRegistry.getTargetContext(); in testGetTextClassifier_systemTextClassifierEnabled()
|
/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/services/tests/servicestests/src/com/android/server/companion/utils/ |
D | PackageUtilsTest.java | 60 InstrumentationRegistry.getInstrumentation().getTargetContext())); in isAllowlisted_true() 84 InstrumentationRegistry.getInstrumentation().getTargetContext())); in isAllowlisted_package_disallowed() 108 InstrumentationRegistry.getInstrumentation().getTargetContext())); in isAllowlisted_signature_mismatch()
|
/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/multidex/instrumentation/src/com/android/test/runner/ |
D | MultiDexTestRunner.java | 35 MultiDex.installInstrumentation(getContext(), getTargetContext()); in onCreate()
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/tests/ |
D | MultiDexAndroidJUnitRunner.java | 28 MultiDex.installInstrumentation(getContext(), getTargetContext()); in onCreate()
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/src/com/android/multidexlegacytestapp/test2/ |
D | MultiDexAndroidJUnitRunner.java | 12 MultiDex.installInstrumentation(getContext(), getTargetContext()); in onCreate()
|