Home
last modified time | relevance | path

Searched refs:TestContext (Results 1 – 25 of 64) sorted by relevance

123

/aosp12/frameworks/base/libs/hwui/tests/common/
H A DTestContext.cpp63 TestContext::TestContext() { in TestContext() function in android::uirenderer::test::TestContext
71 TestContext::~TestContext() {} in ~TestContext()
73 sp<Surface> TestContext::surface() { in surface()
80 void TestContext::createSurface() { in createSurface()
88 void TestContext::createWindowSurface() { in createWindowSurface()
99 void TestContext::createOffscreenSurface() { in createOffscreenSurface()
111 void TestContext::waitForVsync() { in waitForVsync()
H A DTestContext.h46 class TestContext {
48 TestContext();
49 ~TestContext();
/aosp12/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/
H A DLinkSpanTest.java38 final TestContext context = new TestContext(application); in onClick_shouldCallListenerOnContext()
62 final TestContext context = new TestContext(application); in onClick_contextWrapsOnClickListener_shouldCallWrappedListener()
75 final TestContext context = new TestContext(application); in onClick_shouldClearSelection()
95 private static class TestContext extends ContextWrapper implements LinkSpan.OnClickListener { class in LinkSpanTest
99 TestContext(Context base) { in TestContext() method in LinkSpanTest.TestContext
/aosp12/build/soong/android/
H A Dtesting.go30 func NewTestContext(config Config) *TestContext {
36 ctx := &TestContext{
151 FixtureModifyContext(func(ctx *TestContext) {
161 func NewTestArchContext(config Config) *TestContext {
167 type TestContext struct { struct
181 func (ctx *TestContext) PreArchMutators(f RegisterMutatorFunc) {
190 func (ctx *TestContext) PreDepsMutators(f RegisterMutatorFunc) {
194 func (ctx *TestContext) PostDepsMutators(f RegisterMutatorFunc) {
437 func (ctx *TestContext) Register() {
461 func (ctx *TestContext) RegisterForBazelConversion() {
[all …]
H A Dnamespace_test.go635 func setupTestFromFiles(t *testing.T, bps MockFS) (ctx *TestContext, errs []error) {
637 FixtureModifyContext(func(ctx *TestContext) {
652 return result.TestContext, result.Errs
655 func setupTestExpectErrs(t *testing.T, bps map[string]string) (ctx *TestContext, errs []error) {
664 func setupTest(t *testing.T, bps map[string]string) (ctx *TestContext) {
671 func dependsOn(ctx *TestContext, module TestingModule, possibleDependency TestingModule) bool { argument
682 func numDeps(ctx *TestContext, module TestingModule) int { argument
691 func getModule(ctx *TestContext, moduleName string) TestingModule { argument
695 func findModuleById(ctx *TestContext, id string) (module TestingModule) { argument
H A Dfixture.go224 func FixtureModifyConfigAndContext(mutator func(config Config, ctx *TestContext)) FixturePreparer { argument
231 func FixtureModifyContext(mutator func(ctx *TestContext)) FixturePreparer { argument
238 return FixtureModifyContext(func(ctx *TestContext) { registeringFunc(ctx) })
602 Context() *TestContext
613 *TestContext anonMember
713 ctx *TestContext
729 func (f *fixture) Context() *TestContext {
H A Darch_test.go347 enabledVariants := func(ctx *TestContext, name string) []string {
367 ctx := result.TestContext
430 enabledVariants := func(ctx *TestContext, name string) []string {
460 ctx := result.TestContext
/aosp12/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
H A DCellBroadcastActivityTestCase.java35 protected TestContext mContext;
46 mContext = new TestContext(getInstrumentation().getTargetContext()); in setUp()
101 public static class TestContext extends ContextWrapper { class in CellBroadcastActivityTestCase
103 private static final String TAG = TestContext.class.getSimpleName();
107 public TestContext(Context base) { in TestContext() method in CellBroadcastActivityTestCase.TestContext
/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL/test/
H A Dqcamera_test.h43 class TestContext; variable
101 void setTestCtxInstance(TestContext *instance);
168 TestContext *mInterpr;
276 void setTestCtxInst(TestContext *instance);
289 TestContext *mTestContext;
293 class TestContext
298 TestContext();
299 ~TestContext();
/aosp12/build/soong/rust/
H A Drust_test.go59 func testRust(t *testing.T, bp string) *android.TestContext {
66 return result.TestContext
69 func testRustVndk(t *testing.T, bp string) *android.TestContext {
82 return result.TestContext
87 func testRustCov(t *testing.T, bp string) *android.TestContext {
100 return result.TestContext
/aosp12/packages/services/Telephony/tests/src/com/android/
H A DTelephonyTestBase.java38 protected TestContext mContext;
42 mContext = spy(new TestContext()); in setUp()
109 protected TestContext getTestContext() { in getTestContext()
/aosp12/build/soong/apex/
H A Dbootclasspath_fragment_test.go401 …ensureExactContents(t, result.TestContext, "com.android.art", "android_common_com.android.art_imag…
419 …java.CheckModuleDependencies(t, result.TestContext, "com.android.art", "android_common_com.android…
444 …ensureExactContents(t, result.TestContext, "com.android.art", "android_common_com.android.art_imag…
462 …java.CheckModuleDependencies(t, result.TestContext, "com.android.art", "android_common_com.android…
588 …java.CheckModuleDependencies(t, result.TestContext, "com.android.art", "android_common_com.android…
593 …java.CheckModuleDependencies(t, result.TestContext, "mybootclasspathfragment", "android_common_com…
685 ensureExactContents(t, result.TestContext, "myapex", "android_common_myapex_image", []string{
693 …java.CheckModuleDependencies(t, result.TestContext, "myapex", "android_common_myapex_image", []str…
842 …java.CheckModuleDependencies(t, result.TestContext, "mybootclasspathfragment", "android_common_ape…
1006 …java.CheckModuleDependencies(t, result.TestContext, "mybootclasspathfragment", "android_common_ape…
[all …]
H A Dsystemserver_classpath_fragment_test.go69 ensureExactContents(t, result.TestContext, "myapex", "android_common_myapex_image", []string{
74 …java.CheckModuleDependencies(t, result.TestContext, "myapex", "android_common_myapex_image", []str…
H A Dplatform_bootclasspath_test.go301 …CheckModuleDependencies(t, result.TestContext, "myplatform-bootclasspath", "android_common", []str…
443 …CheckModuleDependencies(t, result.TestContext, "myplatform-bootclasspath", "android_common", []str…
474 func CheckModuleDependencies(t *testing.T, ctx *android.TestContext, name, variant string, expected… argument
/aosp12/frameworks/base/core/tests/coretests/src/android/provider/
H A DTestDocumentsProvider.java50 context = new TestContext(context); in attachInfoForTesting()
105 private static class TestContext extends ContextWrapper { class in TestDocumentsProvider
107 private TestContext(Context context) { in TestContext() method in TestDocumentsProvider.TestContext
/aosp12/build/soong/java/
H A Dtesting.go344 func CheckModuleDependencies(t *testing.T, ctx *android.TestContext, name, variant string, expected… argument
363 pairs := ApexNamePairsFromModules(result.TestContext, platformBootclasspath.configuredModules)
368 func ApexNamePairsFromModules(ctx *android.TestContext, modules []android.Module) []string { argument
376 func apexNamePairFromModule(ctx *android.TestContext, module android.Module) string { argument
394 pairs := ApexNamePairsFromModules(result.TestContext, platformBootclasspath.fragments)
H A Dplatform_bootclasspath_test.go197 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)
206 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)
224 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)
271 entries := android.AndroidMkEntriesForTest(t, result.TestContext, platformBootclasspath)
H A Dsystemserver_classpath_fragment_test.go71 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)
87 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)
/aosp12/system/keymaster/tests/
H A Dattestation_record_test.cpp38 class TestContext : public SoftAttestationContext { class
40 TestContext(KmVersion version) : SoftAttestationContext(version) {} in TestContext() function in keymaster::test::TestContext
75 class KeymintTestContext : public TestContext {
77 KeymintTestContext() : TestContext(KmVersion::KEYMINT_1) {} in KeymintTestContext()
80 class KeymasterTestContext : public TestContext {
82 KeymasterTestContext() : TestContext(KmVersion::KEYMASTER_4_1) {} // Last Keymaster version in KeymasterTestContext()
/aosp12/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
H A DTestContext.java24 public class TestContext extends ContextWrapper { class
30 public TestContext(Context base) { in TestContext() method in TestContext
H A DCarrierDefaultActivityTestCase.java33 protected TestContext mContext;
45 mContext = new TestContext(getInstrumentation().getTargetContext()); in setUp()
/aosp12/build/soong/linkerconfig/
H A Dlinkerconfig_test.go55 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)[0]
83 entries := android.AndroidMkEntriesForTest(t, result.TestContext, p)[0]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/emergency/
H A DEmergencyAffordanceServiceTest.java82 private TestContext mServiceContext;
88 private class TestContext extends BroadcastInterceptingContext { class in EmergencyAffordanceServiceTest
89 TestContext(Context base) { in TestContext() method in EmergencyAffordanceServiceTest.TestContext
124 mServiceContext = new TestContext(context); in setUp()
/aosp12/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
H A DRichTextViewTest.java102 TestContext context = new TestContext(application); in testLegacyContextOnClickListener()
214 public static class TestContext extends ContextWrapper implements LinkSpan.OnClickListener { class in RichTextViewTest
218 public TestContext(Context base) { in TestContext() method in RichTextViewTest.TestContext
/aosp12/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DAbstractDownloadProviderFunctionalTest.java74 protected TestContext mTestContext;
137 static class TestContext extends RenamingDelegatingContext { class in AbstractDownloadProviderFunctionalTest
145 public TestContext(Context realContext) { in TestContext() method in AbstractDownloadProviderFunctionalTest.TestContext
194 mTestContext = new TestContext(realContext); in setUp()

123