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

Commit 14eaa997 authored by Roman Birg's avatar Roman Birg Committed by Steve Kondik
Browse files

SystemUI: add AudioFX/visualizer tile



Change-Id: I78c5b95008183e664453529e5b2d3ba601f0d266
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 7b79af51
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -43,6 +43,7 @@ public class QSConstants {
    public static final String TILE_COMPASS = "compass";
    public static final String TILE_COMPASS = "compass";
    public static final String TILE_LOCKSCREEN = "lockscreen";
    public static final String TILE_LOCKSCREEN = "lockscreen";
    public static final String TILE_LTE = "lte";
    public static final String TILE_LTE = "lte";
    public static final String TILE_VISUALIZER = "visualizer";


    // Order matters
    // Order matters
    protected static final ArrayList<String> TILES_DEFAULT = new ArrayList<String>();
    protected static final ArrayList<String> TILES_DEFAULT = new ArrayList<String>();
@@ -76,5 +77,6 @@ public class QSConstants {
        TILES_AVAILABLE.add(TILE_COMPASS);
        TILES_AVAILABLE.add(TILE_COMPASS);
        TILES_AVAILABLE.add(TILE_LOCKSCREEN);
        TILES_AVAILABLE.add(TILE_LOCKSCREEN);
        TILES_AVAILABLE.add(TILE_LTE);
        TILES_AVAILABLE.add(TILE_LTE);
        TILES_AVAILABLE.add(TILE_VISUALIZER);
    }
    }
}
}
+5 −1
Original line number Original line Diff line number Diff line
@@ -6,7 +6,11 @@ LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src) \
LOCAL_SRC_FILES := $(call all-java-files-under, src) \
    src/com/android/systemui/EventLogTags.logtags
    src/com/android/systemui/EventLogTags.logtags


LOCAL_STATIC_JAVA_LIBRARIES := Keyguard android-support-v7-palette android-support-v4
LOCAL_STATIC_JAVA_LIBRARIES := Keyguard \
    android-support-v7-palette \
    android-support-v4 \
    android-visualizer

LOCAL_JAVA_LIBRARIES := telephony-common
LOCAL_JAVA_LIBRARIES := telephony-common


LOCAL_PACKAGE_NAME := SystemUI
LOCAL_PACKAGE_NAME := SystemUI
+4 −0
Original line number Original line Diff line number Diff line
@@ -120,6 +120,10 @@
    <!-- Weather -->
    <!-- Weather -->
    <uses-permission android:name="com.cyanogenmod.lockclock.permission.READ_WEATHER" />
    <uses-permission android:name="com.cyanogenmod.lockclock.permission.READ_WEATHER" />


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

    <application
    <application
        android:name=".SystemUIApplication"
        android:name=".SystemUIApplication"
        android:persistent="true"
        android:persistent="true"
+13 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="64dp"
    android:height="64dp"
    android:viewportWidth="48"
    android:viewportHeight="48">

    <path
        android:fillColor="#FFFFFF"
        android:pathData="M14,42H6v-4h8V42Z M28,38h-8v4h8V38z M42,38h-8v4h8V38z M14,30H6v4h8V30z
M28,30h-8v4h8 V30z M42,30h-8v4h8V30z M14,22H6v4h8V22z M28,22h-8v4h8V22z
M42,22h-8v4h8V22z M28,14h-8v4h8V14z M42,14h-8v4h8V14z M28,6h-8v4h8V6z" />
</vector>
 No newline at end of file
+22 −0
Original line number Original line 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="visualizer_divisions">3</integer>

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