/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/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() 59 BOTH -> FLAG_LOCK or FLAG_SYSTEM in WallpaperDestination() 60 HOME -> FLAG_SYSTEM in WallpaperDestination()
|
/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 | 20 import static android.app.WallpaperManager.FLAG_SYSTEM; 128 WallpaperInfo homeInfo = mWallpaperManager.getWallpaperInfo(FLAG_SYSTEM); in doInBackground() 146 getCurrentWallpaperCropHints(FLAG_SYSTEM), in doInBackground() 153 FLAG_SYSTEM).getDescription(); in doInBackground() 248 mWallpaperManager.getWallpaperId(FLAG_SYSTEM)); in setFallbackHomeScreenWallpaperMetadata() 368 == mWallpaperManager.getWallpaperId(FLAG_SYSTEM); in isHomeScreenImageWallpaperCurrent()
|
D | DefaultWallpaperPersister.java | 19 import static android.app.WallpaperManager.FLAG_SYSTEM; 232 int whichWallpaper = WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK; in setWallpaperBitmapInNextRotation() 364 ? WallpaperManager.FLAG_SYSTEM in getDefaultWhichWallpaper() 365 : WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK; in getDefaultWhichWallpaper() 550 whichWallpaper = WallpaperManager.FLAG_SYSTEM; in doInBackground() 554 whichWallpaper = WallpaperManager.FLAG_SYSTEM in doInBackground() 711 mWallpaperPreferences.storeLatestWallpaper(FLAG_SYSTEM, recentWallpaperId, in setImageWallpaperHomeMetadata() 774 FLAG_SYSTEM, in setStaticWallpaperMetadataToPreferences()
|
D | DefaultCurrentWallpaperInfoFactory.java | 91 WallpaperManager.FLAG_SYSTEM)); in createCurrentWallpaperInfos() 140 WallpaperManager.FLAG_SYSTEM, in createCurrentWallpaperInfos() 216 return wallpaperSynced(context, mHomeWallpaper, WallpaperManager.FLAG_SYSTEM); in homeWallpaperSynced()
|
/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/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/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>() 50 hints = wallpaperManager.getWallpaperColors(FLAG_SYSTEM)?.colorHints ?: 0 in <lambda>() 69 if ((which and FLAG_SYSTEM) != 0) { in <lambda>()
|
D | ApplicationInfoWrapper.kt | 25 import android.content.pm.ApplicationInfo.FLAG_SYSTEM in <lambda>() 112 fun isSystem() = hasFlag(FLAG_SYSTEM) 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 | 58 WallpaperManager.FLAG_SYSTEM -> Destination.APPLIED_TO_SYSTEM in getWallpaperModel() 60 WallpaperManager.FLAG_LOCK and WallpaperManager.FLAG_SYSTEM -> in getWallpaperModel() 113 wallpaperManager.getWallpaperInfo(WallpaperManager.FLAG_SYSTEM) in getWallpaperModel()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/ |
D | CreateShortcutPreferenceControllerTest.java | 130 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() 280 ri.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in setupActivityInfo()
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/applications/ |
D | InstalledAppCountItemManagerTest.java | 76 mMockApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in isSystemApp_userCanOpen_isCounted() 86 mMockApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in isSystemApp_userCannotOpen_isNotCounted()
|
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/model/ |
D | CurrentWallpaperInfoTest.java | 51 final @SetWallpaperFlags int flag = WallpaperManager.FLAG_SYSTEM; in parcelRoundTrip_succeeds() 76 final @SetWallpaperFlags int flag = WallpaperManager.FLAG_SYSTEM; in parcelRoundTrip_withNulls_succeeds()
|
/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/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/ |
D | SignedPackage.java | 148 if ((applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in isAvailableAsUser() 180 if ((applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in matches()
|
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/module/ |
D | DefaultWallpaperPersisterTest.java | 19 import static android.app.WallpaperManager.FLAG_SYSTEM; 144 assertThat(mPersister.getDefaultWhichWallpaper()).isEqualTo(FLAG_SYSTEM | FLAG_LOCK); in isSeparateLockScreenWallpaperSet_trueIfSet() 151 assertThat(mPersister.getDefaultWhichWallpaper()).isEqualTo(FLAG_SYSTEM); in isSeparateLockScreenWallpaperSet_falseIfUnset()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/ |
D | ApplicationInfoWrapperTest.kt | 24 import android.content.pm.ApplicationInfo.FLAG_SYSTEM 104 val wrapper = ApplicationInfoWrapper(ApplicationInfo().apply { flags = FLAG_SYSTEM }) in appInfo_system()
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
D | LiveWallpaperPreview.java | 20 import static android.app.WallpaperManager.FLAG_SYSTEM; 458 flag = FLAG_SYSTEM; in setLiveWallpaper() 464 flag = FLAG_SYSTEM | FLAG_LOCK; in setLiveWallpaper() 467 flag = FLAG_SYSTEM | FLAG_LOCK; in setLiveWallpaper() 667 FLAG_SYSTEM, mInfo); in tryPreBAttach() 689 FLAG_SYSTEM, mInfo, desc); in onServiceConnected()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | LivePreviewFragment.java | 20 import static android.app.WallpaperManager.FLAG_SYSTEM; 174 wallpaperManager.getWallpaperInfo(FLAG_SYSTEM), in getCreativeWallpaperPreviewResultCallback() 311 wallpaperManager.getWallpaperInfo(FLAG_SYSTEM), 478 wallpaperManager.getWallpaperInfo(FLAG_SYSTEM), 607 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/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageApplicationActionButtonsPreferenceController.java | 20 import static android.content.pm.ApplicationInfo.FLAG_SYSTEM; 294 boolean sysApp = (mAppEntry.info.flags & FLAG_SYSTEM) == FLAG_SYSTEM; in clearDataAllowedBySystemFlag()
|