Home
last modified time | relevance | path

Searched refs:LauncherAppWidgetInfo (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DBindWidgetTest.java38 import com.android.launcher3.LauncherAppWidgetInfo;
106 LauncherAppWidgetInfo item = createWidgetInfo(info, true); in testBindNormalWidget_withConfig()
115 LauncherAppWidgetInfo item = createWidgetInfo(info, true); in testBindNormalWidget_withoutConfig()
124 LauncherAppWidgetInfo item = createWidgetInfo(info, false); in testUnboundWidget_removed()
145 LauncherAppWidgetInfo item = createWidgetInfo(info, false); in testPendingWidget_autoRestored()
146 item.restoreStatus = LauncherAppWidgetInfo.FLAG_ID_NOT_VALID; in testPendingWidget_autoRestored()
158 LauncherAppWidgetInfo item = createWidgetInfo(info, false); in testPendingWidget_withConfigScreen()
159 item.restoreStatus = LauncherAppWidgetInfo.FLAG_ID_NOT_VALID; in testPendingWidget_withConfigScreen()
171 & LauncherAppWidgetInfo.FLAG_ID_NOT_VALID); in testPendingWidget_withConfigScreen()
179 LauncherAppWidgetInfo item = getInvalidWidgetInfo(); in testPendingWidget_notRestored_removed()
[all …]
DRequestPinItemTest.java33 import com.android.launcher3.LauncherAppWidgetInfo;
81 runTest("pinWidgetNoConfig", true, (info, view) -> info instanceof LauncherAppWidgetInfo && in testPinWidgetNoConfig()
82 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetNoConfig()
83 ((LauncherAppWidgetInfo) info).providerName.getClassName() in testPinWidgetNoConfig()
94 runTest("pinWidgetNoConfig", true, (info, view) -> info instanceof LauncherAppWidgetInfo && in testPinWidgetNoConfig_customPreview()
95 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetNoConfig_customPreview()
96 ((LauncherAppWidgetInfo) info).providerName.getClassName() in testPinWidgetNoConfig_customPreview()
103 (info, view) -> info instanceof LauncherAppWidgetInfo && in testPinWidgetWithConfig()
104 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetWithConfig()
105 ((LauncherAppWidgetInfo) info).providerName.getClassName() in testPinWidgetWithConfig()
DAddConfigWidgetTest.java34 import com.android.launcher3.LauncherAppWidgetInfo;
158 return info instanceof LauncherAppWidgetInfo && in evaluate()
159 ((LauncherAppWidgetInfo) info).providerName.getClassName().equals( in evaluate()
161 ((LauncherAppWidgetInfo) info).appWidgetId == mWidgetId; in evaluate()
179 LauncherAppWidgetInfo.NO_ID); in getWidgetId()
180 assertNotSame(widgetId, LauncherAppWidgetInfo.NO_ID); in getWidgetId()
DAddWidgetTest.java27 import com.android.launcher3.LauncherAppWidgetInfo;
84 return info instanceof LauncherAppWidgetInfo && in performTest()
85 ((LauncherAppWidgetInfo) info).providerName.getClassName().equals( in performTest()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java49 import com.android.launcher3.LauncherAppWidgetInfo;
338 LauncherAppWidgetInfo appWidgetInfo; in loadWorkspace()
587 LauncherAppWidgetInfo.FLAG_ID_NOT_VALID); in loadWorkspace()
589 LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY); in loadWorkspace()
607 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
614 ~LauncherAppWidgetInfo.FLAG_RESTORE_STARTED & in loadWorkspace()
615 ~LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY; in loadWorkspace()
622 status |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in loadWorkspace()
630 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
639 … if (c.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_RESTORE_STARTED)) { in loadWorkspace()
[all …]
DPackageUpdatedTask.java33 import com.android.launcher3.LauncherAppWidgetInfo;
179 final ArrayList<LauncherAppWidgetInfo> widgets = new ArrayList<>(); in execute()
272 } else if (info instanceof LauncherAppWidgetInfo && isNewApkAvailable) { in execute()
273 LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) info; in execute()
275 … && widgetInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY) in execute()
278 ~LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY & in execute()
279 ~LauncherAppWidgetInfo.FLAG_RESTORE_STARTED; in execute()
284 widgetInfo.restoreStatus |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in execute()
DFirstScreenBroadcast.java26 import com.android.launcher3.LauncherAppWidgetInfo;
120 if (info instanceof LauncherAppWidgetInfo) { in sendBroadcastToInstaller()
148 if (info instanceof LauncherAppWidgetInfo) { in getPackageName()
149 LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) info; in getPackageName()
DBaseLoaderResults.java27 import com.android.launcher3.LauncherAppWidgetInfo;
91 ArrayList<LauncherAppWidgetInfo> appWidgets = new ArrayList<>(); in bindWorkspace()
119 ArrayList<LauncherAppWidgetInfo> currentAppWidgets = new ArrayList<>(); in bindWorkspace()
120 ArrayList<LauncherAppWidgetInfo> otherAppWidgets = new ArrayList<>(); in bindWorkspace()
268 private void bindAppWidgets(ArrayList<LauncherAppWidgetInfo> appWidgets, Executor executor) { in bindAppWidgets()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncher.java636 completeRestoreAppWidget(appWidgetId, LauncherAppWidgetInfo.RESTORE_COMPLETED); in completeAdd()
640 LauncherAppWidgetInfo widgetInfo = in completeAdd()
641 completeRestoreAppWidget(widgetId, LauncherAppWidgetInfo.FLAG_UI_NOT_READY); in completeAdd()
1237 LauncherAppWidgetInfo launcherInfo; in completeAddAppWidget()
1238 launcherInfo = new LauncherAppWidgetInfo(appWidgetId, appWidgetInfo.provider); in completeAddAppWidget()
1257 private void prepareAppWidget(AppWidgetHostView hostView, LauncherAppWidgetInfo item) { in prepareAppWidget()
1707 } else if (itemInfo instanceof LauncherAppWidgetInfo) { in removeItem()
1708 final LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) itemInfo; in removeItem()
2039 view = inflateAppWidget((LauncherAppWidgetInfo) item); in bindItems()
2112 public void bindAppWidget(LauncherAppWidgetInfo item) { in bindAppWidget()
[all …]
DLauncherAppWidgetInfo.java30 public class LauncherAppWidgetInfo extends ItemInfo { class
106 public LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { in LauncherAppWidgetInfo() method in LauncherAppWidgetInfo
126 public LauncherAppWidgetInfo() { in LauncherAppWidgetInfo() method in LauncherAppWidgetInfo
DAppWidgetsRestoredReceiver.java75 state = LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in restoreAppWidgetIds()
77 state = LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY; in restoreAppWidgetIds()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java28 import com.android.launcher3.LauncherAppWidgetInfo;
135 } else if (item instanceof LauncherAppWidgetInfo) { in addSupportedActions()
136 if (!getSupportedResizeActions(host, (LauncherAppWidgetInfo) item).isEmpty()) { in addSupportedActions()
152 return (item instanceof LauncherAppWidgetInfo) in itemSupportsAccessibleDrag()
220 final LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) item; in performAction()
253 private IntArray getSupportedResizeActions(View host, LauncherAppWidgetInfo info) { in getSupportedResizeActions()
286 @Thunk void performResizeAction(int action, View host, LauncherAppWidgetInfo info) { in performResizeAction()
375 } else if (info instanceof LauncherAppWidgetInfo) { in beginAccessibleDrag()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAppWidgetHostView.java39 import com.android.launcher3.LauncherAppWidgetInfo;
54 private final LauncherAppWidgetInfo mInfo;
66 public PendingAppWidgetHostView(Context context, LauncherAppWidgetInfo info, in PendingAppWidgetHostView()
197 return !mInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY) in isReadyForClickSetup()
198 && (mInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_UI_NOT_READY) in isReadyForClickSetup()
199 || mInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_ID_NOT_VALID)); in isReadyForClickSetup()
DLauncherAppWidgetHostView.java40 import com.android.launcher3.LauncherAppWidgetInfo;
404 LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) getTag(); in reInflate()
DWidgetAddFlowHandler.java25 import com.android.launcher3.LauncherAppWidgetInfo;
63 public boolean startConfigActivity(Launcher launcher, LauncherAppWidgetInfo info, in startConfigActivity()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DItemClickHandler.java42 import com.android.launcher3.LauncherAppWidgetInfo;
108 } else if (tag instanceof LauncherAppWidgetInfo) { in onClick()
137 final LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) v.getTag(); in onClickPendingWidget()
146 if (info.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_ID_NOT_VALID)) { in onClickPendingWidget()
147 if (!info.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_ID_ALLOCATED)) { in onClickPendingWidget()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DItemInfoMatcher.java24 import com.android.launcher3.LauncherAppWidgetInfo;
58 } else if (i instanceof LauncherAppWidgetInfo) { in filterItemInfos()
59 LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) i; in filterItemInfos()
DPackageManagerHelper.java42 import com.android.launcher3.LauncherAppWidgetInfo;
197 } else if (info instanceof LauncherAppWidgetInfo) { in startDetailsActivityForInfo()
198 componentName = ((LauncherAppWidgetInfo) info).providerName; in startDetailsActivityForInfo()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java36 import com.android.launcher3.LauncherAppWidgetInfo;
129 values.put(Favorites.RESTORED, LauncherAppWidgetInfo.FLAG_ID_NOT_VALID | in sanitizeDB()
130 LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY | in sanitizeDB()
131 LauncherAppWidgetInfo.FLAG_UI_NOT_READY | in sanitizeDB()
132 (keepAllIcons ? LauncherAppWidgetInfo.FLAG_RESTORE_STARTED : 0)); in sanitizeDB()
DImportDataTask.java40 import com.android.launcher3.LauncherAppWidgetInfo;
217 LauncherAppWidgetInfo.FLAG_ID_NOT_VALID | in importWorkspaceItems()
218 LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY | in importWorkspaceItems()
219 LauncherAppWidgetInfo.FLAG_UI_NOT_READY); in importWorkspaceItems()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DDumpTargetWrapper.java22 import com.android.launcher3.LauncherAppWidgetInfo;
139 if (info instanceof LauncherAppWidgetInfo) { in writeToDumpTarget()
140 node.component = ((LauncherAppWidgetInfo) info).providerName.flattenToString(); in writeToDumpTarget()
141 node.packageName = ((LauncherAppWidgetInfo) info).providerName.getPackageName(); in writeToDumpTarget()
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/
DCustomWidgetParser.java29 import com.android.launcher3.LauncherAppWidgetInfo;
65 return LauncherAppWidgetInfo.CUSTOM_WIDGET_ID - sWidgetsIdMap.keyAt(index); in getWidgetIdForCustomProvider()
75 ComponentName cn = sWidgetsIdMap.get(LauncherAppWidgetInfo.CUSTOM_WIDGET_ID - widgetId); in getWidgetProvider()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DPackageInstallStateChangedTaskTest.java6 import com.android.launcher3.LauncherAppWidgetInfo;
66 ((LauncherAppWidgetInfo) info).installProgress); in verifyProgressUpdate()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAppWidgetManagerCompat.java26 import com.android.launcher3.LauncherAppWidgetInfo;
67 && appWidgetId <= LauncherAppWidgetInfo.CUSTOM_WIDGET_ID) { in getLauncherAppWidgetInfo()
DAppWidgetManagerCompatVL.java27 import com.android.launcher3.LauncherAppWidgetInfo;
92 && appWidgetId <= LauncherAppWidgetInfo.CUSTOM_WIDGET_ID) { in bindAppWidgetIdIfAllowed()

12