/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | PackageManagerServiceBootTest.kt | 18 import android.content.pm.ApplicationInfo.FLAG_SYSTEM in <lambda>() 74 Process.SYSTEM_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) in <lambda>() 76 Process.PHONE_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) in <lambda>() 78 Process.LOG_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) in <lambda>() 80 Process.NFC_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) in <lambda>() 82 Process.BLUETOOTH_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) in <lambda>() 84 Process.SHELL_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) in <lambda>() 86 Process.SE_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) in <lambda>() 88 Process.NETWORK_STACK_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) in <lambda>() 158 withExistingSetting = { it.setPkgFlags(FLAG_SYSTEM) }) in <lambda>() [all …]
|
D | MockSystem.kt | 233 UserInfo.FLAG_PRIMARY or UserInfo.FLAG_SYSTEM or UserInfo.FLAG_FULL, 585 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM) in stageInstantAppResolverScan() 602 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM) in stagePermissionsControllerScan() 618 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM) in stageSupplementalProcessScan() 628 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM) in stageSystemSharedLibraryScan() 641 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM) in stageServicesExtensionScan() 662 setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM) in stageInstallerScan()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/ |
D | ThemeOverlayControllerTest.java | 217 verify(mWallpaperManager).getWallpaperColors(eq(WallpaperManager.FLAG_SYSTEM)); in start_checksWallpaper() 225 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_setsTheme_whenForeground() 240 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_setsTheme_whenForeground() 246 null, null), WallpaperManager.FLAG_SYSTEM, USER_SYSTEM); in onWallpaperColorsChanged_setsTheme_whenForeground() 255 null, null), WallpaperManager.FLAG_SYSTEM, USER_SYSTEM); in onWallpaperColorsChanged_setsTheme_whenForeground() 264 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_setsTheme_skipWhenBackground() 277 null, null), WallpaperManager.FLAG_SYSTEM, USER_SYSTEM); in onWallpaperColorsChanged_setsTheme_skipWhenBackground() 295 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_preservesWallpaperPickerTheme() 324 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_resetThemeIfNotPreset() 360 when(mWallpaperManager.getWallpaperIdForUser(WallpaperManager.FLAG_SYSTEM, USER_SYSTEM)) in onWallpaperColorsChanged_resetThemeWithNewHomeWallpapers() [all …]
|
/frameworks/base/core/java/com/android/internal/colorextraction/ |
D | ColorExtractor.java | 67 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/ |
D | AppsQueryHelperTests.java | 110 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()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 185 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 212 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 239 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled() 266 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp() 298 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_MissingAssociated_Default() 333 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default() 344 associatedAppInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default() 375 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedAssociated_DisabledUntilUsed() 386 ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedAssociated_DisabledUntilUsed() 419 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_DisabledUntilUsed() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
D | WallpaperManagerServiceTests.java | 21 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() 415 WallpaperData systemWallpaperData = mService.getCurrentWallpaperData(FLAG_SYSTEM, 0); in testXmlSerializationRoundtrip() 426 WallpaperData shouldMatchSystem = new WallpaperData(0, FLAG_SYSTEM); in testXmlSerializationRoundtrip() 438 WallpaperData wallpaper = new WallpaperData(USER_SYSTEM, FLAG_SYSTEM); in testWallpaperManagerCallbackInRightOrder() 443 doReturn(wallpaper).when(mService).getWallpaperSafeLocked(wallpaper.userId, FLAG_SYSTEM); in testWallpaperManagerCallbackInRightOrder() 486 FLAG_SYSTEM, testUserId); in testGetAdjustedWallpaperColorsOnDimming() [all …]
|
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgentTest.java | 20 import static android.app.WallpaperManager.FLAG_SYSTEM; 126 when(mWallpaperManager.isWallpaperBackupEligible(eq(FLAG_SYSTEM))).thenReturn(true); in setUp() 221 when(mWallpaperManager.isWallpaperBackupEligible(eq(FLAG_SYSTEM))).thenReturn(false); in testOnFullBackup_systemWallpaperNotEligible_doesNotBackUpSystemWallpaper() 372 /* which */ FLAG_LOCK | FLAG_SYSTEM); in testUpdateWallpaperComponent_systemAndLock() 378 .setWallpaperComponentWithFlags(mWallpaperComponent, FLAG_LOCK | FLAG_SYSTEM); in testUpdateWallpaperComponent_systemAndLock() 380 .setWallpaperComponentWithFlags(mWallpaperComponent, FLAG_SYSTEM); in testUpdateWallpaperComponent_systemAndLock() 392 /* which */ FLAG_SYSTEM); in testUpdateWallpaperComponent_systemOnly() 399 .setWallpaperComponentWithFlags(mWallpaperComponent, FLAG_SYSTEM); in testUpdateWallpaperComponent_systemOnly() 403 .setWallpaperComponentWithFlags(mWallpaperComponent, FLAG_LOCK | FLAG_SYSTEM); in testUpdateWallpaperComponent_systemOnly() 413 /* which */ FLAG_LOCK | FLAG_SYSTEM); in testUpdateWallpaperComponent_deviceNotInRestore_doesNotApply() [all …]
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 20 import static android.app.WallpaperManager.FLAG_SYSTEM; 178 final int sysGeneration = mWallpaperManager.getWallpaperId(FLAG_SYSTEM); in onFullBackup() 191 mSystemHasLiveComponent = mWallpaperManager.getWallpaperInfo(FLAG_SYSTEM) != null; in onFullBackup() 290 mWallpaperManager.getWallpaperInfo(FLAG_SYSTEM)); in backupWallpaperInfoFile() 299 if (!mWallpaperManager.isWallpaperBackupEligible(FLAG_SYSTEM)) { in backupSystemWallpaperFile() 306 FLAG_SYSTEM, in backupSystemWallpaperFile() 460 final int sysWhich = separateLockWallpaper ? FLAG_SYSTEM : FLAG_SYSTEM | FLAG_LOCK; in onRestoreFinished() 553 if ((which & FLAG_SYSTEM) != 0) { in updateWallpaperComponent() 584 if ((which & FLAG_SYSTEM) > 0) { in restoreFromStage() 631 if ((which & FLAG_SYSTEM) > 0) { in restoreFromStage() [all …]
|
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/ |
D | ColorExtractorTest.java | 91 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/ |
D | PartnerTest.java | 150 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/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 25 import static android.app.WallpaperManager.FLAG_SYSTEM; 329 loadSettingsLocked(wallpaper.userId, true, FLAG_SYSTEM | FLAG_LOCK); in updateWallpapers() 603 try (InputStream is = WallpaperManager.openDefaultWallpaper(mContext, FLAG_SYSTEM)) { in extractDefaultImageWallpaperColors() argument 1140 clearWallpaperLocked(FLAG_SYSTEM, mWallpaper.userId, false, null); 1285 if (mNewWallpaper.mWhich == FLAG_SYSTEM) { in complete() 1311 currentSystem.mWhich = FLAG_SYSTEM | FLAG_LOCK; in complete() 1332 currentSystem.mWhich = FLAG_SYSTEM; in complete() 1498 which == FLAG_SYSTEM ? mWallpaperMap : mLockWallpaperMap; in getCurrentWallpaperData() 1594 loadSettingsLocked(UserHandle.USER_SYSTEM, false, FLAG_SYSTEM | FLAG_LOCK); in initialize() 1595 getWallpaperSafeLocked(UserHandle.USER_SYSTEM, FLAG_SYSTEM); in initialize() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/colorextraction/ |
D | SysuiColorExtractor.java | 117 triggerColorsChanged(WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); in onUiModeChanged() 140 GradientColors[] system = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in dump()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperManager.java | 383 FLAG_SYSTEM, 392 public static final int FLAG_SYSTEM = 1 << 0; field in WallpaperManager 738 return getDefaultWallpaper(context, FLAG_SYSTEM); in peekWallpaperBitmap() 1008 return getDrawable(FLAG_SYSTEM); in getDrawable() 1059 return getBuiltInDrawable(0, 0, false, 0, 0, FLAG_SYSTEM); in getBuiltInDrawable() 1091 horizontalAlignment, verticalAlignment, FLAG_SYSTEM); in getBuiltInDrawable() 1292 return peekDrawable(FLAG_SYSTEM); in peekDrawable() 1345 return getFastDrawable(FLAG_SYSTEM); in getFastDrawable() 1400 return peekFastDrawable(FLAG_SYSTEM); in peekFastDrawable() 1494 return sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM, userId, hardware, cmProxy); in getBitmapAsUser() [all …]
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/ |
D | AppListRepositoryTest.kt | 435 flags = ApplicationInfo.FLAG_SYSTEM in getShowSystemPredicate() 440 flags = ApplicationInfo.FLAG_SYSTEM or ApplicationInfo.FLAG_UPDATED_SYSTEM_APP in getShowSystemPredicate() 445 flags = ApplicationInfo.FLAG_SYSTEM in getShowSystemPredicate() 450 flags = ApplicationInfo.FLAG_SYSTEM in getShowSystemPredicate() 455 flags = ApplicationInfo.FLAG_SYSTEM in getShowSystemPredicate()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserTypeDetails.java | 347 return (mBaseType & UserInfo.FLAG_SYSTEM) != 0; in isSystem() 629 || mBaseType == UserInfo.FLAG_SYSTEM in hasValidBaseType() 630 || mBaseType == (UserInfo.FLAG_FULL | UserInfo.FLAG_SYSTEM); in hasValidBaseType() 639 UserInfo.FLAG_SYSTEM | in hasValidPropertyFlags() 647 ((mBaseType & UserInfo.FLAG_SYSTEM) != 0) == in checkSystemAndMainUserPreconditions()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/colorextraction/ |
D | SysuiColorExtractorTests.java | 55 WallpaperManager.FLAG_SYSTEM, 137 WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); in simulateEvent()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/ |
D | InputMethodPreferenceTest.java | 142 resolveInfo.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo() 144 resolveInfo.serviceInfo.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
|
/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/ |
D | StagedInstallInternalTest.java | 119 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()
|
/frameworks/base/core/java/android/content/pm/ |
D | UserInfo.java | 153 public static final int FLAG_SYSTEM = 0x00000800; field in UserInfo 214 FLAG_SYSTEM, 339 if ((userInfoFlag & FLAG_SYSTEM) != 0) { in getDefaultUserType()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
D | AppRestrictionsHelper.java | 189 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/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/ |
D | RegionSampler.kt | 159 if (isLockscreen) WallpaperManager.FLAG_LOCK else WallpaperManager.FLAG_SYSTEM in startRegionSampler() 167 else WallpaperManager.FLAG_SYSTEM in startRegionSampler()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvContentRatingSystemInfo.java | 66 return (mApplicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemDefined()
|
/frameworks/base/services/core/java/com/android/server/ |
D | WallpaperUpdateReceiver.java | 81 wm.getWallpaperFile(WallpaperManager.FLAG_SYSTEM); in isUserSetWallpaper()
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | ProfcollectUploadReceiver.java | 55 if ((info.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in onReceive()
|