/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | UserHandleCompat.java | 23 import com.android.launcher3.Utilities; 37 if (Utilities.ATLEAST_JB_MR1) { in myUserHandle() 58 if (Utilities.ATLEAST_JB_MR1) { in toString() 70 if (Utilities.ATLEAST_JB_MR1) { in equals() 79 if (Utilities.ATLEAST_JB_MR1) { in hashCode() 92 if (Utilities.ATLEAST_LOLLIPOP && mUser != null) { in addToIntent() 98 if (Utilities.ATLEAST_LOLLIPOP) { in fromIntent()
|
D | UserManagerCompat.java | 21 import com.android.launcher3.Utilities; 35 if (Utilities.ATLEAST_N) { in getInstance() 37 } else if (Utilities.ATLEAST_LOLLIPOP) { in getInstance() 39 } else if (Utilities.ATLEAST_JB_MR1) { in getInstance()
|
D | AppWidgetManagerCompatV16.java | 34 import com.android.launcher3.Utilities; 53 return Utilities.trim(info.label); in loadLabel() 60 if (Utilities.ATLEAST_JB_MR1) { in bindAppWidgetIdIfAllowed() 78 Utilities.startActivityForResultSafely(activity, intent, requestCode); in startConfigActivity()
|
D | AlphabeticIndexCompat.java | 7 import com.android.launcher3.Utilities; 23 if (Utilities.ATLEAST_N) { in AlphabeticIndexCompat() 54 String s = Utilities.trim(cs); in computeSectionName() 56 if (Utilities.trim(sectionName).isEmpty() && s.length() > 0) { in computeSectionName()
|
D | UserManagerCompatVL.java | 27 import com.android.launcher3.Utilities; 97 if (Utilities.ATLEAST_MARSHMALLOW) { in getUserCreationTime() 100 SharedPreferences prefs = Utilities.getPrefs(mContext); in getUserCreationTime()
|
D | PackageInstallerCompat.java | 21 import com.android.launcher3.Utilities; 37 if (Utilities.ATLEAST_LOLLIPOP) { in getInstance()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ |
D | InvariantDeviceProfileTest.java | 130 int portraitHeight = (int) Utilities.dpiFromPx(portraitBounds.height(), in testQsbNormalHeight() 133 int landscapeHeight = (int) Utilities.dpiFromPx(landscapeBounds.height(), in testQsbNormalHeight() 146 assertEquals(8 + 48 + 8, (int) Utilities.dpiFromPx(portraitWidgetOptsHeight, in testQsbNormalHeight() 164 int portraitHeight = (int) Utilities.dpiFromPx(portraitBounds.height(), in testQsbTallHeight() 167 int landscapeHeight = (int) Utilities.dpiFromPx(landscapeBounds.height(), in testQsbTallHeight() 181 assertEquals(8 + 94 + 8, (int) Utilities.dpiFromPx(portraitWidgetOptsHeight, in testQsbTallHeight()
|
D | RotationPreferenceTest.java | 31 mPrefs = Utilities.getPrefs(mTargetContext); in setUp() 32 mOriginalRotationValue = mPrefs.getBoolean(Utilities.ALLOW_ROTATION_PREFERENCE_KEY, false); in setUp() 79 mPrefs.edit().putBoolean(Utilities.ALLOW_ROTATION_PREFERENCE_KEY, enabled).commit();
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | CursorIconInfo.java | 27 import com.android.launcher3.Utilities; 56 icon = Utilities.createIconBitmap(packageName, resourceName, context); in loadIcon() 60 icon = Utilities.createIconBitmap(c, iconIndex, context); in loadIcon() 64 icon = Utilities.createIconBitmap(c, iconIndex, context); in loadIcon()
|
D | PackageManagerHelper.java | 22 import com.android.launcher3.Utilities; 65 if (Utilities.ATLEAST_N) { in isAppSuspended()
|
D | ConfigMonitor.java | 26 import com.android.launcher3.Utilities; 61 return Utilities.ATLEAST_JB_MR1 ? config.densityDpi : 0; in getDensity()
|
D | ManagedProfileHeuristic.java | 36 import com.android.launcher3.Utilities; 72 if (Utilities.ATLEAST_LOLLIPOP && !UserHandleCompat.myUserHandle().equals(user)) { in get() 156 return Utilities.longCompare(lhsTime == null ? 0 : lhsTime, in sortList() 306 if (!Utilities.ATLEAST_LOLLIPOP) { in processAllUsers()
|
D | UiThreadCircularReveal.java | 12 import com.android.launcher3.Utilities; 50 if (!Utilities.ATLEAST_LOLLIPOP_MR1) { in createCircularReveal()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | IconCache.java | 184 return Utilities.createBadgedIconBitmap(unbadged, user, mContext); in makeDefaultIcon() 337 Utilities.createDbSelectionQuery(IconDB.COLUMN_ROWID, itemsToRemove), null); in updateDBIcons() 383 entry.icon = Utilities.createBadgedIconBitmap( in updateCacheAndGetContentValues() 438 application.title = Utilities.trim(entry.title); in getTitleAndIcon() 451 application.title = Utilities.trim(entry.title); in updateTitleAndIcon() 502 shortcutInfo.title = Utilities.trim(entry.title); in getTitleAndIcon() 515 infoOut.title = Utilities.trim(entry.title); in getTitleAndIconForApp() 546 entry.icon = Utilities.createBadgedIconBitmap( in cacheLocked() 596 entry.icon = Utilities.createIconBitmap(icon, mContext); in cachePackageInstallInfo() 628 entry.icon = Utilities.createBadgedIconBitmap( in getEntryForPackageLocked() [all …]
|
D | LauncherStateTransitionAnimation.java | 203 final boolean material = Utilities.ATLEAST_LOLLIPOP; in startAnimationToOverlay() 247 int[] buttonViewToPanelDelta = Utilities.getCenterDeltaInScreenSpace( in startAnimationToOverlay() 357 if (Utilities.ATLEAST_LOLLIPOP && Utilities.isViewAttachedToWindow(v)) { in startAnimationToOverlay() 491 final boolean material = Utilities.ATLEAST_LOLLIPOP; in startAnimationToWorkspaceFromOverlay() 543 int[] buttonViewToPanelDelta = Utilities.getCenterDeltaInScreenSpace(revealView, in startAnimationToWorkspaceFromOverlay() 670 if (Utilities.ATLEAST_LOLLIPOP && Utilities.isViewAttachedToWindow(v)) { in startAnimationToWorkspaceFromOverlay()
|
D | ShortcutInfo.java | 162 this.title = Utilities.trim(title); in ShortcutInfo() 170 title = Utilities.trim(info.title); in ShortcutInfo() 187 title = Utilities.trim(info.title); in ShortcutInfo() 293 shortcut.title = Utilities.trim(info.getLabel()); in fromActivityInfo()
|
D | LauncherProvider.java | 153 if (Utilities.ATLEAST_MARSHMALLOW && Binder.getCallingPid() != Process.myPid()) { in reloadLauncherIfExternal() 180 if (Utilities.ATLEAST_MARSHMALLOW) { in insert() 271 if (Utilities.ALLOW_ROTATION_PREFERENCE_KEY.equals(arg)) { in call() 273 Utilities.isAllowRotationPrefEnabled(getContext())); in call() 276 Utilities.getPrefs(getContext()).getBoolean(arg, extras.getBoolean( in call() 283 Utilities.getPrefs(getContext()).edit().putBoolean(arg, value).apply(); in call() 321 db.delete(TABLE_FAVORITES, Utilities.createDbSelectionQuery( in deleteEmptyFolders() 365 Utilities.getPrefs(getContext()).edit().remove(EMPTY_DATABASE_CREATED).commit(); in clearFlagEmptyDbCreated() 376 SharedPreferences sp = Utilities.getPrefs(getContext()); in loadDefaultFavoritesIfNecessary() 427 if (!Utilities.ATLEAST_JB_MR2) { in createWorkspaceLoaderFromAppRestriction() [all …]
|
D | ButtonDropTarget.java | 96 if (Utilities.ATLEAST_JB_MR1) { in setDrawable() 117 if (Utilities.ATLEAST_LOLLIPOP) { in onDragEnter() 139 if (Utilities.ATLEAST_LOLLIPOP) { in resetHoverColor() 279 if (Utilities.isRtl(getResources())) { in getIconRect()
|
D | DeviceProfile.java | 158 allAppsIconSizePx = Utilities.pxFromDp(inv.iconSize, dm); in DeviceProfile() 207 iconSizePx = (int) (Utilities.pxFromDp(inv.iconSize, dm) * scale); in updateIconSize() 208 iconTextSizePx = (int) (Utilities.pxFromSp(inv.iconTextSize, dm) * scale); in updateIconSize() 210 hotseatIconSizePx = (int) (Utilities.pxFromDp(inv.hotseatIconSize, dm) * scale); in updateIconSize() 287 Rect searchBarBounds = getSearchBarBounds(Utilities.isRtl(res)); in getSearchBarDimensForWidgetOpts() 450 final boolean isLayoutRtl = Utilities.isRtl(launcher.getResources()); in layout()
|
D | InstallShortcutReceiver.java | 95 SharedPreferences sp = Utilities.getPrefs(context); in removeFromInstallQueue() 193 addToInstallQueue(Utilities.getPrefs(context), info); in queuePendingShortcutInfo() 207 SharedPreferences sp = Utilities.getPrefs(context); in flushInstallQueue() 332 byte[] iconByteArray = Utilities.flattenBitmap(icon); in encodeToString() 426 if (!Utilities.isLauncherAppTarget(original.launchIntent) in convertToLauncherActivityIfPossible()
|
D | SettingsActivity.java | 51 Utilities.ALLOW_ROTATION_PREFERENCE_KEY); in onCreate() 59 Utilities.ALLOW_ROTATION_PREFERENCE_KEY, extras); in onCreate()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
D | NycWallpaperUtils.java | 25 if (Utilities.ATLEAST_N) { in executeCropTaskAfterPrompt() 53 if (Utilities.ATLEAST_N) { in setStream() 63 if (Utilities.ATLEAST_N) { in clear()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | WidgetsAndShortcutNameComparator.java | 10 import com.android.launcher3.Utilities; 93 return Utilities.trim(mManager.loadLabel(widgetInfo)); in getLabel() 97 return Utilities.trim(shortcutInfo.loadLabel(mPackageManager)); in getLabel()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetsContainerView.java | 44 import com.android.launcher3.Utilities; 124 CharSequence msg = Utilities.wrapForTts( in onClick() 219 preview = Utilities.createIconBitmap(icon, mLauncher); in beginDraggingWidget() 315 if (Utilities.isRtl(getResources())) { in onUpdateBgPadding()
|
/packages/apps/Launcher3/src/com/android/launcher3/testing/ |
D | ToggleWeightWatcher.java | 10 import com.android.launcher3.Utilities; 19 SharedPreferences sp = Utilities.getPrefs(this); in onCreate()
|