xref: /aosp_15_r20/frameworks/base/services/tests/servicestests/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1//########################################################################
2// Build FrameworksServicesTests package
3//########################################################################
4
5java_defaults {
6    name: "FrameworksServicesTests-jni-defaults",
7    jni_libs: [
8        "libservicestestjni",
9    ],
10}
11
12package {
13    // See: http://go/android-license-faq
14    // A large-scale-change added 'default_applicable_licenses' to import
15    // all of the 'license_kinds' from "frameworks_base_license"
16    // to get the below license kinds:
17    //   SPDX-license-identifier-Apache-2.0
18    default_applicable_licenses: ["frameworks_base_license"],
19}
20
21android_test {
22    name: "FrameworksServicesTests",
23    defaults: [
24        "FrameworksServicesTests-jni-defaults",
25    ],
26
27    // Include all test java files.
28    srcs: [
29        "src/**/*.java",
30        "src/**/*.kt",
31
32        "test-apps/SuspendTestApp/src/**/*.java",
33        "test-apps/DisplayManagerTestApp/src/**/*.java",
34    ],
35
36    kotlincflags: [
37        "-Werror",
38    ],
39    static_libs: [
40        "a11ychecker",
41        "aatf",
42        "accessibility_protos_lite",
43        "cts-input-lib",
44        "frameworks-base-testutils",
45        "services.accessibility",
46        "services.appwidget",
47        "services.autofill",
48        "services.contentcapture",
49        "services.backup",
50        "services.companion",
51        "services.core",
52        "services.credentials",
53        "services.devicepolicy",
54        "services.flags",
55        "com.android.server.flags.services-aconfig-java",
56        "services.net",
57        "services.people",
58        "services.supervision",
59        "services.usage",
60        "service-permission.stubs.system_server",
61        "guava",
62        "guava-android-testlib",
63        "androidx.test.core",
64        "androidx.test.ext.truth",
65        "androidx.test.runner",
66        "androidx.test.rules",
67        "androidx.test.ext.junit",
68        "cts-wm-util",
69        "platform-compat-test-rules",
70        "platform-parametric-runner-lib",
71        "mockito-target-minus-junit4",
72        "mockito-kotlin2",
73        "platform-test-annotations",
74        "ShortcutManagerTestUtils",
75        "truth",
76        "testables",
77        "androidx.test.uiautomator_uiautomator",
78        "platformprotosnano",
79        "framework-protos",
80        "hamcrest-library",
81        "servicestests-utils",
82        "service-jobscheduler",
83        // TODO: remove once Android migrates to JUnit 4.12,
84        // which provides assertThrows
85        "testng",
86        "flag-junit",
87        "junit",
88        "junit-params",
89        "ActivityContext",
90        "coretests-aidl",
91        "securebox",
92        "flag-junit",
93        "ravenwood-junit",
94        "net-tests-utils",
95        "net_flags_lib",
96        "CtsVirtualDeviceCommonLib",
97        "com_android_server_accessibility_flags_lib",
98        "locksettings_flags_lib",
99    ] + select(soong_config_variable("ANDROID", "release_crashrecovery_module"), {
100        "true": ["service-crashrecovery-pre-jarjar"],
101        default: [],
102    }),
103
104    libs: [
105        "android.hardware.power-V1-java",
106        "android.hardware.tv.cec-V1.0-java",
107        "android.hardware.vibrator-V3-java",
108        "android.hidl.manager-V1.0-java",
109        "android.test.mock.stubs.system",
110        "android.test.base.stubs.system",
111        "android.test.runner.stubs.system",
112    ],
113
114    platform_apis: true,
115
116    test_suites: [
117        "device-tests",
118        "automotive-tests",
119    ],
120
121    certificate: "platform",
122
123    // These are not normally accessible from apps so they must be explicitly included.
124    jni_libs: [
125        "libbase",
126        "libbinder",
127        "libc++",
128        "libcutils",
129        "liblog",
130        "liblzma",
131        "libnativehelper",
132        "libpsi",
133        "libui",
134        "libunwindstack",
135        "libutils",
136        "netd_aidl_interface-V5-cpp",
137    ],
138
139    dxflags: ["--multi-dex"],
140
141    optimize: {
142        enabled: false,
143    },
144
145    data: [
146        ":DisplayManagerTestApp",
147        ":SimpleServiceTestApp1",
148        ":SimpleServiceTestApp2",
149        ":SimpleServiceTestApp3",
150        ":SuspendTestApp",
151        ":MediaButtonReceiverHolderTestHelperApp",
152        "data/broken_shortcut.xml",
153    ],
154
155    java_resources: [
156        ":com.android.apex.cts.shim.v1_prebuilt",
157        ":com.android.apex.cts.shim.v2_different_certificate_prebuilt",
158        ":com.android.apex.cts.shim.v2_unsigned_apk_container_prebuilt",
159    ],
160    resource_zips: [":FrameworksServicesTests_apks_as_resources"],
161}
162
163java_defaults {
164    name: "FrameworksServicesTestsRavenwood-defaults",
165    libs: [
166        "android.test.mock.stubs.system",
167    ],
168    static_libs: [
169        "androidx.annotation_annotation",
170        "androidx.test.rules",
171        "flag-junit",
172    ],
173    auto_gen_config: true,
174}
175
176// Unit tests for UriGrantManager, running on ravenwood.
177// Note UriGrantManager does not support Ravenwood (yet). We're just running the original
178// unit tests as is on Ravenwood. So here, we use the original "services.core", because
179// "services.core.ravenwood" doesn't have the target code.
180// (Compare to FrameworksServicesTestsRavenwood_Compat, which does support Ravenwood.)
181android_ravenwood_test {
182    name: "FrameworksServicesTestsRavenwood_Uri",
183    defaults: ["FrameworksServicesTestsRavenwood-defaults"],
184    team: "trendy_team_ravenwood",
185    static_libs: [
186        "services.core",
187    ],
188    srcs: [
189        "src/com/android/server/uri/**/*.java",
190    ],
191}
192
193// Unit tests for compat-framework.
194// Compat-framework does support Ravenwood, and it uses the ravenwood anottations,
195// so we link "services.core.ravenwood".
196android_ravenwood_test {
197    name: "FrameworksServicesTestsRavenwood_Compat",
198    defaults: ["FrameworksServicesTestsRavenwood-defaults"],
199    team: "trendy_team_ravenwood",
200    static_libs: [
201        "services.core.ravenwood",
202    ],
203    srcs: [
204        "src/com/android/server/compat/**/*.java",
205    ],
206}
207
208java_library {
209    name: "servicestests-core-utils",
210    srcs: [
211        "src/com/android/server/am/DeviceConfigSession.java",
212        "src/com/android/server/pm/PackageSettingBuilder.java",
213        "src/com/android/server/pm/parsing/TestPackageParser2.kt",
214    ],
215    static_libs: [
216        "services.core",
217        "compatibility-device-util-axt",
218    ],
219}
220
221java_library {
222    name: "servicestests-dpm-utils",
223    srcs: [
224        "src/com/android/server/devicepolicy/DevicePolicyManagerServiceTestable.java",
225        "src/com/android/server/devicepolicy/DevicePolicyManagerTestable.java",
226        "src/com/android/server/devicepolicy/DpmMockContext.java",
227        "src/com/android/server/devicepolicy/DpmTestBase.java",
228        "src/com/android/server/devicepolicy/DpmTestUtils.java",
229        "src/com/android/server/devicepolicy/DummyDeviceAdmins.java",
230        "src/com/android/server/devicepolicy/MockSystemServices.java",
231        "src/com/android/server/devicepolicy/MockUtils.java",
232    ],
233    libs: [
234        "android.test.mock.stubs.system",
235        "android.test.base.stubs.system",
236        "mockito-target-minus-junit4",
237    ],
238    static_libs: [
239        "frameworks-base-testutils",
240        "androidx.test.core",
241        "androidx.test.ext.truth",
242        "androidx.test.rules",
243        "services.core",
244        "services.devicepolicy",
245    ],
246}
247
248java_library {
249    name: "servicestests-utils",
250    srcs: [
251        "utils/**/*.java",
252        "utils/**/*.kt",
253        "utils-mockito/**/*.kt",
254    ],
255    static_libs: [
256        "junit",
257        "mockito-target-minus-junit4",
258    ],
259    libs: [
260        "android.test.runner.stubs.system",
261    ],
262}
263
264java_library {
265    name: "servicestests-utils-ravenwood",
266    srcs: [
267        "utils/**/*.java",
268        "utils/**/*.kt",
269        "utils-mockito/**/*.kt",
270    ],
271    libs: [
272        "android.test.runner.stubs.system",
273        "junit",
274        "mockito-ravenwood-prebuilt",
275    ],
276}
277
278java_library {
279    name: "mockito-test-utils",
280    srcs: [
281        "utils-mockito/**/*.kt",
282    ],
283    static_libs: [
284        "mockito-target-minus-junit4",
285    ],
286}
287
288java_library {
289    name: "servicestests-utils-mockito-extended",
290    srcs: [
291        "utils/**/*.java",
292        "utils/**/*.kt",
293        "utils-mockito/**/*.kt",
294    ],
295    static_libs: [
296        "junit",
297        "mockito-target-extended-minus-junit4",
298    ],
299    libs: [
300        "android.test.runner.stubs.system",
301    ],
302}
303
304filegroup {
305    name: "servicestests-SuspendTestApp-files",
306    srcs: [
307        "src/com/android/server/pm/SuspendPackagesTest.java",
308    ],
309}
310
311// Rules to copy all the test apks to the intermediate raw resource directory
312java_genrule {
313    name: "FrameworksServicesTests_apks_as_resources",
314    srcs: [
315        ":FrameworksServicesTests_install_split_base",
316        ":FrameworksServicesTests_install_split_feature_a",
317    ],
318    out: ["FrameworkServicesTests_apks_as_resources.res.zip"],
319    tools: ["soong_zip"],
320
321    cmd: "mkdir -p $(genDir)/res/raw && " +
322        "for i in $(in); do " +
323        "  x=$${i##*FrameworksCoreTests_}; cp $$i $(genDir)/res/raw/$${x%.apk};" +
324        "  x=$${i##*FrameworksServicesTests_}; cp $$i $(genDir)/res/raw/$${x%.apk};" +
325        "done && " +
326        "$(location soong_zip) -o $(out) -C $(genDir)/res -D $(genDir)/res",
327}
328
329// Used by content protection TEST_MAPPING
330test_module_config {
331    name: "FrameworksServicesTests_contentprotection",
332    base: "FrameworksServicesTests",
333    test_suites: [
334        "device-tests",
335        "automotive-tests",
336    ],
337
338    include_filters: ["com.android.server.contentprotection"],
339}
340
341test_module_config {
342    name: "FrameworksServicesTests_om",
343    base: "FrameworksServicesTests",
344    test_suites: [
345        "device-tests",
346        "automotive-tests",
347    ],
348
349    include_filters: ["com.android.server.om."],
350}
351
352// Used by contexthub TEST_MAPPING
353test_module_config {
354    name: "FrameworksServicesTests_contexthub_presubmit",
355    base: "FrameworksServicesTests",
356    test_suites: [
357        "device-tests",
358        "automotive-tests",
359    ],
360
361    include_filters: ["com.android.server.location.contexthub."],
362    // TODO(ron): are these right, does it run anything?
363    include_annotations: ["android.platform.test.annotations.Presubmit"],
364}
365
366test_module_config {
367    name: "FrameworksServicesTests_contexthub_postsubmit",
368    base: "FrameworksServicesTests",
369    test_suites: [
370        "device-tests",
371        "automotive-tests",
372    ],
373
374    include_filters: ["com.android.server.location.contexthub."],
375    // TODO(ron): are these right, does it run anything?
376    include_annotations: ["android.platform.test.annotations.Postsubmit"],
377}
378
379// Used by contentcapture
380test_module_config {
381    name: "FrameworksServicesTests_contentcapture",
382    base: "FrameworksServicesTests",
383    test_suites: [
384        "device-tests",
385        "automotive-tests",
386    ],
387
388    include_filters: ["com.android.server.contentcapture"],
389}
390
391test_module_config {
392    name: "FrameworksServicesTests_recoverysystem",
393    base: "FrameworksServicesTests",
394    test_suites: [
395        "device-tests",
396        "automotive-tests",
397    ],
398
399    include_filters: ["com.android.server.recoverysystem."],
400}
401
402// server pm TEST_MAPPING
403test_module_config {
404    name: "FrameworksServicesTests_pm_presubmit",
405    base: "FrameworksServicesTests",
406    test_suites: [
407        "device-tests",
408        "automotive-tests",
409    ],
410
411    include_annotations: ["android.platform.test.annotations.Presubmit"],
412    include_filters: ["com.android.server.pm."],
413}
414
415test_module_config {
416    name: "FrameworksServicesTests_pm_postsubmit",
417    base: "FrameworksServicesTests",
418    test_suites: [
419        "device-tests",
420        "automotive-tests",
421    ],
422
423    include_annotations: ["android.platform.test.annotations.Postsubmit"],
424    include_filters: ["com.android.server.pm."],
425}
426
427// server os TEST_MAPPING
428test_module_config {
429    name: "FrameworksServicesTests_os",
430    base: "FrameworksServicesTests",
431    test_suites: [
432        "device-tests",
433        "automotive-tests",
434    ],
435
436    include_filters: ["com.android.server.os."],
437}
438
439test_module_config {
440    name: "FrameworksServicesTests_presubmit",
441    base: "FrameworksServicesTests",
442    test_suites: [
443        "device-tests",
444        "automotive-tests",
445    ],
446
447    include_annotations: ["android.platform.test.annotations.Presubmit"],
448}
449
450test_module_config {
451    name: "FrameworksServicesTests_com_android_server_job_Presubmit",
452    base: "FrameworksServicesTests",
453    test_suites: [
454        "device-tests",
455        "automotive-tests",
456    ],
457
458    include_filters: ["com.android.server.job"],
459    exclude_annotations: [
460        "androidx.test.filters.LargeTest",
461        "androidx.test.filters.FlakyTest",
462    ],
463}
464
465test_module_config {
466    name: "FrameworksServicesTests_com_android_server_job",
467    base: "FrameworksServicesTests",
468    test_suites: [
469        "device-tests",
470        "automotive-tests",
471    ],
472
473    include_filters: ["com.android.server.job"],
474}
475
476test_module_config {
477    name: "FrameworksServicesTests_com_android_server_tare",
478    base: "FrameworksServicesTests",
479    test_suites: [
480        "device-tests",
481        "automotive-tests",
482    ],
483
484    include_filters: ["com.android.server.tare"],
485}
486
487test_module_config {
488    name: "FrameworksServicesTests_com_android_server_usage",
489    base: "FrameworksServicesTests",
490    test_suites: [
491        "device-tests",
492        "automotive-tests",
493    ],
494
495    include_filters: ["com.android.server.usage"],
496}
497
498test_module_config {
499    name: "FrameworksServicesTests_battery_stats",
500    base: "FrameworksServicesTests",
501    test_suites: [
502        "device-tests",
503        "automotive-tests",
504    ],
505
506    include_filters: ["com.android.server.am.BatteryStatsServiceTest"],
507}
508
509test_module_config {
510    name: "FrameworksServicesTests_accessibility",
511    base: "FrameworksServicesTests",
512    test_suites: [
513        "device-tests",
514        "automotive-tests",
515    ],
516
517    include_filters: ["com.android.server.accessibility"],
518}
519
520test_module_config {
521    name: "FrameworksServicesTests_binary_transparency",
522    base: "FrameworksServicesTests",
523    test_suites: [
524        "device-tests",
525        "automotive-tests",
526    ],
527
528    include_filters: ["com.android.server.BinaryTransparencyServiceTest"],
529}
530
531test_module_config {
532    name: "FrameworksServicesTests_pinner_service",
533    base: "FrameworksServicesTests",
534    test_suites: [
535        "device-tests",
536        "automotive-tests",
537    ],
538
539    include_filters: ["com.android.server.PinnerServiceTest"],
540    exclude_annotations: ["org.junit.Ignore"],
541}
542
543test_module_config {
544    name: "FrameworksServicesTests_android_server_am_Presubmit",
545    base: "FrameworksServicesTests",
546    test_suites: [
547        "device-tests",
548        "automotive-tests",
549    ],
550
551    include_filters: ["com.android.server.am."],
552    include_annotations: ["android.platform.test.annotations.Presubmit"],
553}
554
555test_module_config {
556    name: "FrameworksServicesTests_android_server_am",
557    base: "FrameworksServicesTests",
558    test_suites: [
559        "device-tests",
560        "automotive-tests",
561    ],
562
563    include_filters: ["com.android.server.am."],
564}
565
566test_module_config {
567    name: "FrameworksServicesTests_android_server_appop",
568    base: "FrameworksServicesTests",
569    test_suites: [
570        "device-tests",
571        "automotive-tests",
572    ],
573
574    include_filters: ["com.android.server.appop"],
575}
576
577test_module_config {
578    name: "FrameworksServicesTests_android_server_audio",
579    base: "FrameworksServicesTests",
580    test_suites: [
581        "device-tests",
582        "automotive-tests",
583    ],
584
585    include_filters: ["com.android.server.audio"],
586    include_annotations: ["android.platform.test.annotations.Presubmit"],
587}
588
589test_module_config {
590    name: "FrameworksServicesTests_android_server_compat",
591    base: "FrameworksServicesTests",
592    test_suites: [
593        "device-tests",
594        "automotive-tests",
595    ],
596
597    include_filters: ["com.android.server.compat"],
598}
599
600test_module_config {
601    name: "FrameworksServicesTests_android_server_hdmi_Presubmit",
602    base: "FrameworksServicesTests",
603    test_suites: [
604        "device-tests",
605        "automotive-tests",
606    ],
607
608    include_filters: ["com.android.server.hdmi"],
609    include_annotations: ["android.platform.test.annotations.Presubmit"],
610}
611
612test_module_config {
613    name: "FrameworksServicesTests_android_server_hdmi",
614    base: "FrameworksServicesTests",
615    test_suites: [
616        "device-tests",
617        "automotive-tests",
618    ],
619
620    include_filters: ["com.android.server.hdmi"],
621}
622
623test_module_config {
624    name: "FrameworksServicesTests_android_server_integrity",
625    base: "FrameworksServicesTests",
626    test_suites: [
627        "device-tests",
628        "automotive-tests",
629    ],
630
631    include_filters: ["com.android.server.integrity."],
632}
633
634test_module_config {
635    name: "FrameworksServicesTests_android_server_lights",
636    base: "FrameworksServicesTests",
637    test_suites: [
638        "device-tests",
639        "automotive-tests",
640    ],
641
642    include_filters: ["com.android.server.lights"],
643}
644
645test_module_config {
646    name: "FrameworksServicesTests_android_server_locales",
647    base: "FrameworksServicesTests",
648    test_suites: [
649        "device-tests",
650        "automotive-tests",
651    ],
652
653    include_filters: ["com.android.server.locales."],
654}
655
656test_module_config {
657    name: "FrameworksServicesTests_android_server_location_contexthub_Presubmit",
658    base: "FrameworksServicesTests",
659    test_suites: [
660        "device-tests",
661        "automotive-tests",
662    ],
663
664    include_filters: ["com.android.server.location.contexthub."],
665    include_annotations: ["android.platform.test.annotations.Presubmit"],
666}
667
668test_module_config {
669    name: "FrameworksServicesTests_android_server_locksettings",
670    base: "FrameworksServicesTests",
671    test_suites: [
672        "device-tests",
673        "automotive-tests",
674    ],
675
676    include_filters: ["com.android.server.locksettings."],
677}
678
679test_module_config {
680    name: "FrameworksServicesTests_android_server_logcat",
681    base: "FrameworksServicesTests",
682    test_suites: [
683        "device-tests",
684        "automotive-tests",
685    ],
686
687    include_filters: ["com.android.server.logcat"],
688}
689
690test_module_config {
691    name: "FrameworksServicesTests_android_server_net_Presubmit",
692    base: "FrameworksServicesTests",
693    test_suites: [
694        "device-tests",
695        "automotive-tests",
696    ],
697
698    include_filters: ["com.android.server.net."],
699    include_annotations: ["android.platform.test.annotations.Presubmit"],
700}
701
702test_module_config {
703    name: "FrameworksServicesTests_android_server_om",
704    base: "FrameworksServicesTests",
705    test_suites: [
706        "device-tests",
707        "automotive-tests",
708    ],
709
710    include_filters: ["com.android.server.om."],
711}
712
713test_module_config {
714    name: "FrameworksServicesTests_android_server_pdb",
715    base: "FrameworksServicesTests",
716    test_suites: [
717        "device-tests",
718        "automotive-tests",
719    ],
720
721    include_filters: ["com.android.server.pdb.PersistentDataBlockServiceTest"],
722}
723
724test_module_config {
725    name: "FrameworksServicesTests_android_server_pm_dex",
726    base: "FrameworksServicesTests",
727    test_suites: [
728        "device-tests",
729        "automotive-tests",
730    ],
731
732    include_filters: ["com.android.server.pm.dex"],
733}
734
735test_module_config {
736    name: "FrameworksServicesTests_android_server_policy_Presubmit",
737    base: "FrameworksServicesTests",
738    test_suites: [
739        "device-tests",
740        "automotive-tests",
741    ],
742
743    include_filters: ["com.android.server.policy."],
744    include_annotations: ["android.platform.test.annotations.Presubmit"],
745}
746
747test_module_config {
748    name: "FrameworksServicesTests_android_server_policy",
749    base: "FrameworksServicesTests",
750    test_suites: [
751        "device-tests",
752        "automotive-tests",
753    ],
754
755    include_filters: ["com.android.server.policy."],
756}
757
758test_module_config {
759    name: "FrameworksServicesTests_android_server_power",
760    base: "FrameworksServicesTests",
761    test_suites: [
762        "device-tests",
763        "automotive-tests",
764    ],
765
766    include_filters: ["com.android.server.power"],
767}
768
769test_module_config {
770    name: "FrameworksServicesTests_android_server_power_hint",
771    base: "FrameworksServicesTests",
772    test_suites: [
773        "device-tests",
774        "automotive-tests",
775    ],
776
777    include_filters: ["com.android.server.power.hint"],
778}
779
780test_module_config {
781    name: "FrameworksServicesTests_android_server_powerstats",
782    base: "FrameworksServicesTests",
783    test_suites: [
784        "device-tests",
785        "automotive-tests",
786    ],
787
788    include_filters: ["com.android.server.powerstats"],
789}
790
791test_module_config {
792    name: "FrameworksServicesTests_android_server_rollback",
793    base: "FrameworksServicesTests",
794    test_suites: [
795        "device-tests",
796        "automotive-tests",
797    ],
798
799    include_filters: ["com.android.server.rollback"],
800}
801
802test_module_config {
803    name: "FrameworksServicesTests_android_server_uri",
804    base: "FrameworksServicesTests",
805    test_suites: [
806        "device-tests",
807        "automotive-tests",
808    ],
809
810    include_filters: ["com.android.server.uri."],
811}
812
813test_module_config {
814    name: "FrameworksServicesTests_com_android_server_location_contexthub",
815    base: "FrameworksServicesTests",
816    test_suites: [
817        "device-tests",
818        "automotive-tests",
819    ],
820
821    include_filters: ["com.android.server.location.contexthub."],
822    include_annotations: ["android.platform.test.annotations.Postsubmit"],
823}
824
825test_module_config {
826    name: "FrameworksServicesTests_android_server_usage",
827    base: "FrameworksServicesTests",
828    test_suites: [
829        "device-tests",
830        "automotive-tests",
831    ],
832
833    include_filters: ["com.android.server.usage"],
834    exclude_filters: ["com.android.server.usage.StorageStatsServiceTest"],
835}
836
837test_module_config {
838    name: "FrameworksServicesTests_android_server_soundtrigger_middleware",
839    base: "FrameworksServicesTests",
840    test_suites: [
841        "device-tests",
842        "automotive-tests",
843    ],
844
845    include_filters: ["com.android.server.soundtrigger_middleware"],
846}
847
848test_module_config {
849    name: "FrameworksServicesTests_android_server_input",
850    base: "FrameworksServicesTests",
851    test_suites: [
852        "device-tests",
853        "automotive-tests",
854    ],
855
856    include_filters: ["com.android.server.input"],
857}
858
859test_module_config {
860    name: "FrameworksServicesTests_server_job",
861    base: "FrameworksServicesTests",
862    test_suites: [
863        "automotive-tests",
864        "device-tests",
865    ],
866    include_filters: ["com.android.server.job"],
867}
868
869test_module_config {
870    name: "FrameworksServicesTests_server_tare",
871    base: "FrameworksServicesTests",
872    test_suites: [
873        "automotive-tests",
874        "device-tests",
875    ],
876    include_filters: ["com.android.server.tare"],
877}
878
879test_module_config {
880    name: "FrameworksServicesTests_server_usage",
881    base: "FrameworksServicesTests",
882    test_suites: [
883        "automotive-tests",
884        "device-tests",
885    ],
886    include_filters: ["com.android.server.usage"],
887}
888
889test_module_config {
890    name: "FrameworksServicesTests_server_om",
891    base: "FrameworksServicesTests",
892    test_suites: [
893        "automotive-tests",
894        "device-tests",
895    ],
896    include_filters: ["com.android.server.om"],
897}
898
899test_module_config {
900    name: "FrameworksServicesTests_server_binarytransparencyservicetest",
901    base: "FrameworksServicesTests",
902    test_suites: [
903        "automotive-tests",
904        "device-tests",
905    ],
906    include_filters: ["com.android.server.BinaryTransparencyServiceTest"],
907}
908
909test_module_config {
910    name: "FrameworksServicesTests_server_pinnerservicetest",
911    base: "FrameworksServicesTests",
912    test_suites: [
913        "automotive-tests",
914        "device-tests",
915    ],
916    include_filters: ["com.android.server.PinnerServiceTest"],
917}
918
919test_module_config {
920    name: "FrameworksServicesTests_server_am",
921    base: "FrameworksServicesTests",
922    test_suites: [
923        "automotive-tests",
924        "device-tests",
925    ],
926    include_filters: ["com.android.server.am."],
927}
928
929test_module_config {
930    name: "FrameworksServicesTests_server_hdmi",
931    base: "FrameworksServicesTests",
932    test_suites: [
933        "automotive-tests",
934        "device-tests",
935    ],
936    include_filters: ["com.android.server.hdmi"],
937}
938
939test_module_config {
940    name: "FrameworksServicesTests_server_logcat",
941    base: "FrameworksServicesTests",
942    test_suites: [
943        "automotive-tests",
944        "device-tests",
945    ],
946    include_filters: ["com.android.server.logcat"],
947}
948
949test_module_config {
950    name: "FrameworksServicesTests_server_net_Presubmit",
951    base: "FrameworksServicesTests",
952    test_suites: [
953        "automotive-tests",
954        "device-tests",
955    ],
956    include_filters: ["com.android.server.net."],
957    include_annotations: ["android.platform.test.annotations.Presubmit"],
958}
959
960test_module_config {
961    name: "FrameworksServicesTests_server_policy_Presubmit",
962    base: "FrameworksServicesTests",
963    test_suites: [
964        "automotive-tests",
965        "device-tests",
966    ],
967    include_filters: ["com.android.server.policy."],
968    include_annotations: ["android.platform.test.annotations.Presubmit"],
969}
970
971test_module_config {
972    name: "FrameworksServicesTests_server_policy",
973    base: "FrameworksServicesTests",
974    test_suites: [
975        "automotive-tests",
976        "device-tests",
977    ],
978    include_filters: ["com.android.server.policy."],
979}
980
981test_module_config {
982    name: "FrameworksServicesTests_server_power",
983    base: "FrameworksServicesTests",
984    test_suites: [
985        "automotive-tests",
986        "device-tests",
987    ],
988    include_filters: ["com.android.server.power"],
989}
990
991test_module_config {
992    name: "FrameworksServicesTests_power_hint",
993    base: "FrameworksServicesTests",
994    test_suites: [
995        "automotive-tests",
996        "device-tests",
997    ],
998    include_filters: ["com.android.server.power.hint"],
999}
1000
1001test_module_config {
1002    name: "FrameworksServicesTests_location_contexthub_Postsubmit",
1003    base: "FrameworksServicesTests",
1004    test_suites: [
1005        "automotive-tests",
1006        "device-tests",
1007    ],
1008    include_filters: ["com.android.server.location.contexthub."],
1009    include_annotations: ["android.platform.test.annotations.Postsubmit"],
1010}
1011
1012test_module_config {
1013    name: "FrameworksServicesTests_server_input",
1014    base: "FrameworksServicesTests",
1015    test_suites: [
1016        "automotive-tests",
1017        "device-tests",
1018    ],
1019    include_filters: ["com.android.server.input"],
1020}
1021
1022test_module_config {
1023    name: "FrameworksServicesTests_people_data",
1024    base: "FrameworksServicesTests",
1025    test_suites: [
1026        "automotive-tests",
1027        "device-tests",
1028    ],
1029    include_filters: ["com.android.server.people.data"],
1030}
1031
1032test_module_config {
1033    name: "FrameworksServicesTests_Presubmit",
1034    base: "FrameworksServicesTests",
1035    test_suites: [
1036        "automotive-tests",
1037        "device-tests",
1038    ],
1039    include_annotations: ["android.platform.test.annotations.Presubmit"],
1040}
1041