Home
last modified time | relevance | path

Searched refs:systemApp (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DNotificationPreferenceControllerTest.java291 appRow.systemApp = true; in testIsAppBlockable_fixedPermission()
302 appRow.systemApp = true; in testIsAppBlockable_fixedPermission_butAppOff()
313 appRow.systemApp = false; in testIsAppBlockable_notFixedButAppInBadState()
323 appRow.systemApp = false; in testIsChannelBlockable_nonSystemAppsBlockable()
334 appRow.systemApp = true; in testIsChannelBlockable_mostSystemAppsNotBlockable()
346 appRow.systemApp = true; in testIsChannelBlockable_someSystemAppsAreBlockable()
357 appRow.systemApp = true; in testIsChannelBlockable_canUndoSystemBlock()
369 appRow.systemApp = false; in testIsChannelGroupBlockable_nonSystemBlockable()
380 appRow.systemApp = true; in testIsChannelGroupBlockable_SystemNotBlockable()
391 appRow.systemApp = true; in testIsChannelGroupBlockable_canUndoSystemBlock()
DBlockPreferenceControllerTest.java116 appRow.systemApp = true; in testIsAvailable_channelNotBlockable()
126 appRow.systemApp = true; in testIsAvailable_channelNonDefault()
146 appRow.systemApp = true; in testIsAvailable_GroupNotBlockable()
155 appRow.systemApp = true; in testIsAvailable_AppNotBlockable()
163 appRow.systemApp = true; in testIsAvailable_systemApp()
173 appRow.systemApp = false; in testIsAvailable_nonSystemApp_noFilter()
183 appRow.systemApp = false; in testIsAvailable_filteredOut()
195 appRow.systemApp = false; in testIsAvailable_filteredIn()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/specialaccess/
DAppOpsPreferenceControllerTest.java238 ApplicationsState.AppEntry systemApp = createAppEntry("test.package", in appFilter_showingSystemApps_keepsSystemEntries() local
240 systemApp.info.flags |= ApplicationInfo.FLAG_SYSTEM; in appFilter_showingSystemApps_keepsSystemEntries()
242 assertThat(filter.filterApp(systemApp)).isTrue(); in appFilter_showingSystemApps_keepsSystemEntries()
255 ApplicationsState.AppEntry systemApp = createAppEntry("test.package", in appFilter_notShowingSystemApps_removesSystemEntries() local
257 systemApp.info.flags |= ApplicationInfo.FLAG_SYSTEM; in appFilter_notShowingSystemApps_removesSystemEntries()
259 assertThat(filter.filterApp(systemApp)).isFalse(); in appFilter_notShowingSystemApps_removesSystemEntries()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridgeTest.java317 ApplicationsState.AppEntry systemApp = in test_multipleApps_processCorrectly() local
320 systemApp.info.flags = ApplicationInfo.FLAG_SYSTEM; in test_multipleApps_processCorrectly()
321 mApps.add(systemApp); in test_multipleApps_processCorrectly()
332 assertThat(AppStateUsageStatsBridge.FILTER_USAGE_STATS.filterApp(systemApp)).isFalse(); in test_multipleApps_processCorrectly()
346 ApplicationsState.AppEntry systemApp = in test_noThresholdFilter_ignoresUsageForFiltering() local
349 systemApp.info.flags = ApplicationInfo.FLAG_SYSTEM; in test_noThresholdFilter_ignoresUsageForFiltering()
350 mApps.add(systemApp); in test_noThresholdFilter_ignoresUsageForFiltering()
361 assertThat(AppStateUsageStatsBridge.FILTER_NO_THRESHOLD.filterApp(systemApp)).isFalse(); in test_noThresholdFilter_ignoresUsageForFiltering()
DAppsAsyncLoaderTest.java239 AppsAsyncLoader.PackageInfo systemApp = in test_multipleApps_processCorrectly() local
243 systemApp.flags = ApplicationInfo.FLAG_SYSTEM; in test_multipleApps_processCorrectly()
244 registerApp(systemApp, 2, TimeUnit.DAYS.toMillis(800)); in test_multipleApps_processCorrectly()
277 AppsAsyncLoader.PackageInfo systemApp = in test_noThresholdFilter_ignoresUsageForFiltering() local
281 systemApp.flags = ApplicationInfo.FLAG_SYSTEM; in test_noThresholdFilter_ignoresUsageForFiltering()
282 registerApp(systemApp, 2, TimeUnit.DAYS.toMillis(800)); in test_noThresholdFilter_ignoresUsageForFiltering()
/packages/apps/Settings/src/com/android/settings/notification/app/
DNotificationPreferenceController.java158 return channel.isBlockable() || !mAppRow.systemApp in isChannelBlockable()
172 boolean systemBlockable = !mAppRow.systemApp || (mAppRow.systemApp && mAppRow.banned); in isAppBlockable()
201 if (!mAppRow.systemApp && !mAppRow.lockedImportance) { in isChannelGroupBlockable()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DNotificationsPreference.java106 final boolean systemApp = isSystemApp(context, info); in isBlockable()
109 return !systemApp || (systemApp && blocked); in isBlockable()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/
DNotificationsPreferenceController.java101 final boolean systemApp = isSystemApp(context, info); in isBlockable()
104 return !systemApp || (systemApp && blocked); in isBlockable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java96 assertTrue(appRow.systemApp); in testMarkAppRow_fixedImportance()
113 assertFalse(appRow.systemApp); in testMarkAppRow_notFixedPermission()
132 assertFalse(appRow.systemApp); in testMarkAppRow_targetsT_noPermissionRequest()
152 assertFalse(appRow.systemApp); in testMarkAppRow_targetsT_permissionRequest()
/packages/apps/Launcher3/src/com/android/launcher3/
DDefaultLayoutParser.java121 final ResolveInfo systemApp = getSingleSystemActivity(appList); in invalidPackageOrClass() local
122 if (systemApp == null) { in invalidPackageOrClass()
129 resolved = systemApp; in invalidPackageOrClass()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DNotificationsPreferenceTest.java187 private void setSystemApp(boolean systemApp) { in setSystemApp() argument
188 ShadowUtils.setSystemPackage(systemApp); in setSystemApp()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java108 row.systemApp = row.lockedImportance = in recordCanBeBlocked()
165 boolean systemBlockable = !row.systemApp || (row.systemApp && row.banned); in enableSwitch()
690 public boolean systemApp; field in NotificationBackend.AppRow
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java165 ApplicationInfo systemApp = in testUpdatedSystemAppCodeSizeIsCounted() local
167 systemApp.flags = ApplicationInfo.FLAG_SYSTEM & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in testUpdatedSystemAppCodeSizeIsCounted()
/packages/apps/Settings/src/com/android/settings/applications/
DRunningServiceDetails.java126 report.systemApp = (mServiceItem.mServiceInfo.applicationInfo.flags in onClick()