Home
last modified time | relevance | path

Searched refs:MainThreadInitializedObject (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/shadows/
DShadowMainThreadInitializedObject.java22 import com.android.launcher3.util.MainThreadInitializedObject;
23 import com.android.launcher3.util.MainThreadInitializedObject.ObjectProvider;
37 @Implements(value = MainThreadInitializedObject.class, isInAndroidSdk = false)
41 private static Set<MainThreadInitializedObject> sObjects =
44 @RealObject private MainThreadInitializedObject mRealObject;
48 invokeConstructor(MainThreadInitializedObject.class, mRealObject, in __constructor__()
57 for (MainThreadInitializedObject object : new ArrayList<>(sObjects)) { in resetInitializedObjects()
DShadowOverrides.java21 import com.android.launcher3.util.MainThreadInitializedObject.ObjectProvider;
/packages/apps/Launcher3/src/com/android/launcher3/util/
DMainThreadInitializedObject.java33 public class MainThreadInitializedObject<T> { class
38 public MainThreadInitializedObject(ObjectProvider<T> provider) { in MainThreadInitializedObject() method in MainThreadInitializedObject
74 public static <T extends ResourceBasedOverride> MainThreadInitializedObject<T> forOverride( in forOverride()
76 return new MainThreadInitializedObject<>(c -> Overrides.getObject(clazz, c, resourceId)); in forOverride()
DVibratorWrapper.java39 public static final MainThreadInitializedObject<VibratorWrapper> INSTANCE =
40 new MainThreadInitializedObject<>(VibratorWrapper::new);
DDynamicResource.java39 private static final MainThreadInitializedObject<DynamicResource> INSTANCE =
40 new MainThreadInitializedObject<>(DynamicResource::new);
DSettingsCache.java76 public static MainThreadInitializedObject<SettingsCache> INSTANCE =
77 new MainThreadInitializedObject<>(SettingsCache::new);
DUiThreadHelper.java39 private static final MainThreadInitializedObject<Handler> HANDLER =
40 new MainThreadInitializedObject<>(
DDisplayController.java62 public static final MainThreadInitializedObject<DisplayController> INSTANCE =
63 new MainThreadInitializedObject<>(DisplayController::new);
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DOverscrollPluginFactory.java18 import static com.android.launcher3.util.MainThreadInitializedObject.forOverride;
21 import com.android.launcher3.util.MainThreadInitializedObject;
30 public static final MainThreadInitializedObject<OverscrollPluginFactory> INSTANCE = forOverride(
DSysUINavigationMode.java32 import com.android.launcher3.util.MainThreadInitializedObject;
64 public static final MainThreadInitializedObject<SysUINavigationMode> INSTANCE =
65 new MainThreadInitializedObject<>(SysUINavigationMode::new);
DRecentsModel.java36 import com.android.launcher3.util.MainThreadInitializedObject;
57 public static final MainThreadInitializedObject<RecentsModel> INSTANCE =
58 new MainThreadInitializedObject<>(RecentsModel::new);
DRotationTouchHelper.java36 import com.android.launcher3.util.MainThreadInitializedObject;
50 public static final MainThreadInitializedObject<RotationTouchHelper> INSTANCE =
51 new MainThreadInitializedObject<>(RotationTouchHelper::new);
DSystemUiProxy.java38 import com.android.launcher3.util.MainThreadInitializedObject;
61 public static final MainThreadInitializedObject<SystemUiProxy> INSTANCE =
62 new MainThreadInitializedObject<>(SystemUiProxy::new);
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/plugins/
DPluginManagerWrapper.java20 import com.android.launcher3.util.MainThreadInitializedObject;
31 public static final MainThreadInitializedObject<PluginManagerWrapper> INSTANCE =
32 new MainThreadInitializedObject<>(PluginManagerWrapper::new);
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DUserCache.java28 import com.android.launcher3.util.MainThreadInitializedObject;
41 public static final MainThreadInitializedObject<UserCache> INSTANCE =
42 new MainThreadInitializedObject<>(UserCache::new);
DInstallSessionHelper.java45 import com.android.launcher3.util.MainThreadInitializedObject;
68 public static final MainThreadInitializedObject<InstallSessionHelper> INSTANCE =
69 new MainThreadInitializedObject<>(InstallSessionHelper::new);
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/plugins/
DPluginManagerWrapper.java24 import com.android.launcher3.util.MainThreadInitializedObject;
38 public static final MainThreadInitializedObject<PluginManagerWrapper> INSTANCE =
39 new MainThreadInitializedObject<>(PluginManagerWrapper::new);
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DProtoTracer.java29 import com.android.launcher3.util.MainThreadInitializedObject;
47 public static final MainThreadInitializedObject<ProtoTracer> INSTANCE =
48 new MainThreadInitializedObject<>(ProtoTracer::new);
DActiveGestureLog.java21 import com.android.launcher3.util.MainThreadInitializedObject;
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/
DCustomWidgetManager.java34 import com.android.launcher3.util.MainThreadInitializedObject;
51 public static final MainThreadInitializedObject<CustomWidgetManager> INSTANCE =
52 new MainThreadInitializedObject<>(CustomWidgetManager::new);
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherPreviewRenderer.java87 import com.android.launcher3.util.MainThreadInitializedObject;
122 private final Set<MainThreadInitializedObject> mAllowedObjects = new HashSet<>(
128 private final Map<MainThreadInitializedObject, Object> mObjectMap = new HashMap<>();
158 public <T> T getObject(MainThreadInitializedObject<T> mainThreadInitializedObject, in getObject()
159 MainThreadInitializedObject.ObjectProvider<T> provider) { in getObject()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAppState.java44 import com.android.launcher3.util.MainThreadInitializedObject;
60 public static final MainThreadInitializedObject<LauncherAppState> INSTANCE =
61 new MainThreadInitializedObject<>(LauncherAppState::new);
/packages/apps/Launcher3/src/com/android/launcher3/model/
DItemInstallQueue.java52 import com.android.launcher3.util.MainThreadInitializedObject;
81 public static MainThreadInitializedObject<ItemInstallQueue> INSTANCE =
82 new MainThreadInitializedObject<>(ItemInstallQueue::new);
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DWellbeingModel.java58 import com.android.launcher3.util.MainThreadInitializedObject;
92 public static final MainThreadInitializedObject<WellbeingModel> INSTANCE =
93 new MainThreadInitializedObject<>(WellbeingModel::new);
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DTaskThumbnailView.java55 import com.android.launcher3.util.MainThreadInitializedObject;
68 private static final MainThreadInitializedObject<FullscreenDrawParams> TEMP_PARAMS =
69 new MainThreadInitializedObject<>(FullscreenDrawParams::new);

12