Home
last modified time | relevance | path

Searched refs:mDeviceProfile (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DQuickstepTestInformationHandler.java69 LayoutUtils.getDefaultSwipeHeight(mContext, mDeviceProfile); in call()
75 final float swipeHeight = mDeviceProfile.heightPx / 2f; in call()
81 if (!mDeviceProfile.isTablet) { in call()
85 LauncherActivityInterface.INSTANCE.calculateTaskSize(mContext, mDeviceProfile, in call()
92 if (!mDeviceProfile.isTablet) { in call()
96 LauncherActivityInterface.INSTANCE.calculateGridTaskSize(mContext, mDeviceProfile, in call()
104 mDeviceProfile.overviewPageSpacing); in call()
129 getFromNavThreshold(resources, mDeviceProfile)); in call()
DRecentsActivity.java404 mDeviceProfile = createDeviceProfile(); in initDeviceProfile()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepTransitionManager.java252 private DeviceProfile mDeviceProfile; field in QuickstepTransitionManager
289 mDeviceProfile = mLauncher.getDeviceProfile(); in QuickstepTransitionManager()
319 mDeviceProfile = dp; in onDeviceProfileChanged()
473 if (target == null) return new Rect(0, 0, mDeviceProfile.widthPx, mDeviceProfile.heightPx); in getWindowTargetBounds()
483 Utilities.rotateBounds(bounds, mDeviceProfile.heightPx, mDeviceProfile.widthPx, in getWindowTargetBounds()
486 Utilities.rotateBounds(bounds, mDeviceProfile.widthPx, mDeviceProfile.heightPx, in getWindowTargetBounds()
490 if (mDeviceProfile.isTaskbarPresentInApps in getWindowTargetBounds()
520 ? new float[]{1, mDeviceProfile.workspaceContentScale} in getLauncherContentAnimator()
521 : new float[]{mDeviceProfile.workspaceContentScale, 1}; in getLauncherContentAnimator()
531 if (mDeviceProfile.isTablet) { in getLauncherContentAnimator()
[all …]
DWidgetPickerActivity.java112 mDeviceProfile = idp.getDeviceProfile(this); in onCreate()
/packages/apps/Launcher3/src/com/android/launcher3/
DBubbleTextView.java153 private DeviceProfile mDeviceProfile; field in BubbleTextView
233 mDeviceProfile = mActivity.getDeviceProfile(); in BubbleTextView()
239 setTextSize(TypedValue.COMPLEX_UNIT_PX, mDeviceProfile.iconTextSizePx); in BubbleTextView()
240 setCompoundDrawablePadding(mDeviceProfile.iconDrawablePaddingPx); in BubbleTextView()
241 defaultIconSize = mDeviceProfile.iconSizePx; in BubbleTextView()
242 setCenterVertically(mDeviceProfile.iconCenterVertically); in BubbleTextView()
245 setTextSize(TypedValue.COMPLEX_UNIT_PX, mDeviceProfile.allAppsIconTextSizePx); in BubbleTextView()
246 setCompoundDrawablePadding(mDeviceProfile.allAppsIconDrawablePaddingPx); in BubbleTextView()
247 defaultIconSize = mDeviceProfile.allAppsIconSizePx; in BubbleTextView()
249 setTextSize(TypedValue.COMPLEX_UNIT_PX, mDeviceProfile.folderChildTextSizePx); in BubbleTextView()
[all …]
DBaseDraggingActivity.java143 if (mDeviceProfile.isVerticalBarLayout()) { in onDeviceProfileInitiated()
144 mDeviceProfile.updateIsSeascape(this); in onDeviceProfileInitiated()
150 if ((flags & CHANGE_ROTATION) != 0 && mDeviceProfile.isVerticalBarLayout()) { in onDisplayInfoChanged()
151 mDeviceProfile.updateIsSeascape(this); in onDisplayInfoChanged()
DBaseActivity.java88 protected DeviceProfile mDeviceProfile; field in BaseActivity
175 return mDeviceProfile; in getDeviceProfile()
DLauncher.java742 initDeviceProfile(mDeviceProfile.inv);
762 if (!initDeviceProfile(mDeviceProfile.inv)) {
789 if (mDeviceProfile == deviceProfile) {
793 mDeviceProfile = deviceProfile;
795 mDeviceProfile = mDeviceProfile.getMultiWindowProfile(
800 if (FOLDABLE_SINGLE_PAGE.get() && mDeviceProfile.isTwoPanels) {
801 mCellPosMapper = new TwoPanelCellPosMapper(mDeviceProfile.inv.numColumns);
803 mCellPosMapper = new CellPosMapper(mDeviceProfile.isVerticalBarLayout(),
804 mDeviceProfile.numShownHotseatIcons);
2702 mDeviceProfile.dump(this, prefix, writer);
[all …]
DWorkspace.java515 return !FOLDABLE_SINGLE_PAGE.get() && mLauncher.mDeviceProfile.isTwoPanels; in isTwoPanelEnabled()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderAnimationManager.java89 private DeviceProfile mDeviceProfile; field in FolderAnimationManager
100 mDeviceProfile = folder.mActivityContext.getDeviceProfile(); in FolderAnimationManager()
101 mPreviewVerifier = new FolderGridOrganizer(mDeviceProfile); in FolderAnimationManager()
243 int width = mDeviceProfile.folderCellLayoutBorderSpacePx.x in getAnimator()
244 + mDeviceProfile.folderCellWidthPx * 2; in getAnimator()
246 int height = mDeviceProfile.folderCellLayoutBorderSpacePx.y in getAnimator()
247 + mDeviceProfile.folderCellHeightPx * 2; in getAnimator()
255 rtlExtraWidth = (int) Math.max(numExtraRows * (mDeviceProfile.folderCellWidthPx in getAnimator()
256 + mDeviceProfile.folderCellLayoutBorderSpacePx.x), rtlExtraWidth); in getAnimator()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DRecentsHitboxExtender.java42 private DeviceProfile mDeviceProfile; field in RecentsHitboxExtender
62 mDeviceProfile = deviceProfile; in init()
104 y + mRecentsButton.getHeight() + mDeviceProfile.getTaskbarOffsetY() in onAnimationProgressToOverview()
DTaskbarActivityContext.java168 private DeviceProfile mDeviceProfile; field in TaskbarActivityContext
334 mDeviceProfile = originDeviceProfile.toBuilder(this) in applyDeviceProfile()
338 mTransientTaskbarDeviceProfile = mDeviceProfile; in applyDeviceProfile()
339 mPersistentTaskbarDeviceProfile = mDeviceProfile in applyDeviceProfile()
345 mPersistentTaskbarDeviceProfile = mDeviceProfile; in applyDeviceProfile()
346 mTransientTaskbarDeviceProfile = mDeviceProfile in applyDeviceProfile()
401 && mDeviceProfile.isPhone in isPhoneMode()
402 && !mDeviceProfile.isTaskbarPresent; in isPhoneMode()
421 return enableTinyTaskbar() && mDeviceProfile.isPhone && mDeviceProfile.isTaskbarPresent; in isTinyTaskbar()
465 return mDeviceProfile; in getDeviceProfile()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DTestInformationHandler.java96 protected DeviceProfile mDeviceProfile; field in TestInformationHandler
100 mDeviceProfile = InvariantDeviceProfile.INSTANCE.get(context).getDeviceProfile(context); in init()
190 mDeviceProfile.cellLayoutBorderSpacePx.y); in call()
206 mDeviceProfile.allAppsCellHeightPx); in call()
215 response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, mDeviceProfile.isTablet); in call()
219 mDeviceProfile.isPredictiveBackSwipe); in call()
228 mDeviceProfile.numShownAllAppsColumns); in call()
238 FOLDABLE_SINGLE_PAGE.get() ? false : mDeviceProfile.isTwoPanels); in call()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/
DTaskViewSimulatorTest.java131 private DeviceProfile mDeviceProfile; field in TaskViewSimulatorTest.TaskMatrixVerifier
200 mDeviceProfile = InvariantDeviceProfile.INSTANCE.get(helper.sandboxContext) in verifyNoTransforms()
202 mDeviceProfile.updateInsets(mLauncherInsets); in verifyNoTransforms()
206 tvs.setDp(mDeviceProfile); in verifyNoTransforms()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DTutorialFragment.java85 private DeviceProfile mDeviceProfile; field in TutorialFragment
182 mDeviceProfile = InvariantDeviceProfile.INSTANCE.get(getContext()) in onCreate()
184 mIsLargeScreen = mDeviceProfile.isTablet; in onCreate()
185 mIsFoldable = mDeviceProfile.isTwoPanels; in onCreate()
202 return mDeviceProfile; in getDeviceProfile()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsFullSheet.java143 protected DeviceProfile mDeviceProfile; field in WidgetsFullSheet
158 mDeviceProfile = mActivityContext.getDeviceProfile(); in WidgetsFullSheet()
576 mDeviceProfile, in onRecommendedWidgetsBound()
589 mDeviceProfile, in onRecommendedWidgetsBound()
603 if (mDeviceProfile.isLandscape) { in getMaxAvailableHeightForRecommendations()
607 return (mDeviceProfile.heightPx - mDeviceProfile.bottomSheetTopPadding) in getMaxAvailableHeightForRecommendations()
821 if (shouldRecreateLayout(/*oldDp=*/ mDeviceProfile, /*newDp=*/ dp)) { in onDeviceProfileChanged()
834 mDeviceProfile = dp; in onDeviceProfileChanged()
DWidgetsTwoPaneSheet.java185 if (changed && mDeviceProfile.isTwoPanels && enableUnfoldedTwoPanePicker()) { in onLayout()
311 return (mDeviceProfile.heightPx - mDeviceProfile.bottomSheetTopPadding) in getMaxAvailableHeightForRecommendations()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DPredictedAppIcon.java81 private final DeviceProfile mDeviceProfile; field in PredictedAppIcon
123 mDeviceProfile = ActivityContext.lookupContext(context).getDeviceProfile(); in PredictedAppIcon()
318 return getPaddingTop() + mDeviceProfile.folderIconOffsetYPx; in getOutlineOffsetY()
DQuickstepLauncher.java466 if (!mDeviceProfile.isTablet || mSplitSelectStateController.isSplitSelectActive()) { in getSplitShortcuts()
473 mDeviceProfile); in getSplitShortcuts()
686 mDeviceProfile.isPredictiveBackSwipe = in initDeviceProfile()
1350 SystemUiProxy.INSTANCE.get(this).setLauncherAppIconSize(mDeviceProfile.iconSizePx); in onDeviceProfileInitiated()
1358 SystemUiProxy.INSTANCE.get(this).setLauncherAppIconSize(mDeviceProfile.iconSizePx); in dispatchDeviceProfileChanged()
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/
DSecondaryDisplayLauncher.java119 mDeviceProfile = currentDisplayIdp.getDeviceProfile(this) in initUi()
124 mDeviceProfile.autoResizeAllAppsCells(); in initUi()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java137 mDeviceProfile = mIdp.getDeviceProfile(getApplicationContext()); in onCreate()