Home
last modified time | relevance | path

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

1234

/packages/apps/Launcher3/src/com/android/launcher3/compat/
DUserHandleCompat.java23 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()
DUserManagerCompat.java21 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()
DAppWidgetManagerCompatV16.java34 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()
DAlphabeticIndexCompat.java7 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()
DUserManagerCompatVL.java27 import com.android.launcher3.Utilities;
97 if (Utilities.ATLEAST_MARSHMALLOW) { in getUserCreationTime()
100 SharedPreferences prefs = Utilities.getPrefs(mContext); in getUserCreationTime()
DPackageInstallerCompat.java21 import com.android.launcher3.Utilities;
37 if (Utilities.ATLEAST_LOLLIPOP) { in getInstance()
/packages/apps/Launcher3/tests/src/com/android/launcher3/
DInvariantDeviceProfileTest.java130 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()
DRotationPreferenceTest.java31 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/
DCursorIconInfo.java27 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()
DPackageManagerHelper.java22 import com.android.launcher3.Utilities;
65 if (Utilities.ATLEAST_N) { in isAppSuspended()
DConfigMonitor.java26 import com.android.launcher3.Utilities;
61 return Utilities.ATLEAST_JB_MR1 ? config.densityDpi : 0; in getDensity()
DManagedProfileHeuristic.java36 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()
DUiThreadCircularReveal.java12 import com.android.launcher3.Utilities;
50 if (!Utilities.ATLEAST_LOLLIPOP_MR1) { in createCircularReveal()
/packages/apps/Launcher3/src/com/android/launcher3/
DIconCache.java184 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 …]
DLauncherStateTransitionAnimation.java203 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()
DShortcutInfo.java162 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()
DLauncherProvider.java153 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 …]
DButtonDropTarget.java96 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()
DDeviceProfile.java158 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()
DInstallShortcutReceiver.java95 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()
DSettingsActivity.java51 Utilities.ALLOW_ROTATION_PREFERENCE_KEY); in onCreate()
59 Utilities.ALLOW_ROTATION_PREFERENCE_KEY, extras); in onCreate()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DNycWallpaperUtils.java25 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/
DWidgetsAndShortcutNameComparator.java10 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/
DWidgetsContainerView.java44 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/
DToggleWeightWatcher.java10 import com.android.launcher3.Utilities;
19 SharedPreferences sp = Utilities.getPrefs(this); in onCreate()

1234