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

Commit f07bac46 authored by Matt Pietal's avatar Matt Pietal
Browse files

Remove all control experiments

And plugins, and flags, and any associated code

Bug: 148207527
Test: atest SystemUiTests
Change-Id: Id1b800d6ec96b5297e6ed4792ca003d45b61e53e
parent 8a269993
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -56,11 +56,6 @@ Expected interface: [ClockPlugin](/packages/SystemUI/plugin/src/com/android/syst

Use: Allows replacement of the keyguard main clock.

### Action: com.android.systemui.action.PLUGIN_NPV
Expected interface: [NPVPlugin](/packages/SystemUI/plugin/src/com/android/systemui/plugins/NPVPlugin.java)

Use: Attach a view under QQS for prototyping.

# Global plugin dependencies
These classes can be accessed by any plugin using PluginDependency as long as they @Requires them.

+0 −41
Original line number Diff line number Diff line
/*
 * Copyright (C) 2019 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.
 */
package com.android.systemui.plugins;

import android.view.ViewGroup;

import com.android.systemui.plugins.annotations.ProvidesInterface;

/**
 * Test plugin for home controls
 */
@ProvidesInterface(action = HomeControlsPlugin.ACTION, version = HomeControlsPlugin.VERSION)
public interface HomeControlsPlugin extends Plugin {

    String ACTION = "com.android.systemui.action.PLUGIN_HOME_CONTROLS";
    int VERSION = 1;

    /**
      * Pass the container for the plugin to use however it wants. Ideally the plugin impl
      * will add home controls to this space.
      */
    void sendParentGroup(ViewGroup group);

    /**
     * When visible, will poll for updates.
     */
    void setVisible(boolean visible);
}
+0 −52
Original line number Diff line number Diff line
/*
 * Copyright (C) 2019 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.
 */

package com.android.systemui.plugins;

import android.view.View;
import android.widget.FrameLayout;

import com.android.systemui.plugins.annotations.ProvidesInterface;

/**
 * Plugin to attach custom views under QQS.
 *
 * A parent view is provided to the plugin to which they can add Views.
 * <br>
 * The parent is a {@link FrameLayout} with same background as QS and 96dp height.
 *
 * {@see NPVPluginManager}
 * {@see status_bar_expanded_plugin_frame}
 */
@ProvidesInterface(action = NPVPlugin.ACTION, version = NPVPlugin.VERSION)
public interface NPVPlugin extends Plugin {
    String ACTION = "com.android.systemui.action.PLUGIN_NPV";
    int VERSION = 1;

    /**
     * Attach views to the parent.
     *
     * @param parent a {@link FrameLayout} to which to attach views. Preferably a root view.
     * @return a view attached to parent.
     */
    View attachToRoot(FrameLayout parent);

    /**
     * Indicate to the plugin when it is listening (QS expanded)
     * @param listening
     */
    default void setListening(boolean listening) {};
}
+0 −12
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/home_controls_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="@integer/notification_panel_layout_gravity"
    android:visibility="gone"
    android:padding="8dp"
    android:layout_margin="5dp"
    android:background="?android:attr/colorBackgroundFloating">
</FrameLayout>
+0 −26
Original line number Diff line number Diff line
@@ -42,32 +42,6 @@
        android:visibility="gone"
        />

    <LinearLayout
        android:id="@+id/divider_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="horizontal"
        android:background="@color/transparent" >

        <android.widget.Space
            android:layout_height="match_parent"
            android:layout_width="0dp"
            android:layout_weight="@integer/qqs_split_fraction" />

        <com.android.systemui.DarkReceiverImpl
            android:id="@+id/divider"
            android:layout_height="match_parent"
            android:layout_width="1dp"
            android:layout_marginTop="4dp"
            android:layout_marginBottom="4dp" />

        <android.widget.Space
            android:layout_height="match_parent"
            android:layout_width="0dp"
            android:layout_weight="@integer/qs_split_fraction" />

    </LinearLayout>

    <LinearLayout android:id="@+id/status_bar_contents"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
Loading