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
37 lines
1.4 KiB
XML
37 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2018 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:background="@color/inactive_color">
|
|
|
|
<TextView android:id="@+id/token"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:textStyle="bold"/>
|
|
|
|
<Button android:id="@+id/start" style="@style/ActionButton"
|
|
android:text="@string/start" />
|
|
|
|
<Button android:id="@+id/stop" style="@style/ActionButton"
|
|
android:text="@string/stop" />
|
|
</LinearLayout>
|