/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | LauncherAllAppsContainerView.java | 50 return mActivityContext.getStateManager().isInStableState(LauncherState.ALL_APPS); in isInAllApps() 58 Launcher launcher = mActivityContext; in shouldFloatingSearchBarBePillWhenUnfocused() 72 Launcher launcher = mActivityContext; in getFloatingSearchBarRestingMarginBottom() 98 StateManager<LauncherState, Launcher> stateManager = mActivityContext.getStateManager(); in getFloatingSearchBarRestingMarginStart() 102 && mActivityContext.getDeviceProfile().isPhone) { in getFloatingSearchBarRestingMarginStart() 103 return LauncherState.ALL_APPS.getFloatingSearchBarRestingMarginStart(mActivityContext); in getFloatingSearchBarRestingMarginStart() 108 .getFloatingSearchBarRestingMarginStart(mActivityContext); in getFloatingSearchBarRestingMarginStart() 111 .getFloatingSearchBarRestingMarginStart(mActivityContext); in getFloatingSearchBarRestingMarginStart() 120 StateManager<LauncherState, Launcher> stateManager = mActivityContext.getStateManager(); in getFloatingSearchBarRestingMarginEnd() 124 && mActivityContext.getDeviceProfile().isPhone) { in getFloatingSearchBarRestingMarginEnd() [all …]
|
D | ActivityAllAppsContainerView.java | 137 protected final T mActivityContext; field in ActivityAllAppsContainerView 206 mActivityContext = ActivityContext.lookupContext(context); in ActivityAllAppsContainerView() 207 mAllAppsStore = new AllAppsStore<>(mActivityContext); in ActivityAllAppsContainerView() 215 mActivityContext.getSystemService(UserManager.class), in ActivityAllAppsContainerView() 217 mActivityContext.getStatsLogManager(), in ActivityAllAppsContainerView() 218 UserCache.INSTANCE.get(mActivityContext)); in ActivityAllAppsContainerView() 220 mActivityContext.getSystemService(UserManager.class), in ActivityAllAppsContainerView() 222 mActivityContext.getStatsLogManager(), in ActivityAllAppsContainerView() 223 UserCache.INSTANCE.get(mActivityContext)); in ActivityAllAppsContainerView() 228 mNavBarScrimPaint.setColor(Themes.getNavBarScrimColor(mActivityContext)); in ActivityAllAppsContainerView() [all …]
|
D | BaseAllAppsAdapter.java | 165 protected final T mActivityContext; field in BaseAllAppsAdapter 177 mActivityContext = activityContext; in BaseAllAppsAdapter() 181 mOnIconClickListener = mActivityContext.getItemOnClickListener(); in BaseAllAppsAdapter() 182 mOnIconLongClickListener = mActivityContext.getAllAppsItemLongClickListener(); in BaseAllAppsAdapter() 222 mActivityContext.getApplicationContext())) in onCreateViewHolder() 232 mActivityContext.getDeviceProfile().allAppsCellHeightPx; in onCreateViewHolder() 295 ((TextView) holder.itemView).setText(mActivityContext.getString( in onBindViewHolder() 310 new SectionDecorationInfo(mActivityContext, roundRegions, in onBindViewHolder() 316 == STATE_DISABLED ? null : new SectionDecorationInfo(mActivityContext, in onBindViewHolder()
|
D | WorkPausedCard.java | 37 private final ActivityContext mActivityContext; field in WorkPausedCard 50 mActivityContext = ActivityContext.lookupContext(getContext()); in WorkPausedCard() 63 StringCache cache = mActivityContext.getStringCache(); in updateStringFromCache() 83 mActivityContext.getAppsView().getWorkManager().setWorkProfileEnabled(true); in onClick() 84 mActivityContext.getStatsLogManager().logger().log(LAUNCHER_TURN_ON_WORK_APPS_TAP); in onClick()
|
D | WorkModeSwitch.java | 50 private final ActivityContext mActivityContext; field in WorkModeSwitch 70 mActivityContext = ActivityContext.lookupContext(getContext()); in WorkModeSwitch() 83 setInsets(mActivityContext.getDeviceProfile().getInsets()); in onFinishInflate() 95 if (mActivityContext.getAppsView().isSearchBarFloating()) { in setInsets() 111 int shift = mActivityContext.getDeviceProfile().getAllAppsIconStartMargin(mContext); in onLayout() 198 StringCache cache = mActivityContext.getStringCache(); in updateStringFromCache()
|
D | AlphabeticalAppsList.java | 82 private final T mActivityContext; field in AlphabeticalAppsList 109 mActivityContext = ActivityContext.lookupContext(context); in AlphabeticalAppsList() 113 mNumAppsPerRowAllApps = mActivityContext.getDeviceProfile().numShownAllAppsColumns; in AlphabeticalAppsList() 242 Locale curLocale = mActivityContext.getResources().getConfiguration().locale; in onAppsUpdated() 290 mActivityContext.getResources().getString( in updateAdapterItems() 366 .splitIntoUserInstalledAndSystemApps(mActivityContext))); in addPrivateSpaceApps() 369 mActivityContext in addPrivateSpaceApps() 375 mActivityContext in addPrivateSpaceApps() 406 new SectionDecorationInfo(mActivityContext.getApplicationContext(), in addAppsWithSections()
|
D | PrivateSpaceSettingsButton.java | 35 private final ActivityContext mActivityContext; field in PrivateSpaceSettingsButton 49 mActivityContext = ActivityContext.lookupContext(context); in PrivateSpaceSettingsButton() 50 mStatsLogManager = mActivityContext.getStatsLogManager(); in PrivateSpaceSettingsButton() 66 mActivityContext.startActivitySafely( in onClick()
|
D | WorkEduCard.java | 42 private final ActivityContext mActivityContext; field in WorkEduCard 56 mActivityContext = ActivityContext.lookupContext(getContext()); in WorkEduCard() 103 AllAppsRecyclerView rv = mActivityContext.getAppsView().mAH.get( in removeCard() 124 StringCache cache = mActivityContext.getStringCache(); in updateStringFromCache()
|
D | FloatingMaskView.java | 31 private final ActivityContext mActivityContext; field in FloatingMaskView 44 mActivityContext = ActivityContext.lookupContext(context); in FloatingMaskView() 58 mActivityContext.getAppsView().getActiveRecyclerView(); in onLayout()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | BaseWidgetSheet.java | 88 mNavBarScrimPaint.setColor(Themes.getNavBarScrimColor(mActivityContext)); in BaseWidgetSheet() 109 mActivityContext.getPopupDataProvider().setChangeListener(this); in onAttachedToWindow() 110 mActivityContext.addOnDeviceProfileChangeListener(this); in onAttachedToWindow() 116 mActivityContext.getPopupDataProvider().setChangeListener(null); in onDetachedFromWindow() 117 mActivityContext.removeOnDeviceProfileChangeListener(this); in onDetachedFromWindow() 122 int navBarScrimColor = Themes.getNavBarScrimColor(mActivityContext); in onDeviceProfileChanged() 159 if (mActivityContext instanceof Launcher) { in onClick() 162 wc.showAddButton((view) -> mActivityContext.getItemOnClickListener() in onClick() 174 mActivityContext.getItemOnClickListener().onClick(wc); in onClick() 199 Launcher launcher = Launcher.getLauncher(mActivityContext); in addWidget() [all …]
|
D | LauncherAppWidgetHostView.java | 72 protected final ActivityContext mActivityContext; field in LauncherAppWidgetHostView 88 mActivityContext = ActivityContext.lookupContext(context); in LauncherAppWidgetHostView() 90 setAccessibilityDelegate(mActivityContext.getAccessibilityDelegate()); in LauncherAppWidgetHostView() 115 mActivityContext.getDragLayer().requestDisallowInterceptTouchEvent(false); in onLongClick() 201 BaseDragLayer dragLayer = mActivityContext.getDragLayer(); in onInterceptTouchEvent()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | TaskbarView.java | 88 private final TaskbarActivityContext mActivityContext; field in TaskbarView 129 mActivityContext = ActivityContext.lookupContext(context); in TaskbarView() 130 mIconLayoutBounds = mActivityContext.getTransientTaskbarBounds(); in TaskbarView() 132 boolean isTransientTaskbar = DisplayController.isTransientTaskbar(mActivityContext) in TaskbarView() 133 && !mActivityContext.isPhoneMode(); in TaskbarView() 137 onDeviceProfileChanged(mActivityContext.getDeviceProfile()); in TaskbarView() 140 int actualIconSize = mActivityContext.getDeviceProfile().taskbarIconSize; in TaskbarView() 141 if (enableTaskbarPinning() && !mActivityContext.isThreeButtonNav()) { in TaskbarView() 142 DeviceProfile deviceProfile = mActivityContext.getTransientTaskbarDeviceProfile(); in TaskbarView() 156 mItemPadding = (mIconTouchSize - mActivityContext.getDeviceProfile().taskbarIconSize) / 2; in TaskbarView() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/appprediction/ |
D | PredictionRowView.java | 55 private final T mActivityContext; field in PredictionRowView 84 mActivityContext = ActivityContext.lookupContext(context); in PredictionRowView() 85 mNumPredictedAppsPerRow = mActivityContext.getDeviceProfile().numShownAllAppsColumns; in PredictionRowView() 96 mActivityContext.addOnDeviceProfileChangeListener(this); in onAttachedToWindow() 102 mActivityContext.removeOnDeviceProfileChangeListener(this); in onDetachedFromWindow() 111 if (mActivityContext.getAppsView() != null) { in updateVisibility() 113 mActivityContext.getAppsView().getAppsStore().registerIconContainer(this); in updateVisibility() 115 mActivityContext.getAppsView().getAppsStore().unregisterIconContainer(this); in updateVisibility() 134 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in getExpectedHeight() 214 LayoutInflater inflater = mActivityContext.getAppsView().getLayoutInflater(); in applyPredictionApps() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/ |
D | HotseatEduDialog.java | 92 DeviceProfile grid = mActivityContext.getDeviceProfile(); in onFinishInflate() 120 mActivityContext.getStatsLogManager().logger().log(LAUNCHER_HOTSEAT_EDU_ACCEPT); in onAccept() 126 mActivityContext.getStatsLogManager().logger().log(LAUNCHER_HOTSEAT_EDU_DENY); in onDismiss() 141 if (mActivityContext.getOrientation() == Configuration.ORIENTATION_PORTRAIT) { in setInsets() 146 mActivityContext.getDeviceProfile().hotseatBarSizePx + insets.bottom; in setInsets() 185 for (int i = 0; i < mActivityContext.getDeviceProfile().numShownHotseatIcons; i++) { in populatePreview() 201 || predictions.size() < mActivityContext.getDeviceProfile().numShownHotseatIcons in show() 205 AbstractFloatingView.closeAllOpenViews(mActivityContext); in show() 209 mActivityContext.getStatsLogManager().logger().log(LAUNCHER_HOTSEAT_EDU_SEEN); in show()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/secondarydisplay/ |
D | SecondaryDisplayPredictionsImpl.java | 33 private final ActivityContext mActivityContext; field in SecondaryDisplayPredictionsImpl 38 mActivityContext = ActivityContext.lookupContext(context); in SecondaryDisplayPredictionsImpl() 43 mActivityContext.getAppsView().getFloatingHeaderView() in updateAppDivider() 51 mActivityContext.getAppsView().getFloatingHeaderView() in setPredictedApps()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/allapps/ |
D | TaskbarAllAppsSlideInView.java | 122 if (mActivityContext.getDeviceProfile().isPhone) { in onOpenCloseAnimationPending() 133 if (mActivityContext.getDeviceProfile().isTablet) { in getScrimInterpolator() 178 if (mActivityContext.getDeviceProfile().isPhone) { in onFinishInflate() 188 DeviceProfile dp = mActivityContext.getDeviceProfile(); in onFinishInflate() 195 mActivityContext.addOnDeviceProfileChangeListener(this); in onAttachedToWindow() 210 mActivityContext.removeOnDeviceProfileChangeListener(this); in onDetachedFromWindow() 241 return mActivityContext.getDeviceProfile().isPhone in getScrimColor() 251 mActivityContext, TYPE_TOUCH_CONTROLLER_NO_INTERCEPT) != null; in onControllerInterceptTouchEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | ArrowTipView.java | 76 private final ActivityContext mActivityContext; field in ArrowTipView 100 mActivityContext = ActivityContext.lookupContext(context); in ArrowTipView() 122 if (mActivityContext.getDragLayer().isEventOverView(this, ev)) { in onControllerInterceptTouchEvent() 137 () -> mActivityContext.getDragLayer().removeView(this))); in handleClose() 141 mActivityContext.getDragLayer().removeView(this); in handleClose() 175 mActivityContext.getDragLayer().removeView(ArrowTipView.this); in init() 213 ViewGroup parent = mActivityContext.getDragLayer(); in show() 216 DeviceProfile grid = mActivityContext.getDeviceProfile(); in show() 327 ViewGroup parent = mActivityContext.getDragLayer(); in showAtLocation()
|
D | AbstractSlideInView.java | 89 protected final T mActivityContext; field in AbstractSlideInView 158 mActivityContext = ActivityContext.lookupContext(context); in AbstractSlideInView() 439 float successfulShiftThreshold = mActivityContext.getDeviceProfile().isTablet in onDragEnd() 517 return mActivityContext.getDragLayer(); in getPopupContainer()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
D | AllAppsSearchUiDelegate.java | 35 protected final ActivityContext mActivityContext; field in AllAppsSearchUiDelegate 39 mActivityContext = ActivityContext.lookupContext(mAppsView.getContext()); in AllAppsSearchUiDelegate() 84 return new DefaultSearchAdapterProvider(mActivityContext); in createMainAdapterProvider()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsFullSheet.java | 158 mDeviceProfile = mActivityContext.getDeviceProfile(); in WidgetsFullSheet() 250 mActivityContext.getPopupDataProvider(), /* searchModeListener= */ this); in setupViews() 254 if (mActivityContext.getStringCache() != null) { in setDeviceManagementResources() 256 personalTab.setText(mActivityContext.getStringCache().widgetsPersonalTab); in setDeviceManagementResources() 259 workTab.setText(mActivityContext.getStringCache().widgetsWorkTab); in setDeviceManagementResources() 296 && mActivityContext.getStringCache() != null) { in updateRecyclerViewVisibility() 297 mNoWidgetsView.setText(mActivityContext.getStringCache().workProfilePausedTitle); in updateRecyclerViewVisibility() 474 mActivityContext.getPopupDataProvider().getAllWidgets(); in onWidgetsBound() 506 mActivityContext.getStatsLogManager().logger().log(LAUNCHER_WIDGETSTRAY_SEARCHED); in enterSearchMode() 572 mActivityContext.getPopupDataProvider().getCategorizedRecommendedWidgets(); in onRecommendedWidgetsBound() [all …]
|
D | WidgetsListTableViewHolderBinder.java | 61 private @NonNull final ActivityContext mActivityContext; field in WidgetsListTableViewHolderBinder 72 mActivityContext = ActivityContext.lookupContext(context); in WidgetsListTableViewHolderBinder() 110 mActivityContext.getDeviceProfile(), in bindViewHolder()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ButtonDropTarget.java | 62 protected final ActivityContext mActivityContext; field in ButtonDropTarget 95 mActivityContext = ActivityContext.lookupContext(context); in ButtonDropTarget() 96 mDropTargetHandler = mActivityContext.getDropTargetHandler(); in ButtonDropTarget() 223 mActivityContext.getDragController().getDistanceDragged() in isDropEnabled() 277 outRect.bottom += mActivityContext.getDeviceProfile().dropTargetDragPaddingPx; in getHitRectRelativeToDragLayer() 280 mActivityContext.getDragLayer().getDescendantCoordRelativeToSelf(this, sTempCords); in getHitRectRelativeToDragLayer()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | Folder.java | 200 protected final ActivityContext mActivityContext; field in Folder 273 mActivityContext = ActivityContext.lookupContext(context); in Folder() 274 mLauncherDelegate = LauncherDelegate.from(mActivityContext); in Folder() 293 final DeviceProfile dp = mActivityContext.getDeviceProfile(); in onFinishInflate() 669 Folder openFolder = getOpen(mActivityContext); in animateOpen() 682 BaseDragLayer dragLayer = mActivityContext.getDragLayer(); in animateOpen() 806 mActivityContext.getDragLayer().sendAccessibilityEvent( in handleClose() 1109 mActivityContext.getDeviceProfile()).setFolderInfo(mInfo); in updateItemLocationsInDatabaseBatch() 1145 BaseDragLayer parent = mActivityContext.getDragLayer(); in centerAboutIcon() 1155 sTempRect.set(mActivityContext.getFolderBoundingBox()); in centerAboutIcon() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | PopupContainerWithArrow.java | 146 mActivityContext.getItemOnClickListener().onClick(view); in getItemClickListener() 263 mActivityContext, originalItemInfo, new Handler(Looper.getMainLooper()), in loadAppShortcuts() 393 if (currentHeight >= mActivityContext.getDeviceProfile().availableHeightPx) break; in addDeepShortcuts() 562 if (mActivityContext.getDragController() != null) { 563 mActivityContext.getDragController().removeDragListener(this); 565 PopupContainerWithArrow openPopup = getOpen(mActivityContext);
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | TaskMenuViewWithArrow.kt | 134 mActivityContext.deviceProfile, in <lambda>() 193 val recentsView: RecentsView<*, *> = mActivityContext.getOverviewPanel() in <lambda>() 195 val deviceProfile: DeviceProfile = mActivityContext.deviceProfile in <lambda>() 206 mActivityContext.layoutInflater.inflate(R.layout.task_view_menu_option, this, false) in <lambda>()
|