/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
D | TaplTestsLauncher3.java | 63 test.waitForLauncherCondition("Launcher didn't start", launcher -> launcher != null); in initialize() 81 private boolean isWorkspaceScrollable(Launcher launcher) { in isWorkspaceScrollable() argument 82 return launcher.getWorkspace().getPageCount() > 1; in isWorkspaceScrollable() 85 private int getCurrentWorkspacePage(Launcher launcher) { in getCurrentWorkspacePage() argument 86 return launcher.getWorkspace().getCurrentPage(); in getCurrentWorkspacePage() 89 private WidgetsRecyclerView getWidgetsView(Launcher launcher) { in getWidgetsView() argument 90 return WidgetsFullSheet.getWidgetsView(launcher); in getWidgetsView() 98 launcher -> assertTrue("Launcher internal state didn't switch to Showing Menu", in testDevicePressMenu() 99 OptionsPopupView.getOptionsPopup(launcher) != null)); in testDevicePressMenu() 127 test.executeOnLauncher(launcher -> assertEquals( in runAllAppsTest() [all …]
|
D | AbstractLauncherUiTest.java | 230 waitForLauncherCondition("Launcher model didn't load", launcher -> { in waitForModelLoaded() 253 getFromLauncher(launcher -> { in executeOnLauncher() 254 f.accept(launcher); in executeOnLauncher() 263 launcher -> launcher.getStateManager().getCurrentStableState() == state); in waitForState() 267 waitForLauncherCondition(message, launcher -> launcher.hasBeenResumed()); in waitForResumed() 369 executeOnLauncher(launcher -> { in closeLauncherActivity() 370 if (launcher != null) { in closeLauncherActivity() 371 launcher.finish(); in closeLauncherActivity() 375 "Launcher still active", launcher -> launcher == null, DEFAULT_UI_TIMEOUT); in closeLauncherActivity() 378 protected boolean isInBackground(Launcher launcher) { in isInBackground() argument [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | DiscoveryBounce.java | 68 public DiscoveryBounce(Launcher launcher, float delta) { in DiscoveryBounce() argument 69 super(launcher, null); in DiscoveryBounce() 70 mLauncher = launcher; in DiscoveryBounce() 74 AnimatorInflater.loadAnimator(launcher, R.animator.discovery_bounce); in DiscoveryBounce() 83 launcher.getStateManager().addStateListener(mStateListener); in DiscoveryBounce() 142 public static void showForHomeIfNeeded(Launcher launcher) { in showForHomeIfNeeded() argument 143 showForHomeIfNeeded(launcher, true); in showForHomeIfNeeded() 146 private static void showForHomeIfNeeded(Launcher launcher, boolean withDelay) { in showForHomeIfNeeded() argument 147 if (!launcher.isInState(NORMAL) in showForHomeIfNeeded() 148 || (launcher.getSharedPrefs().getBoolean(HOME_BOUNCE_SEEN, false) in showForHomeIfNeeded() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/ |
D | OverviewState.java | 79 public ScaleAndTranslation getWorkspaceScaleAndTranslation(Launcher launcher) { in getWorkspaceScaleAndTranslation() argument 80 RecentsView recentsView = launcher.getOverviewPanel(); in getWorkspaceScaleAndTranslation() 81 Workspace workspace = launcher.getWorkspace(); in getWorkspaceScaleAndTranslation() 84 ? workspacePage.getWidth() : launcher.getDeviceProfile().availableWidthPx; in getWorkspaceScaleAndTranslation() 88 return new ScaleAndTranslation(scale, 0, -getDefaultSwipeHeight(launcher) * parallaxFactor); in getWorkspaceScaleAndTranslation() 92 public ScaleAndTranslation getHotseatScaleAndTranslation(Launcher launcher) { in getHotseatScaleAndTranslation() argument 93 if ((getVisibleElements(launcher) & HOTSEAT_ICONS) != 0) { in getHotseatScaleAndTranslation() 95 return super.getWorkspaceScaleAndTranslation(launcher); in getHotseatScaleAndTranslation() 97 return getWorkspaceScaleAndTranslation(launcher); in getHotseatScaleAndTranslation() 101 public ScaleAndTranslation getOverviewScaleAndTranslation(Launcher launcher) { in getOverviewScaleAndTranslation() argument [all …]
|
D | BackgroundAppState.java | 46 public void onStateEnabled(Launcher launcher) { in onStateEnabled() argument 47 AbstractFloatingView.closeAllOpenViews(launcher, false); in onStateEnabled() 51 public float getVerticalProgress(Launcher launcher) { in getVerticalProgress() argument 52 if (launcher.getDeviceProfile().isVerticalBarLayout()) { in getVerticalProgress() 53 return super.getVerticalProgress(launcher); in getVerticalProgress() 55 int transitionLength = LayoutUtils.getShelfTrackingDistance(launcher, in getVerticalProgress() 56 launcher.getDeviceProfile()); in getVerticalProgress() 57 AllAppsTransitionController controller = launcher.getAllAppsController(); in getVerticalProgress() 60 return super.getVerticalProgress(launcher) + progressDelta; in getVerticalProgress() 64 public ScaleAndTranslation getOverviewScaleAndTranslation(Launcher launcher) { in getOverviewScaleAndTranslation() argument [all …]
|
D | QuickSwitchState.java | 40 public ScaleAndTranslation getWorkspaceScaleAndTranslation(Launcher launcher) { in getWorkspaceScaleAndTranslation() argument 41 float shiftRange = launcher.getAllAppsController().getShiftRange(); in getWorkspaceScaleAndTranslation() 42 float shiftProgress = getVerticalProgress(launcher) - NORMAL.getVerticalProgress(launcher); in getWorkspaceScaleAndTranslation() 48 public int getVisibleElements(Launcher launcher) { in getVisibleElements() argument 53 public void onStateTransitionEnd(Launcher launcher) { in onStateTransitionEnd() argument 54 TaskView tasktolaunch = launcher.<RecentsView>getOverviewPanel().getTaskViewAt(0); in onStateTransitionEnd() 58 launcher.getStateManager().goToState(OVERVIEW); in onStateTransitionEnd() 61 launcher.getStateManager().moveToRestState(); in onStateTransitionEnd() 65 launcher.getStateManager().goToState(NORMAL); in onStateTransitionEnd()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
D | UiFactory.java | 66 public static Runnable enableLiveUIChanges(Launcher launcher) { in enableLiveUIChanges() argument 68 launcher.getDragLayer().recreateControllers(); in enableLiveUIChanges() 69 launcher.getRotationHelper().setRotationHadDifferentUI(m != Mode.NO_BUTTON); in enableLiveUIChanges() 71 SysUINavigationMode mode = SysUINavigationMode.INSTANCE.get(launcher); in enableLiveUIChanges() 73 launcher.getRotationHelper().setRotationHadDifferentUI(m != Mode.NO_BUTTON); in enableLiveUIChanges() 77 public static StateHandler[] getStateHandler(Launcher launcher) { in getStateHandler() argument 79 launcher.getAllAppsController(), in getStateHandler() 80 launcher.getWorkspace(), in getStateHandler() 81 createRecentsViewStateController(launcher), in getStateHandler() 82 new BackButtonAlphaHandler(launcher)}; in getStateHandler() [all …]
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | TaplTestsQuickstep.java | 64 executeOnLauncher(launcher -> assertTrue( in startTestApps() 67 isInBackground(launcher))); in startTestApps() 106 launcher -> assertTrue("Don't have at least 3 tasks", getTaskCount(launcher) >= 3)); in testOverview() 109 executeOnLauncher(launcher -> assertEquals("Current task in Overview is not 0", in testOverview() 110 0, getCurrentOverviewPage(launcher))); in testOverview() 115 launcher -> getCurrentOverviewPage(launcher)); in testOverview() 116 executeOnLauncher(launcher -> assertTrue("Current task in Overview is still 0", in testOverview() 121 executeOnLauncher(launcher -> assertTrue("Flinging back in Overview did nothing", in testOverview() 122 getCurrentOverviewPage(launcher) < currentTaskAfterFlingForward)); in testOverview() 131 executeOnLauncher(launcher -> assertTrue( in testOverview() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | ItemClickHandler.java | 85 Launcher launcher = Launcher.getLauncher(v.getContext()); in onClick() local 86 if (!launcher.getWorkspace().isFinishedSwitchingState()) { in onClick() 96 onClickAppShortcut(v, (WorkspaceItemInfo) tag, launcher, sourceContainer); in onClick() 106 startAppShortcutOrInfoActivity(v, (AppInfo) tag, launcher, in onClick() 110 onClickPendingWidget((PendingAppWidgetHostView) v, launcher); in onClick() local 131 private static void onClickPendingWidget(PendingAppWidgetHostView v, Launcher launcher) { in onClickPendingWidget() argument 132 if (launcher.getPackageManager().isSafeMode()) { in onClickPendingWidget() 133 Toast.makeText(launcher, R.string.safemode_widget_error, Toast.LENGTH_SHORT).show(); in onClickPendingWidget() 140 .getInstance(launcher).findProvider(info.providerName, info.user); in onClickPendingWidget() 151 addFlowHandler.startBindFlow(launcher, info.appWidgetId, info, in onClickPendingWidget() [all …]
|
D | ItemLongClickListener.java | 48 Launcher launcher = Launcher.getLauncher(v.getContext()); in onWorkspaceItemLongClick() local 49 if (!canStartDrag(launcher)) return false; in onWorkspaceItemLongClick() 50 if (!launcher.isInState(NORMAL) && !launcher.isInState(OVERVIEW)) return false; in onWorkspaceItemLongClick() 53 launcher.setWaitingForResult(null); in onWorkspaceItemLongClick() 54 beginDrag(v, launcher, (ItemInfo) v.getTag(), new DragOptions()); in onWorkspaceItemLongClick() 58 public static void beginDrag(View v, Launcher launcher, ItemInfo info, in beginDrag() argument 61 Folder folder = Folder.getOpen(launcher); in beginDrag() 73 launcher.getWorkspace().startDrag(longClickCellInfo, dragOptions); in beginDrag() 77 Launcher launcher = Launcher.getLauncher(v.getContext()); in onAllAppsItemLongClick() local 78 if (!canStartDrag(launcher)) return false; in onAllAppsItemLongClick() [all …]
|
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | LauncherActivityControllerHelper.java | 73 Launcher launcher = getCreatedActivity(); 74 return (launcher != null) && launcher.isStarted() && launcher.hasWindowFocus() ? 75 launcher : null; 80 Launcher launcher = getVisibleLauncher(); 81 return launcher != null && launcher.getStateManager().getState().overviewUi 82 ? launcher.getOverviewPanel() : null; 87 Launcher launcher = getVisibleLauncher(); 88 if (launcher == null) { 91 launcher.<IconRecentsView>getOverviewPanel().setUsingRemoteAnimation(false); 92 launcher.getUserEventDispatcher().logActionCommand( [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/ |
D | SubSettingLauncherTest.java | 66 final SubSettingLauncher launcher = spy(new SubSettingLauncher(mContext)) in cannotReuseLauncher() local 69 doNothing().when(launcher).launch(any(Intent.class)); in cannotReuseLauncher() 70 launcher.launch(); in cannotReuseLauncher() 71 launcher.launch(); in cannotReuseLauncher() 76 final SubSettingLauncher launcher = spy(new SubSettingLauncher(mContext)) in launch_noSourceMetricsCategory_shouldCrash() local 78 launcher.launch(); in launch_noSourceMetricsCategory_shouldCrash() 83 final SubSettingLauncher launcher = spy(new SubSettingLauncher(mContext)) in launch_noDestination_shouldCrash() local 85 launcher.launch(); in launch_noDestination_shouldCrash() 91 final SubSettingLauncher launcher = spy(new SubSettingLauncher(mContext)); in launch_shouldIncludeAllParams() local 92 launcher.setTitleText("123") in launch_shouldIncludeAllParams() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | OptionsPopupView.java | 124 public static void show(Launcher launcher, RectF targetRect, List<OptionItem> items) { in show() argument 125 OptionsPopupView popup = (OptionsPopupView) launcher.getLayoutInflater() in show() 126 .inflate(R.layout.longpress_options_menu, launcher.getDragLayer(), false); in show() 142 public static ArrowPopup getOptionsPopup(Launcher launcher) { in getOptionsPopup() argument 143 return launcher.findViewById(R.id.deep_shortcuts_container); in getOptionsPopup() 146 public static void showDefaultOptions(Launcher launcher, float x, float y) { in showDefaultOptions() argument 147 float halfSize = launcher.getResources().getDimension(R.dimen.options_menu_thumb_size) / 2; in showDefaultOptions() 149 x = launcher.getDragLayer().getWidth() / 2; in showDefaultOptions() 150 y = launcher.getDragLayer().getHeight() / 2; in showDefaultOptions() 155 int resString = Utilities.existsStyleWallpapers(launcher) ? in showDefaultOptions() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherState.java | 203 public ScaleAndTranslation getWorkspaceScaleAndTranslation(Launcher launcher) { in getWorkspaceScaleAndTranslation() argument 207 public ScaleAndTranslation getHotseatScaleAndTranslation(Launcher launcher) { in getHotseatScaleAndTranslation() argument 209 return getWorkspaceScaleAndTranslation(launcher); in getHotseatScaleAndTranslation() 212 public ScaleAndTranslation getOverviewScaleAndTranslation(Launcher launcher) { in getOverviewScaleAndTranslation() argument 213 return UiFactory.getOverviewScaleAndTranslationForNormalState(launcher); in getOverviewScaleAndTranslation() 220 public void onStateEnabled(Launcher launcher) { in onStateEnabled() argument 221 dispatchWindowStateChanged(launcher); in onStateEnabled() 224 public void onStateDisabled(Launcher launcher) { } in onStateDisabled() argument 226 public int getVisibleElements(Launcher launcher) { in getVisibleElements() argument 227 if (launcher.getDeviceProfile().isVerticalBarLayout()) { in getVisibleElements() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | LauncherActivityControllerHelper.java | 117 Launcher launcher = getCreatedActivity(); in onAssistantVisibilityChanged() local 118 if (launcher != null) { in onAssistantVisibilityChanged() 119 launcher.onAssistantVisibilityChanged(visibility); in onAssistantVisibilityChanged() 365 private void playScaleDownAnim(AnimatorSet anim, Launcher launcher, LauncherState fromState, 367 RecentsView recentsView = launcher.getOverviewPanel(); 374 = fromState.getOverviewScaleAndTranslation(launcher); 376 = endState.getOverviewScaleAndTranslation(launcher); 400 Rect fallbackInsets = launcher.getDeviceProfile().getInsets(); 429 Launcher launcher = getCreatedActivity(); 430 return (launcher != null) && launcher.isStarted() && launcher.hasWindowFocus() ? [all …]
|
/packages/apps/Launcher3/go/quickstep/src/com/android/launcher3/uioverrides/states/ |
D | OverviewState.java | 66 public ScaleAndTranslation getOverviewScaleAndTranslation(Launcher launcher) { in getOverviewScaleAndTranslation() argument 71 public void onStateEnabled(Launcher launcher) { in onStateEnabled() argument 72 IconRecentsView recentsView = launcher.getOverviewPanel(); in onStateEnabled() 77 launcher.getRotationHelper().setCurrentStateRequest(REQUEST_ROTATE); in onStateEnabled() 81 public void onStateDisabled(Launcher launcher) { in onStateDisabled() argument 82 IconRecentsView recentsView = launcher.getOverviewPanel(); in onStateDisabled() 87 public PageAlphaProvider getWorkspacePageAlphaProvider(Launcher launcher) { in getWorkspacePageAlphaProvider() argument 97 public int getVisibleElements(Launcher launcher) { 102 public float getWorkspaceScrimAlpha(Launcher launcher) { 107 public String getDescription(Launcher launcher) { [all …]
|
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/ |
D | UiFactory.java | 37 public static TouchController[] createTouchControllers(Launcher launcher) { in createTouchControllers() argument 39 launcher.getDragController(), new AllAppsSwipeController(launcher)}; in createTouchControllers() 46 public static StateHandler[] getStateHandler(Launcher launcher) { in getStateHandler() argument 48 launcher.getAllAppsController(), launcher.getWorkspace() }; in getStateHandler() 51 public static void resetOverview(Launcher launcher) { } in resetOverview() argument 53 public static void onLauncherStateOrFocusChanged(Launcher launcher) { } in onLauncherStateOrFocusChanged() argument 55 public static void onCreate(Launcher launcher) { } in onCreate() argument 57 public static void onStart(Launcher launcher) { } in onStart() argument 61 public static void onLauncherStateOrResumeChanged(Launcher launcher) { } in onLauncherStateOrResumeChanged() argument 63 public static void onTrimMemory(Launcher launcher, int level) { } in onTrimMemory() argument [all …]
|
/packages/apps/Launcher3/go/quickstep/src/com/android/launcher3/uioverrides/ |
D | RecentsUiFactory.java | 42 public static TouchController[] createTouchControllers(Launcher launcher) { in createTouchControllers() argument 44 list.add(launcher.getDragController()); in createTouchControllers() 46 if (launcher.getDeviceProfile().isVerticalBarLayout()) { in createTouchControllers() 47 list.add(new LandscapeStatesTouchController(launcher)); in createTouchControllers() 48 list.add(new LandscapeEdgeSwipeController(launcher)); in createTouchControllers() 50 boolean allowDragToOverview = SysUINavigationMode.INSTANCE.get(launcher) in createTouchControllers() 52 list.add(new PortraitStatesTouchController(launcher, allowDragToOverview)); in createTouchControllers() 55 && !launcher.getDeviceProfile().isMultiWindowMode in createTouchControllers() 56 && !launcher.getDeviceProfile().isVerticalBarLayout()) { in createTouchControllers() 57 list.add(new StatusBarTouchController(launcher)); in createTouchControllers() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/ |
D | RecentsUiFactory.java | 142 public static TouchController[] createTouchControllers(Launcher launcher) { in createTouchControllers() argument 143 Mode mode = SysUINavigationMode.getMode(launcher); in createTouchControllers() 146 list.add(launcher.getDragController()); in createTouchControllers() 148 list.add(new QuickSwitchTouchController(launcher)); in createTouchControllers() 149 list.add(new NavBarToHomeTouchController(launcher)); in createTouchControllers() 150 list.add(new FlingAndHoldTouchController(launcher)); in createTouchControllers() 152 if (launcher.getDeviceProfile().isVerticalBarLayout()) { in createTouchControllers() 153 list.add(new OverviewToAllAppsTouchController(launcher)); in createTouchControllers() 154 list.add(new LandscapeEdgeSwipeController(launcher)); in createTouchControllers() 156 list.add(new TransposedQuickSwitchTouchController(launcher)); in createTouchControllers() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/ |
D | AllAppsState.java | 47 public void onStateEnabled(Launcher launcher) { in onStateEnabled() argument 48 AbstractFloatingView.closeAllOpenViews(launcher); in onStateEnabled() 49 dispatchWindowStateChanged(launcher); in onStateEnabled() 53 public String getDescription(Launcher launcher) { in getDescription() argument 54 AllAppsContainerView appsView = launcher.getAppsView(); in getDescription() 59 public float getVerticalProgress(Launcher launcher) { in getVerticalProgress() argument 64 public ScaleAndTranslation getWorkspaceScaleAndTranslation(Launcher launcher) { in getWorkspaceScaleAndTranslation() argument 66 .getWorkspaceScaleAndTranslation(launcher); in getWorkspaceScaleAndTranslation() 67 if (SysUINavigationMode.getMode(launcher) == SysUINavigationMode.Mode.NO_BUTTON) { in getWorkspaceScaleAndTranslation() 78 public PageAlphaProvider getWorkspacePageAlphaProvider(Launcher launcher) { in getWorkspacePageAlphaProvider() argument [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | AllAppsTipView.java | 147 private static boolean showAllAppsTipIfNecessary(Launcher launcher) { in showAllAppsTipIfNecessary() argument 148 FloatingHeaderView floatingHeaderView = launcher.getAppsView().getFloatingHeaderView(); in showAllAppsTipIfNecessary() 150 || AbstractFloatingView.getOpenView(launcher, in showAllAppsTipIfNecessary() 152 || !launcher.isInState(ALL_APPS) in showAllAppsTipIfNecessary() 153 || hasSeenAllAppsTip(launcher) in showAllAppsTipIfNecessary() 154 || UserManagerCompat.getInstance(launcher).isDemoUser() in showAllAppsTipIfNecessary() 159 AllAppsTipView allAppsTipView = new AllAppsTipView(launcher.getAppsView().getContext(), in showAllAppsTipIfNecessary() 161 launcher.getDragLayer().addView(allAppsTipView); in showAllAppsTipIfNecessary() 167 allAppsTipView.setY(top - launcher.getResources().getDimensionPixelSize( in showAllAppsTipIfNecessary() 179 launcher.getUserEventDispatcher().logActionTip( in showAllAppsTipIfNecessary() [all …]
|
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/states/ |
D | AllAppsState.java | 49 public void onStateEnabled(Launcher launcher) { in onStateEnabled() argument 50 if (!launcher.getSharedPrefs().getBoolean(HOME_BOUNCE_SEEN, false)) { in onStateEnabled() 51 launcher.getSharedPrefs().edit().putBoolean(HOME_BOUNCE_SEEN, true).apply(); in onStateEnabled() 54 AbstractFloatingView.closeAllOpenViews(launcher); in onStateEnabled() 55 dispatchWindowStateChanged(launcher); in onStateEnabled() 59 public String getDescription(Launcher launcher) { in getDescription() argument 60 return launcher.getString(R.string.all_apps_button_label); in getDescription() 64 public int getVisibleElements(Launcher launcher) { in getVisibleElements() argument 69 public ScaleAndTranslation getWorkspaceScaleAndTranslation(Launcher launcher) { in getWorkspaceScaleAndTranslation() argument 71 -launcher.getAllAppsController().getShiftRange() * PARALLAX_COEFFICIENT); in getWorkspaceScaleAndTranslation() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/states/ |
D | SpringLoadedState.java | 44 public ScaleAndTranslation getWorkspaceScaleAndTranslation(Launcher launcher) { in getWorkspaceScaleAndTranslation() argument 45 DeviceProfile grid = launcher.getDeviceProfile(); in getWorkspaceScaleAndTranslation() 46 Workspace ws = launcher.getWorkspace(); in getWorkspaceScaleAndTranslation() 48 return super.getWorkspaceScaleAndTranslation(launcher); in getWorkspaceScaleAndTranslation() 57 Rect insets = launcher.getDragLayer().getInsets(); in getWorkspaceScaleAndTranslation() 76 public ScaleAndTranslation getHotseatScaleAndTranslation(Launcher launcher) { in getHotseatScaleAndTranslation() argument 81 public void onStateEnabled(Launcher launcher) { in onStateEnabled() argument 82 Workspace ws = launcher.getWorkspace(); in onStateEnabled() 89 launcher.getRotationHelper().setCurrentStateRequest(REQUEST_LOCK); in onStateEnabled() 93 public float getWorkspaceScrimAlpha(Launcher launcher) { in getWorkspaceScrimAlpha() argument [all …]
|
D | InternalStateHandler.java | 46 protected abstract boolean init(Launcher launcher, boolean alreadyOnHome); in init() argument 67 public static boolean handleCreate(Launcher launcher, Intent intent) { in handleCreate() argument 68 return handleIntent(launcher, intent, false, false); in handleCreate() 71 public static boolean handleNewIntent(Launcher launcher, Intent intent, boolean alreadyOnHome) { in handleNewIntent() argument 72 return handleIntent(launcher, intent, alreadyOnHome, true); in handleNewIntent() 76 Launcher launcher, Intent intent, boolean alreadyOnHome, boolean explicitIntent) { in handleIntent() argument 82 if (!handler.init(launcher, alreadyOnHome)) { in handleIntent() 89 result = sScheduler.initIfPending(launcher, alreadyOnHome); in handleIntent() 119 Launcher launcher = (Launcher) cb; in run() local 120 initIfPending(launcher, launcher.isStarted()); in run() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingItemDragHelper.java | 72 final Launcher launcher = Launcher.getLauncher(mView.getContext()); in startDrag() local 73 LauncherAppState app = LauncherAppState.getInstance(launcher); in startDrag() 80 mEstimatedCellSize = launcher.getWorkspace().estimateItemSize(mAddInfo); in startDrag() 90 preview = LivePreviewWidgetCell.generateFromRemoteViews(launcher, mPreview, in startDrag() 95 launcher, createWidgetInfo.info, maxWidth, null, previewSizeBeforeScale); in startDrag() 109 launcher.getDragController().addDragListener(new WidgetHostViewLoader(launcher, mView)); in startDrag() 116 LauncherIcons li = LauncherIcons.obtain(launcher); in startDrag() 119 scale = ((float) launcher.getDeviceProfile().iconSizePx) / preview.getWidth(); in startDrag() 125 DeviceProfile dp = launcher.getDeviceProfile(); in startDrag() 128 int padding = launcher.getResources() in startDrag() [all …]
|