/packages/apps/Launcher3/src/com/android/launcher3/settings/ |
D | SettingsActivity.java | 48 import com.android.launcher3.Utilities; 93 Utilities.getPrefs(getApplicationContext()).registerOnSharedPreferenceChangeListener(this); in onCreate() 104 if (Utilities.getPrefs(c).getBoolean(GRID_OPTIONS_PREFERENCE_KEY, false)) { in onSharedPreferenceChanged() 118 if (Utilities.ATLEAST_P && getFragmentManager().isStateSaved()) { in startFragment() 200 if (!Utilities.ATLEAST_OREO || in initPreference() 217 return Utilities.ATLEAST_OREO; in initPreference() 237 return Utilities.isDevelopersOptionsEnabled(getContext()) && in initPreference() 238 Utilities.IS_DEBUG_DEVICE && in initPreference() 239 Utilities.existsStyleWallpapers(getContext()); in initPreference()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | RestoreDbTask.java | 38 import com.android.launcher3.Utilities; 121 boolean keepAllIcons = Utilities.isPropertyEnabled(LogConfig.KEEP_ALL_ICONS); in sanitizeDB() 208 if (!Utilities.ATLEAST_Q) { in getUserForAncestralSerialNumber() 230 return Utilities.getPrefs(context).getBoolean(RESTORE_TASK_PENDING, false); in isPending() 235 Utilities.getPrefs(context).edit().putBoolean(RESTORE_TASK_PENDING, isPending).commit(); in setPending() 239 SharedPreferences prefs = Utilities.getPrefs(context); in restoreAppWidgetIdsIfExists() 254 Utilities.getPrefs(context).edit() in setRestoredAppWidgetIds()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | OptionsPopupView.java | 18 import static com.android.launcher3.Utilities.EXTRA_WALLPAPER_FLAVOR; 19 import static com.android.launcher3.Utilities.EXTRA_WALLPAPER_OFFSET; 39 import com.android.launcher3.Utilities; 155 int resString = Utilities.existsStyleWallpapers(launcher) ? in showDefaultOptions() 157 int resDrawable = Utilities.existsStyleWallpapers(launcher) ? in showDefaultOptions() 200 if (!Utilities.isWallpaperAllowed(launcher)) { in startWallpaperPicker() 208 if (!Utilities.existsStyleWallpapers(launcher)) { in startWallpaperPicker()
|
D | BaseDragLayer.java | 53 import com.android.launcher3.Utilities; 370 Utilities.roundArray(mTmpXY, coord); in getDescendantCoordRelativeToSelf() 392 return Utilities.getDescendantCoordRelativeToAncestor(descendant, this, in getDescendantCoordRelativeToSelf() 400 Utilities.mapCoordInSelfToDescendant(descendant, this, coord); in mapCoordInSelfToDescendant() 409 Utilities.mapCoordInSelfToDescendant(descendant, this, mTmpXY); in mapCoordInSelfToDescendant() 410 Utilities.roundArray(mTmpXY, coord); in mapCoordInSelfToDescendant() 531 if (Utilities.ATLEAST_Q) { in dispatchApplyWindowInsets()
|
D | FloatingIconView.java | 19 import static com.android.launcher3.Utilities.getBadge; 20 import static com.android.launcher3.Utilities.getFullDrawable; 21 import static com.android.launcher3.Utilities.mapToRange; 65 import com.android.launcher3.Utilities; 177 mIsRtl = Utilities.isRtl(getResources()); in FloatingIconView() 237 float shapeRevealProgress = Utilities.boundToRange(mapToRange( in update() 375 Utilities.getDescendantCoordRelativeToAncestor(v, launcher.getDragLayer(), points, in getLocationBoundsForView() 515 Utilities.scaleRectAboutCenter(mStartRevealRect, in setIcon() 603 Utilities.scaleRectAboutCenter(sTmpRect, scale); in setBackgroundDrawableBounds() 628 Utilities.scaleRectAboutCenter(bounds, li.getNormalizer().getScale(drawable, null, in getOffsetForIconBounds()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 19 import static com.android.launcher3.Utilities.getDevicePrefs; 159 String gridName = Utilities.getPrefs(context).getBoolean(GRID_OPTIONS_PREFERENCE_KEY, false) in InvariantDeviceProfile() 160 ? Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, null) in InvariantDeviceProfile() 196 float minWidthDps = Utilities.dpiFromPx(Math.min(smallestSize.x, smallestSize.y), in initGrid() 198 float minHeightDps = Utilities.dpiFromPx(Math.min(largestSize.x, largestSize.y), in initGrid() 262 Utilities.getPrefs(context).edit() in initGrid() 342 Utilities.getPrefs(appContext).edit().putString(KEY_IDP_GRID_NAME, gridName).apply(); in setCurrentGrid() 351 String gridName = Utilities.getPrefs(context).getBoolean(GRID_OPTIONS_PREFERENCE_KEY, false) in onConfigChanged() 352 ? Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, null) in onConfigChanged()
|
D | SessionCommitReceiver.java | 67 if (!isEnabled(context) || !Utilities.ATLEAST_OREO) { in onReceive() 124 return Utilities.getPrefs(context).getBoolean(ADD_ICON_PREFERENCE_KEY, true); in isEnabled() 128 if (!Utilities.ATLEAST_OREO) { in applyDefaultUserPrefs() 131 SharedPreferences prefs = Utilities.getPrefs(context); in applyDefaultUserPrefs() 155 Utilities.getPrefs(mContext).edit() in doInBackground()
|
D | FocusHelper.java | 115 final boolean isLayoutRtl = Utilities.isRtl(v.getResources()); in onKey() 265 pageCount, Utilities.isRtl(v.getResources())); in handleHotseatButtonKeyEvent() 364 pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent() 365 boolean isRtl = Utilities.isRtl(v.getResources()); in handleIconKeyEvent() 387 newPageIndex, pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent() 426 newPageIndex, pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | DeepShortcutTextView.java | 31 import com.android.launcher3.Utilities; 70 if (!Utilities.isRtl(getResources())) { in onMeasure() 87 Utilities.isRtl(getResources()) ? mDragHandleWidth : getPaddingStart(), in setLoadingBounds() 158 CharSequence msg = Utilities.wrapForTts( in showToast()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | ShelfScrimView.java | 42 import com.android.launcher3.Utilities; 193 mShelfTop = Utilities.mapRange(mProgress / SCRIM_CATCHUP_THRESHOLD, -mRadius, in updateColors() 212 int alpha = Math.round(Utilities.mapToRange( in updateColors() 218 Utilities.mapToRange(mProgress, (float) 0, mMidProgress, (float) mEndAlpha, in updateColors() 223 Utilities.mapToRange(mProgress, (float) 0, mMidProgress, mMaxScrimAlpha, in updateColors()
|
/packages/apps/Launcher3/src/com/android/launcher3/config/ |
D | BaseFlags.java | 28 import com.android.launcher3.Utilities; 55 return Utilities.IS_DEBUG_DEVICE && Utilities.isDevelopersOptionsEnabled(context); in showFlagTogglerUi() 128 if (Utilities.IS_DEBUG_DEVICE) { in initialize()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragView.java | 19 import static com.android.launcher3.Utilities.getBadge; 57 import com.android.launcher3.Utilities; 204 if (!Utilities.ATLEAST_OREO) { in setItemInfo() 219 Drawable dr = Utilities.getFullDrawable(mLauncher, info, w, h, in setItemInfo() 245 Utilities.scaleRectAboutCenter(bounds, in setItemInfo() 253 Utilities.scaleRectAboutCenter(shrunkBounds, 0.98f); in setItemInfo() 609 mSpring.animateToFinalPosition(Utilities.boundToRange(value, -mDelta, mDelta)); in animateToPos()
|
/packages/apps/Launcher3/src/com/android/launcher3/dot/ |
D | FolderDotInfo.java | 21 import com.android.launcher3.Utilities; 38 mNumNotifications = Utilities.boundToRange( in addDotInfo() 47 mNumNotifications = Utilities.boundToRange( in subtractDotInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetHostView.java | 45 import com.android.launcher3.Utilities; 99 if (Utilities.ATLEAST_OREO) { in LauncherAppWidgetHostView() 102 if (Utilities.ATLEAST_Q && Themes.getAttrBoolean(mLauncher, R.attr.isWorkspaceDarkText)) { in LauncherAppWidgetHostView() 196 if (!Utilities.pointInView(this, ev.getX(), ev.getY(), mSlop)) { in onInterceptTouchEvent() 215 if (!Utilities.pointInView(this, ev.getX(), ev.getY(), mSlop)) { in onTouchEvent()
|
D | WidgetImageView.java | 30 import com.android.launcher3.Utilities; 113 int left = Utilities.boundToRange( in updateDstRectF() 116 int top = Utilities.boundToRange( in updateDstRectF()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | NoButtonQuickSwitchTouchController.java | 62 import com.android.launcher3.Utilities; 154 if ((ev.getEdgeFlags() & Utilities.EDGE_NAV_BAR) == 0) { in canInterceptTouch() 235 float startScale = Utilities.mapRange( in setupOverviewAnimators() 288 yProgress = Utilities.mapRange(yProgress, Y_ANIM_MIN_PROGRESS, 1f); in onDrag() 372 float startXProgress = Utilities.boundToRange(xProgress in onDragEnd() 386 float startYProgress = Utilities.boundToRange(yProgress in onDragEnd() 448 return Utilities.isRtl(mLauncher.getResources()) ? Direction.LEFT : Direction.RIGHT; in getDirectionForLog()
|
D | QuickSwitchTouchController.java | 43 import com.android.launcher3.Utilities; 79 if ((ev.getEdgeFlags() & Utilities.EDGE_NAV_BAR) == 0) { in canInterceptTouch() 141 updateFullscreenProgress(Utilities.boundToRange(progress, 0, 1)); in updateProgress() 166 return Utilities.isRtl(mLauncher.getResources()) ? Direction.LEFT : Direction.RIGHT; in getDirectionForLog()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | PackageInstallerCompatVL.java | 32 import com.android.launcher3.Utilities; 46 import static com.android.launcher3.Utilities.getPrefs; 108 if (Utilities.ATLEAST_Q && !user.equals(getUserHandle(info))) { in getActiveSessionInfo() 147 if (Utilities.ATLEAST_OREO && FeatureFlags.PROMISE_APPS_NEW_INSTALLS.get() in tryQueuePromiseAppIcon() 259 List<SessionInfo> list = new ArrayList<>(Utilities.ATLEAST_Q in getAllVerifiedSessions()
|
D | AlphabeticIndexCompat.java | 7 import com.android.launcher3.Utilities; 50 String s = Utilities.trim(cs); in computeSectionName() 52 if (Utilities.trim(sectionName).isEmpty() && s.length() > 0) { in computeSectionName()
|
D | LauncherAppsCompat.java | 33 import com.android.launcher3.Utilities; 64 if (Utilities.ATLEAST_Q) { in getInstance() 66 } else if (Utilities.ATLEAST_OREO) { in getInstance()
|
D | AccessibilityManagerCompat.java | 27 import com.android.launcher3.Utilities; 98 if (!Utilities.IS_RUNNING_IN_TEST_HARNESS) return null; in getAccessibilityManagerForTest() 125 if (Utilities.ATLEAST_Q) { in getRecommendedTimeoutMillis()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/ |
D | DeviceLockedInputConsumer.java | 22 import static com.android.launcher3.Utilities.squaredHypot; 23 import static com.android.launcher3.Utilities.squaredTouchSlop; 41 import com.android.launcher3.Utilities; 228 Utilities.scaleRectAboutCenter(displaySize, SCALE_DOWN); in onRecentsAnimationStart()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ |
D | RecentsAnimationListenerSet.java | 25 import com.android.launcher3.Utilities; 85 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationStart() 95 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationCanceled()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | OverviewInteractionState.java | 28 import com.android.launcher3.Utilities; 134 if (modeSupportsGestures() && !Utilities.getPrefs(mContext).getBoolean( in resetHomeBounceSeenOnQuickstepEnabledFirstTime() 136 Utilities.getPrefs(mContext).edit() in resetHomeBounceSeenOnQuickstepEnabledFirstTime()
|
/packages/apps/Launcher3/src/com/android/launcher3/icons/ |
D | IconCache.java | 42 import com.android.launcher3.Utilities; 144 Utilities.postAsyncCallback(mWorkerHandler, request); in updateIconInBackground() 198 return Utilities.trim(entry.title); in getTitleNoCache() 225 info.title = Utilities.trim(entry.title); in applyCacheEntry()
|