Search in sources :

Example 1 with QSTileHost

use of com.android.systemui.statusbar.phone.QSTileHost in project platform_frameworks_base by android.

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)

Example 2 with QSTileHost

use of com.android.systemui.statusbar.phone.QSTileHost in project android_frameworks_base by ResurrectionRemix.

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)

Example 3 with QSTileHost

use of com.android.systemui.statusbar.phone.QSTileHost in project android_frameworks_base by DirtyUnicorns.

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)

Example 4 with QSTileHost

use of com.android.systemui.statusbar.phone.QSTileHost in project android_frameworks_base by AOSPA.

the class SimSwitchController method onLongClick.

public boolean onLongClick(View v) {
    QSTileHost tileHost = mQSPanel.getHost();
    logd("launching SimSettings activity " + tileHost);
    if (tileHost != null) {
        // Launch SimSettings activity
        Intent intent = new Intent("com.android.settings.sim.SIM_SUB_INFO_SETTINGS");
        intent.setFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
        tileHost.startActivityDismissingKeyguard(intent);
    }
    return true;
}
Also used : QSTileHost(com.android.systemui.statusbar.phone.QSTileHost) Intent(android.content.Intent)

Example 5 with QSTileHost

use of com.android.systemui.statusbar.phone.QSTileHost in project android_frameworks_base by AOSPA.

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

QSTileHost (com.android.systemui.statusbar.phone.QSTileHost)6 DataSaverController (com.android.systemui.statusbar.policy.DataSaverController)5 HotspotController (com.android.systemui.statusbar.policy.HotspotController)5 NetworkController (com.android.systemui.statusbar.policy.NetworkController)5 Intent (android.content.Intent)1