Search in sources :

Example 11 with NetworkController

use of com.android.systemui.statusbar.policy.NetworkController in project android_frameworks_base by crdroidandroid.

the class TileServicesTests method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    mManagers = new ArrayList<>();
    final NetworkController networkController = Mockito.mock(NetworkController.class);
    Mockito.when(networkController.getDataSaverController()).thenReturn(Mockito.mock(DataSaverController.class));
    QSTileHost host = new QSTileHost(mContext, null, null, null, null, networkController, null, Mockito.mock(HotspotController.class), null, null, null, null, null, null, null, null, null);
    mTileService = new TestTileServices(host, Looper.myLooper());
}
Also used : DataSaverController(com.android.systemui.statusbar.policy.DataSaverController) QSTileHost(com.android.systemui.statusbar.phone.QSTileHost) HotspotController(com.android.systemui.statusbar.policy.HotspotController) NetworkController(com.android.systemui.statusbar.policy.NetworkController)

Aggregations

NetworkController (com.android.systemui.statusbar.policy.NetworkController)11 QSTileHost (com.android.systemui.statusbar.phone.QSTileHost)5 DataSaverController (com.android.systemui.statusbar.policy.DataSaverController)5 HotspotController (com.android.systemui.statusbar.policy.HotspotController)5 Context (android.content.Context)2 IntentFilter (android.content.IntentFilter)2 Point (android.graphics.Point)2 RemoteException (android.os.RemoteException)2 MotionEvent (android.view.MotionEvent)2 View (android.view.View)2 ImageView (android.widget.ImageView)2 ScrollView (android.widget.ScrollView)2 TextView (android.widget.TextView)2 SignalClusterView (com.android.systemui.statusbar.SignalClusterView)2 StatusBarIconView (com.android.systemui.statusbar.StatusBarIconView)2 BatteryController (com.android.systemui.statusbar.policy.BatteryController)2 BluetoothController (com.android.systemui.statusbar.policy.BluetoothController)2 DockBatteryController (com.android.systemui.statusbar.policy.DockBatteryController)2 LocationController (com.android.systemui.statusbar.policy.LocationController)2 LayoutTransition (android.animation.LayoutTransition)1