Home
last modified time | relevance | path

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

1234567

/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/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.java19 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()
DDefaultWallpaperPersister.java19 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()
DDefaultCurrentWallpaperInfoFactory.java87 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/
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/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/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()
/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>()
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/
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.kt57 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/
DDefaultWallpaperPersisterTest.java19 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/
DInstalledAppCountItemManagerTest.java70 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/
DCreateShortcutPreferenceControllerTest.java131 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/
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/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DLivePreviewFragment.java20 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/
DUserManagerHelper.java63 public static final int FLAG_SYSTEM = UserInfo.FLAG_SYSTEM; field in UserManagerHelper
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoaderTest.java192 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()
DAppStateUsageStatsBridgeTest.java248 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/
DNotificationHelperTest.java173 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/
DScreen.kt29 HOME_SCREEN -> WallpaperManager.FLAG_SYSTEM in toFlag()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/data/content/
DWallpaperClientImpl.kt23 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/
DSystemAppFeature.java30 return (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isEnabled()

1234567