/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | RecentsAnimationCallbacks.java | 26 import com.android.launcher3.Utilities; 98 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), in onAnimationStart() 101 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationStart() 112 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationCanceled() 122 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onTaskAppeared() 130 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationFinished()
|
/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_LAUNCH_SOURCE; 20 import static com.android.launcher3.Utilities.EXTRA_WALLPAPER_OFFSET; 46 import com.android.launcher3.Utilities; 206 int resString = Utilities.existsStyleWallpapers(launcher) ? in getOptions() 208 int resDrawable = Utilities.existsStyleWallpapers(launcher) ? in getOptions() 248 if (!Utilities.isWallpaperAllowed(launcher)) { in startWallpaperPicker() 257 if (!Utilities.existsStyleWallpapers(launcher)) { in startWallpaperPicker()
|
D | BaseDragLayer.java | 44 import com.android.launcher3.Utilities; 389 Utilities.roundArray(mTmpXY, coord); in getDescendantCoordRelativeToSelf() 411 return Utilities.getDescendantCoordRelativeToAncestor(descendant, this, in getDescendantCoordRelativeToSelf() 419 Utilities.mapCoordInSelfToDescendant(descendant, this, coord); in mapCoordInSelfToDescendant() 428 Utilities.mapCoordInSelfToDescendant(descendant, this, mTmpXY); in mapCoordInSelfToDescendant() 429 Utilities.roundArray(mTmpXY, coord); in mapCoordInSelfToDescendant() 544 if (Utilities.ATLEAST_Q) { in dispatchApplyWindowInsets()
|
D | ClipIconView.java | 18 import static com.android.launcher3.Utilities.boundToRange; 19 import static com.android.launcher3.Utilities.mapToRange; 52 import com.android.launcher3.Utilities; 134 mIsRtl = Utilities.isRtl(getResources()); in ClipIconView() 252 Utilities.scaleRectAboutCenter(sTmpRect, scale); in setBackgroundDrawableBounds() 304 Utilities.scaleRectAboutCenter(mStartRevealRect, IconShape.getNormalizationScale()); in setIcon()
|
D | RecyclerViewFastScroller.java | 49 import com.android.launcher3.Utilities; 199 new FastScrollThumbDrawable(mThumbPaint, Utilities.isRtl(getResources()))); in setRecyclerView() 356 if (Utilities.ATLEAST_Q) { in onDraw() 361 if (Utilities.ATLEAST_Q && mSystemGestureInsets != null) { in onDraw() 373 if (Utilities.ATLEAST_Q) { in onApplyWindowInsets() 435 top = Utilities.boundToRange(top, 0, in updatePopupY()
|
D | SpringRelativeLayout.java | 28 import com.android.launcher3.Utilities; 49 mEdgeGlowTop = Utilities.ATLEAST_S in SpringRelativeLayout() 51 mEdgeGlowBottom = Utilities.ATLEAST_S in SpringRelativeLayout()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | Themes.java | 34 import com.android.launcher3.Utilities; 48 if (Utilities.ATLEAST_P) { in getActivityThemeRes() 59 boolean supportsDarkText = Utilities.ATLEAST_S in getActivityThemeRes() 61 boolean isMainColorDark = Utilities.ATLEAST_S in getActivityThemeRes() 64 if (Utilities.isDarkTheme(context)) { in getActivityThemeRes() 78 && Utilities.getPrefs(context).getBoolean(KEY_THEMED_ICONS, false); in isThemedIconEnabled()
|
D | DisplayController.java | 21 import static com.android.launcher3.Utilities.dpiFromPx; 46 import com.android.launcher3.Utilities; 88 if (Utilities.ATLEAST_S) { in DisplayController() 129 if (Utilities.ATLEAST_S) { in onDisplayChanged() 200 return Utilities.ATLEAST_S ? mWindowContext : mContext.createDisplayContext(display); in getDisplayInfoContext() 277 if (extraDisplaysSizes.isEmpty() || !Utilities.ATLEAST_S) { in Info()
|
D | EdgeEffectCompat.java | 21 import com.android.launcher3.Utilities; 34 return Utilities.ATLEAST_S ? super.getDistance() : 0; in getDistance() 39 if (Utilities.ATLEAST_S) { in onPullDistance()
|
/packages/apps/Launcher3/src/com/android/launcher3/testing/ |
D | TestLogging.java | 22 import com.android.launcher3.Utilities; 38 if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { in recordEvent() 44 if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { in recordEvent() 50 if (Utilities.IS_RUNNING_IN_TEST_HARNESS && event.getAction() != MotionEvent.ACTION_MOVE) { in recordMotionEvent()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | TaskViewTouchController.java | 33 import com.android.launcher3.Utilities; 83 mIsRtl = Utilities.isRtl(activity.getResources()); in TaskViewTouchController() 90 if ((ev.getEdgeFlags() & Utilities.EDGE_NAV_BAR) != 0) { in canInterceptTouch() 294 Utilities.boundToRange(totalDisplacement * mProgressMultiplier / 2, 0, 1)); in onDrag() 318 Utilities.boundToRange(totalDisplacement * mProgressMultiplier, 0, 1)); in onDrag() 333 velocity = Utilities.boundToRange(velocity, -maxTaskDismissDragVelocity, in onDragEnd() 358 animationDuration = Utilities.boundToRange(animationDuration, in onDragEnd()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | AnimatorControllerWithResistance.java | 35 import com.android.launcher3.Utilities; 104 float normalProgress = Utilities.boundToRange(progress, 0, 1); in setProgress() 112 float resistProgress = progress <= 1 ? 0 : Utilities.getProgress(progress, 1, maxProgress); in setProgress() 169 float startResist = Utilities.getProgress(params.resistanceParams.scaleStartResist, in createRecentsResistanceAnim() 171 float maxResist = Utilities.getProgress(params.resistanceParams.scaleMaxResist, in createRecentsResistanceAnim() 177 float resistProgress = Utilities.getProgress(t, startResist, 1); in createRecentsResistanceAnim()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | RestoreDbTask.java | 39 import com.android.launcher3.Utilities; 171 boolean keepAllIcons = Utilities.isPropertyEnabled(LogConfig.KEEP_ALL_ICONS); in sanitizeDB() 260 if (!Utilities.ATLEAST_Q) { in getUserForAncestralSerialNumber() 282 return Utilities.getPrefs(context).getBoolean(RESTORE_TASK_PENDING, false); in isPending() 287 Utilities.getPrefs(context).edit().putBoolean(RESTORE_TASK_PENDING, isPending).commit(); in setPending() 291 SharedPreferences prefs = Utilities.getPrefs(context); in restoreAppWidgetIdsIfExists() 306 Utilities.getPrefs(context).edit() in setRestoredAppWidgetIds()
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | DeepShortcutTextView.java | 30 import com.android.launcher3.Utilities; 69 if (!Utilities.isRtl(getResources())) { in onMeasure() 86 Utilities.isRtl(getResources()) ? mDragHandleWidth : getPaddingStart(), in setLoadingBounds() 163 CharSequence msg = Utilities.wrapForTts( in showToast()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | WorkModeSwitch.java | 39 import com.android.launcher3.Utilities; 72 if (Utilities.ATLEAST_R) { in onFinishInflate() 108 if (Utilities.ATLEAST_P) { in onClick() 140 if (Utilities.ATLEAST_R) { in onApplyWindowInsets()
|
/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/model/data/ |
D | WorkspaceItemInfo.java | 30 import com.android.launcher3.Utilities; 93 @NonNull private String[] personKeys = Utilities.EMPTY_STRING_ARRAY; 112 title = Utilities.trim(info.title); in WorkspaceItemInfo() 177 personKeys = persons.length == 0 ? Utilities.EMPTY_STRING_ARRAY in updateFromDeepShortcutInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
D | InstallSessionHelper.java | 19 import static com.android.launcher3.Utilities.getPrefs; 39 import com.android.launcher3.Utilities; 123 if (Utilities.ATLEAST_Q && !user.equals(getUserHandle(info))) { in getActiveSessionInfo() 161 List<SessionInfo> list = new ArrayList<>(Utilities.ATLEAST_Q in getAllVerifiedSessions() 260 return Utilities.ATLEAST_Q ? info.getUser() : Process.myUserHandle(); in getUserHandle()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
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 | AccessibilityManagerCompat.java | 29 import com.android.launcher3.Utilities; 113 if (!Utilities.IS_RUNNING_IN_TEST_HARNESS) return null; in getAccessibilityManagerForTest() 122 if (Utilities.ATLEAST_Q) { in getRecommendedTimeoutMillis()
|
/packages/apps/Launcher3/src/com/android/launcher3/config/ |
D | FeatureFlags.java | 22 import com.android.launcher3.Utilities; 43 return Utilities.IS_DEBUG_DEVICE && Utilities.isDevelopersOptionsEnabled(context); in showFlagTogglerUi() 350 return Utilities.IS_DEBUG_DEVICE in getDebugFlag()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | WidgetItem.java | 3 import static com.android.launcher3.Utilities.ATLEAST_S; 11 import com.android.launcher3.Utilities; 45 Utilities.trim(info.getLabel(pm)); in WidgetItem()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | TutorialStepIndicator.java | 29 import com.android.launcher3.Utilities; 103 lp.setMarginStart(Utilities.dpToPx(3)); in initializeStepIndicators() 104 lp.setMarginEnd(Utilities.dpToPx(3)); in initializeStepIndicators()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 19 import static com.android.launcher3.Utilities.dpiFromPx; 20 import static com.android.launcher3.Utilities.getPointString; 191 Utilities.getPrefs(context).edit().putString(KEY_IDP_GRID_NAME, newGridName).apply(); in InvariantDeviceProfile() 193 Utilities.getPrefs(context).edit() in InvariantDeviceProfile() 250 return Utilities.isGridOptionsEnabled(context) in getCurrentGridName() 251 ? Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, null) : null; in getCurrentGridName() 312 if (Utilities.isGridOptionsEnabled(context)) { in initGrid() 371 Utilities.getPrefs(appContext).edit().putString(KEY_IDP_GRID_NAME, gridName).apply();
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | TaskbarAnimationController.java | 23 import com.android.launcher3.Utilities; 135 scale = Utilities.mapRange(mTaskbarBackgroundAlpha.value, scale, 1f); in updateScale() 144 translationY = Utilities.mapRange(mTaskbarBackgroundAlpha.value, translationY, 0f); in updateTranslationY()
|