Home
last modified time | relevance | path

Searched refs:LauncherAppState (Results 1 – 25 of 74) sorted by relevance

123

/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAppState.java54 public class LauncherAppState { class
60 public static final MainThreadInitializedObject<LauncherAppState> INSTANCE =
61 new MainThreadInitializedObject<>(LauncherAppState::new);
71 public static LauncherAppState getInstance(final Context context) { in getInstance()
75 public static LauncherAppState getInstanceNoCreate() { in getInstanceNoCreate()
83 public LauncherAppState(Context context) { in LauncherAppState() method in LauncherAppState
135 public LauncherAppState(Context context, @Nullable String iconCacheFileName) { in LauncherAppState() method in LauncherAppState
DLauncherModel.java19 import static com.android.launcher3.LauncherAppState.ACTION_FORCE_ROLOAD;
88 private final LauncherAppState mApp;
128 LauncherModel(Context context, LauncherAppState app, IconCache iconCache, AppFilter appFilter) { in LauncherModel()
427 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onInstallSessionCreated()
442 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onSessionFailure()
545 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onWidgetLabelsUpdated()
574 void init(LauncherAppState app, LauncherModel model, in init()
593 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in updateAndBindWorkspaceItem()
606 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in refreshAndBindWidgetsAndShortcuts()
DLauncherProvider.java119 LauncherAppState appState = LauncherAppState.getInstanceNoCreate(); in dump()
215 LauncherAppState app = LauncherAppState.getInstanceNoCreate(); in reloadLauncherIfExternal()
475 LauncherAppState app = LauncherAppState.getInstanceNoCreate(); in call()
617 InvariantDeviceProfile grid = LauncherAppState.getIDP(ctx); in getLayoutUri()
627 InvariantDeviceProfile idp = LauncherAppState.getIDP(getContext()); in getDefaultLayoutParser()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatRestoreHelper.java25 import com.android.launcher3.LauncherAppState;
45 InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in createBackup()
70 InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in restoreBackup()
76 LauncherAppState.getInstance(context).getModel().forceReload(); in restoreBackup()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DDefaultAppSearchAlgorithm.java25 import com.android.launcher3.LauncherAppState;
45 private final LauncherAppState mAppState;
49 mAppState = LauncherAppState.getInstance(context); in DefaultAppSearchAlgorithm()
64 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in doSearch()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DBaseModelUpdateTask.java20 import com.android.launcher3.LauncherAppState;
48 private LauncherAppState mApp;
54 public void init(LauncherAppState app, LauncherModel model, in init()
79 LauncherAppState app, BgDataModel dataModel, AllAppsList apps); in execute()
DBaseLoaderResults.java25 import com.android.launcher3.LauncherAppState;
54 protected final LauncherAppState mApp;
62 public BaseLoaderResults(LauncherAppState app, BgDataModel dataModel, in BaseLoaderResults()
133 private final LauncherAppState mApp;
144 LauncherAppState app, in WorkspaceBinder()
DModelDelegate.java25 import com.android.launcher3.LauncherAppState;
43 Context context, LauncherAppState app, AllAppsList appsList, BgDataModel dataModel) { in newInstance()
53 protected LauncherAppState mApp;
DAddWorkspaceItemsTask.java27 import com.android.launcher3.LauncherAppState;
63 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute()
270 protected int[] findSpaceForItem( LauncherAppState app, BgDataModel dataModel, in findSpaceForItem()
335 LauncherAppState app, ArrayList<ItemInfo> occupiedPos, in findNextAvailableIconSpaceInScreen()
DItemInstallQueue.java44 import com.android.launcher3.LauncherAppState;
301 LauncherAppState.getInstance(context).getIconCache() in getItemInfo()
307 LauncherAppState.getInstance(context).getIconCache() in getItemInfo()
317 InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in getItemInfo()
DCacheDataUpdatedTask.java21 import com.android.launcher3.LauncherAppState;
48 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute()
DPackageIncrementalDownloadUpdatedTask.java20 import com.android.launcher3.LauncherAppState;
46 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList appsList) { in execute()
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DTestInformationHandler.java32 import com.android.launcher3.LauncherAppState;
55 protected LauncherAppState mLauncherAppState;
61 mLauncherAppState = LauncherAppState.getInstanceNoCreate(); in init()
127 || LauncherAppState.getInstance(mContext).getModel().isModelLoaded();
/packages/apps/Launcher3/go/src/com/android/launcher3/model/
DWidgetsModel.java25 import com.android.launcher3.LauncherAppState;
71 public List<ComponentWithLabelAndIcon> update(LauncherAppState app, in update()
78 LauncherAppState app) { in onPackageIconsUpdated()
DLoaderResults.java21 import com.android.launcher3.LauncherAppState;
29 public LoaderResults(LauncherAppState app, BgDataModel dataModel, in LoaderResults()
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DWidgetsModel.java22 import com.android.launcher3.LauncherAppState;
114 LauncherAppState app, @Nullable PackageUserKey packageUser) { in update()
158 LauncherAppState app, @Nullable PackageUserKey packageUser) { in setWidgetsAndShortcuts()
191 LauncherAppState app) { in onPackageIconsUpdated()
248 WidgetValidityCheck(LauncherAppState app) { in WidgetValidityCheck()
DLoaderResults.java21 import com.android.launcher3.LauncherAppState;
34 public LoaderResults(LauncherAppState app, BgDataModel dataModel, in LoaderResults()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java36 import com.android.launcher3.LauncherAppState;
105 InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in backupWorkspace()
113 final InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in restoreWorkspace()
118 LauncherAppState.getInstance(context).getModel().forceReload(); in restoreWorkspace()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DComponentWithLabelAndIcon.java23 import com.android.launcher3.LauncherAppState;
44 Drawable d = object.getFullResIcon(LauncherAppState.getInstance(context) in loadIcon()
DLauncherActivityCachingLogic.java23 import com.android.launcher3.LauncherAppState;
60 return li.createBadgedIconBitmap(LauncherAppState.getInstance(context) in loadIcon()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderNameProvider.java25 import com.android.launcher3.LauncherAppState;
85 LauncherAppState.getInstance(context).getModel().enqueueModelUpdateTask( in load()
176 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherPreviewRenderer.java63 import com.android.launcher3.LauncherAppState;
124 LauncherAppState.INSTANCE, InvariantDeviceProfile.INSTANCE,
138 mObjectMap.put(LauncherAppState.INSTANCE, in PreviewContext()
139 new LauncherAppState(this, null /* iconCacheFileName */)); in PreviewContext()
150 LauncherAppState.INSTANCE.get(this).onTerminate(); in onDestroy()
DPreviewSurfaceRenderer.java42 import com.android.launcher3.LauncherAppState;
158 LauncherAppState.getInstance(previewContext), in loadModelData()
176 LauncherAppState.getInstance(inflationContext).getModel().loadAsync(dataModel -> { in loadModelData()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DAddWorkspaceItemsTaskTest.java17 import com.android.launcher3.LauncherAppState;
53 private LauncherAppState mAppState;
66 mAppState = LauncherAppState.getInstance(mTargetContext); in setup()
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DPinRequestHelper.java32 import com.android.launcher3.LauncherAppState;
86 LauncherAppState.getInstance(context).getModel().updateAndBindWorkspaceItem(info, si); in createWorkspaceItemFromPinItemRequest()

123