Home
last modified time | relevance | path

Searched refs:launcher (Results 1 – 25 of 101) sorted by relevance

12345

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java75 final Launcher launcher = Launcher.getLauncher(mView.getContext()); in startDrag() local
76 LauncherAppState app = LauncherAppState.getInstance(launcher); in startDrag()
86 int[] size = launcher.getWorkspace().estimateItemSize(createWidgetInfo, true, false); in startDrag()
93 preview = LivePreviewWidgetCell.generateFromRemoteViews(launcher, mPreview, in startDrag()
98 launcher, createWidgetInfo.info, maxWidth, null, previewSizeBeforeScale); in startDrag()
112 launcher.getDragController().addDragListener(new WidgetHostViewLoader(launcher, mView)); in startDrag()
119 preview = LauncherIcons.createScaledBitmapWithoutShadow(icon, launcher, 0); in startDrag()
121 scale = ((float) launcher.getDeviceProfile().iconSizePx) / preview.getWidth(); in startDrag()
127 int[] size = launcher.getWorkspace().estimateItemSize(mAddInfo, false, true); in startDrag()
128 DeviceProfile dp = launcher.getDeviceProfile(); in startDrag()
[all …]
DWidgetAddFlowHandler.java54 public void startBindFlow(Launcher launcher, int appWidgetId, ItemInfo info, int requestCode) { in startBindFlow() argument
55 launcher.setWaitingForResult(PendingRequestArgs.forWidgetInfo(appWidgetId, this, info)); in startBindFlow()
56 launcher.getAppWidgetHost() in startBindFlow()
57 .startBindFlow(launcher, appWidgetId, mProviderInfo, requestCode); in startBindFlow()
63 public boolean startConfigActivity(Launcher launcher, LauncherAppWidgetInfo info, in startConfigActivity() argument
65 return startConfigActivity(launcher, info.appWidgetId, info, requestCode); in startConfigActivity()
72 public boolean startConfigActivity(Launcher launcher, int appWidgetId, ItemInfo info, in startConfigActivity() argument
77 launcher.setWaitingForResult(PendingRequestArgs.forWidgetInfo(appWidgetId, this, info)); in startConfigActivity()
78 launcher.getAppWidgetHost().startConfigActivity(launcher, appWidgetId, requestCode); in startConfigActivity()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DSystemShortcut.java46 public abstract View.OnClickListener getOnClickListener(final Launcher launcher, in getOnClickListener() argument
56 public View.OnClickListener getOnClickListener(final Launcher launcher, in getOnClickListener() argument
58 final List<WidgetItem> widgets = launcher.getWidgetsForPackageUser(new PackageUserKey( in getOnClickListener()
66 AbstractFloatingView.closeAllOpenViews(launcher); in getOnClickListener()
68 (WidgetsBottomSheet) launcher.getLayoutInflater().inflate( in getOnClickListener()
69 R.layout.widgets_bottom_sheet, launcher.getDragLayer(), false); in getOnClickListener()
71 launcher.getUserEventDispatcher().logActionOnControl(Action.Touch.TAP, in getOnClickListener()
84 public View.OnClickListener getOnClickListener(final Launcher launcher,
89 Rect sourceBounds = launcher.getViewBounds(view);
90 Bundle opts = launcher.getActivityLaunchOptions(view);
[all …]
DPopupPopulator.java179 … public static Runnable createUpdateRunnable(final Launcher launcher, final ItemInfo originalInfo, in createUpdateRunnable() argument
191 List<StatusBarNotification> notifications = launcher.getPopupDataProvider() in createUpdateRunnable()
196 infos.add(new NotificationInfo(launcher, notification)); in createUpdateRunnable()
201 List<ShortcutInfoCompat> shortcuts = DeepShortcutManager.getInstance(launcher) in createUpdateRunnable()
208 ShortcutInfo si = new ShortcutInfo(shortcut, launcher); in createUpdateRunnable()
211 shortcut, launcher, false /* badged */); in createUpdateRunnable()
222 systemShortcutViews.get(i), systemShortcut, launcher, originalInfo)); in createUpdateRunnable() argument
227 launcher.refreshAndBindWidgetsForPackageUser( in createUpdateRunnable()
284 SystemShortcut systemShortcut, Launcher launcher, ItemInfo originalInfo) {
288 mLauncher = launcher;
/packages/apps/Launcher3/src/com/android/launcher3/
DAbstractFloatingView.java101 Launcher launcher, @FloatingViewType int type) { in getOpenView() argument
102 DragLayer dragLayer = launcher.getDragLayer(); in getOpenView()
117 public static void closeOpenContainer(Launcher launcher, @FloatingViewType int type) { in closeOpenContainer() argument
118 AbstractFloatingView view = getOpenView(launcher, type); in closeOpenContainer()
124 public static void closeAllOpenViews(Launcher launcher, boolean animate) { in closeAllOpenViews() argument
125 DragLayer dragLayer = launcher.getDragLayer(); in closeAllOpenViews()
136 public static void closeAllOpenViews(Launcher launcher) { in closeAllOpenViews() argument
137 closeAllOpenViews(launcher, true); in closeAllOpenViews()
140 public static AbstractFloatingView getTopOpenView(Launcher launcher) { in getTopOpenView() argument
141 return getOpenView(launcher, TYPE_FOLDER | TYPE_POPUP_CONTAINER_WITH_ARROW in getTopOpenView()
DUninstallDropTarget.java109 public static boolean startUninstallActivity(Launcher launcher, ItemInfo info) { in startUninstallActivity() argument
110 return startUninstallActivity(launcher, info, null); in startUninstallActivity()
114 final Launcher launcher, ItemInfo info, DropTargetResultCallback callback) { in startUninstallActivity() argument
115 final ComponentName cn = getUninstallTarget(launcher, info); in startUninstallActivity()
121 Toast.makeText(launcher, R.string.uninstall_system_app_text, Toast.LENGTH_SHORT).show(); in startUninstallActivity()
125 Intent i = Intent.parseUri(launcher.getString(R.string.delete_package_intent), 0) in startUninstallActivity()
128 launcher.startActivity(i); in startUninstallActivity()
136 sendUninstallResult(launcher, canUninstall, cn, info.user, callback); in startUninstallActivity()
149 final Launcher launcher, boolean activityStarted, in sendUninstallResult() argument
157 boolean uninstallSuccessful = LauncherAppsCompat.getInstance(launcher) in sendUninstallResult()
[all …]
DInfoDropTarget.java62 ItemInfo info, Launcher launcher, DropTargetResultCallback callback) { in startDetailsActivityForInfo() argument
63 return startDetailsActivityForInfo(info, launcher, callback, null, null); in startDetailsActivityForInfo()
66 public static boolean startDetailsActivityForInfo(ItemInfo info, Launcher launcher, in startDetailsActivityForInfo() argument
70 launcher.startActivity(promiseAppInfo.getMarketIntent()); in startDetailsActivityForInfo()
86 LauncherAppsCompat.getInstance(launcher) in startDetailsActivityForInfo()
90 Toast.makeText(launcher, R.string.activity_not_found, Toast.LENGTH_SHORT).show(); in startDetailsActivityForInfo()
96 sendUninstallResult(launcher, result, componentName, info.user, callback); in startDetailsActivityForInfo()
DDeleteDropTarget.java87 public static void removeWorkspaceOrFolderItem(Launcher launcher, ItemInfo item, View view) { in removeWorkspaceOrFolderItem() argument
91 launcher.removeItem(view, item, true /* deleteFromDb */); in removeWorkspaceOrFolderItem()
92 launcher.getWorkspace().stripEmptyScreens(); in removeWorkspaceOrFolderItem()
93 launcher.getDragLayer().announceForAccessibility(launcher.getString(R.string.item_removed)); in removeWorkspaceOrFolderItem()
DWidgetPreviewLoader.java291 private Bitmap generatePreview(BaseActivity launcher, WidgetItem item, Bitmap recycle, in generatePreview() argument
294 return generateWidgetPreview(launcher, item.widgetInfo, in generatePreview()
297 return generateShortcutPreview(launcher, item.activityInfo, in generatePreview()
313 public Bitmap generateWidgetPreview(BaseActivity launcher, LauncherAppWidgetProviderInfo info, in generateWidgetPreview() argument
347 DeviceProfile dp = launcher.getDeviceProfile(); in generateWidgetPreview()
415 Drawable icon = info.getIcon(launcher, mIconCache); in generateWidgetPreview()
417 int appIconSize = launcher.getDeviceProfile().iconSizePx; in generateWidgetPreview()
448 private Bitmap generateShortcutPreview(BaseActivity launcher, ShortcutConfigActivityInfo info, in generateShortcutPreview() argument
450 int iconSize = launcher.getDeviceProfile().iconSizePx; in generateShortcutPreview()
451 int padding = launcher.getResources() in generateShortcutPreview()
DDeviceProfile.java606 public void layout(Launcher launcher, boolean notifyListeners) { in layout() argument
612 View searchBar = launcher.getDropTargetBar(); in layout()
620 PagedView workspace = (PagedView) launcher.findViewById(R.id.workspace); in layout()
627 Hotseat hotseat = (Hotseat) launcher.findViewById(R.id.hotseat); in layout()
681 View pageIndicator = launcher.findViewById(R.id.page_indicator); in layout()
701 ViewGroup overviewMode = launcher.getOverviewPanel(); in layout()
715 View view = launcher.findViewById(R.id.apps_list_view); in layout()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DTestingUtils.java39 public static void addWeightWatcher(Launcher launcher) { in addWeightWatcher() argument
41 boolean show = Utilities.getPrefs(launcher).getBoolean(SHOW_WEIGHT_WATCHER, true); in addWeightWatcher()
43 int id = launcher.getResources().getIdentifier("zzz_weight_watcher", "layout", in addWeightWatcher()
44 launcher.getPackageName()); in addWeightWatcher()
45 View watcher = launcher.getLayoutInflater().inflate(id, null); in addWeightWatcher()
47 ((FrameLayout) launcher.findViewById(R.id.launcher)).addView(watcher, in addWeightWatcher()
55 launcher.mWeightWatcher = watcher; in addWeightWatcher()
/packages/apps/Launcher2/src/com/android/launcher2/
DFolderIcon.java42 import com.android.launcher.R;
123 static FolderIcon fromXml(int resId, Launcher launcher, ViewGroup group, in fromXml() argument
133 FolderIcon icon = (FolderIcon) LayoutInflater.from(launcher).inflate(resId, group, false); in fromXml()
140 icon.setOnClickListener(launcher); in fromXml()
142 icon.mLauncher = launcher; in fromXml()
143 icon.setContentDescription(String.format(launcher.getString(R.string.folder_name_format), in fromXml()
145 Folder folder = Folder.fromXml(launcher); in fromXml()
146 folder.setDragController(launcher.getDragController()); in fromXml()
151 icon.mFolderRingAnimator = new FolderRingAnimator(launcher, icon); in fromXml()
180 public FolderRingAnimator(Launcher launcher, FolderIcon folderIcon) { in FolderRingAnimator() argument
[all …]
DLauncherAppWidgetInfo.java75 void onBindAppWidget(Launcher launcher) { in onBindAppWidget() argument
77 notifyWidgetSizeChanged(launcher); in onBindAppWidget()
84 void notifyWidgetSizeChanged(Launcher launcher) { in notifyWidgetSizeChanged() argument
85 AppWidgetResizeFrame.updateWidgetSizeRanges(hostView, launcher, spanX, spanY); in notifyWidgetSizeChanged()
DAddAdapter.java30 import com.android.launcher.R;
65 public AddAdapter(Launcher launcher) { in AddAdapter() argument
68 mInflater = (LayoutInflater) launcher.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in AddAdapter()
71 Resources res = launcher.getResources(); in AddAdapter()
DAppWidgetResizeFrame.java16 import com.android.launcher.R;
339 static void updateWidgetSizeRanges(AppWidgetHostView widgetView, Launcher launcher, in updateWidgetSizeRanges() argument
342 getWidgetSizeRanges(launcher, spanX, spanY, mTmpRect); in updateWidgetSizeRanges()
347 static Rect getWidgetSizeRanges(Launcher launcher, int spanX, int spanY, Rect rect) { in getWidgetSizeRanges() argument
351 Rect landMetrics = Workspace.getCellLayoutMetrics(launcher, CellLayout.LANDSCAPE); in getWidgetSizeRanges()
352 Rect portMetrics = Workspace.getCellLayoutMetrics(launcher, CellLayout.PORTRAIT); in getWidgetSizeRanges()
353 final float density = launcher.getResources().getDisplayMetrics().density; in getWidgetSizeRanges()
DSearchDropTargetBar.java30 import com.android.launcher.R;
65 public void setup(Launcher launcher, DragController dragController) { in setup() argument
72 mInfoDropTarget.setLauncher(launcher); in setup()
73 mDeleteDropTarget.setLauncher(launcher); in setup()
DLauncherAppWidgetHost.java33 public LauncherAppWidgetHost(Launcher launcher, int hostId) { in LauncherAppWidgetHost() argument
34 super(launcher, hostId); in LauncherAppWidgetHost()
35 mLauncher = launcher; in LauncherAppWidgetHost()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java74 public LauncherAccessibilityDelegate(Launcher launcher) { in LauncherAccessibilityDelegate() argument
75 mLauncher = launcher; in LauncherAccessibilityDelegate()
78 launcher.getText(R.string.remove_drop_target_label))); in LauncherAccessibilityDelegate()
80 launcher.getText(R.string.app_info_drop_target_label))); in LauncherAccessibilityDelegate()
82 launcher.getText(R.string.uninstall_drop_target_label))); in LauncherAccessibilityDelegate()
84 launcher.getText(R.string.action_add_to_workspace))); in LauncherAccessibilityDelegate()
86 launcher.getText(R.string.action_move))); in LauncherAccessibilityDelegate()
88 launcher.getText(R.string.action_move_to_workspace))); in LauncherAccessibilityDelegate()
90 launcher.getText(R.string.action_resize))); in LauncherAccessibilityDelegate()
92 launcher.getText(R.string.action_deep_shortcut))); in LauncherAccessibilityDelegate()
DOverviewAccessibilityDelegate.java56 Launcher launcher = Launcher.getLauncher(host.getContext()); in performAccessibilityAction() local
58 launcher.showOverviewMode(true); in performAccessibilityAction()
61 launcher.onClickWallpaperPicker(host); in performAccessibilityAction()
64 launcher.onClickAddWidgetButton(host); in performAccessibilityAction()
67 launcher.onClickSettingsButton(host); in performAccessibilityAction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/
DDefaultHomePickerTest.java144 ResolveInfo launcher = new ResolveInfo(); in createLauncher() local
145 launcher.activityInfo = new ActivityInfo(); in createLauncher()
146 launcher.activityInfo.packageName = packageName; in createLauncher()
147 launcher.activityInfo.name = className; in createLauncher()
150 when(mPackageManager.getApplicationInfo(eq(launcher.activityInfo.packageName), anyInt())) in createLauncher()
152 return launcher; in createLauncher()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderIcon.java156 public static FolderIcon fromXml(int resId, Launcher launcher, ViewGroup group, in fromXml() argument
166 DeviceProfile grid = launcher.getDeviceProfile(); in fromXml()
178 icon.setOnClickListener(launcher); in fromXml()
180 icon.mLauncher = launcher; in fromXml()
181 icon.mBadgeRenderer = launcher.getDeviceProfile().mBadgeRenderer; in fromXml()
182 … icon.setContentDescription(launcher.getString(R.string.folder_name_format, folderInfo.title)); in fromXml()
183 Folder folder = Folder.fromXml(launcher); in fromXml()
184 folder.setDragController(launcher.getDragController()); in fromXml()
188 icon.setAccessibilityDelegate(launcher.getAccessibilityDelegate()); in fromXml()
192 icon.setOnFocusChangeListener(launcher.mFocusHandler); in fromXml()
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DToggleWeightWatcher.java25 Launcher launcher = (Launcher) LauncherAppState.getInstance(this).getModel().getCallback(); in onCreate() local
26 if (launcher != null && launcher.mWeightWatcher != null) { in onCreate()
27 launcher.mWeightWatcher.setVisibility(show ? View.VISIBLE : View.GONE); in onCreate()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsCaretController.java41 public AllAppsCaretController(CaretDrawable caret, Launcher launcher) { in AllAppsCaretController() argument
42 mLauncher = launcher; in AllAppsCaretController()
45 final long caretAnimationDuration = launcher.getResources().getInteger( in AllAppsCaretController()
47 final Interpolator caretInterpolator = AnimationUtils.loadInterpolator(launcher, in AllAppsCaretController()
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DCustomActionsPopup.java46 public CustomActionsPopup(Launcher launcher, View icon) { in CustomActionsPopup() argument
47 mLauncher = launcher; in CustomActionsPopup()
49 PopupContainerWithArrow container = PopupContainerWithArrow.getOpen(launcher); in CustomActionsPopup()
53 mDelegate = launcher.getAccessibilityDelegate(); in CustomActionsPopup()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationInfo.java100 final Launcher launcher = Launcher.getLauncher(view.getContext()); in onClick() local
105 launcher.getUserEventDispatcher().logNotificationLaunch(view, intent); in onClick()
110 launcher.getPopupDataProvider().cancelNotification(notificationKey); in onClick()
112 AbstractFloatingView.closeOpenContainer(launcher, AbstractFloatingView in onClick()

12345