Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1451b981 authored by Abhisek Devkota's avatar Abhisek Devkota Committed by Gerrit Code Review
Browse files

Merge "framework: Add equalizer tile" into cm-11.0

parents 4d42429c 7f86b69d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2863,6 +2863,13 @@ public final class Settings {
         */
        public static final String QS_DYNAMIC_IME = "qs_dyanmic_ime";

        /**
         * Quick Settings Panel Dynamic Tiles
         *
         * @hide
         */
        public static final String QS_DYNAMIC_EQUALIZER = "qs_dynamic_equalizer";

        /**
         * Quick Settings Panel Dynamic Tiles
         *
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) \
    src/com/android/systemui/EventLogTags.logtags

LOCAL_JAVA_LIBRARIES := telephony-common
LOCAL_STATIC_JAVA_LIBRARIES := android-visualizer

LOCAL_PACKAGE_NAME := SystemUI
LOCAL_CERTIFICATE := platform
+4 −0
Original line number Diff line number Diff line
@@ -74,6 +74,10 @@
    <!-- Keyguard -->
    <uses-permission android:name="android.permission.CONTROL_KEYGUARD" />

    <!-- Equalizer -->
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

    <!-- Sync -->
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
+36 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2014 The CyanogenMod 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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="top"
    android:orientation="vertical">

    <com.android.systemui.quicksettings.QuickTileVisualizer android:id="@+id/visualizer_view"
        android:layout_marginTop="@dimen/qs_tile_margin_above_icon"
        android:layout_marginBottom="@dimen/qs_tile_margin_below_icon"
        android:layout_width="@dimen/qs_tile_icon_size"
        android:layout_height="@dimen/qs_tile_icon_size"
        android:layout_gravity="top|center_horizontal" />

    <TextView android:id="@+id/text"
            style="@style/TextAppearance.QuickSettings.TileView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="top|center_horizontal"
            android:gravity="top|center_horizontal" />
</LinearLayout>
+25 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2012-2014 The CyanogenMod 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.
-->
<resources>
    <!-- The amount of divisions to make for eq bars -->
    <integer name="equalizer_divisions">3</integer>

    <!-- fudge factors to tweak display for various configs
        ends up being dB = (dB * fuzz_factor + db_fuzz) -->
    <integer name="equalizer_db_fuzz_factor">1</integer>
    <integer name="equalizer_db_fuzz">-5</integer>
</resources>
 No newline at end of file
Loading