Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmparts: Overhaul the performance and power setttings
* Implement a new screen for managing power save and performance profiles with a nice slider and descriptions of what everything actually does. Change-Id: I65b1780fbd7a5ca5d4fb882e3a9cf3ef28c0ab81
- Loading branch information
1 parent
be40850
commit 01fc9e6
Showing
10 changed files
with
583 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:duration="600" | ||
android:propertyName="rotation" | ||
android:valueTo="-45" | ||
android:valueFrom="-225"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:height="64dp" | ||
android:width="64dp" | ||
android:viewportHeight="48" | ||
android:viewportWidth="48"> | ||
|
||
<group | ||
android:name="base_gauge"> | ||
|
||
<path android:pathData="M24,8c8.8,0,16,7.2,16,16s-7.2,16-16,16S8,32.8,8,24S15.2,8,24,8 M24,4C13,4,4,13,4,24s9,20,20,20s20-9,20-20S35,4,24,4 | ||
L24,4z M24,20c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4S26.2,20,24,20z M32.5,13.5c-1.1,0-2,0.9-2,2s0.9,2,2,2c1.1,0,2-0.9,2-2 | ||
S33.6,13.5,32.5,13.5z M15.5,13.5c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9,2-2S16.6,13.5,15.5,13.5z M15.5,30.5c-1.1,0-2,0.9-2,2 | ||
c0,1.1,0.9,2,2,2s2-0.9,2-2C17.5,31.4,16.6,30.5,15.5,30.5z" | ||
|
||
android:fillColor="#FFFFFFFF"/> | ||
|
||
</group> | ||
|
||
<group | ||
android:name="needle" | ||
android:pivotX="24" | ||
android:pivotY="24" | ||
android:rotation="-135"> | ||
|
||
<path | ||
android:strokeColor="#FFFFFFFF" | ||
android:strokeWidth="4" | ||
android:strokeLineCap="round" | ||
android:pathData="M 24,24 h 12"/> | ||
</group> | ||
|
||
|
||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:drawable="@drawable/ic_perf_profile"> | ||
|
||
<target | ||
android:name="needle" | ||
android:animation="@anim/ic_perf_profile_needle"/> | ||
|
||
</animated-vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (C) 2015 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. | ||
--> | ||
|
||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:minHeight="?android:attr/listPreferredItemHeight" | ||
android:gravity="center_vertical" | ||
android:paddingStart="?android:attr/listPreferredItemPaddingStart" | ||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" | ||
android:background="?android:attr/activatedBackgroundIndicator" | ||
android:clipToPadding="false"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
android:layout_marginTop="8dip" | ||
android:layout_marginBottom="8dip"> | ||
|
||
<TextView android:id="@android:id/title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:singleLine="true" | ||
android:textAppearance="?android:attr/textAppearanceListItem" | ||
android:ellipsize="marquee" | ||
android:fadingEdge="horizontal" /> | ||
|
||
<FrameLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="8dp"> | ||
|
||
<ImageView | ||
android:id="@+id/icon" | ||
android:layout_gravity="center_vertical|start" | ||
android:layout_width="48dp" | ||
android:layout_height="48dp" /> | ||
|
||
<SeekBar | ||
android:id="@+id/seekbar" | ||
android:layout_marginStart="56dp" | ||
android:layout_marginEnd="16dp" | ||
android:layout_gravity="center_vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="48dp" | ||
style="@android:style/Widget.Material.SeekBar.Discrete" | ||
android:tickMarkTint="@android:color/black" /> | ||
|
||
</FrameLayout> | ||
|
||
<TextView | ||
android:id="@android:id/summary" | ||
android:paddingTop="4dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textAppearance="?android:attr/textAppearanceListItemSecondary" | ||
android:textColor="?android:attr/textColorSecondary" | ||
android:gravity="center_vertical" | ||
android:minLines="3" | ||
android:maxLines="4" /> | ||
|
||
</LinearLayout> | ||
|
||
</FrameLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.