/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContextTest.java | 97 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/ |
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 | 107 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/ |
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/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/airplane/data/repository/ |
D | AirplaneModeRepositoryImplTest.kt | 56 private val testContext = StandardTestDispatcher() constant 57 private val scope = TestScope(testContext)
|
/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 | 232 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/ |
D | LegacyProtoLogImplTest.java | 88 final Context testContext = getInstrumentation().getContext(); in setUp() local 89 mFile = testContext.getFileStreamPath("tracing_test.dat"); in setUp()
|
D | PerfettoProtoLogImplTest.java | 109 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/ |
D | AccountManagerServiceTest.java | 3589 MyMockContext(Context testContext, Context mockContext) { in MyMockContext() argument 3590 this.mTestContext = testContext; in MyMockContext()
|