Home
last modified time | relevance | path

Searched refs:SliceBackgroundWorker (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Settings/src/com/android/settings/slices/
DSliceBackgroundWorker.java53 public abstract class SliceBackgroundWorker<E> implements Closeable { class
59 private static final Map<Uri, SliceBackgroundWorker> LIVE_WORKERS = new ArrayMap<>();
66 protected SliceBackgroundWorker(Context context, Uri uri) { in SliceBackgroundWorker() method in SliceBackgroundWorker
85 public static <T extends SliceBackgroundWorker> T getInstance(Uri uri) { in getInstance()
93 static SliceBackgroundWorker getInstance(Context context, Sliceable sliceable, Uri uri) { in getInstance()
94 SliceBackgroundWorker worker = getInstance(uri); in getInstance()
96 final Class<? extends SliceBackgroundWorker> workerClass = in getInstance()
104 private static SliceBackgroundWorker createInstance(Context context, Uri uri, in createInstance()
105 Class<? extends SliceBackgroundWorker> clazz) { in createInstance()
117 for (SliceBackgroundWorker worker : LIVE_WORKERS.values()) { in shutdown()
[all …]
DSettingsSliceProvider.java145 final Map<Uri, SliceBackgroundWorker> mPinnedWorkers = new ArrayMap<>();
391 SliceBackgroundWorker.shutdown(); in shutdown()
492 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance( in startBackgroundWorker()
499 final SliceBackgroundWorker worker = mPinnedWorkers.get(uri); in stopBackgroundWorker()
DSliceable.java131 default Class<? extends SliceBackgroundWorker> getBackgroundWorkerClass() { in getBackgroundWorkerClass()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java47 import com.android.settings.slices.SliceBackgroundWorker;
149 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance(mWifiSlice.getUri()); in setWorkerResults()
224 @Implements(SliceBackgroundWorker.class)
229 public static SliceBackgroundWorker getInstance(Uri uri) { in getInstance()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DFakeToggleController.java25 import com.android.settings.slices.SliceBackgroundWorker;
74 public Class<? extends SliceBackgroundWorker> getBackgroundWorkerClass() { in getBackgroundWorkerClass()
87 public static class TestWorker extends SliceBackgroundWorker<Void> {
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DFakeToggleController.java25 import com.android.settings.slices.SliceBackgroundWorker;
74 public Class<? extends SliceBackgroundWorker> getBackgroundWorkerClass() { in getBackgroundWorkerClass()
87 public static class TestWorker extends SliceBackgroundWorker<Void> {
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBatteryFixSlice.java53 import com.android.settings.slices.SliceBackgroundWorker;
105 final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance(getUri()); in getSlice()
227 public static class BatteryTipWorker extends SliceBackgroundWorker<BatteryTip> {
DBluetoothUpdateWorker.java29 import com.android.settings.slices.SliceBackgroundWorker;
34 public class BluetoothUpdateWorker extends SliceBackgroundWorker implements BluetoothCallback {
DDarkThemeSlice.java48 import com.android.settings.slices.SliceBackgroundWorker;
186 public static class DarkThemeWorker extends SliceBackgroundWorker<Void> {
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcPreferenceController.java31 import com.android.settings.slices.SliceBackgroundWorker;
107 public Class<? extends SliceBackgroundWorker> getBackgroundWorkerClass() { in getBackgroundWorkerClass()
148 public static class NfcSliceWorker extends SliceBackgroundWorker<Void> {
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DRemoteMediaSliceTest.java46 import com.android.settings.slices.SliceBackgroundWorker;
156 @Implements(SliceBackgroundWorker.class)
160 public static SliceBackgroundWorker getInstance(Uri uri) { in getInstance()
DMediaOutputIndicatorSliceTest.java50 import com.android.settings.slices.SliceBackgroundWorker;
288 @Implements(SliceBackgroundWorker.class)
292 public static SliceBackgroundWorker getInstance(Uri uri) { in getInstance()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DShadowSliceBackgroundWorker.java23 @Implements(SliceBackgroundWorker.class)
27 private SliceBackgroundWorker mRealWorker;
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DBatteryFixSliceTest.java41 import com.android.settings.slices.SliceBackgroundWorker;
167 @Implements(SliceBackgroundWorker.class)
178 protected static <T extends SliceBackgroundWorker> T getInstance(Uri uri) { in getInstance()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileDataSlice.java45 import com.android.settings.slices.SliceBackgroundWorker;
149 public Class<? extends SliceBackgroundWorker> getBackgroundWorkerClass() { in getBackgroundWorkerClass()
212 public static class MobileDataWorker extends SliceBackgroundWorker<Void> {
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DConnectToWifiHandler.java28 import com.android.settings.slices.SliceBackgroundWorker;
66 return SliceBackgroundWorker.getInstance(intent.getParcelableExtra(KEY_WIFI_SLICE_URI)); in getWifiScanWorker()
DWifiScanWorker.java31 import com.android.settings.slices.SliceBackgroundWorker;
43 public class WifiScanWorker extends SliceBackgroundWorker<WifiSliceItem> implements
DWifiSlice.java48 import com.android.settings.slices.SliceBackgroundWorker;
90 final WifiScanWorker worker = SliceBackgroundWorker.getInstance(getUri()); in getSlice()
/packages/apps/Settings/src/com/android/settings/media/
DMediaOutputIndicatorSlice.java38 import com.android.settings.slices.SliceBackgroundWorker;
102 mWorker = SliceBackgroundWorker.getInstance(getUri()); in getWorker()
DMediaOutputIndicatorWorker.java35 import com.android.settings.slices.SliceBackgroundWorker;
51 public class MediaOutputIndicatorWorker extends SliceBackgroundWorker implements BluetoothCallback,
DMediaDeviceUpdateWorker.java35 import com.android.settings.slices.SliceBackgroundWorker;
50 public class MediaDeviceUpdateWorker extends SliceBackgroundWorker
DRemoteMediaSlice.java48 import com.android.settings.slices.SliceBackgroundWorker;
231 mWorker = SliceBackgroundWorker.getInstance(getUri()); in getWorker()
/packages/apps/Settings/
Dproguard.flags65 # Keep classes that extends SliceBackgroundWorker, which are used by reflection.
66 -keepclasseswithmembers class * extends com.android.settings.slices.SliceBackgroundWorker {
/packages/apps/Settings/src/com/android/settings/network/
DProviderModelSlice.java52 import com.android.settings.slices.SliceBackgroundWorker;
310 return SliceBackgroundWorker.getInstance(getUri()); in getWorker()