/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/ |
D | ExtractionUtils.java | 31 import com.android.launcher3.Utilities; 55 Utilities.THREAD_POOL_EXECUTOR.execute(new Runnable() { in startColorExtractionServiceIfNecessary() 72 jobScheduler.schedule(new JobInfo.Builder(Utilities.COLOR_EXTRACTION_JOB_ID, in startColorExtractionService() 78 if (!Utilities.ATLEAST_NOUGAT) { in hasWallpaperIdChanged() 82 final SharedPreferences sharedPrefs = Utilities.getPrefs(context); in hasWallpaperIdChanged() 90 return Utilities.ATLEAST_NOUGAT ? in getWallpaperId()
|
D | ColorExtractionService.java | 39 import com.android.launcher3.Utilities; 130 if (Utilities.ATLEAST_NOUGAT) { in getHotseatPalette() 162 if (Utilities.ATLEAST_NOUGAT) { in getStatusBarPalette() 189 if (Utilities.ATLEAST_NOUGAT) { in getWallpaperPalette()
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | DeepShortcutManager.java | 33 import com.android.launcher3.Utilities; 109 if (Utilities.ATLEAST_NOUGAT_MR1) { in unpinShortcut() 131 if (Utilities.ATLEAST_NOUGAT_MR1) { in pinShortcut() 150 if (Utilities.ATLEAST_NOUGAT_MR1) { in startShortcut() 164 if (Utilities.ATLEAST_NOUGAT_MR1) { in getShortcutIconDrawable() 208 if (Utilities.ATLEAST_NOUGAT_MR1) { in query() 239 if (Utilities.ATLEAST_NOUGAT_MR1) { in hasHostPermission()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | LauncherIcons.java | 45 import com.android.launcher3.Utilities; 107 if (Utilities.ATLEAST_OREO && iconAppTargetSdk >= Build.VERSION_CODES.O) { in createBadgedIconBitmap() 126 if (FeatureFlags.ADAPTIVE_ICON_SHADOW && Utilities.ATLEAST_OREO && in createBadgedIconBitmap() 161 if (Utilities.ATLEAST_OREO && iconAppTargetSdk >= Build.VERSION_CODES.O) { in createScaledBitmapWithoutShadow() 167 if (Utilities.ATLEAST_OREO && FeatureFlags.LEGACY_ICON_TREATMENT && in createScaledBitmapWithoutShadow() 216 if (FeatureFlags.ADAPTIVE_ICON_SHADOW && Utilities.ATLEAST_OREO && in createIconBitmap() 221 if (FeatureFlags.ADAPTIVE_ICON_SHADOW && Utilities.ATLEAST_OREO && in createIconBitmap() 274 if (Utilities.ATLEAST_OREO && icon instanceof AdaptiveIconDrawable) { in createIconBitmap() 299 if (!(FeatureFlags.LEGACY_ICON_TREATMENT && Utilities.ATLEAST_OREO)) { in wrapToAdaptiveIconDrawable()
|
D | IconShapeOverride.java | 18 import static com.android.launcher3.Utilities.getDevicePrefs; 40 import com.android.launcher3.Utilities; 62 if (!Utilities.ATLEAST_OREO) { in isSupported() 85 if (!Utilities.ATLEAST_OREO) { in apply()
|
D | DrawableFactory.java | 36 import com.android.launcher3.Utilities; 54 sInstance = Utilities.getOverrideObject(DrawableFactory.class, in get() 83 if (Utilities.ATLEAST_OREO) { in getPreloadProgressPath()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | SessionCommitReceiver.java | 62 if (!isEnabled(context) || !Utilities.ATLEAST_OREO) { in onReceive() 91 return Utilities.getPrefs(context).getBoolean(ADD_ICON_PREFERENCE_KEY, true); in isEnabled() 95 if (!Utilities.ATLEAST_OREO) { in applyDefaultUserPrefs() 98 SharedPreferences prefs = Utilities.getPrefs(context); in applyDefaultUserPrefs() 108 new PrefInitTask(context).executeOnExecutor(Utilities.THREAD_POOL_EXECUTOR); in applyDefaultUserPrefs() 122 Utilities.getPrefs(mContext).edit() in doInBackground()
|
D | DeviceProfile.java | 230 ? Utilities.pxFromDp(inv.iconSize, dm) in DeviceProfile() 318 + Utilities.calculateTextHeight(allAppsIconTextSizePx) in adjustToHideWorkspaceLabels() 349 iconSizePx = (int) (Utilities.pxFromDp(invIconSizePx, dm) * scale); in updateIconSize() 350 iconTextSizePx = (int) (Utilities.pxFromSp(inv.iconTextSize, dm) * scale); in updateIconSize() 354 + Utilities.calculateTextHeight(iconTextSizePx); in updateIconSize() 404 + Utilities.calculateTextHeight(res.getDimension(R.dimen.folder_label_text_size)); in updateAvailableFolderCellDimensions() 428 folderChildIconSizePx = (int) (Utilities.pxFromDp(inv.iconSize, dm) * scale); in updateFolderCellSize() 432 int textHeight = Utilities.calculateTextHeight(folderChildTextSizePx); in updateFolderCellSize() 571 return Utilities.boundToRange(zoneHeight, in getOverviewModeButtonBarHeight()
|
D | InstallShortcutReceiver.java | 116 SharedPreferences sp = Utilities.getPrefs(context); in removeFromInstallQueue() 123 if (Utilities.isEmpty(strings)) { in removeFromInstallQueue() 146 SharedPreferences sharedPrefs = Utilities.getPrefs(context); in getAndClearInstallQueue() 239 Set<String> strings = Utilities.getPrefs(context).getStringSet(APPS_PENDING_INSTALL, null); in getPendingShortcuts() 240 if (Utilities.isEmpty(strings)) { in getPendingShortcuts() 259 addToInstallQueue(Utilities.getPrefs(context), info); in queuePendingShortcutInfo() 437 byte[] iconByteArray = Utilities.flattenBitmap(icon); in encodeToString() 591 if (!Utilities.isLauncherAppTarget(original.launchIntent)) { in convertToLauncherActivityIfPossible() 670 info.title = Utilities.trim(name); in createShortcutInfo()
|
D | LauncherProvider.java | 201 if (Utilities.ATLEAST_MARSHMALLOW && Binder.getCallingPid() != Process.myPid()) { in reloadLauncherIfExternal() 229 if (Utilities.ATLEAST_MARSHMALLOW) { in insert() 296 Utilities.closeSilently(stmp); in initializeExternalAdd() 379 Utilities.getPrefs(getContext()).edit() in call() 395 Utilities.getPrefs(getContext()).getBoolean(EMPTY_DATABASE_CREATED, false)); in call() 449 db.delete(Favorites.TABLE_NAME, Utilities.createDbSelectionQuery( in deleteEmptyFolders() 472 Utilities.getPrefs(getContext()).edit().remove(EMPTY_DATABASE_CREATED).commit(); in clearFlagEmptyDbCreated() 483 SharedPreferences sp = Utilities.getPrefs(getContext()); in loadDefaultFavoritesIfNecessary() 651 Utilities.getPrefs(mContext).edit().putBoolean(EMPTY_DATABASE_CREATED, true).commit(); in onEmptyDbCreated() 930 if (!Utilities.isLauncherAppTarget(intent)) { in convertShortcutsToLauncherActivities()
|
D | FocusHelper.java | 112 final boolean isLayoutRtl = Utilities.isRtl(v.getResources()); in onKey() 262 pageCount, Utilities.isRtl(v.getResources())); in handleHotseatButtonKeyEvent() 375 pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent() 376 boolean isRtl = Utilities.isRtl(v.getResources()); in handleIconKeyEvent() 398 newPageIndex, pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent() 437 newPageIndex, pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent()
|
D | LauncherAppWidgetHostView.java | 95 if (Utilities.ATLEAST_OREO) { in LauncherAppWidgetHostView() 96 setExecutor(Utilities.THREAD_POOL_EXECUTOR); in LauncherAppWidgetHostView() 192 if (!Utilities.pointInView(this, ev.getX(), ev.getY(), mSlop)) { in onInterceptTouchEvent() 211 if (!Utilities.pointInView(this, ev.getX(), ev.getY(), mSlop)) { in onTouchEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | RestoreDbTask.java | 28 import com.android.launcher3.Utilities; 80 boolean keepAllIcons = Utilities.isPropertyEnabled(LogConfig.KEEP_ALL_ICONS); in sanitizeDB() 95 if (Utilities.longCompare(oldProfileId, myProfileId) != 0) { in sanitizeDB() 133 return Utilities.getPrefs(context).getBoolean(RESTORE_TASK_PENDING, false); in isPending() 138 Utilities.getPrefs(context).edit().putBoolean(RESTORE_TASK_PENDING, isPending).commit(); in setPending()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | UserManagerCompat.java | 22 import com.android.launcher3.Utilities; 36 if (Utilities.ATLEAST_NOUGAT_MR1) { in getInstance() 38 } else if (Utilities.ATLEAST_NOUGAT) { in getInstance() 40 } else if (Utilities.ATLEAST_MARSHMALLOW) { in getInstance()
|
D | WallpaperManagerCompatVL.java | 45 import com.android.launcher3.Utilities; 54 import static com.android.launcher3.Utilities.getDevicePrefs; 126 JobInfo job = new JobInfo.Builder(Utilities.WALLPAPER_COMPAT_JOB_ID, in reloadColors() 141 if (!Utilities.ATLEAST_NOUGAT) { in getWallpaperId() 217 if (Utilities.ATLEAST_NOUGAT) { in run()
|
D | AlphabeticIndexCompat.java | 10 import com.android.launcher3.Utilities; 26 if (Utilities.ATLEAST_NOUGAT) { in AlphabeticIndexCompat() 57 String s = Utilities.trim(cs); in computeSectionName() 59 if (Utilities.trim(sectionName).isEmpty() && s.length() > 0) { in computeSectionName()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | LoaderResults.java | 33 import com.android.launcher3.Utilities; 231 return Utilities.longCompare(lhs.container, rhs.container); in filterCurrentWorkspaceItems() 273 return Utilities.longCompare(lr, rr); in sortWorkspaceItemsSpatially() 277 return Utilities.longCompare(lhs.screenId, rhs.screenId); in sortWorkspaceItemsSpatially() 288 return Utilities.longCompare(lhs.container, rhs.container); in sortWorkspaceItemsSpatially()
|
D | LoaderCursor.java | 41 import com.android.launcher3.Utilities; 202 return TextUtils.isEmpty(title) ? "" : Utilities.trim(title); in getTitle() 224 info.title = Utilities.trim(title); in getRestoredItemInfo() 319 Utilities.createDbSelectionQuery( in commitDeleted() 346 Utilities.createDbSelectionQuery( in commitRestoredItems()
|
D | WidgetItem.java | 10 import com.android.launcher3.Utilities; 36 label = Utilities.trim(info.getLabel(pm)); in WidgetItem() 46 label = Utilities.trim(info.getLabel()); in WidgetItem()
|
/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/src/com/android/launcher3/badge/ |
D | FolderBadgeInfo.java | 19 import com.android.launcher3.Utilities; 40 mNumNotifications = Utilities.boundToRange( in addBadgeInfo() 49 mNumNotifications = Utilities.boundToRange( in subtractBadgeInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/qsb/ |
D | QsbContainerView.java | 42 import com.android.launcher3.Utilities; 127 int widgetId = Utilities.getPrefs(activity).getInt(QSB_WIDGET_ID, -1); in createQsb() 156 if (!Utilities.containsAll(AppWidgetManager.getInstance(activity) in createQsb() 174 Utilities.getPrefs(getActivity()).edit().putInt(QSB_WIDGET_ID, widgetId).apply(); in saveWidgetId()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
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/src/com/android/launcher3/util/ |
D | PackageManagerHelper.java | 34 import com.android.launcher3.Utilities; 92 if (Utilities.ATLEAST_NOUGAT) { in isAppSuspended() 125 if (!Utilities.ATLEAST_MARSHMALLOW) { in hasPermissionForActivity()
|
D | WallpaperOffsetInterpolator.java | 10 import com.android.launcher3.Utilities; 50 mIsRtl = Utilities.isRtl(workspace.getResources()); in WallpaperOffsetInterpolator() 147 float offset = Utilities.boundToRange((float) adjustedScroll / scrollRange, 0f, 1f); in wallpaperOffsetForScroll()
|