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

Commit c063146f authored by Jason Monk's avatar Jason Monk Committed by Android Git Automerger
Browse files

am 72548325: am 4fc1b707: Merge changes from topic \'TunerLoc\' into mnc-dev

* commit '72548325':
  Add metrics to tuner
  Move tuner enable point to QS
parents a0d142d9 72548325
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -27,7 +27,20 @@ import android.view.View;
 */
public class MetricsLogger implements MetricsConstants {
    // Temporary constants go here, to await migration to MetricsConstants.
    // next value is 227;
    // next value is 238;

    public static final int TUNER = 227;
    public static final int TUNER_QS = 228;
    public static final int TUNER_DEMO_MODE = 229;

    public static final int TUNER_QS_REORDER = 230;
    public static final int TUNER_QS_ADD = 231;
    public static final int TUNER_QS_REMOVE = 232;
    public static final int TUNER_STATUS_BAR_ENABLE = 233;
    public static final int TUNER_STATUS_BAR_DISABLE = 234;
    public static final int TUNER_DEMO_MODE_ENABLED = 235;
    public static final int TUNER_DEMO_MODE_ON = 236;
    public static final int TUNER_BATTERY_PERCENTAGE = 237;

    public static void visible(Context context, int category) throws IllegalArgumentException {
        if (Build.IS_DEBUGGABLE && category == VIEW_UNKNOWN) {
+8 −0
Original line number Diff line number Diff line
@@ -405,5 +405,13 @@
            android:exported="true"
            android:singleUser="true"
            android:permission="android.permission.BIND_DREAM_SERVICE" />

        <receiver
            android:name=".tuner.TunerService$ClearReceiver"
            android:exported="false">
            <intent-filter>
                <action android:name="com.android.systemui.action.CLEAR_TUNER" />
            </intent-filter>
        </receiver>
    </application>
</manifest>
+8 −11
Original line number Diff line number Diff line
@@ -14,14 +14,11 @@
    limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="48.0dp"
        android:height="48.0dp"
        android:viewportWidth="48.0"
        android:viewportHeight="48.0">
        android:width="24.0dp"
        android:height="24.0dp"
        android:viewportWidth="24.0"
        android:viewportHeight="24.0">
    <path
        android:fillColor="#FF000000"
        android:pathData="M29.9,24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.0s1.0,0.4 1.0,1.0S30.6,38.0 30.0,38.0zM42.0,6.0L6.0,6.0c-2.2,0.0 -4.0,1.8 -4.0,4.0l0.0,28.0c0.0,2.2 1.8,4.0 4.0,4.0l36.0,0.0c2.2,0.0 4.0,-1.8 4.0,-4.0L46.0,10.0C46.0,7.8 44.2,6.0 42.0,6.0zM42.0,34.0L6.0,34.0L6.0,14.0l36.0,0.0L42.0,34.0zM9.0,12.0L7.0,12.0l0.0,-2.0l2.0,0.0L9.0,12.0zM13.0,12.0l-2.0,0.0l0.0,-2.0l2.0,0.0L13.0,12.0zM17.0,12.0l-2.0,0.0l0.0,-2.0l2.0,0.0L17.0,12.0z"/>
        android:fillColor="#FFFFFFFF"
        android:pathData="M22.7,19.0l-9.1,-9.1c0.9,-2.0 0.4,-5.0 -1.5,-6.9 -2.0,-2.0 -5.0,-2.4 -7.4,-1.3L9.0,6.0 6.0,9.0 1.6,4.7C0.4,7.0 0.9,10.1 2.9,12.1c1.9,1.9 4.6,2.4 6.9,1.5l9.1,9.1c0.4,0.4 1.0,0.4 1.4,0.0l2.3,-2.3c0.5,-0.4 0.5,-1.0 0.1,-1.4z"/>
</vector>
+23 −6
Original line number Diff line number Diff line
@@ -44,14 +44,31 @@
            android:scaleType="centerInside"/>
    </com.android.systemui.statusbar.phone.MultiUserSwitch>

    <com.android.keyguard.AlphaOptimizedImageButton android:id="@+id/settings_button"
        style="@android:style/Widget.Material.Button.Borderless"
        android:layout_toStartOf="@id/multi_user_switch"
    <com.android.keyguard.AlphaOptimizedLinearLayout
        android:id="@+id/settings_button_container"
        android:layout_width="48dp"
        android:layout_height="@dimen/status_bar_header_height"
        android:paddingStart="12dp"
        android:clipChildren="false"
        android:clipToPadding="false"
        android:layout_toStartOf="@id/multi_user_switch">

        <com.android.systemui.statusbar.phone.SettingsButton android:id="@+id/settings_button"
            style="@android:style/Widget.Material.Button.Borderless"
            android:layout_width="24dp"
            android:layout_height="@dimen/status_bar_header_height"
            android:background="@drawable/ripple_drawable"
            android:src="@drawable/ic_settings"
            android:contentDescription="@string/accessibility_desc_settings" />
        <com.android.systemui.statusbar.AlphaOptimizedImageView android:id="@+id/tuner_icon"
            android:layout_width="12dp"
            android:layout_height="@dimen/status_bar_header_height"
            android:tint="#4DFFFFFF"
            android:tintMode="src_in"
            android:visibility="invisible"
            android:src="@drawable/tuner" />

    </com.android.keyguard.AlphaOptimizedLinearLayout>

    <LinearLayout android:id="@+id/system_icons_super_container"
        android:layout_width="wrap_content"
+22 −1
Original line number Diff line number Diff line
@@ -1032,7 +1032,7 @@
    <string name="volume_stream_vibrate_dnd" translatable="false">%s vibrate — Priority only</string>

    <!-- Name of special SystemUI debug settings -->
    <string name="system_ui_tuner">System UI tuner</string>
    <string name="system_ui_tuner">System UI Tuner</string>

    <!-- Preference to show/hide embedded battery percentage [CHAR LIMIT=50] -->
    <string name="show_battery_percentage">Show embedded battery percentage</string>
@@ -1099,4 +1099,25 @@
    <!-- Accessibility label for managed profile icon (not shown on screen) [CHAR LIMIT=NONE] -->
    <string name="accessibility_managed_profile">Work profile</string>

    <!-- Title of warning when entering System UI tuner for first time [CHAR LIMIT=NONE] -->
    <string name="tuner_warning_title">Fun for some but not for all</string>

    <!-- Warning for users entering the System UI tuner for the first time [CHAR LIMIT=NONE]-->
    <string name="tuner_warning">System UI Tuner gives you extra ways to tweak and customize the Android user interface. These experimental features may change, break, or disappear in future releases. Proceed with caution.</string>

    <!-- Warning for users entering the System UI tuner [CHAR LIMIT=NONE]-->
    <string name="tuner_persistent_warning">These experimental features may change, break, or disappear in future releases. Proceed with caution.</string>

    <!-- Generic "got it" acceptance of dialog or cling [CHAR LIMIT=NONE] -->
    <string name="got_it">Got it</string>

    <!-- Toast describing tuner has been enabled [CHAR LIMIT=NONE] -->
    <string name="tuner_toast">Congrats! System UI Tuner has been added to Settings</string>

    <!-- Option to remove the tuner from settings [CHAR LIMIT=NONE] -->
    <string name="remove_from_settings">Remove from Settings</string>

    <!-- Dialog asking if the tuner should really be removed from settings [CHAR LIMIT=NONE]-->
    <string name="remove_from_settings_prompt">Remove System UI Tuner from Settings and stop using all of its features?"</string>

</resources>
Loading