Searched refs:testContext (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContextTest.java | 72 final Context testContext = in testDisplayIdForTestContext() local 75 assertEquals(testContext.getDisplayNoVerify().getDisplayId(), testContext.getDisplayId()); in testDisplayIdForTestContext() 80 final Context testContext = in testDisplayIdForDefaultDisplayContext() local 82 final DisplayManager dm = testContext.getSystemService(DisplayManager.class); in testDisplayIdForDefaultDisplayContext() 84 testContext.createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY)); in testDisplayIdForDefaultDisplayContext() 92 final Context testContext = in testStartActivityAsUserNullIntentNullUser() local 94 testContext.startActivityAsUser(null, null); in testStartActivityAsUserNullIntentNullUser() 99 final Context testContext = in testStartActivityAsUserNullIntentNonNullUser() local 101 testContext.startActivityAsUser(null, new UserHandle(UserHandle.USER_ALL)); in testStartActivityAsUserNullIntentNonNullUser() 106 final Context testContext = in testStartActivityAsUserNonNullIntentNullUser() local [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
D | InputMethodManagerTest.java | 45 final Context testContext = InstrumentationRegistry.getInstrumentation() in testPrivateApiGetInstance() local 48 final DisplayManager dm = testContext.getSystemService(DisplayManager.class); in testPrivateApiGetInstance() 50 testContext.createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY)); in testPrivateApiGetInstance()
|
/frameworks/base/libs/hwui/tests/macrobench/ |
D | TestSceneRunner.cpp | 113 TestContext testContext; in run() local 114 testContext.setRenderOffscreen(opts.renderOffscreen); in run() 120 sp<Surface> surface = testContext.surface(); in run() 146 testContext.waitForVsync(); in run() 164 testContext.waitForVsync(); in run()
|
/frameworks/base/test-runner/src/android/test/ |
D | AndroidTestRunner.java | 191 Context testContext = mInstrumentation == null ? mContext : mInstrumentation.getContext(); in runTest() local 193 setContextIfAndroidTestCase(testCase, mContext, testContext); in runTest() 199 private void setContextIfAndroidTestCase(Test test, Context context, Context testContext) { in setContextIfAndroidTestCase() argument 202 ((AndroidTestCase) test).setTestContext(testContext); in setContextIfAndroidTestCase()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsUpgradeTest.java | 146 Context testContext = spy(mContext); in testUpgradeFromNoVersion() local 149 doNothing().when(testContext).enforcePermission(anyString(), anyInt(), anyInt(), in testUpgradeFromNoVersion() 153 when(testContext.getPackageManager()).thenReturn(testPM); in testUpgradeFromNoVersion() 159 new AppOpsService(mAppOpsFile, mHandler, testContext)); // trigger upgrade in testUpgradeFromNoVersion()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/ |
D | TraceBufferTest.java | 56 final Context testContext = getInstrumentation().getContext(); in setUp() local 57 mFile = testContext.getFileStreamPath("tracing_test.dat"); in setUp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowTracingTest.java | 87 final Context testContext = getInstrumentation().getContext(); in setUp() local 88 mFile = testContext.getFileStreamPath("tracing_test.dat"); in setUp()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaDisplayListTests.cpp | 208 test::TestContext testContext; in RENDERTHREAD_SKIA_PIPELINE_TEST() local 209 testContext.setRenderOffscreen(true); in RENDERTHREAD_SKIA_PIPELINE_TEST() 210 auto surface = testContext.surface(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/protolog/ |
D | ProtoLogImplTest.java | 85 final Context testContext = getInstrumentation().getContext(); in setUp() local 86 mFile = testContext.getFileStreamPath("tracing_test.dat"); in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 3211 MyMockContext(Context testContext, Context mockContext) { in MyMockContext() argument 3212 this.mTestContext = testContext; in MyMockContext()
|