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());
}
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());
}
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());
}
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;
}
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());
}
Aggregations