Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DBindWidgetTest.java33 import com.android.launcher3.LauncherAppWidgetInfo;
111 LauncherAppWidgetInfo item = createWidgetInfo(info, true); in testBindNormalWidget_withConfig()
119 LauncherAppWidgetInfo item = createWidgetInfo(info, true); in testBindNormalWidget_withoutConfig()
127 LauncherAppWidgetInfo item = createWidgetInfo(info, false); in testUnboundWidget_removed()
149 LauncherAppWidgetInfo item = createWidgetInfo(info, false); in testPendingWidget_autoRestored()
150 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()
173 & LauncherAppWidgetInfo.FLAG_ID_NOT_VALID); in testPendingWidget_withConfigScreen()
180 LauncherAppWidgetInfo item = getInvalidWidgetInfo(); in testPendingWidget_notRestored_removed()
[all …]
DRequestPinItemTest.java30 import com.android.launcher3.LauncherAppWidgetInfo;
86 return info instanceof LauncherAppWidgetInfo && in testPinWidgetNoConfig()
87 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetNoConfig()
88 ((LauncherAppWidgetInfo) info).providerName.getClassName() in testPinWidgetNoConfig()
104 return info instanceof LauncherAppWidgetInfo && in testPinWidgetNoConfig_customPreview()
105 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetNoConfig_customPreview()
106 ((LauncherAppWidgetInfo) info).providerName.getClassName() in testPinWidgetNoConfig_customPreview()
117 return info instanceof LauncherAppWidgetInfo && in testPinWidgetWithConfig()
118 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetWithConfig()
119 ((LauncherAppWidgetInfo) info).providerName.getClassName() in testPinWidgetWithConfig()
DAddConfigWidgetTest.java27 import com.android.launcher3.LauncherAppWidgetInfo;
158 return info instanceof LauncherAppWidgetInfo && in evaluate()
159 ((LauncherAppWidgetInfo) info).providerName.equals(mWidgetInfo.provider) && in evaluate()
160 ((LauncherAppWidgetInfo) info).appWidgetId == mWidgetId; in evaluate()
178 LauncherAppWidgetInfo.NO_ID); in getWidgetId()
179 assertNotSame(widgetId, LauncherAppWidgetInfo.NO_ID); in getWidgetId()
DAddWidgetTest.java25 import com.android.launcher3.LauncherAppWidgetInfo;
82 return info instanceof LauncherAppWidgetInfo && in performTest()
83 ((LauncherAppWidgetInfo) info).providerName.equals(widgetInfo.provider); in performTest()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java45 import com.android.launcher3.LauncherAppWidgetInfo;
311 LauncherAppWidgetInfo appWidgetInfo; in loadWorkspace()
572 LauncherAppWidgetInfo.FLAG_ID_NOT_VALID); in loadWorkspace()
574 LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY); in loadWorkspace()
592 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
599 ~LauncherAppWidgetInfo.FLAG_RESTORE_STARTED & in loadWorkspace()
600 ~LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY; in loadWorkspace()
607 status |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in loadWorkspace()
615 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
620 … if (c.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_RESTORE_STARTED)) { in loadWorkspace()
[all …]
DPackageUpdatedTask.java33 import com.android.launcher3.LauncherAppWidgetInfo;
180 final ArrayList<LauncherAppWidgetInfo> widgets = new ArrayList<>(); in execute()
260 } else if (info instanceof LauncherAppWidgetInfo && isNewApkAvailable) { in execute()
261 LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) info; in execute()
263 … && widgetInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY) in execute()
266 ~LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY & in execute()
267 ~LauncherAppWidgetInfo.FLAG_RESTORE_STARTED; in execute()
272 widgetInfo.restoreStatus |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in execute()
DLoaderResults.java27 import com.android.launcher3.LauncherAppWidgetInfo;
94 ArrayList<LauncherAppWidgetInfo> appWidgets = new ArrayList<>(); in bindWorkspace()
120 ArrayList<LauncherAppWidgetInfo> currentAppWidgets = new ArrayList<>(); in bindWorkspace()
121 ArrayList<LauncherAppWidgetInfo> otherAppWidgets = new ArrayList<>(); in bindWorkspace()
295 final ArrayList<LauncherAppWidgetInfo> appWidgets, in bindWorkspaceItems()
DBgDataModel.java27 import com.android.launcher3.LauncherAppWidgetInfo;
76 public final ArrayList<LauncherAppWidgetInfo> appWidgets = new ArrayList<>();
335 appWidgets.add((LauncherAppWidgetInfo) item); in addItem()
DPackageInstallStateChangedTask.java27 import com.android.launcher3.LauncherAppWidgetInfo;
124 for (LauncherAppWidgetInfo widget : dataModel.appWidgets) { in execute()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncher.java649 completeRestoreAppWidget(appWidgetId, LauncherAppWidgetInfo.RESTORE_COMPLETED); in completeAdd()
653 LauncherAppWidgetInfo widgetInfo = in completeAdd()
654 completeRestoreAppWidget(widgetId, LauncherAppWidgetInfo.FLAG_UI_NOT_READY); in completeAdd()
1506 appWidgetId = LauncherAppWidgetInfo.CUSTOM_WIDGET_ID;
1509 LauncherAppWidgetInfo launcherInfo;
1510 launcherInfo = new LauncherAppWidgetInfo(appWidgetId, appWidgetInfo.provider);
1529 private void prepareAppWidget(AppWidgetHostView hostView, LauncherAppWidgetInfo item) {
2156 } else if (itemInfo instanceof LauncherAppWidgetInfo) {
2157 final LauncherAppWidgetInfo widgetInfo = (LauncherAppWidgetInfo) itemInfo;
2171 private void deleteWidgetInfo(final LauncherAppWidgetInfo widgetInfo) {
[all …]
DInfoDropTarget.java81 } else if (info instanceof LauncherAppWidgetInfo) { in startDetailsActivityForInfo()
82 componentName = ((LauncherAppWidgetInfo) info).providerName; in startDetailsActivityForInfo()
116 (info instanceof LauncherAppWidgetInfo && in supportsDrop()
117 ((LauncherAppWidgetInfo) info).restoreStatus == 0) || in supportsDrop()
DPendingAppWidgetHostView.java48 private final LauncherAppWidgetInfo mInfo;
63 public PendingAppWidgetHostView(Context context, LauncherAppWidgetInfo info, in PendingAppWidgetHostView()
206 return !mInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY) in isReadyForClickSetup()
207 && (mInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_UI_NOT_READY) in isReadyForClickSetup()
208 || mInfo.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_ID_NOT_VALID)); in isReadyForClickSetup()
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
DWorkspace.java1213 && v.getTag() instanceof LauncherAppWidgetInfo) { in reinflateWidgetsIfNecessary()
1214 LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) v.getTag(); in reinflateWidgetsIfNecessary()
2853 return (d.dragInfo instanceof LauncherAppWidgetInfo ||
3725 return (info instanceof LauncherAppWidgetInfo) &&
3726 ((LauncherAppWidgetInfo) info).appWidgetId == appWidgetId;
3948 && info instanceof LauncherAppWidgetInfo
3958 public void widgetsRestored(final ArrayList<LauncherAppWidgetInfo> changedInfo) {
3963 LauncherAppWidgetInfo item = changedInfo.get(0);
3965 if (item.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_ID_NOT_VALID)) {
3984 ((LauncherAppWidgetInfo) info).installProgress = 100;
[all …]
DAppWidgetsRestoredReceiver.java83 state = LauncherAppWidgetInfo.FLAG_UI_NOT_READY; in restoreAppWidgetIds()
85 state = LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY; in restoreAppWidgetIds()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java28 import com.android.launcher3.LauncherAppWidgetInfo;
123 || (item instanceof LauncherAppWidgetInfo) in addSupportedActions()
129 } else if (item instanceof LauncherAppWidgetInfo) { in addSupportedActions()
130 if (!getSupportedResizeActions(host, (LauncherAppWidgetInfo) item).isEmpty()) { in addSupportedActions()
213 final LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) item; in performAction()
238 private ArrayList<Integer> getSupportedResizeActions(View host, LauncherAppWidgetInfo info) { in getSupportedResizeActions()
271 @Thunk void performResizeAction(int action, View host, LauncherAppWidgetInfo info) { in performResizeAction()
360 } else if (info instanceof LauncherAppWidgetInfo) { in beginAccessibleDrag()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java24 import com.android.launcher3.LauncherAppWidgetInfo;
87 values.put(Favorites.RESTORED, LauncherAppWidgetInfo.FLAG_ID_NOT_VALID | in sanitizeDB()
88 LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY | in sanitizeDB()
89 LauncherAppWidgetInfo.FLAG_UI_NOT_READY | in sanitizeDB()
90 (keepAllIcons ? LauncherAppWidgetInfo.FLAG_RESTORE_STARTED : 0)); in sanitizeDB()
DImportDataTask.java40 import com.android.launcher3.LauncherAppWidgetInfo;
237 LauncherAppWidgetInfo.FLAG_ID_NOT_VALID | in importWorkspaceItems()
238 LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY | in importWorkspaceItems()
239 LauncherAppWidgetInfo.FLAG_UI_NOT_READY); in importWorkspaceItems()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java135 static final ArrayList<LauncherAppWidgetInfo> sBgAppWidgets =
136 new ArrayList<LauncherAppWidgetInfo>();
164 public void bindAppWidget(LauncherAppWidgetInfo info); in bindAppWidget()
668 sBgAppWidgets.add((LauncherAppWidgetInfo) item); in addItemToDatabase()
744 sBgAppWidgets.remove((LauncherAppWidgetInfo) item); in deleteItemFromDatabase()
1333 LauncherAppWidgetInfo appWidgetInfo; in loadWorkspace()
1469 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
1599 ArrayList<LauncherAppWidgetInfo> appWidgets, in filterCurrentAppWidgets()
1600 ArrayList<LauncherAppWidgetInfo> currentScreenWidgets, in filterCurrentAppWidgets()
1601 ArrayList<LauncherAppWidgetInfo> otherScreenWidgets) { in filterCurrentAppWidgets()
[all …]
DDeleteDropTarget.java115 return isDragSourceWorkspaceOrFolder(d) && (d.dragInfo instanceof LauncherAppWidgetInfo); in isWorkspaceOrFolderWidget()
242 mLauncher.removeAppWidget((LauncherAppWidgetInfo) item); in completeDrop()
245 final LauncherAppWidgetInfo launcherAppWidgetInfo = (LauncherAppWidgetInfo) item; in completeDrop()
DLauncherAppWidgetInfo.java27 class LauncherAppWidgetInfo extends ItemInfo { class
54 LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { in LauncherAppWidgetInfo() method in LauncherAppWidgetInfo
/packages/apps/Launcher3/src/com/android/launcher3/util/
DItemInfoMatcher.java25 import com.android.launcher3.LauncherAppWidgetInfo;
59 } else if (i instanceof LauncherAppWidgetInfo) { in filterItemInfos()
60 LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) i; in filterItemInfos()
/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/tests/src/com/android/launcher3/model/
DPackageInstallStateChangedTaskTest.java4 import com.android.launcher3.LauncherAppWidgetInfo;
56 ((LauncherAppWidgetInfo) info).installProgress); in verifyProgressUpdate()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetAddFlowHandler.java25 import com.android.launcher3.LauncherAppWidgetInfo;
63 public boolean startConfigActivity(Launcher launcher, LauncherAppWidgetInfo info, in startConfigActivity()

12