Home
last modified time | relevance | path

Searched refs:FLAG_SYSTEM (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/colorextraction/
DColorExtractor.java67 for (int which : new int[] { WallpaperManager.FLAG_LOCK, WallpaperManager.FLAG_SYSTEM}) { in ColorExtractor()
84 mSystemColors = wallpaperManager.getWallpaperColors(WallpaperManager.FLAG_SYSTEM); in initExtractColors()
98 mSystemColors = params[0].getWallpaperColors(WallpaperManager.FLAG_SYSTEM); in doInBackground()
107 triggerColorsChanged(WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); in onPostExecute()
112 GradientColors[] systemColors = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in extractWallpaperColors()
148 if (which != WallpaperManager.FLAG_LOCK && which != WallpaperManager.FLAG_SYSTEM) { in getColors()
164 } else if (which == WallpaperManager.FLAG_SYSTEM) { in getWallpaperColors()
184 if ((which & WallpaperManager.FLAG_SYSTEM) != 0) { in onColorsChanged()
186 GradientColors[] systemColors = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in onColorsChanged()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppsQueryHelperTests.java110 ai1.flags |= ApplicationInfo.FLAG_SYSTEM; in getAllApps()
113 ai2.flags |= ApplicationInfo.FLAG_SYSTEM; in getAllApps()
115 ai2.flags |= ApplicationInfo.FLAG_SYSTEM; in getAllApps()
118 ai3.flags |= ApplicationInfo.FLAG_SYSTEM; in getAllApps()
132 r2.activityInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in queryIntentActivitiesAsUser()
144 p1.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in getPackagesHoldingPermission()
155 sysApp1.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in queryIntentServicesAsUser()
DPackageBuilder.java59 this.mFlags |= ApplicationInfo.FLAG_SYSTEM; in asSystemApp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierAppUtilsTest.java143 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser()
170 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled()
197 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled()
223 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp()
255 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_MissingAssociated_Default()
290 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default()
301 associatedAppInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default()
332 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedAssociated_DisabledUntilUsed()
343 ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedAssociated_DisabledUntilUsed()
376 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_DisabledUntilUsed()
[all …]
/frameworks/base/core/java/android/app/
DWallpaperManager.java180 FLAG_SYSTEM,
189 public static final int FLAG_SYSTEM = 1 << 0; field in WallpaperManager
377 if (which != FLAG_LOCK && which != FLAG_SYSTEM) { in getWallpaperColors()
462 this, FLAG_SYSTEM, params, userId); in getCurrentWallpaperLocked()
548 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM); in getDrawable()
561 return getBuiltInDrawable(0, 0, false, 0, 0, FLAG_SYSTEM); in getBuiltInDrawable()
593 horizontalAlignment, verticalAlignment, FLAG_SYSTEM); in getBuiltInDrawable()
619 if (which != FLAG_SYSTEM && which != FLAG_LOCK) { in getBuiltInDrawable()
779 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, false, FLAG_SYSTEM); in peekDrawable()
803 Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM); in getFastDrawable()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/colorextraction/
DSysuiColorExtractorTests.java54 WallpaperManager.FLAG_SYSTEM,
106 mColorExtractor.getColors(WallpaperManager.FLAG_SYSTEM, type), fallbackColors); in getColors_fallbackWhenMediaIsVisible()
135 WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); in simulateEvent()
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/
DColorExtractorTest.java91 GradientColors colors = extractor.getColors(WallpaperManager.FLAG_SYSTEM, in getColors_usesExtractedColors()
94 colors = extractor.getColors(WallpaperManager.FLAG_SYSTEM, ColorExtractor.TYPE_DARK); in getColors_usesExtractedColors()
96 colors = extractor.getColors(WallpaperManager.FLAG_SYSTEM, ColorExtractor.TYPE_EXTRA_DARK); in getColors_usesExtractedColors()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DPartnerTest.java150 appInfo.flags = ApplicationInfo.FLAG_SYSTEM; in PartnerPackageBuilder()
160 resolveInfo.activityInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in setIsSystem()
162 resolveInfo.activityInfo.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in setIsSystem()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java20 import static android.app.WallpaperManager.FLAG_SYSTEM;
129 mWm.getWallpaperIdForUser(FLAG_SYSTEM, UserHandle.USER_SYSTEM); in onFullBackup()
135 final boolean sysEligible = mWm.isWallpaperBackupEligible(FLAG_SYSTEM); in onFullBackup()
219 final int sysWhich = FLAG_SYSTEM | (lockImageStage.exists() ? 0 : FLAG_LOCK); in onRestoreFinished()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java20 import static android.app.WallpaperManager.FLAG_SYSTEM;
307 notifyColorsWhich |= FLAG_SYSTEM; in onEvent()
540 try (InputStream is = WallpaperManager.openDefaultWallpaper(mContext, FLAG_SYSTEM)) { in extractDefaultImageWallpaperColors() argument
1177 clearWallpaperLocked(true, FLAG_SYSTEM, mWallpaper.userId,
1355 clearWallpaperLocked(true, FLAG_SYSTEM, mWallpaper.userId, null); in tryToRebind()
1384 clearWallpaperLocked(true, FLAG_SYSTEM, mWallpaper.userId, null); in processDisconnect()
1416 which = FLAG_SYSTEM; in onWallpaperColorsChanged()
1509 clearWallpaperLocked(false, FLAG_SYSTEM, wallpaper.userId, null); in onPackageUpdateFinished()
1597 clearWallpaperLocked(false, FLAG_SYSTEM, wallpaper.userId, null); in doPackagesChangedLocked()
1618 clearWallpaperLocked(false, FLAG_SYSTEM, wallpaper.userId, null); in doPackagesChangedLocked()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DInputMethodPreferenceTest.java140 resolveInfo.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
142 resolveInfo.serviceInfo.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/colorextraction/
DSysuiColorExtractor.java103 triggerColorsChanged(WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); in onUiModeChanged()
141 GradientColors[] system = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in dump()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java189 if ((app.flags & ApplicationInfo.FLAG_SYSTEM) == 0 in fetchAndMergeApps()
230 if ((app.flags & ApplicationInfo.FLAG_SYSTEM) == 0 in fetchAndMergeApps()
308 if ((flags & ApplicationInfo.FLAG_SYSTEM) != 0 in addSystemApps()
342 if ((flags & ApplicationInfo.FLAG_SYSTEM) != 0 in isSystemPackage()
/frameworks/base/services/core/java/com/android/server/pm/
DSettingBase.java56 & (ApplicationInfo.FLAG_SYSTEM in setFlags()
DPackageSetting.java160 return (pkgFlags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystem()
/frameworks/base/media/java/android/media/tv/
DTvContentRatingSystemInfo.java66 return (mApplicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemDefined()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/applications/
DApplicationsStateTest.java156 mEntry.info.flags = ApplicationInfo.FLAG_SYSTEM; in testDownloadAndLauncherAndInstantAcceptsCorrectApps()
186 mEntry.info.flags = ApplicationInfo.FLAG_SYSTEM; in testDownloadAndLauncherAcceptsCorrectApps()
/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java49 if ((target.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in signaturesMatch()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java223 ri.activityInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp()
224 ri.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java379 ApplicationInfo.FLAG_SYSTEM|ApplicationInfo.FLAG_HAS_CODE, in testPackageStateCopy01()
406 ApplicationInfo.FLAG_SYSTEM|ApplicationInfo.FLAG_HAS_CODE, in testPackageStateCopy02()
486 ApplicationInfo.FLAG_SYSTEM /*pkgFlags*/, in testUpdatePackageSetting02()
494 assertThat(testPkgSetting01.pkgFlags, is(ApplicationInfo.FLAG_SYSTEM)); in testUpdatePackageSetting02()
556 ApplicationInfo.FLAG_SYSTEM /*pkgFlags*/, in testCreateNewSetting01()
569 assertThat(testPkgSetting01.pkgFlags, is(ApplicationInfo.FLAG_SYSTEM)); in testCreateNewSetting01()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DPartner.java160 if ((appInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in get()
/frameworks/base/services/print/java/com/android/server/print/
DRemotePrintServiceRecommendationService.java107 if ((appInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in getServiceIntent()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DAppBackupUtils.java238 if ((target.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in signaturesMatch()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageIconProvider.java190 (pkgInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in isSystemApp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java140 if ((ai.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in getFeedbackReporterPackage()

1234