Home
last modified time | relevance | path

Searched refs:Utilities (Results 1 – 25 of 193) sorted by relevance

12345678

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentsAnimationCallbacks.java26 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/
DOptionsPopupView.java18 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()
DBaseDragLayer.java44 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()
DClipIconView.java18 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()
DRecyclerViewFastScroller.java49 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()
DSpringRelativeLayout.java28 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/
DThemes.java34 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()
DDisplayController.java21 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()
DEdgeEffectCompat.java21 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/
DTestLogging.java22 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/
DTaskViewTouchController.java33 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/
DAnimatorControllerWithResistance.java35 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/
DRestoreDbTask.java39 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/
DDeepShortcutTextView.java30 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/
DWorkModeSwitch.java39 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/
DFolderDotInfo.java21 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/
DWorkspaceItemInfo.java30 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/
DInstallSessionHelper.java19 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/
DAlphabeticIndexCompat.java7 import com.android.launcher3.Utilities;
50 String s = Utilities.trim(cs); in computeSectionName()
52 if (Utilities.trim(sectionName).isEmpty() && s.length() > 0) { in computeSectionName()
DAccessibilityManagerCompat.java29 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/
DFeatureFlags.java22 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/
DWidgetItem.java3 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/
DTutorialStepIndicator.java29 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/
DInvariantDeviceProfile.java19 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/
DTaskbarAnimationController.java23 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()

12345678