/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | NoWallpaperPermissionsTest.java | 21 import static android.app.WallpaperManager.FLAG_SYSTEM; 93 mWM.setBitmap(b, null, false, FLAG_SYSTEM); in testSetBitmap() 140 mWM.clear(FLAG_SYSTEM); in testClearWallpaper() 158 assertSecurityException(() -> mWM.getDrawable(FLAG_SYSTEM), message); in testReadWallpaper() 163 assertSecurityException(() -> mWM.peekDrawable(FLAG_SYSTEM), message); in testReadWallpaper() 168 assertSecurityException(() -> mWM.getFastDrawable(FLAG_SYSTEM), message); in testReadWallpaper() 173 assertSecurityException(() -> mWM.peekFastDrawable(FLAG_SYSTEM), message); in testReadWallpaper() 177 assertSecurityException(() -> mWM.getWallpaperFile(FLAG_SYSTEM), message); in testReadWallpaper()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | WallpaperPersister.java | 19 import static android.app.WallpaperManager.FLAG_SYSTEM; 229 return FLAG_SYSTEM; in destinationToFlags() 233 return FLAG_SYSTEM | FLAG_LOCK; in destinationToFlags() 244 if (flags == (FLAG_SYSTEM | FLAG_LOCK)) { in flagsToDestination() 246 } else if (flags == FLAG_SYSTEM) { in flagsToDestination()
|
D | DefaultWallpaperRefresher.java | 19 import static android.app.WallpaperManager.FLAG_SYSTEM; 126 boolean isHomeScreenStatic = mWallpaperManager.getWallpaperInfo(FLAG_SYSTEM) == null; in doInBackground() 142 getCurrentWallpaperCropHints(FLAG_SYSTEM))); in doInBackground() 206 mWallpaperManager.getWallpaperId(FLAG_SYSTEM)); in setFallbackHomeScreenWallpaperMetadata() 325 == mWallpaperManager.getWallpaperId(FLAG_SYSTEM); in isHomeScreenImageWallpaperCurrent()
|
D | DefaultWallpaperPersister.java | 19 import static android.app.WallpaperManager.FLAG_SYSTEM; 231 int whichWallpaper = WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK; in setWallpaperBitmapInNextRotation() 363 ? WallpaperManager.FLAG_SYSTEM in getDefaultWhichWallpaper() 364 : WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK; in getDefaultWhichWallpaper() 549 whichWallpaper = WallpaperManager.FLAG_SYSTEM; in doInBackground() 553 whichWallpaper = WallpaperManager.FLAG_SYSTEM in doInBackground() 710 mWallpaperPreferences.storeLatestWallpaper(FLAG_SYSTEM, recentWallpaperId, in setImageWallpaperHomeMetadata() 764 FLAG_SYSTEM, in setStaticWallpaperMetadataToPreferences()
|
D | DefaultCurrentWallpaperInfoFactory.java | 87 WallpaperManager.FLAG_SYSTEM)); in createCurrentWallpaperInfos() 130 WallpaperManager.FLAG_SYSTEM); in createCurrentWallpaperInfos() 198 return wallpaperSynced(context, mHomeWallpaper, WallpaperManager.FLAG_SYSTEM); in homeWallpaperSynced()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/data/ |
D | WallpaperDestination.kt | 4 import android.app.WallpaperManager.FLAG_SYSTEM 14 APPLIED_TO_SYSTEM(FLAG_SYSTEM), 26 APPLIED_TO_SYSTEM_LOCK(FLAG_SYSTEM or FLAG_LOCK)
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/watchdog/ |
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()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/shared/model/ |
D | WallpaperDestination.kt | 21 import android.app.WallpaperManager.FLAG_SYSTEM 40 FLAG_SYSTEM or FLAG_LOCK -> BOTH in fromFlags() 41 FLAG_SYSTEM -> HOME in fromFlags()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/util/ |
D | LiveWallpaperDeleteUtil.kt | 21 import android.app.WallpaperManager.FLAG_SYSTEM 45 val currentInfo = wallpaperManager.getWallpaperInfo(FLAG_SYSTEM) in getDeleteAction() 50 appInfo != null && appInfo.flags and ApplicationInfo.FLAG_SYSTEM != 0 in getDeleteAction()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | WallpaperColorHints.kt | 21 import android.app.WallpaperManager.FLAG_SYSTEM in <lambda>() 44 hints = wallpaperManager.getWallpaperColors(FLAG_SYSTEM)?.colorHints ?: 0 in <lambda>() 66 if ((which and FLAG_SYSTEM) != 0 && Utilities.ATLEAST_S) { in <lambda>()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | DeletableUtils.kt | 21 import android.app.WallpaperManager.FLAG_SYSTEM 63 val currentInfo = WallpaperManager.getInstance(context).getWallpaperInfo(FLAG_SYSTEM) in getDeleteAction() 68 appInfo != null && appInfo.flags and ApplicationInfo.FLAG_SYSTEM != 0 in getDeleteAction()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/converter/ |
D | WallpaperModelFactory.kt | 57 WallpaperManager.FLAG_SYSTEM -> Destination.APPLIED_TO_SYSTEM in getWallpaperModel() 59 WallpaperManager.FLAG_LOCK and WallpaperManager.FLAG_SYSTEM -> in getWallpaperModel() 112 wallpaperManager.getWallpaperInfo(WallpaperManager.FLAG_SYSTEM) in getWallpaperModel()
|
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/module/ |
D | DefaultWallpaperPersisterTest.java | 19 import static android.app.WallpaperManager.FLAG_SYSTEM; 97 assertThat(mPersister.getDefaultWhichWallpaper()).isEqualTo(FLAG_SYSTEM | FLAG_LOCK); in isSeparateLockScreenWallpaperSet_trueIfSet() 104 assertThat(mPersister.getDefaultWhichWallpaper()).isEqualTo(FLAG_SYSTEM); in isSeparateLockScreenWallpaperSet_falseIfUnset()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | InstalledAppCountItemManagerTest.java | 70 mMockApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in isSystemApp_userCanOpen_isCounted() 81 mMockApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in isSystemApp_userCannotOpen_isNotCounted()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/ |
D | CreateShortcutPreferenceControllerTest.java | 131 ri2.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldOnlyIncludeSystemApp() 151 ri1.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldSortBasedOnPriority() 158 ri2.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldSortBasedOnPriority() 276 ri.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in setupActivityInfo()
|
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/ |
D | LockTaskModePolicyHandlerTest.java | 233 dialerPackage.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in setupDefaultSystemPackages() 251 settingsPackage.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in setupDefaultSystemPackages() 271 requestPermissionPackage.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in setupDefaultSystemPackages() 286 cellBroadcastReceiverPackage.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in setupDefaultSystemPackages()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | InstalledAppListerTest.java | 117 buildInfo(MAIN_USER_APP_UID, APP_3, ApplicationInfo.FLAG_SYSTEM, in testCountInstalledAppsAcrossAllUsers() 119 buildInfo(MAIN_USER_APP_UID, APP_4, ApplicationInfo.FLAG_SYSTEM, in testCountInstalledAppsAcrossAllUsers() 145 buildInfo(MANAGED_PROFILE_APP_UID, APP_6, ApplicationInfo.FLAG_SYSTEM, in testCountInstalledAppsAcrossAllUsers()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | LivePreviewFragment.java | 20 import static android.app.WallpaperManager.FLAG_SYSTEM; 173 wallpaperManager.getWallpaperInfo(FLAG_SYSTEM), in getCreativeWallpaperPreviewResultCallback() 310 wallpaperManager.getWallpaperInfo(FLAG_SYSTEM), 477 wallpaperManager.getWallpaperInfo(FLAG_SYSTEM), 606 mIsViewAsHome ? FLAG_SYSTEM : FLAG_LOCK,
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/ |
D | UserManagerHelper.java | 63 public static final int FLAG_SYSTEM = UserInfo.FLAG_SYSTEM; field in UserManagerHelper
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppsAsyncLoaderTest.java | 192 app.flags = ApplicationInfo.FLAG_SYSTEM; in test_systemApps_areInvalid() 200 app.flags = ApplicationInfo.FLAG_SYSTEM; in test_noThresholdFilter_systemApps_areInvalid() 243 systemApp.flags = ApplicationInfo.FLAG_SYSTEM; in test_multipleApps_processCorrectly() 281 systemApp.flags = ApplicationInfo.FLAG_SYSTEM; in test_noThresholdFilter_ignoresUsageForFiltering()
|
D | AppStateUsageStatsBridgeTest.java | 248 app.info.flags = ApplicationInfo.FLAG_SYSTEM; in test_systemApps_areInvalid() 264 app.info.flags = ApplicationInfo.FLAG_SYSTEM; in test_noThresholdFilter_systemApps_areInvalid() 320 systemApp.info.flags = ApplicationInfo.FLAG_SYSTEM; in test_multipleApps_processCorrectly() 349 systemApp.info.flags = ApplicationInfo.FLAG_SYSTEM; in test_noThresholdFilter_ignoresUsageForFiltering()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/ |
D | NotificationHelperTest.java | 173 ApplicationInfo.FLAG_SYSTEM), in testShowResourceOveruseNotificationsAsUser() 175 ApplicationInfo.FLAG_SYSTEM), in testShowResourceOveruseNotificationsAsUser() 179 ApplicationInfo.FLAG_SYSTEM), in testShowResourceOveruseNotificationsAsUser() 181 ApplicationInfo.FLAG_SYSTEM), in testShowResourceOveruseNotificationsAsUser()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | Screen.kt | 29 HOME_SCREEN -> WallpaperManager.FLAG_SYSTEM in toFlag()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/data/content/ |
D | WallpaperClientImpl.kt | 23 import android.app.WallpaperManager.FLAG_SYSTEM in <lambda>() 371 if (destination == BOTH || destination == HOME) FLAG_SYSTEM else FLAG_LOCK in <lambda>() 632 BOTH -> FLAG_LOCK or FLAG_SYSTEM in <lambda>() 633 HOME -> FLAG_SYSTEM in <lambda>()
|
/packages/apps/TV/common/src/com/android/tv/common/feature/ |
D | SystemAppFeature.java | 30 return (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isEnabled()
|