Home
last modified time | relevance | path

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

12345

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DPackageManagerServiceBootTest.kt18 import android.content.pm.ApplicationInfo.FLAG_SYSTEM
73 Process.SYSTEM_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED)
75 Process.PHONE_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED)
77 Process.LOG_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED)
79 Process.NFC_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED)
81 Process.BLUETOOTH_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED)
83 Process.SHELL_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED)
85 Process.SE_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED)
87 Process.NETWORK_STACK_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED)
157 withExistingSetting = { it.setPkgFlags(FLAG_SYSTEM) })
[all …]
H A DMockSystem.kt231 UserInfo.FLAG_PRIMARY or UserInfo.FLAG_SYSTEM or UserInfo.FLAG_FULL,
585 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)
602 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)
618 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)
628 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)
641 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)
662 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
H A DThemeOverlayControllerTest.java198 verify(mWallpaperManager).getWallpaperColors(eq(WallpaperManager.FLAG_SYSTEM)); in start_checksWallpaper()
206 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_setsTheme_whenForeground()
221 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_setsTheme_whenForeground()
227 null, null), WallpaperManager.FLAG_SYSTEM, USER_SYSTEM); in onWallpaperColorsChanged_setsTheme_whenForeground()
236 null, null), WallpaperManager.FLAG_SYSTEM, USER_SYSTEM); in onWallpaperColorsChanged_setsTheme_whenForeground()
245 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_setsTheme_skipWhenBackground()
258 null, null), WallpaperManager.FLAG_SYSTEM, USER_SYSTEM); in onWallpaperColorsChanged_setsTheme_skipWhenBackground()
276 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_preservesWallpaperPickerTheme()
401 WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK, in onWallpaperColorsChanged_resetLockScreenThemeWhenBothSet()
469 WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK, USER_SYSTEM); in onWallpaperColorsChanged_resetThemeWithNewHomeAndLockWallpaper()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/colorextraction/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A 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()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
H A DWallpaperManagerServiceTests.java21 import static android.app.WallpaperManager.FLAG_SYSTEM;
271 for (int which: List.of(FLAG_LOCK, FLAG_SYSTEM)) { in testWallpaperDataConstructor()
314 FLAG_SYSTEM, testUserId); in testSetThenClearComponent()
318 mService.clearWallpaper(null, FLAG_SYSTEM, testUserId); in testSetThenClearComponent()
344 FLAG_SYSTEM, testUserId); in testSetCurrentComponent()
426 WallpaperData shouldMatchSystem = new WallpaperData(0, FLAG_SYSTEM); in testXmlSerializationRoundtrip()
438 WallpaperData wallpaper = new WallpaperData(USER_SYSTEM, FLAG_SYSTEM); in testWallpaperManagerCallbackInRightOrder()
486 FLAG_SYSTEM, testUserId); in testGetAdjustedWallpaperColorsOnDimming()
527 new WallpaperData(USER_SYSTEM, FLAG_SYSTEM).getCropFile(); in getWallpaperWithFeature_getCropped_returnsCropFile()
539 FLAG_SYSTEM, in getWallpaperWithFeature_getCropped_returnsCropFile()
[all …]
/aosp14/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
H A DWallpaperBackupAgent.java20 import static android.app.WallpaperManager.FLAG_SYSTEM;
157 final int sysGeneration = mWallpaperManager.getWallpaperId(FLAG_SYSTEM); in onFullBackup()
219 mWallpaperManager.getWallpaperInfo(FLAG_SYSTEM)); in backupWallpaperInfoFile()
228 if (!mWallpaperManager.isWallpaperBackupEligible(FLAG_SYSTEM)) { in backupSystemWallpaperFile()
235 FLAG_SYSTEM, in backupSystemWallpaperFile()
379 final int sysWhich = separateLockWallpaper ? FLAG_SYSTEM : FLAG_SYSTEM | FLAG_LOCK; in onRestoreFinished()
423 if ((which & FLAG_SYSTEM) != 0) { in updateWallpaperComponent()
463 if ((which & FLAG_SYSTEM) > 0) { in restoreFromStage()
487 if ((which & FLAG_SYSTEM) == FLAG_SYSTEM) { in logRestoreError()
623 if (!lockscreenLiveWallpaper || (which & FLAG_SYSTEM) != 0) { in getWallpaperPackageMonitor()
[all …]
/aosp14/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
H A DWallpaperBackupAgentTest.java20 import static android.app.WallpaperManager.FLAG_SYSTEM;
368 /* applyToLock */ true, FLAG_LOCK | FLAG_SYSTEM); in testUpdateWallpaperComponent_doesApplyLater()
377 .setWallpaperComponentWithFlags(mWallpaperComponent, FLAG_SYSTEM); in testUpdateWallpaperComponent_doesApplyLater()
393 /* applyToLock */ false, FLAG_SYSTEM); in testUpdateWallpaperComponent_applyToLockFalse_doesApplyLaterOnlyToMainScreen()
401 .setWallpaperComponentWithFlags(mWallpaperComponent, FLAG_SYSTEM); in testUpdateWallpaperComponent_applyToLockFalse_doesApplyLaterOnlyToMainScreen()
419 /* applyToLock */ true, FLAG_LOCK | FLAG_SYSTEM); in testUpdateWallpaperComponent_deviceNotInRestore_doesNotApply()
435 /* applyToLock */ true, FLAG_LOCK | FLAG_SYSTEM); in testUpdateWallpaperComponent_differentPackageInstalled_doesNotApply()
761 /* applyToLock */ true, FLAG_LOCK | FLAG_SYSTEM); in testUpdateWallpaperComponent_delayedRestore_logsSuccess()
785 /* applyToLock */ true, FLAG_LOCK | FLAG_SYSTEM); in testUpdateWallpaperComponent_delayedRestoreFails_logsFailure()
807 /* applyToLock */ true, FLAG_LOCK | FLAG_SYSTEM); in testUpdateWallpaperComponent_delayedRestore_packageNotInstalled_logsFailure()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/
H A DWallpaperManagerService.java24 import static android.app.WallpaperManager.FLAG_SYSTEM;
1759 FLAG_SYSTEM, RECORD_FILE,
1985 if (which == FLAG_SYSTEM || data == null) { in clearWallpaper()
2024 if ((which & FLAG_SYSTEM) > 0) { in clearWallpaperLocked()
2031 finalWhich = FLAG_LOCK | FLAG_SYSTEM; in clearWallpaperLocked()
2070 if (which != FLAG_SYSTEM && which != FLAG_LOCK) { in clearWallpaperLocked()
2367 if (which != FLAG_SYSTEM && which != FLAG_LOCK) { in getWallpaperWithFeature()
2463 if (which != FLAG_SYSTEM && which != FLAG_LOCK) { in getWallpaperIdForUser()
3091 if ((which & (FLAG_LOCK|FLAG_SYSTEM)) == 0) { in setWallpaper()
3380 int legacyWhich = FLAG_SYSTEM; in setWallpaperComponentInternalLegacy()
[all …]
H A DWallpaperDataParser.java20 import static android.app.WallpaperManager.FLAG_SYSTEM;
156 boolean loadSystem = !separateLockscreenEngine || (which & FLAG_SYSTEM) != 0; in loadSettingsLocked()
168 wallpaper = new WallpaperData(userId, FLAG_SYSTEM); in loadSettingsLocked()
264 wallpaper.mWhich = lockWallpaper != null ? FLAG_SYSTEM : FLAG_SYSTEM | FLAG_LOCK; in loadSettingsLocked()
/aosp14/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/colorextraction/
H A DSysuiColorExtractorTests.java55 WallpaperManager.FLAG_SYSTEM,
114 mColorExtractor.getColors(WallpaperManager.FLAG_SYSTEM, type), fallbackColors); in getColors_fallbackWhenMediaIsVisible()
148 WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); in simulateEvent()
/aosp14/frameworks/base/core/java/android/app/
H A DWallpaperManager.java294 FLAG_SYSTEM,
303 public static final int FLAG_SYSTEM = 1 << 0; field in WallpaperManager
934 return getDrawable(FLAG_SYSTEM); in getDrawable()
1218 return peekDrawable(FLAG_SYSTEM); in peekDrawable()
1271 return getFastDrawable(FLAG_SYSTEM); in getFastDrawable()
1326 return peekFastDrawable(FLAG_SYSTEM); in peekFastDrawable()
1462 return peekBitmapDimensions(FLAG_SYSTEM); in peekBitmapDimensions()
1757 return getWallpaperInfo(FLAG_SYSTEM, userId); in getWallpaperInfoForUser()
1937 setResource(resid, FLAG_SYSTEM | FLAG_LOCK); in setResource()
2801 if ((which & FLAG_SYSTEM) != 0) { in clear()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DUserTypeDetails.java312 return (mBaseType & UserInfo.FLAG_SYSTEM) != 0; in isSystem()
575 || mBaseType == UserInfo.FLAG_SYSTEM in hasValidBaseType()
576 || mBaseType == (UserInfo.FLAG_FULL | UserInfo.FLAG_SYSTEM); in hasValidBaseType()
585 UserInfo.FLAG_SYSTEM | in hasValidPropertyFlags()
593 ((mBaseType & UserInfo.FLAG_SYSTEM) != 0) == in checkSystemAndMainUserPreconditions()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/wallpapers/
H A DImageWallpaper.java20 import static android.app.WallpaperManager.FLAG_SYSTEM;
344 WallpaperManager.FLAG_SYSTEM, mUserTracker.getUserId()); in loadWallpaperAndDrawFrameInternal()
374 : mWallpaperManager.wallpaperSupportsWcg(WallpaperManager.FLAG_SYSTEM); in loadWallpaperAndDrawFrameInternal()
409 return getWallpaperFlags() == FLAG_LOCK ? FLAG_LOCK : FLAG_SYSTEM; in getSourceFlag()
/aosp14/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
H A DInputMethodPreferenceTest.java142 resolveInfo.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
144 resolveInfo.serviceInfo.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
/aosp14/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
H A DAppListRepositoryTest.kt366 flags = ApplicationInfo.FLAG_SYSTEM
371 flags = ApplicationInfo.FLAG_SYSTEM or ApplicationInfo.FLAG_UPDATED_SYSTEM_APP
376 flags = ApplicationInfo.FLAG_SYSTEM
381 flags = ApplicationInfo.FLAG_SYSTEM
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/colorextraction/
H A DSysuiColorExtractor.java116 triggerColorsChanged(WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); in onUiModeChanged()
154 GradientColors[] system = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in dump()
/aosp14/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/
H A DStagedInstallInternalTest.java119 return (info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystem()
450 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testRebootlessUpdates()
451 .isEqualTo(ApplicationInfo.FLAG_SYSTEM); in testRebootlessUpdates()
474 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testRebootlessUpdates()
475 .isEqualTo(ApplicationInfo.FLAG_SYSTEM); in testRebootlessUpdates()
498 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testRebootlessUpdates()
499 .isEqualTo(ApplicationInfo.FLAG_SYSTEM); in testRebootlessUpdates()
/aosp14/frameworks/base/core/java/android/content/pm/
H A DUserInfo.java145 public static final int FLAG_SYSTEM = 0x00000800; field in UserInfo
206 FLAG_SYSTEM,
331 if ((userInfoFlag & FLAG_SYSTEM) != 0) { in getDefaultUserType()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
H A 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()
H A DAppCopyHelper.java158 if ((app.flags & ApplicationInfo.FLAG_SYSTEM) == 0 in addCurrentUsersApps()
216 if ((flags & ApplicationInfo.FLAG_SYSTEM) != 0 in addSystemApps()
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/
H A DRegionSampler.kt159 if (isLockscreen) WallpaperManager.FLAG_LOCK else WallpaperManager.FLAG_SYSTEM
167 else WallpaperManager.FLAG_SYSTEM
/aosp14/frameworks/base/media/java/android/media/tv/
H A DTvContentRatingSystemInfo.java66 return (mApplicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemDefined()
/aosp14/frameworks/base/services/contentcapture/java/com/android/server/contentprotection/
H A DContentProtectionPackageManager.java65 return (applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemApp()

12345