diff options
author | Adam Lesinski <adamlesinski@google.com> | 2014-07-22 15:55:50 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2014-07-22 18:21:58 -0700 |
commit | e159e2e0b83f9ea9d48f4c8666f9536e9338a70c (patch) | |
tree | b3da726ce05637a30ec5aa3d8038b92af4e93050 /tests/UsageStatsTest/res | |
parent | 921ec8056a3010d0a21400f97312cf3f7d97ffaa (diff) | |
download | frameworks_base-e159e2e0b83f9ea9d48f4c8666f9536e9338a70c.zip frameworks_base-e159e2e0b83f9ea9d48f4c8666f9536e9338a70c.tar.gz frameworks_base-e159e2e0b83f9ea9d48f4c8666f9536e9338a70c.tar.bz2 |
Add test UsageStats App
Also fixed UsageStatsService to do the right thing
when AppOps returns MODE_DEFAULT.
Change-Id: I0bdb28350fb2528daf2859cdcbbf9ca48d96dde9
Diffstat (limited to 'tests/UsageStatsTest/res')
-rw-r--r-- | tests/UsageStatsTest/res/layout/row_item.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/UsageStatsTest/res/layout/row_item.xml b/tests/UsageStatsTest/res/layout/row_item.xml new file mode 100644 index 0000000..da50163 --- /dev/null +++ b/tests/UsageStatsTest/res/layout/row_item.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingLeft="16dp" + android:paddingRight="16dp"> + + <TextView android:id="@android:id/text1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:textStyle="bold"/> + + <TextView android:id="@android:id/text2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignBaseline="@android:id/text1"/> +</RelativeLayout> |