/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
H A D | PackageManagerServiceBootTest.kt | 18 import android.content.pm.ApplicationInfo.FLAG_SYSTEM 75 Process.SYSTEM_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) 77 Process.PHONE_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) 79 Process.LOG_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) 81 Process.NFC_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) 83 Process.BLUETOOTH_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) 85 Process.SHELL_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) 87 Process.SE_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) 89 Process.NETWORK_STACK_UID, FLAG_SYSTEM, PRIVATE_FLAG_PRIVILEGED) 159 withExistingSetting = { it.setPkgFlags(FLAG_SYSTEM) }) [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/ |
H A D | ThemeOverlayControllerTest.java | 158 verify(mWallpaperManager).getWallpaperColors(eq(WallpaperManager.FLAG_SYSTEM)); in start_checksWallpaper() 166 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_setsTheme_whenForeground() 181 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_setsTheme_whenForeground() 187 null, null), WallpaperManager.FLAG_SYSTEM, USER_SYSTEM); in onWallpaperColorsChanged_setsTheme_whenForeground() 196 null, null), WallpaperManager.FLAG_SYSTEM, USER_SYSTEM); in onWallpaperColorsChanged_setsTheme_whenForeground() 205 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_setsTheme_skipWhenBackground() 218 null, null), WallpaperManager.FLAG_SYSTEM, USER_SYSTEM); in onWallpaperColorsChanged_setsTheme_skipWhenBackground() 236 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_preservesWallpaperPickerTheme() 265 mColorsListener.getValue().onColorsChanged(mainColors, WallpaperManager.FLAG_SYSTEM, in onWallpaperColorsChanged_resetThemeIfNotPreset() 336 WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK, USER_SYSTEM); in onWallpaperColorsChanged_ResetThemeWithNewHomeAndLockWallpaper() [all …]
|
/aosp12/frameworks/base/core/java/com/android/internal/colorextraction/ |
H A 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()
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | CarrierAppUtilsTest.java | 163 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 189 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 215 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled() 271 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_MissingAssociated_Default() 304 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default() 315 associatedAppInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default() 344 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedAssociated_DisabledUntilUsed() 355 ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedAssociated_DisabledUntilUsed() 396 associatedAppInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_DisabledUntilUsed() 604 appInfo.flags |= (ApplicationInfo.FLAG_SYSTEM in testDisableCarrierAppsUntilPrivileged_NullPrivileges_UpdatedApp() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A 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()
|
/aosp12/system/apex/tests/app/src/com/android/tests/apex/app/ |
H A D | ApexCompressionTests.java | 82 boolean isFactoryPackage = (pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testDecompressedApexIsConsideredFactory() 106 boolean isFactoryPackage = (pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testCapexToApexSwitch() 120 boolean isFactoryPackage = (pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testDecompressedApexVersionAlwaysHasSameVersionAsCapex() 130 boolean isFactoryPackage = (pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testCompressedApexCanBeRolledBack_Commit() 143 boolean isFactoryPackage = (pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testCompressedApexCanBeRolledBack_Rollback() 160 boolean isFactoryPackage = (pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testCompressedApexCanBeRolledBack_Verify()
|
/aosp12/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
H A D | TestWallpaperManagerCompat.java | 65 if (whichWallpaper == WallpaperManagerCompat.FLAG_SYSTEM) { in getWallpaperFile() 91 case WallpaperManagerCompat.FLAG_SYSTEM: in getWallpaperId() 103 if (whichWallpaper == WallpaperManagerCompat.FLAG_SYSTEM) { in setWallpaperFile() 114 case WallpaperManagerCompat.FLAG_SYSTEM: in setWallpaperId()
|
/aosp12/packages/modules/ExtServices/java/tests/src/android/ext/services/watchdog/ |
H A D | ExplicitHealthCheckServiceImplUnitTest.java | 118 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testInitHealthCheckersWhileHasResolveInfoAndFlagIsSystem() 131 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testOnRequestHealthCheck() 145 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testOnCancelHealthCheck() 158 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testOnGetSupportedPackages() 171 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testOnGetRequestedPackagesWhileNoRequest() 183 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testOnGetRequestedPackagesWhileHasRequest()
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/compat/ |
H A D | WallpaperManagerCompat.java | 36 public static final int FLAG_SYSTEM = WallpaperManager.FLAG_SYSTEM; field in WallpaperManagerCompat 99 FLAG_SYSTEM,
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 255 FLAG_SYSTEM, 264 public static final int FLAG_SYSTEM = 1 << 0; field in WallpaperManager 521 if (which != FLAG_LOCK && which != FLAG_SYSTEM) { in getWallpaperColors() 630 InputStream is = openDefaultWallpaper(context, FLAG_SYSTEM); in peekWallpaperDimensions() 799 return getBuiltInDrawable(0, 0, false, 0, 0, FLAG_SYSTEM); in getBuiltInDrawable() 831 horizontalAlignment, verticalAlignment, FLAG_SYSTEM); in getBuiltInDrawable() 857 if (which != FLAG_SYSTEM && which != FLAG_LOCK) { in getBuiltInDrawable() 1281 if (which != FLAG_SYSTEM && which != FLAG_LOCK) { in getWallpaperFile() 1456 setResource(resid, FLAG_SYSTEM | FLAG_LOCK); in setResource() 1960 clearWallpaper(FLAG_SYSTEM, mContext.getUserId()); in clearWallpaper() [all …]
|
/aosp12/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/ |
H A D | StagedInstallInternalTest.java | 342 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testRebootlessUpdates() 343 .isEqualTo(ApplicationInfo.FLAG_SYSTEM); in testRebootlessUpdates() 356 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM).isEqualTo(0); in testRebootlessUpdates() 365 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testRebootlessUpdates() 366 .isEqualTo(ApplicationInfo.FLAG_SYSTEM); in testRebootlessUpdates() 378 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM).isEqualTo(0); in testRebootlessUpdates() 387 assertThat(apex.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testRebootlessUpdates() 388 .isEqualTo(ApplicationInfo.FLAG_SYSTEM); in testRebootlessUpdates()
|
/aosp12/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/ |
H A 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()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/colorextraction/ |
H A D | SysuiColorExtractorTests.java | 55 WallpaperManager.FLAG_SYSTEM, 114 mColorExtractor.getColors(WallpaperManager.FLAG_SYSTEM, type), fallbackColors); in getColors_fallbackWhenMediaIsVisible() 148 WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); in simulateEvent()
|
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
H A D | WallpaperManagerServiceTests.java | 20 import static android.app.WallpaperManager.FLAG_SYSTEM; 282 mService.clearWallpaper(null, FLAG_SYSTEM, testUserId); in testSetThenClearComponent() 376 WallpaperData systemWallpaperData = mService.getCurrentWallpaperData(FLAG_SYSTEM, 0); in testXmlSerializationRoundtrip() 407 doReturn(wallpaper).when(mService).getWallpaperSafeLocked(wallpaper.userId, FLAG_SYSTEM); in testWallpaperManagerCallbackInRightOrder() 419 .when(mService).notifyWallpaperColorsChanged(wallpaper, FLAG_SYSTEM); in testWallpaperManagerCallbackInRightOrder() 439 final WallpaperData userData = mService.getCurrentWallpaperData(FLAG_SYSTEM, i); in verifyNoConnectionBeforeLastUser() 457 final WallpaperData wallpaper = mService.getCurrentWallpaperData(FLAG_SYSTEM, userId); in verifyCurrentSystemData()
|
/aosp12/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
H A 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()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/ |
H A D | MultiClientInputMethodManagerServiceTest.java | 64 ApplicationInfo.FLAG_SYSTEM); in testQueryInputMethod_IMEFound_invalidPermission() 75 ApplicationInfo.FLAG_SYSTEM); in testQueryInputMethod_IMEFound()
|
/aosp12/frameworks/base/services/core/java/com/android/server/wallpaper/ |
H A D | WallpaperManagerService.java | 23 import static android.app.WallpaperManager.FLAG_SYSTEM; 1448 which = FLAG_SYSTEM; in onWallpaperColorsChanged() 1851 put(FLAG_SYSTEM, RECORD_FILE); 2019 if (which == FLAG_SYSTEM || data == null) { in clearWallpaper() 2032 if (which != FLAG_SYSTEM && which != FLAG_LOCK) { in clearWallpaperLocked() 2329 if (which != FLAG_SYSTEM && which != FLAG_LOCK) { in getWallpaperWithFeature() 2383 if (which != FLAG_SYSTEM && which != FLAG_LOCK) { in getWallpaperIdForUser() 2545 if (which != FLAG_LOCK && which != FLAG_SYSTEM) { in addOnLocalColorsChangedListener() 2560 if (which != FLAG_LOCK && which != FLAG_SYSTEM) { in removeOnLocalColorsChangedListener() 2638 if ((which & (FLAG_LOCK|FLAG_SYSTEM)) == 0) { in setWallpaper() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/ |
H A D | CreateShortcutPreferenceControllerTest.java | 119 ri2.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldOnlyIncludeSystemApp() 137 ri1.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldSortBasedOnPriority() 144 ri2.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldSortBasedOnPriority()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
H A D | InstalledAppCountItemManagerTest.java | 70 mMockApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in isSystemApp_userCanOpen_isCounted() 81 mMockApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in isSystemApp_userCannotOpen_isNotCounted()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
H A D | InstalledAppListerTest.java | 113 buildInfo(MAIN_USER_APP_UID, APP_3, ApplicationInfo.FLAG_SYSTEM, in testCountInstalledAppsAcrossAllUsers() 115 buildInfo(MAIN_USER_APP_UID, APP_4, ApplicationInfo.FLAG_SYSTEM, in testCountInstalledAppsAcrossAllUsers() 141 buildInfo(MANAGED_PROFILE_APP_UID, APP_6, ApplicationInfo.FLAG_SYSTEM, in testCountInstalledAppsAcrossAllUsers()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | ApexManagerTest.java | 373 assertThat(newInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM).isEqualTo(0); in testInstallPackage_activeOnSystem() 381 assertThat(factoryInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testInstallPackage_activeOnSystem() 382 .isEqualTo(ApplicationInfo.FLAG_SYSTEM); in testInstallPackage_activeOnSystem() 411 assertThat(newInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM).isEqualTo(0); in testInstallPackage_activeOnData() 419 assertThat(factoryInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testInstallPackage_activeOnData() 420 .isEqualTo(ApplicationInfo.FLAG_SYSTEM); in testInstallPackage_activeOnData()
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserTypeDetails.java | 300 return (mBaseType & UserInfo.FLAG_SYSTEM) != 0; in isSystem() 545 || mBaseType == UserInfo.FLAG_SYSTEM in hasValidBaseType() 546 || mBaseType == (UserInfo.FLAG_FULL | UserInfo.FLAG_SYSTEM); in hasValidBaseType() 557 UserInfo.FLAG_SYSTEM | in hasValidPropertyFlags()
|
/aosp12/frameworks/base/core/java/android/content/pm/ |
H A D | UserInfo.java | 136 public static final int FLAG_SYSTEM = 0x00000800; field in UserInfo 159 FLAG_SYSTEM, 275 if ((userInfoFlag & FLAG_SYSTEM) != 0) { in getDefaultUserType()
|
/aosp12/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/ |
H A D | WallpaperBackupAgentTest.java | 20 import static android.app.WallpaperManager.FLAG_SYSTEM; 220 when(mWallpaperManager.getWallpaperIdForUser(eq(FLAG_SYSTEM), eq(UserHandle.USER_SYSTEM))) in mockCurrentWallpapers() 224 when(mWallpaperManager.isWallpaperBackupEligible(eq(FLAG_SYSTEM))).thenReturn(true); in mockCurrentWallpapers()
|
/aosp12/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/ |
H A D | InputMethodPreferenceTest.java | 140 resolveInfo.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo() 142 resolveInfo.serviceInfo.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
|