Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DBindWidgetTest.java38 import com.android.launcher3.LauncherAppWidgetInfo;
109 LauncherAppWidgetInfo item = createWidgetInfo(info, true); in testBindNormalWidget_withConfig()
118 LauncherAppWidgetInfo item = createWidgetInfo(info, true); in testBindNormalWidget_withoutConfig()
127 LauncherAppWidgetInfo item = createWidgetInfo(info, false); in testUnboundWidget_removed()
148 LauncherAppWidgetInfo item = createWidgetInfo(info, false); in testPendingWidget_autoRestored()
149 item.restoreStatus = LauncherAppWidgetInfo.FLAG_ID_NOT_VALID; in testPendingWidget_autoRestored()
161 LauncherAppWidgetInfo item = createWidgetInfo(info, false); in testPendingWidget_withConfigScreen()
162 item.restoreStatus = LauncherAppWidgetInfo.FLAG_ID_NOT_VALID; in testPendingWidget_withConfigScreen()
174 & LauncherAppWidgetInfo.FLAG_ID_NOT_VALID); in testPendingWidget_withConfigScreen()
182 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.java32 import com.android.launcher3.LauncherAppWidgetInfo;
133 return info instanceof LauncherAppWidgetInfo && in evaluate()
134 ((LauncherAppWidgetInfo) info).providerName.getClassName().equals( in evaluate()
136 ((LauncherAppWidgetInfo) info).appWidgetId == mWidgetId; in evaluate()
154 LauncherAppWidgetInfo.NO_ID); in getWidgetId()
155 assertNotSame(widgetId, LauncherAppWidgetInfo.NO_ID); in getWidgetId()
DAddWidgetTest.java26 import com.android.launcher3.LauncherAppWidgetInfo;
63 (info, view) -> info instanceof LauncherAppWidgetInfo && in testDragIcon()
64 ((LauncherAppWidgetInfo) info).providerName.getClassName().equals( in testDragIcon()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java49 import com.android.launcher3.LauncherAppWidgetInfo;
343 LauncherAppWidgetInfo appWidgetInfo; in loadWorkspace()
594 & LauncherAppWidgetInfo.OPTION_SEARCH_WIDGET) != 0; in loadWorkspace()
605 LauncherAppWidgetInfo.FLAG_ID_NOT_VALID); in loadWorkspace()
607 LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY); in loadWorkspace()
623 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
630 ~LauncherAppWidgetInfo.FLAG_RESTORE_STARTED & in loadWorkspace()
631 ~LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY; in loadWorkspace()
638 status |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in loadWorkspace()
646 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
[all …]
DPackageUpdatedTask.java31 import com.android.launcher3.LauncherAppWidgetInfo;
176 final ArrayList<LauncherAppWidgetInfo> widgets = new ArrayList<>(); in execute()
268 } else if (info instanceof LauncherAppWidgetInfo && isNewApkAvailable) { in execute()
269 LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) info; in execute()
271 … && widgetInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY) in execute()
274 ~LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY & in execute()
275 ~LauncherAppWidgetInfo.FLAG_RESTORE_STARTED; in execute()
280 widgetInfo.restoreStatus |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in execute()
DFirstScreenBroadcast.java26 import com.android.launcher3.LauncherAppWidgetInfo;
125 if (info instanceof LauncherAppWidgetInfo) { in sendBroadcastToInstaller()
153 if (info instanceof LauncherAppWidgetInfo) { in getPackageName()
154 LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) info; in getPackageName()
DBaseLoaderResults.java28 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()
DBgDataModel.java29 import com.android.launcher3.LauncherAppWidgetInfo;
85 public final ArrayList<LauncherAppWidgetInfo> appWidgets = new ArrayList<>();
352 appWidgets.add((LauncherAppWidgetInfo) item); in addItem()
417 void bindWidgetsRestored(ArrayList<LauncherAppWidgetInfo> widgets); in bindWidgetsRestored()
DPackageInstallStateChangedTask.java25 import com.android.launcher3.LauncherAppWidgetInfo;
91 for (LauncherAppWidgetInfo widget : dataModel.appWidgets) { in execute()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncher.java651 completeRestoreAppWidget(appWidgetId, LauncherAppWidgetInfo.RESTORE_COMPLETED); in completeAdd()
655 LauncherAppWidgetInfo widgetInfo = in completeAdd()
656 completeRestoreAppWidget(widgetId, LauncherAppWidgetInfo.FLAG_UI_NOT_READY); in completeAdd()
1265 LauncherAppWidgetInfo launcherInfo; in completeAddAppWidget()
1266 launcherInfo = new LauncherAppWidgetInfo(appWidgetId, appWidgetInfo.provider); in completeAddAppWidget()
1285 private void prepareAppWidget(AppWidgetHostView hostView, LauncherAppWidgetInfo item) { in prepareAppWidget()
1740 } else if (itemInfo instanceof LauncherAppWidgetInfo) { in removeItem()
1741 final LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) itemInfo; in removeItem()
2068 view = inflateAppWidget((LauncherAppWidgetInfo) item); in bindItems()
2141 public void bindAppWidget(LauncherAppWidgetInfo item) { in bindAppWidget()
[all …]
DLauncherAppWidgetInfo.java30 public class LauncherAppWidgetInfo extends ItemInfo { class
114 public LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { in LauncherAppWidgetInfo() method in LauncherAppWidgetInfo
134 public LauncherAppWidgetInfo() { in LauncherAppWidgetInfo() method in LauncherAppWidgetInfo
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java30 import com.android.launcher3.LauncherAppWidgetInfo;
138 } else if (item instanceof LauncherAppWidgetInfo) { in addSupportedActions()
139 if (!getSupportedResizeActions(host, (LauncherAppWidgetInfo) item).isEmpty()) { in addSupportedActions()
155 return (item instanceof LauncherAppWidgetInfo) in itemSupportsAccessibleDrag()
230 final LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) item; in performAction()
263 private IntArray getSupportedResizeActions(View host, LauncherAppWidgetInfo info) { in getSupportedResizeActions()
296 @Thunk void performResizeAction(int action, View host, LauncherAppWidgetInfo info) { in performResizeAction()
385 } 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;
400 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.java48 import com.android.launcher3.LauncherAppWidgetInfo;
97 } else if (tag instanceof LauncherAppWidgetInfo) { in onClick()
126 final LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) v.getTag(); in onClickPendingWidget()
135 if (info.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_ID_NOT_VALID)) { in onClickPendingWidget()
136 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.java45 import com.android.launcher3.LauncherAppWidgetInfo;
200 } else if (info instanceof LauncherAppWidgetInfo) { in startDetailsActivityForInfo()
201 componentName = ((LauncherAppWidgetInfo) info).providerName; in startDetailsActivityForInfo()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java34 import com.android.launcher3.LauncherAppWidgetInfo;
128 values.put(Favorites.RESTORED, LauncherAppWidgetInfo.FLAG_ID_NOT_VALID | in sanitizeDB()
129 LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY | in sanitizeDB()
130 LauncherAppWidgetInfo.FLAG_UI_NOT_READY | in sanitizeDB()
131 (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.java25 import com.android.launcher3.LauncherAppWidgetInfo;
157 if (info instanceof LauncherAppWidgetInfo) { in writeToDumpTarget()
158 node.component = ((LauncherAppWidgetInfo) info).providerName.flattenToString(); in writeToDumpTarget()
159 node.packageName = ((LauncherAppWidgetInfo) info).providerName.getPackageName(); in writeToDumpTarget()
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/
DCustomWidgetManager.java32 import com.android.launcher3.LauncherAppWidgetInfo;
134 return LauncherAppWidgetInfo.CUSTOM_WIDGET_ID - mWidgetsIdMap.keyAt(index); in getWidgetIdForCustomProvider()
145 ComponentName cn = mWidgetsIdMap.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;
67 ((LauncherAppWidgetInfo) info).installProgress); in verifyProgressUpdate()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAppWidgetManagerCompat.java28 import com.android.launcher3.LauncherAppWidgetInfo;
65 if (appWidgetId <= LauncherAppWidgetInfo.CUSTOM_WIDGET_ID) { in getLauncherAppWidgetInfo()

12