| package { |
| default_team: "trendy_team_framework_backstage_power", |
| // See: http://go/android-license-faq |
| default_applicable_licenses: ["frameworks_base_license"], |
| } |
| |
| filegroup { |
| name: "power_stats_ravenwood_tests", |
| srcs: [ |
| "src/com/android/server/power/stats/AggregatedPowerStatsProcessorTest.java", |
| "src/com/android/server/power/stats/AggregatedPowerStatsTest.java", |
| "src/com/android/server/power/stats/AmbientDisplayPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/AudioPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/BatteryChargeCalculatorTest.java", |
| "src/com/android/server/power/stats/BatteryStatsCounterTest.java", |
| "src/com/android/server/power/stats/BatteryStatsCpuTimesTest.java", |
| "src/com/android/server/power/stats/BatteryStatsDualTimerTest.java", |
| "src/com/android/server/power/stats/BatteryStatsDurationTimerTest.java", |
| "src/com/android/server/power/stats/BatteryStatsHistoryIteratorTest.java", |
| "src/com/android/server/power/stats/BatteryStatsHistoryTest.java", |
| "src/com/android/server/power/stats/BatteryStatsImplTest.java", |
| "src/com/android/server/power/stats/BatteryStatsNoteTest.java", |
| "src/com/android/server/power/stats/BatteryStatsSamplingTimerTest.java", |
| "src/com/android/server/power/stats/BatteryStatsSensorTest.java", |
| "src/com/android/server/power/stats/BatteryStatsServTest.java", |
| "src/com/android/server/power/stats/BatteryStatsStopwatchTimerTest.java", |
| "src/com/android/server/power/stats/BatteryStatsTimeBaseTest.java", |
| "src/com/android/server/power/stats/BatteryStatsTimerTest.java", |
| "src/com/android/server/power/stats/BatteryUsageStatsProviderTest.java", |
| "src/com/android/server/power/stats/BatteryUsageStatsTest.java", |
| "src/com/android/server/power/stats/BluetoothPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/CameraPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/CpuAggregatedPowerStatsProcessorTest.java", |
| "src/com/android/server/power/stats/CpuPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/CustomEnergyConsumerPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/EnergyConsumerSnapshotTest.java", |
| "src/com/android/server/power/stats/FlashlightPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/GnssPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/IdlePowerCalculatorTest.java", |
| "src/com/android/server/power/stats/LongSamplingCounterArrayTest.java", |
| "src/com/android/server/power/stats/LongSamplingCounterTest.java", |
| "src/com/android/server/power/stats/MemoryPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/MultiStateStatsTest.java", |
| "src/com/android/server/power/stats/PowerStatsAggregatorTest.java", |
| "src/com/android/server/power/stats/PowerStatsCollectorTest.java", |
| "src/com/android/server/power/stats/PowerStatsExporterTest.java", |
| "src/com/android/server/power/stats/PowerStatsSchedulerTest.java", |
| "src/com/android/server/power/stats/PowerStatsStoreTest.java", |
| "src/com/android/server/power/stats/PowerStatsUidResolverTest.java", |
| "src/com/android/server/power/stats/ScreenPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/SensorPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/UserPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/VideoPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/WakelockPowerCalculatorTest.java", |
| "src/com/android/server/power/stats/WifiPowerCalculatorTest.java", |
| ], |
| } |
| |
| android_test { |
| name: "PowerStatsTests", |
| |
| // Include all test java files. |
| srcs: [ |
| "src/**/*.java", |
| ], |
| |
| static_libs: [ |
| "services.core", |
| "coretests-aidl", |
| "platformprotosnano", |
| "junit", |
| "truth", |
| "androidx.test.runner", |
| "androidx.test.ext.junit", |
| "androidx.test.ext.truth", |
| "androidx.test.uiautomator_uiautomator", |
| "mockito-target-minus-junit4", |
| "ravenwood-junit", |
| "servicestests-utils", |
| "platform-test-annotations", |
| "flag-junit", |
| "ravenwood-junit", |
| ], |
| |
| libs: [ |
| "android.test.base", |
| ], |
| |
| resource_dirs: ["res/"], |
| |
| data: [ |
| ":BstatsTestApp", |
| ], |
| |
| test_suites: [ |
| "automotive-tests", |
| "device-tests", |
| ], |
| |
| platform_apis: true, |
| |
| certificate: "platform", |
| |
| dxflags: ["--multi-dex"], |
| |
| optimize: { |
| enabled: false, |
| }, |
| } |
| |
| android_ravenwood_test { |
| name: "PowerStatsTestsRavenwood", |
| static_libs: [ |
| "services.core", |
| "modules-utils-binary-xml", |
| "androidx.annotation_annotation", |
| "androidx.test.rules", |
| "truth", |
| ], |
| srcs: [ |
| ":power_stats_ravenwood_tests", |
| |
| "src/com/android/server/power/stats/BatteryUsageStatsRule.java", |
| "src/com/android/server/power/stats/MockBatteryStatsImpl.java", |
| "src/com/android/server/power/stats/MockClock.java", |
| ], |
| auto_gen_config: true, |
| } |