The Usage Reporting Api allows apps to report usage within the app to platform. Apps with the the OBSERVE_APP_USAGE permission may register observers that use the reported in-app usage. Test: manual (using the included Usage Reporter App) Test: atest CtsUsageStatsTestCases:UsageReportingTest Test: atest FrameworksServicesTests:AppTimeLimitControllerTests Bug: 112486938 Change-Id: Iddd6f0993bbbf68a2032b34d473ef8d67da7747a
18 lines
406 B
Makefile
18 lines
406 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
# Only compile source java files in this apk.
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
|
|
LOCAL_USE_AAPT2 := true
|
|
LOCAL_STATIC_ANDROID_LIBRARIES := androidx.legacy_legacy-support-v4
|
|
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
LOCAL_PACKAGE_NAME := UsageReportingTest
|
|
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
|
|
include $(BUILD_PACKAGE)
|