Home
last modified time | relevance | path

Searched refs:mActivityContext (Results 1 – 25 of 43) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DLauncherAllAppsContainerView.java50 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 …]
DActivityAllAppsContainerView.java128 protected final T mActivityContext; field in ActivityAllAppsContainerView
198 mActivityContext = ActivityContext.lookupContext(context); in ActivityAllAppsContainerView()
199 mAllAppsStore = new AllAppsStore<>(mActivityContext); in ActivityAllAppsContainerView()
207 mActivityContext.getSystemService(UserManager.class), in ActivityAllAppsContainerView()
209 mActivityContext.getStatsLogManager(), in ActivityAllAppsContainerView()
210 UserCache.INSTANCE.get(mActivityContext)); in ActivityAllAppsContainerView()
212 mActivityContext.getSystemService(UserManager.class), in ActivityAllAppsContainerView()
214 mActivityContext.getStatsLogManager(), in ActivityAllAppsContainerView()
215 UserCache.INSTANCE.get(mActivityContext)); in ActivityAllAppsContainerView()
220 mNavBarScrimPaint.setColor(Themes.getNavBarScrimColor(mActivityContext)); in ActivityAllAppsContainerView()
[all …]
DBaseAllAppsAdapter.java165 protected final T mActivityContext; field in BaseAllAppsAdapter
177 mActivityContext = activityContext; in BaseAllAppsAdapter()
181 mOnIconClickListener = mActivityContext.getItemOnClickListener(); in BaseAllAppsAdapter()
182 mOnIconLongClickListener = mActivityContext.getAllAppsItemLongClickListener(); in BaseAllAppsAdapter()
220 int layout = mActivityContext.getDeviceProfile().inv.enableTwoLinesInAllApps in onCreateViewHolder()
230 mActivityContext.getDeviceProfile().allAppsCellHeightPx; in onCreateViewHolder()
248 return new ViewHolder(new View(mActivityContext)); in onCreateViewHolder()
302 ((TextView) holder.itemView).setText(mActivityContext.getString( in onBindViewHolder()
317 new SectionDecorationInfo(mActivityContext, roundRegions, in onBindViewHolder()
323 == STATE_DISABLED ? null : new SectionDecorationInfo(mActivityContext, in onBindViewHolder()
DWorkPausedCard.java39 private final ActivityContext mActivityContext; field in WorkPausedCard
52 mActivityContext = ActivityContext.lookupContext(getContext()); in WorkPausedCard()
65 StringCache cache = mActivityContext.getStringCache(); in updateStringFromCache()
85 mActivityContext.getAppsView().getWorkManager().setWorkProfileEnabled(true); in onClick()
86 mActivityContext.getStatsLogManager().logger().log(LAUNCHER_TURN_ON_WORK_APPS_TAP); in onClick()
DPrivateSpaceSettingsButton.java35 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()
DAlphabeticalAppsList.java96 private final T mActivityContext; field in AlphabeticalAppsList
124 mActivityContext = ActivityContext.lookupContext(context); in AlphabeticalAppsList()
128 mNumAppsPerRowAllApps = mActivityContext.getDeviceProfile().numShownAllAppsColumns; in AlphabeticalAppsList()
262 Locale curLocale = mActivityContext.getResources().getConfiguration().locale; in onAppsUpdated()
311 mActivityContext.getResources().getString( in updateAdapterItems()
398 .splitIntoUserInstalledAndSystemApps(mActivityContext))); in addPrivateSpaceApps()
401 mActivityContext in addPrivateSpaceApps()
407 mActivityContext in addPrivateSpaceApps()
469 new SectionDecorationInfo(mActivityContext, in addAppsWithSections()
DWorkEduCard.java42 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()
DWorkUtilityView.java85 private final ActivityContext mActivityContext; field in WorkUtilityView
115 mActivityContext = ActivityContext.lookupContext(getContext()); in WorkUtilityView()
124 mStatsLogManager = mActivityContext.getStatsLogManager(); in WorkUtilityView()
142 setInsets(mActivityContext.getDeviceProfile().getInsets()); in onFinishInflate()
150 mActivityContext.startActivitySafely(view, in onFinishInflate()
164 if (mActivityContext.getAppsView().isSearchBarFloating()) { in setInsets()
180 int shift = mActivityContext.getDeviceProfile().getAllAppsIconStartMargin(mContext); in onLayout()
431 StringCache cache = mActivityContext.getStringCache(); in updateStringFromCache()
DFloatingMaskView.java32 private final ActivityContext mActivityContext; field in FloatingMaskView
45 mActivityContext = ActivityContext.lookupContext(context); in FloatingMaskView()
58 mActivityContext.getAppsView().getActiveRecyclerView()); in onLayout()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DBaseWidgetSheet.java88 mNavBarScrimPaint.setColor(Themes.getNavBarScrimColor(mActivityContext)); in BaseWidgetSheet()
109 mActivityContext.getWidgetPickerDataProvider().setChangeListener(this); in onAttachedToWindow()
110 mActivityContext.addOnDeviceProfileChangeListener(this); in onAttachedToWindow()
116 mActivityContext.getWidgetPickerDataProvider().setChangeListener(null); in onDetachedFromWindow()
117 mActivityContext.removeOnDeviceProfileChangeListener(this); in onDetachedFromWindow()
122 int navBarScrimColor = Themes.getNavBarScrimColor(mActivityContext); in onDeviceProfileChanged()
169 if (mActivityContext instanceof Launcher) { in onClick()
172 wc.showAddButton((view) -> mActivityContext.getItemOnClickListener() in onClick()
206 Launcher launcher = Launcher.getLauncher(mActivityContext); in addWidget()
211 mActivityContext.getStatsLogManager() in addWidget()
[all …]
DLauncherAppWidgetHostView.java74 protected final ActivityContext mActivityContext; field in LauncherAppWidgetHostView
91 mActivityContext = ActivityContext.lookupContext(context); in LauncherAppWidgetHostView()
93 setAccessibilityDelegate(mActivityContext.getAccessibilityDelegate()); in LauncherAppWidgetHostView()
118 mActivityContext.getDragLayer().requestDisallowInterceptTouchEvent(false); in onLongClick()
229 BaseDragLayer<?> dragLayer = mActivityContext.getDragLayer(); in onInterceptTouchEvent()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarView.java93 private final TaskbarActivityContext mActivityContext; field in TaskbarView
153 mActivityContext = ActivityContext.lookupContext(context); in TaskbarView()
154 mIconLayoutBounds = mActivityContext.getTransientTaskbarBounds(); in TaskbarView()
159 onDeviceProfileChanged(mActivityContext.getDeviceProfile()); in TaskbarView()
162 int actualIconSize = mActivityContext.getDeviceProfile().taskbarIconSize; in TaskbarView()
163 if (enableTaskbarPinning() && !mActivityContext.isThreeButtonNav()) { in TaskbarView()
164 DeviceProfile deviceProfile = mActivityContext.getTransientTaskbarDeviceProfile(); in TaskbarView()
178 mItemPadding = (mIconTouchSize - mActivityContext.getDeviceProfile().taskbarIconSize) / 2; in TaskbarView()
179 mFolderLeaveBehindColor = Themes.getAttrColor(mActivityContext, in TaskbarView()
188 mActivityContext.isTransientTaskbar())); in TaskbarView()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/appprediction/
DPredictionRowView.java58 private final T mActivityContext; field in PredictionRowView
87 mActivityContext = ActivityContext.lookupContext(context); in PredictionRowView()
88 mNumPredictedAppsPerRow = mActivityContext.getDeviceProfile().numShownAllAppsColumns; in PredictionRowView()
100 info.setContainerTitle(mActivityContext.getString(R.string.title_app_suggestions)); in onInitializeAccessibilityNodeInfo()
107 mActivityContext.addOnDeviceProfileChangeListener(this); in onAttachedToWindow()
113 mActivityContext.removeOnDeviceProfileChangeListener(this); in onDetachedFromWindow()
122 if (mActivityContext.getAppsView() != null) { in updateVisibility()
124 mActivityContext.getAppsView().getAppsStore().registerIconContainer(this); in updateVisibility()
126 mActivityContext.getAppsView().getAppsStore().unregisterIconContainer(this); in updateVisibility()
145 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in getExpectedHeight()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatEduDialog.java92 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/taskbar/allapps/
DTaskbarAllAppsSlideInView.java128 if (mActivityContext.getDeviceProfile().isPhone) { in onOpenCloseAnimationPending()
149 if (mActivityContext.getDeviceProfile().isTablet) { in getScrimInterpolator()
194 if (mActivityContext.getDeviceProfile().isPhone) { in onFinishInflate()
202 DeviceProfile dp = mActivityContext.getDeviceProfile(); in onFinishInflate()
209 mActivityContext.addOnDeviceProfileChangeListener(this); in onAttachedToWindow()
222 mActivityContext.removeOnDeviceProfileChangeListener(this); in onDetachedFromWindow()
240 mActivityContext.getOverlayController().setBackgroundBlurRadius(mBlurRadius); in dispatchDraw()
252 if (!mActivityContext.getDeviceProfile().shouldShowAllAppsOnSheet()) { in getScrimColor()
266 mActivityContext, TYPE_TOUCH_CONTROLLER_NO_INTERCEPT) != null; in onControllerInterceptTouchEvent()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/secondarydisplay/
DSecondaryDisplayPredictionsImpl.java33 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/src/com/android/launcher3/views/
DArrowTipView.java76 protected final ActivityContext mActivityContext; field in ArrowTipView
100 mActivityContext = ActivityContext.lookupContext(context); in ArrowTipView()
132 if (mActivityContext.getDragLayer().isEventOverView(this, ev)) { in onControllerInterceptTouchEvent()
147 () -> mActivityContext.getDragLayer().removeView(this))); in handleClose()
151 mActivityContext.getDragLayer().removeView(this); in handleClose()
185 mActivityContext.getDragLayer().removeView(ArrowTipView.this); in init()
223 ViewGroup parent = mActivityContext.getDragLayer(); in show()
226 DeviceProfile grid = mActivityContext.getDeviceProfile(); in show()
337 ViewGroup parent = mActivityContext.getDragLayer(); in showAtLocation()
DAbstractSlideInView.java89 protected final T mActivityContext; field in AbstractSlideInView
158 mActivityContext = ActivityContext.lookupContext(context); in AbstractSlideInView()
438 float successfulShiftThreshold = mActivityContext.getDeviceProfile().isTablet in onDragEnd()
516 return mActivityContext.getDragLayer(); in getPopupContainer()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DAllAppsSearchUiDelegate.java35 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/
DWidgetsFullSheet.java172 mDeviceProfile = mActivityContext.getDeviceProfile(); in WidgetsFullSheet()
272 return mActivityContext.getWidgetPickerDataProvider().get().getAllWidgets(); in setupViews()
282 if (mActivityContext.getStringCache() != null) { in setDeviceManagementResources()
284 personalTab.setText(mActivityContext.getStringCache().widgetsPersonalTab); in setDeviceManagementResources()
287 workTab.setText(mActivityContext.getStringCache().widgetsWorkTab); in setDeviceManagementResources()
329 && mActivityContext.getStringCache() != null) { in updateRecyclerViewVisibility()
330 mNoWidgetsView.setText(mActivityContext.getStringCache().workProfilePausedTitle); in updateRecyclerViewVisibility()
508 return mActivityContext.getWidgetPickerDataProvider().get().getAllWidgets(); in getWidgetsToDisplay()
521 mActivityContext.getWidgetPickerDataProvider().get(); in onWidgetsBound()
559 mActivityContext.getString(R.string.widgets_list_expanded)); in onWidgetsListExpandButtonClick()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DDragAndDropAccessibilityDelegate.java50 protected final ActivityContext mActivityContext; field in DragAndDropAccessibilityDelegate
58 mActivityContext = ActivityContext.lookupContext(mContext); in DragAndDropAccessibilityDelegate()
59 mDelegate = (LauncherAccessibilityDelegate) mActivityContext.getAccessibilityDelegate(); in DragAndDropAccessibilityDelegate()
60 mDragLayer = mActivityContext.getDragLayer(); in DragAndDropAccessibilityDelegate()
/packages/apps/Launcher3/src/com/android/launcher3/
DButtonDropTarget.java65 protected final ActivityContext mActivityContext; field in ButtonDropTarget
99 mActivityContext = ActivityContext.lookupContext(context); in ButtonDropTarget()
100 mDropTargetHandler = mActivityContext.getDropTargetHandler(); in ButtonDropTarget()
232 mActivityContext.getDragController().getDistanceDragged() in isDropEnabled()
286 outRect.bottom += mActivityContext.getDeviceProfile().dropTargetDragPaddingPx; in getHitRectRelativeToDragLayer()
289 mActivityContext.getDragLayer().getDescendantCoordRelativeToSelf(this, sTempCords); in getHitRectRelativeToDragLayer()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java195 protected final ActivityContext mActivityContext; field in Folder
271 mActivityContext = ActivityContext.lookupContext(context); in Folder()
272 mLauncherDelegate = LauncherDelegate.from(mActivityContext); in Folder()
295 final DeviceProfile dp = mActivityContext.getDeviceProfile(); in onFinishInflate()
683 Folder openFolder = getOpen(mActivityContext); in animateOpen()
694 BaseDragLayer dragLayer = mActivityContext.getDragLayer(); in animateOpen()
852 mActivityContext.getDragLayer().sendAccessibilityEvent( in handleClose()
1156 mActivityContext.getDeviceProfile()).setFolderInfo(mInfo); in updateItemLocationsInDatabaseBatch()
1192 BaseDragLayer parent = mActivityContext.getDragLayer(); in centerAboutIcon()
1202 sTempRect.set(mActivityContext.getFolderBoundingBox()); in centerAboutIcon()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DTaskMenuViewWithArrow.kt145 mActivityContext.deviceProfile, in <lambda>()
206 val recentsView: RecentsView<*, *> = mActivityContext.getOverviewPanel() in <lambda>()
208 val deviceProfile: DeviceProfile = mActivityContext.deviceProfile in <lambda>()
219 mActivityContext.layoutInflater.inflate(R.layout.task_view_menu_option, this, false) in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupContainerWithArrow.java152 mActivityContext.getItemOnClickListener().onClick(view); in getItemClickListener()
286 mActivityContext, originalItemInfo, new Handler(Looper.getMainLooper()), in loadAppShortcuts()
416 if (currentHeight >= mActivityContext.getDeviceProfile().availableHeightPx) break; in addDeepShortcuts()
589 if (mActivityContext.getDragController() != null) {
590 mActivityContext.getDragController().removeDragListener(this);
592 PopupContainerWithArrow openPopup = getOpen(mActivityContext);

12