Home
last modified time | relevance | path

Searched refs:testContext (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/content/
DContextTest.java97 final Context testContext = in testDisplayIdForTestContext() local
100 assertEquals(testContext.getDisplayNoVerify().getDisplayId(), testContext.getDisplayId()); in testDisplayIdForTestContext()
106 final Context testContext = in testDisplayIdForDefaultDisplayContext() local
108 final DisplayManager dm = testContext.getSystemService(DisplayManager.class); in testDisplayIdForDefaultDisplayContext()
110 testContext.createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY)); in testDisplayIdForDefaultDisplayContext()
119 final Context testContext = in testStartActivityAsUserNullIntentNullUser() local
121 testContext.startActivityAsUser(null, null); in testStartActivityAsUserNullIntentNullUser()
127 final Context testContext = in testStartActivityAsUserNullIntentNonNullUser() local
129 testContext.startActivityAsUser(null, new UserHandle(UserHandle.USER_ALL)); in testStartActivityAsUserNullIntentNonNullUser()
135 final Context testContext = in testStartActivityAsUserNonNullIntentNullUser() local
[all …]
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DInputMethodManagerTest.java45 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/
DTestSceneRunner.cpp107 TestContext testContext; in doRun() local
108 testContext.setRenderOffscreen(opts.renderOffscreen); in doRun()
114 sp<Surface> surface = testContext.surface(); in doRun()
140 testContext.waitForVsync(); in doRun()
157 testContext.waitForVsync(); in doRun()
/frameworks/base/test-runner/src/android/test/
DAndroidTestRunner.java191 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/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/airplane/data/repository/
DAirplaneModeRepositoryImplTest.kt56 private val testContext = StandardTestDispatcher() constant
57 private val scope = TestScope(testContext)
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
DTraceBufferTest.java56 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/
DWindowTracingTest.java87 final Context testContext = getInstrumentation().getContext(); in setUp() local
88 mFile = testContext.getFileStreamPath("tracing_test.dat"); in setUp()
/frameworks/base/libs/hwui/tests/unit/
DSkiaDisplayListTests.cpp232 test::TestContext testContext; in RENDERTHREAD_TEST() local
233 testContext.setRenderOffscreen(true); in RENDERTHREAD_TEST()
234 auto surface = testContext.surface(); in RENDERTHREAD_TEST()
/frameworks/base/tests/Internal/src/com/android/internal/protolog/
DLegacyProtoLogImplTest.java88 final Context testContext = getInstrumentation().getContext(); in setUp() local
89 mFile = testContext.getFileStreamPath("tracing_test.dat"); in setUp()
DPerfettoProtoLogImplTest.java109 final Context testContext = getInstrumentation().getContext(); in setUp() local
110 mFile = testContext.getFileStreamPath("tracing_test.dat"); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java3589 MyMockContext(Context testContext, Context mockContext) { in MyMockContext() argument
3590 this.mTestContext = testContext; in MyMockContext()