Home
last modified time | relevance | path

Searched refs:ApplicationInfo (Results 1 – 25 of 741) sorted by relevance

12345678910>>...30

/frameworks/base/core/java/com/android/internal/pm/parsing/
DAppInfoUtils.java19 import android.content.pm.ApplicationInfo;
32 … int pkgWithoutStateFlags = flag(pkg.isExternalStorage(), ApplicationInfo.FLAG_EXTERNAL_STORAGE) in appInfoFlags()
33 | flag(pkg.isHardwareAccelerated(), ApplicationInfo.FLAG_HARDWARE_ACCELERATED) in appInfoFlags()
34 | flag(pkg.isBackupAllowed(), ApplicationInfo.FLAG_ALLOW_BACKUP) in appInfoFlags()
35 | flag(pkg.isKillAfterRestoreAllowed(), ApplicationInfo.FLAG_KILL_AFTER_RESTORE) in appInfoFlags()
36 | flag(pkg.isRestoreAnyVersion(), ApplicationInfo.FLAG_RESTORE_ANY_VERSION) in appInfoFlags()
37 | flag(pkg.isFullBackupOnly(), ApplicationInfo.FLAG_FULL_BACKUP_ONLY) in appInfoFlags()
38 | flag(pkg.isPersistent(), ApplicationInfo.FLAG_PERSISTENT) in appInfoFlags()
39 | flag(pkg.isDebuggable(), ApplicationInfo.FLAG_DEBUGGABLE) in appInfoFlags()
40 | flag(pkg.isVmSafeMode(), ApplicationInfo.FLAG_VM_SAFE_MODE) in appInfoFlags()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DBackupEligibilityRulesTest.java29 import android.content.pm.ApplicationInfo;
95 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
111 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_systemUid_nonSystemUser_notAllowedPackage_returnsFalse()
112 applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in appIsEligibleForBackup_systemUid_nonSystemUser_notAllowedPackage_returnsFalse()
127 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_systemUid_nonSystemUser_allowedPackage_returnsTrue()
128 applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in appIsEligibleForBackup_systemUid_nonSystemUser_allowedPackage_returnsTrue()
143 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_systemUid_profileUser_notAllowedPackage_returnsFalse()
144 applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in appIsEligibleForBackup_systemUid_profileUser_notAllowedPackage_returnsFalse()
159 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_systemUid_profileUser_allowedPackage_returnsTrue()
160 applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in appIsEligibleForBackup_systemUid_profileUser_allowedPackage_returnsTrue()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierAppUtilsTest.java20 import android.content.pm.ApplicationInfo;
156 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_NonSystemApp()
183 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser()
185 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser()
210 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled()
212 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled()
237 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled()
239 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_INSTALLED; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled()
264 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp()
266 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DCompatibilityModeTest.java19 import static android.content.pm.ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS;
20 import static android.content.pm.ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS;
21 import static android.content.pm.ApplicationInfo.FLAG_SUPPORTS_NORMAL_SCREENS;
22 import static android.content.pm.ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES;
23 import static android.content.pm.ApplicationInfo.FLAG_SUPPORTS_SMALL_SCREENS;
24 import static android.content.pm.ApplicationInfo.FLAG_SUPPORTS_XLARGE_SCREENS;
31 import android.content.pm.ApplicationInfo;
77 final ApplicationInfo info = in testGlobalCompatModeEnabled_oldApp_supportAllScreens_usesCompatMode()
88 final ApplicationInfo info = in testGlobalCompatModeEnabled_oldApp_supportSomeScreens_usesCompatMode()
97 final ApplicationInfo info = in testGlobalCompatModeEnabled_oldApp_supportOnlyOneScreen_usesCompatMode()
[all …]
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DApplicationInfos.kt20 import android.content.pm.ApplicationInfo
28 val ApplicationInfo.userId: Int constant
32 val ApplicationInfo.userHandle: UserHandle constant
36 fun ApplicationInfo.hasFlag(flag: Int): Boolean = (flags and flag) > 0 method
39 val ApplicationInfo.installed: Boolean get() = hasFlag(ApplicationInfo.FLAG_INSTALLED) constant
42 val ApplicationInfo.isDisabledUntilUsed: Boolean constant
46 fun ApplicationInfo.isDisallowControl(context: Context) = method
50 fun ApplicationInfo.isActiveAdmin(context: Context): Boolean = method
54 fun ApplicationInfo.toRoute() = "$packageName/$userId" method
DAppRepository.kt20 import android.content.pm.ApplicationInfo
38 fun loadLabel(app: ApplicationInfo): String in rememberAppRepository()
42 fun produceLabel(app: ApplicationInfo, isClonedAppPage: Boolean = false): State<String> { in rememberAppRepository()
55 private fun isCloneApp(context: Context, app: ApplicationInfo): Boolean { in rememberAppRepository()
61 fun produceIcon(app: ApplicationInfo): State<Drawable?> in rememberAppRepository()
64 fun produceIconContentDescription(app: ApplicationInfo): State<String?> in rememberAppRepository()
71 override fun loadLabel(app: ApplicationInfo): String = app.loadLabel(packageManager).toString() in loadLabel()
74 override fun produceIcon(app: ApplicationInfo) = in loadLabel()
82 override fun produceIconContentDescription(app: ApplicationInfo) = in produceIconContentDescription()
DPackageManagers.kt20 import android.content.pm.ApplicationInfo
28 fun getApplicationInfoAsUser(packageName: String, userId: Int): ApplicationInfo? in getPackageInfoAsUser()
32 fun ApplicationInfo.hasRequestPermission(permission: String): Boolean in getPackageInfoAsUser() method
35 fun ApplicationInfo.hasGrantPermission(permission: String): Boolean in getPackageInfoAsUser() method
67 override fun getApplicationInfoAsUser(packageName: String, userId: Int): ApplicationInfo? = in getPackageInfoAsUserCached()
71 getApplicationInfoAsUser(packageName, userId)?.hasFlag(ApplicationInfo.FLAG_INSTALLED) in getPackageInfoAsUserCached()
74 override fun ApplicationInfo.hasRequestPermission(permission: String): Boolean { in getPackageInfoAsUserCached()
82 override fun ApplicationInfo.hasGrantPermission(permission: String): Boolean { in getPackageInfoAsUserCached()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppsQueryHelperTests.java108 protected List<ApplicationInfo> getAllApps(int userId) { in getAllApps()
109 final ApplicationInfo ai1 = new ApplicationInfo(); in getAllApps()
110 ai1.flags |= ApplicationInfo.FLAG_SYSTEM; in getAllApps()
112 final ApplicationInfo ai2 = new ApplicationInfo(); in getAllApps()
113 ai2.flags |= ApplicationInfo.FLAG_SYSTEM; in getAllApps()
115 ai2.flags |= ApplicationInfo.FLAG_SYSTEM; in getAllApps()
116 final ApplicationInfo ai3 = new ApplicationInfo(); in getAllApps()
118 ai3.flags |= ApplicationInfo.FLAG_SYSTEM; in getAllApps()
119 ai3.privateFlags |= ApplicationInfo.PRIVATE_FLAG_REQUIRED_FOR_SYSTEM_USER; in getAllApps()
120 final ApplicationInfo ai4 = new ApplicationInfo(); in getAllApps()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/applications/
DApplicationsStateTest.java24 import android.content.pm.ApplicationInfo;
47 mock(ApplicationInfo.class), in setUp()
53 mEntry.info.flags = ApplicationInfo.FLAG_IS_GAME; in testGamesFilterAcceptsGameDeprecated()
60 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testGameFilterAcceptsCategorizedGame()
67 mEntry.info.flags = ApplicationInfo.FLAG_IS_GAME; in testGameFilterAcceptsCategorizedGameAndDeprecatedIsGame()
68 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testGameFilterAcceptsCategorizedGameAndDeprecatedIsGame()
75 mEntry.info.category = ApplicationInfo.CATEGORY_UNDEFINED; in testGamesFilterRejectsNotGame()
82 mEntry.info.category = ApplicationInfo.CATEGORY_AUDIO; in testAudioFilterAcceptsCategorizedAudio()
89 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testAudiosFilterRejectsNotAudio()
96 mEntry.info.category = ApplicationInfo.CATEGORY_UNDEFINED; in testAudiosFilterRejectsDefaultCategory()
[all …]
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DApplicationInfosTest.kt21 import android.content.pm.ApplicationInfo
61 val app = ApplicationInfo().apply { in userId()
72 val app = ApplicationInfo().apply { in userHandle()
83 val app = ApplicationInfo().apply { in hasFlag()
84 flags = ApplicationInfo.FLAG_INSTALLED in hasFlag()
87 val hasFlag = app.hasFlag(ApplicationInfo.FLAG_INSTALLED) in hasFlag()
94 val app = ApplicationInfo().apply { in installed()
95 flags = ApplicationInfo.FLAG_INSTALLED in installed()
105 val app = ApplicationInfo().apply { in isDisabledUntilUsed()
116 val app = ApplicationInfo().apply { in isDisallowControl()
[all …]
DAppListRepositoryTest.kt21 import android.content.pm.ApplicationInfo
94 private fun mockInstalledApplications(apps: List<ApplicationInfo>, userId: Int) { in mockInstalledApplications()
160 mockInstalledApplications(listOf(ApplicationInfo().apply { in <lambda>()
163 mockInstalledApplications(listOf(ApplicationInfo().apply { in <lambda>()
165 flags = ApplicationInfo.FLAG_INSTALLED in <lambda>()
178 val secondaryUserOnlyApp = ApplicationInfo().apply { in <lambda>()
194 val app = ApplicationInfo().apply { in <lambda>()
209 val app = ApplicationInfo().apply { in <lambda>()
225 val app = ApplicationInfo().apply { in <lambda>()
240 val app = ApplicationInfo().apply { in <lambda>()
[all …]
DAppListViewModelTest.kt20 import android.content.pm.ApplicationInfo
95 ): Flow<(app: ApplicationInfo) -> Boolean> = flowOf { true } in loadApps()
100 emptyList<ApplicationInfo>() in getSystemPackageNamesBlocking()
104 override fun loadLabel(app: ApplicationInfo) = LABEL in getSystemPackageNamesBlocking()
107 override fun produceIcon(app: ApplicationInfo) = stateOf(null) in getSystemPackageNamesBlocking()
110 override fun produceIconContentDescription(app: ApplicationInfo) = stateOf(null) in getSystemPackageNamesBlocking()
122 val APP = ApplicationInfo().apply { in <lambda>()
128 private data class TestAppRecord(override val app: ApplicationInfo) : AppRecord
133 override fun transform(userIdFlow: Flow<Int>, appListFlow: Flow<List<ApplicationInfo>>) = in transform()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedProcessImpl.java22 import android.content.pm.ApplicationInfo;
50 @ApplicationInfo.GwpAsanMode
51 private int gwpAsanMode = ApplicationInfo.GWP_ASAN_DEFAULT;
52 @ApplicationInfo.MemtagMode
53 private int memtagMode = ApplicationInfo.MEMTAG_DEFAULT;
54 @ApplicationInfo.NativeHeapZeroInitialized
55 private int nativeHeapZeroInitialized = ApplicationInfo.ZEROINIT_DEFAULT;
120 @ApplicationInfo.GwpAsanMode int gwpAsanMode, in ParsedProcessImpl()
121 @ApplicationInfo.MemtagMode int memtagMode, in ParsedProcessImpl()
122 @ApplicationInfo.NativeHeapZeroInitialized int nativeHeapZeroInitialized, in ParsedProcessImpl()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java24 import android.content.pm.ApplicationInfo;
125 ApplicationInfo applicationInfo = generateApplicationInfo(pkg, flags, state, userId, in generateWithComponents()
142 if ((info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0 in generateWithComponents()
143 || (info.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in generateWithComponents()
235 |= ApplicationInfo.PRIVATE_FLAG_EXT_ATTRIBUTIONS_ARE_USER_VISIBLE; in generateWithComponents()
238 &= ~ApplicationInfo.PRIVATE_FLAG_EXT_ATTRIBUTIONS_ARE_USER_VISIBLE; in generateWithComponents()
242 &= ~ApplicationInfo.PRIVATE_FLAG_EXT_ATTRIBUTIONS_ARE_USER_VISIBLE; in generateWithComponents()
379 private static void updateApplicationInfo(ApplicationInfo ai, long flags, in updateApplicationInfo()
394 ai.flags |= flag(state.isStopped(), ApplicationInfo.FLAG_STOPPED) in updateApplicationInfo()
395 | flag(state.isInstalled(), ApplicationInfo.FLAG_INSTALLED) in updateApplicationInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DPlatformCompatCache.java26 import android.content.pm.ApplicationInfo;
106 private boolean isChangeEnabled(long changeId, ApplicationInfo app, boolean defaultValue) { in isChangeEnabled()
120 ApplicationInfo app, boolean defaultValue) { in isChangeEnabled()
128 void invalidate(ApplicationInfo app) { in invalidate()
137 void onApplicationInfoChanged(ApplicationInfo app) { in onApplicationInfoChanged()
148 private final ArrayMap<String, Pair<Boolean, WeakReference<ApplicationInfo>>> mCache =
157 boolean isChangeEnabled(ApplicationInfo app) { in isChangeEnabled()
160 Pair<Boolean, WeakReference<ApplicationInfo>> p; in isChangeEnabled()
173 void invalidate(ApplicationInfo app) { in invalidate()
180 boolean fetchLocked(ApplicationInfo app, int index) { in fetchLocked()
[all …]
/frameworks/base/core/java/android/content/pm/
DProcessInfo.java52 public @ApplicationInfo.GwpAsanMode int gwpAsanMode;
58 public @ApplicationInfo.MemtagMode int memtagMode;
63 public @ApplicationInfo.NativeHeapZeroInitialized int nativeHeapZeroInitialized;
118 @ApplicationInfo.GwpAsanMode int gwpAsanMode, in ProcessInfo()
119 @ApplicationInfo.MemtagMode int memtagMode, in ProcessInfo()
120 @ApplicationInfo.NativeHeapZeroInitialized int nativeHeapZeroInitialized, in ProcessInfo()
128 ApplicationInfo.GwpAsanMode.class, null, gwpAsanMode); in ProcessInfo()
131 ApplicationInfo.MemtagMode.class, null, memtagMode); in ProcessInfo()
134 ApplicationInfo.NativeHeapZeroInitialized.class, null, nativeHeapZeroInitialized); in ProcessInfo()
193 ApplicationInfo.GwpAsanMode.class, null, gwpAsanMode); in ProcessInfo()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java23 import android.content.pm.ApplicationInfo;
115 ApplicationInfo info = mIPm.getApplicationInfo(packageName, in applyUserAppState()
118 || (info.flags&ApplicationInfo.FLAG_INSTALLED) == 0) { in applyUserAppState()
126 if (info != null && (info.privateFlags&ApplicationInfo.PRIVATE_FLAG_HIDDEN) != 0 in applyUserAppState()
127 && (info.flags&ApplicationInfo.FLAG_INSTALLED) != 0) { in applyUserAppState()
140 ApplicationInfo info = mIPm.getApplicationInfo(packageName, 0, userId); in applyUserAppState()
183 List<ApplicationInfo> installedApps = pm.getInstalledApplications( in fetchAndMergeApps()
185 for (ApplicationInfo app : installedApps) { in fetchAndMergeApps()
187 if ((app.flags & ApplicationInfo.FLAG_INSTALLED) == 0) continue; in fetchAndMergeApps()
189 if ((app.flags & ApplicationInfo.FLAG_SYSTEM) == 0 in fetchAndMergeApps()
[all …]
DAppCopyHelper.java23 import android.content.pm.ApplicationInfo;
108 final ApplicationInfo info = mIPm.getApplicationInfo(packageName, in installSelectedApp()
111 || (info.flags & ApplicationInfo.FLAG_INSTALLED) == 0) { in installSelectedApp()
117 if (info != null && (info.privateFlags & ApplicationInfo.PRIVATE_FLAG_HIDDEN) != 0 in installSelectedApp()
118 && (info.flags & ApplicationInfo.FLAG_INSTALLED) != 0) { in installSelectedApp()
153 final List<ApplicationInfo> installedApps = mPackageManager.getInstalledApplications(0); in addCurrentUsersApps()
154 for (ApplicationInfo app : installedApps) { in addCurrentUsersApps()
156 if ((app.flags & ApplicationInfo.FLAG_INSTALLED) == 0) continue; in addCurrentUsersApps()
158 if ((app.flags & ApplicationInfo.FLAG_SYSTEM) == 0 in addCurrentUsersApps()
159 && (app.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) == 0) { in addCurrentUsersApps()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DApplicationPackageManagerTest.java28 import android.content.pm.ApplicationInfo;
108 private HashMap<ApplicationInfo, Resources> mResourcesMap;
112 mResourcesMap = new HashMap<ApplicationInfo, Resources>(); in MockedApplicationPackageManager()
123 public void setResourcesForApplication(ApplicationInfo info, Resources resources) { in setResourcesForApplication()
139 protected @NonNull List<VolumeInfo> getPackageCandidateVolumes(ApplicationInfo app, in getPackageCandidateVolumes()
145 public Resources getResourcesForApplication(ApplicationInfo app) in getResourcesForApplication()
189 ApplicationInfo sysAppInfo = new ApplicationInfo(); in testGetCandidateVolumes_systemApp()
190 sysAppInfo.flags = ApplicationInfo.FLAG_SYSTEM; in testGetCandidateVolumes_systemApp()
220 ApplicationInfo appInfo = new ApplicationInfo(); in testGetCandidateVolumes_3rdParty_internalOnly()
249 ApplicationInfo appInfo = new ApplicationInfo(); in testGetCandidateVolumes_3rdParty_auto()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DApplicationInfoBuilder.java19 import android.content.pm.ApplicationInfo;
55 ApplicationInfo build() { in build()
56 final ApplicationInfo applicationInfo = new ApplicationInfo(); in build()
58 applicationInfo.flags |= ApplicationInfo.FLAG_DEBUGGABLE; in build()
/frameworks/base/telephony/common/com/android/internal/telephony/
DCarrierAppUtils.java23 import android.content.pm.ApplicationInfo;
129 private static boolean isUpdatedSystemApp(ApplicationInfo ai) { in isUpdatedSystemApp()
130 return (ai.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in isUpdatedSystemApp()
147 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidatesHelper( in disableCarrierAppsUntilPrivileged()
167 for (ApplicationInfo ai : candidates) { in disableCarrierAppsUntilPrivileged()
193 || (ai.flags & ApplicationInfo.FLAG_INSTALLED) == 0) { in disableCarrierAppsUntilPrivileged()
217 & ApplicationInfo.FLAG_INSTALLED) != 0; in disableCarrierAppsUntilPrivileged()
262 && (ai.flags & ApplicationInfo.FLAG_INSTALLED) != 0) { in disableCarrierAppsUntilPrivileged()
292 & ApplicationInfo.FLAG_INSTALLED) != 0; in disableCarrierAppsUntilPrivileged()
345 public static List<ApplicationInfo> getDefaultCarrierApps( in getDefaultCarrierApps()
[all …]
/frameworks/base/media/java/android/media/tv/
DTvContentRatingSystemInfo.java21 import android.content.pm.ApplicationInfo;
36 private final ApplicationInfo mApplicationInfo;
47 ApplicationInfo applicationInfo) { in createTvContentRatingSystemInfo()
56 private TvContentRatingSystemInfo(Uri xmlUri, ApplicationInfo applicationInfo) { in TvContentRatingSystemInfo()
66 return (mApplicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemDefined()
98 mApplicationInfo = in.readParcelable(null, android.content.pm.ApplicationInfo.class); in TvContentRatingSystemInfo()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DApplicationsStateRoboTest.java47 import android.content.pm.ApplicationInfo;
152 protected Drawable getBadgedIcon(ApplicationInfo appInfo) { in getBadgedIcon()
231 final List<ApplicationInfo> infos = new ArrayList<>(); in setUp()
250 private ApplicationInfo createApplicationInfo(String packageName) { in createApplicationInfo()
254 private ApplicationInfo createApplicationInfo(String packageName, int uid) { in createApplicationInfo()
255 ApplicationInfo appInfo = new ApplicationInfo(); in createApplicationInfo()
257 appInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in createApplicationInfo()
264 private AppEntry createAppEntry(ApplicationInfo appInfo, int id) { in createAppEntry()
276 ApplicationInfo appInfo = createApplicationInfo(packageName, id); in addApp()
420 final List<ApplicationInfo> mApplications = mApplicationsState.mApplications; in onResume_shouldNotIncludeSystemHiddenModule()
[all …]
/frameworks/base/core/java/android/security/net/config/
DManifestConfigSource.java20 import android.content.pm.ApplicationInfo;
33 private final ApplicationInfo mApplicationInfo;
40 mApplicationInfo = new ApplicationInfo(context.getApplicationInfo()); in ManifestConfigSource()
62 (mApplicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in getConfigSource()
77 (mApplicationInfo.flags & ApplicationInfo.FLAG_USES_CLEARTEXT_TRAFFIC) != 0 in getConfigSource()
90 DefaultConfigSource(boolean usesCleartextTraffic, ApplicationInfo info) { in DefaultConfigSource()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java35 import android.content.pm.ApplicationInfo;
154 public boolean appIsEligibleForBackup(ApplicationInfo app) { in appIsEligibleForBackup()
203 public boolean isAppBackupAllowed(ApplicationInfo app) { in isAppBackupAllowed()
204 boolean allowBackup = (app.flags & ApplicationInfo.FLAG_ALLOW_BACKUP) != 0; in isAppBackupAllowed()
209 boolean isSystemApp = (app.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isAppBackupAllowed()
232 boolean isPrivileged = (app.flags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED) != 0; in isAppBackupAllowed()
233 boolean isDebuggable = (app.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in isAppBackupAllowed()
277 ApplicationInfo applicationInfo = packageInfo.applicationInfo; in appIsRunningAndEligibleForBackupWithTransport()
307 public boolean isAppEligibleForRestore(ApplicationInfo app) { in isAppEligibleForRestore()
325 ApplicationInfo app) { in appIsDisabled()
[all …]

12345678910>>...30