/packages/apps/Launcher3/src/com/android/launcher3/settings/ |
D | SettingsActivity.java | 37 import com.android.launcher3.Utilities; 90 Utilities.getPrefs(getApplicationContext()).registerOnSharedPreferenceChangeListener(this); in onCreate() 101 if (Utilities.getPrefs(c).getBoolean(GRID_OPTIONS_PREFERENCE_KEY, false)) { in onSharedPreferenceChanged() 115 if (Utilities.ATLEAST_P && getFragmentManager().isStateSaved()) { in startFragment() 197 if (!Utilities.ATLEAST_OREO || in initPreference() 214 return Utilities.ATLEAST_OREO; in initPreference() 234 return Utilities.isDevelopersOptionsEnabled(getContext()) && in initPreference() 235 Utilities.IS_DEBUG_DEVICE && in initPreference() 236 Utilities.existsStyleWallpapers(getContext()); in initPreference()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | RestoreDbTask.java | 19 import static com.android.launcher3.Utilities.getIntArrayFromString; 20 import static com.android.launcher3.Utilities.getStringFromIntArray; 40 import com.android.launcher3.Utilities; 122 boolean keepAllIcons = Utilities.isPropertyEnabled(LogConfig.KEEP_ALL_ICONS); in sanitizeDB() 215 if (!Utilities.ATLEAST_Q) { in getUserForAncestralSerialNumber() 237 return Utilities.getPrefs(context).getBoolean(RESTORE_TASK_PENDING, false); in isPending() 242 Utilities.getPrefs(context).edit().putBoolean(RESTORE_TASK_PENDING, isPending).commit(); in setPending() 246 SharedPreferences prefs = Utilities.getPrefs(context); in restoreAppWidgetIdsIfExists() 261 Utilities.getPrefs(context).edit() in setRestoredAppWidgetIds()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | SessionCommitReceiver.java | 62 if (!isEnabled(context) || !Utilities.ATLEAST_OREO) { in onReceive() 89 return Utilities.getPrefs(context).getBoolean(ADD_ICON_PREFERENCE_KEY, true); in isEnabled() 93 if (!Utilities.ATLEAST_OREO) { in applyDefaultUserPrefs() 96 SharedPreferences prefs = Utilities.getPrefs(context); in applyDefaultUserPrefs() 106 new PrefInitTask(context).executeOnExecutor(Utilities.THREAD_POOL_EXECUTOR); in applyDefaultUserPrefs() 120 Utilities.getPrefs(mContext).edit() in doInBackground()
|
D | InvariantDeviceProfile.java | 19 import static com.android.launcher3.Utilities.getDevicePrefs; 147 initGrid(context, Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, null)); in InvariantDeviceProfile() 186 float minWidthDps = Utilities.dpiFromPx(Math.min(smallestSize.x, smallestSize.y), dm); in initGrid() 187 float minHeightDps = Utilities.dpiFromPx(Math.min(largestSize.x, largestSize.y), dm); in initGrid() 206 Utilities.getPrefs(context).edit() in initGrid() 282 Utilities.getPrefs(appContext).edit().putString(KEY_IDP_GRID_NAME, gridName).apply(); in setCurrentGrid()
|
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/views/ |
D | OptionsPopupView.java | 18 import static com.android.launcher3.Utilities.EXTRA_WALLPAPER_FLAVOR; 19 import static com.android.launcher3.Utilities.EXTRA_WALLPAPER_OFFSET; 38 import com.android.launcher3.Utilities; 155 int resString = Utilities.existsStyleWallpapers(launcher) ? in showDefaultOptions() 157 int resDrawable = Utilities.existsStyleWallpapers(launcher) ? in showDefaultOptions() 199 if (!Utilities.isWallpaperAllowed(launcher)) { in startWallpaperPicker() 207 if (!Utilities.existsStyleWallpapers(launcher)) { in startWallpaperPicker()
|
D | BaseDragLayer.java | 23 import static com.android.launcher3.Utilities.SINGLE_FRAME_MS; 24 import static com.android.launcher3.Utilities.shouldDisableGestures; 45 import com.android.launcher3.Utilities; 360 Utilities.roundArray(mTmpXY, coord); in getDescendantCoordRelativeToSelf() 382 return Utilities.getDescendantCoordRelativeToAncestor(descendant, this, in getDescendantCoordRelativeToSelf() 390 Utilities.mapCoordInSelfToDescendant(descendant, this, coord); in mapCoordInSelfToDescendant() 399 Utilities.mapCoordInSelfToDescendant(descendant, this, mTmpXY); in mapCoordInSelfToDescendant() 400 Utilities.roundArray(mTmpXY, coord); in mapCoordInSelfToDescendant() 521 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; 59 import com.android.launcher3.Utilities; 233 float shapeRevealProgress = Utilities.boundToRange(mapToRange( in update() 367 Utilities.getDescendantCoordRelativeToAncestor(v, launcher.getDragLayer(), points, in getLocationBoundsForView() 507 Utilities.scaleRectAboutCenter(mStartRevealRect, in setIcon() 592 Utilities.scaleRectAboutCenter(sTmpRect, scale); in setBackgroundDrawableBounds() 617 Utilities.scaleRectAboutCenter(bounds, li.getNormalizer().getScale(drawable, null, in getOffsetForIconBounds()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetHostView.java | 45 import com.android.launcher3.Utilities; 98 if (Utilities.ATLEAST_OREO) { in LauncherAppWidgetHostView() 99 setExecutor(Utilities.THREAD_POOL_EXECUTOR); in LauncherAppWidgetHostView() 101 if (Utilities.ATLEAST_Q && Themes.getAttrBoolean(mLauncher, R.attr.isWorkspaceDarkText)) { in LauncherAppWidgetHostView() 195 if (!Utilities.pointInView(this, ev.getX(), ev.getY(), mSlop)) { in onInterceptTouchEvent() 214 if (!Utilities.pointInView(this, ev.getX(), ev.getY(), mSlop)) { in onTouchEvent()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | ShelfScrimView.java | 39 import com.android.launcher3.Utilities; 183 mShelfTop = Utilities.mapRange(mProgress / SCRIM_CATCHUP_THRESHOLD, -mRadius, in updateColors() 198 int alpha = Math.round(Utilities.mapToRange( in updateColors() 206 Utilities.mapToRange(mProgress, (float) 0, mMidProgress, (float) mEndAlpha, in updateColors() 211 Utilities.mapToRange(mProgress, (float) 0, mMidProgress, mMaxScrimAlpha, in updateColors()
|
/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/src/com/android/launcher3/dragndrop/ |
D | DragView.java | 19 import static com.android.launcher3.Utilities.getBadge; 52 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/config/ |
D | BaseFlags.java | 33 import com.android.launcher3.Utilities; 61 return Utilities.IS_DEBUG_DEVICE && Utilities.isDevelopersOptionsEnabled(context); in showFlagTogglerUi() 117 if (Utilities.IS_DEBUG_DEVICE) { in initialize()
|
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | Interpolators.java | 19 import static com.android.launcher3.Utilities.SINGLE_FRAME_MS; 30 import com.android.launcher3.Utilities; 167 return t -> Utilities.mapRange(interpolator.getInterpolation(t), lowerBound, upperBound); 197 overshootBy = Utilities.boundToRange(overshootBy, 0.02f, 0.15f);
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | QuickSwitchTouchController.java | 42 import com.android.launcher3.Utilities; 78 if ((ev.getEdgeFlags() & Utilities.EDGE_NAV_BAR) == 0) { in canInterceptTouch() 138 updateFullscreenProgress(Utilities.boundToRange(progress, 0, 1)); in updateProgress() 163 return Utilities.isRtl(mLauncher.getResources()) ? Direction.LEFT : Direction.RIGHT; in getDirectionForLog()
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | FileLog.java | 9 import com.android.launcher3.Utilities; 33 FeatureFlags.IS_DOGFOOD_BUILD || Utilities.IS_DEBUG_DEVICE; 134 Utilities.closeSilently(mCurrentWriter); in closeWriter() 222 Utilities.closeSilently(in);
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ |
D | RecentsAnimationListenerSet.java | 23 import com.android.launcher3.Utilities; 84 Utilities.postAsyncCallback(MAIN_THREAD_EXECUTOR.getHandler(), () -> { in onAnimationStart() 94 Utilities.postAsyncCallback(MAIN_THREAD_EXECUTOR.getHandler(), () -> { in onAnimationCanceled()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | LauncherAnimationRunner.java | 18 import static com.android.launcher3.Utilities.SINGLE_FRAME_MS; 19 import static com.android.launcher3.Utilities.postAsyncCallback; 20 import static com.android.systemui.shared.recents.utilities.Utilities
|
/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; 40 import com.android.launcher3.Utilities; 227 Utilities.scaleRectAboutCenter(displaySize, SCALE_DOWN); in onRecentsAnimationStart()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherAppsCompat.java | 30 import com.android.launcher3.Utilities; 60 if (Utilities.ATLEAST_Q) { in getInstance() 62 } else if (Utilities.ATLEAST_OREO) { in getInstance()
|
D | AlphabeticIndexCompat.java | 8 import com.android.launcher3.Utilities; 47 String s = Utilities.trim(cs); in computeSectionName() 49 if (Utilities.trim(sectionName).isEmpty() && s.length() > 0) { in computeSectionName()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | OverviewInteractionState.java | 24 import com.android.launcher3.Utilities; 133 if (modeSupportsGestures() && !Utilities.getPrefs(mContext).getBoolean( in resetHomeBounceSeenOnQuickstepEnabledFirstTime() 135 Utilities.getPrefs(mContext).edit() in resetHomeBounceSeenOnQuickstepEnabledFirstTime()
|
/packages/apps/Launcher3/src/com/android/launcher3/icons/ |
D | IconCache.java | 40 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()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/fallback/ |
D | FallbackRecentsView.java | 29 import com.android.launcher3.Utilities; 138 SCALE_PROPERTY.set(this, Utilities.mapRange(mZoomInProgress, 1, mZoomScale)); in setZoomProgress() 139 TRANSLATION_Y.set(this, Utilities.mapRange(mZoomInProgress, 0, mZoomTranslationY)); in setZoomProgress()
|