Home
last modified time | relevance | path

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

12345678

/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoWallpaperPermissionsTest.java21 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/
DWallpaperDestination.kt21 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/
DWallpaperPersister.java19 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()
DDefaultWallpaperRefresher.java20 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()
DDefaultWallpaperPersister.java19 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()
DDefaultCurrentWallpaperInfoFactory.java91 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/
DExplicitHealthCheckServiceImplUnitTest.java118 .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/
DWallpaperDestination.kt4 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/
DLiveWallpaperDeleteUtil.kt21 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/
DWallpaperColorHints.kt21 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>()
DApplicationInfoWrapper.kt25 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/
DDeletableUtils.kt21 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/
DWallpaperModelFactory.kt58 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/
DCreateShortcutPreferenceControllerTest.java130 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/
DInstalledAppCountItemManagerTest.java76 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/
DCurrentWallpaperInfoTest.java51 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/
DLockTaskModePolicyHandlerTest.java233 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/
DInstalledAppListerTest.java117 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/
DSignedPackage.java148 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/
DDefaultWallpaperPersisterTest.java19 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/
DApplicationInfoWrapperTest.kt24 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/
DLiveWallpaperPreview.java20 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/
DLivePreviewFragment.java20 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/
DUserManagerHelper.java63 public static final int FLAG_SYSTEM = UserInfo.FLAG_SYSTEM; field in UserManagerHelper
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageApplicationActionButtonsPreferenceController.java20 import static android.content.pm.ApplicationInfo.FLAG_SYSTEM;
294 boolean sysApp = (mAppEntry.info.flags & FLAG_SYSTEM) == FLAG_SYSTEM; in clearDataAllowedBySystemFlag()

12345678