/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 19 import android.content.pm.ApplicationInfo; 76 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 97 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 99 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 117 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 119 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 137 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled() 139 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled() 157 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp() 159 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppsQueryHelperTests.java | 108 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/src/com/android/settingslib/users/ |
D | AppRestrictionsHelper.java | 23 import android.content.pm.ApplicationInfo; 107 ApplicationInfo info = mIPm.getApplicationInfo(packageName, in applyUserAppState() 110 || (info.flags&ApplicationInfo.FLAG_INSTALLED) == 0) { in applyUserAppState() 116 if (info != null && (info.privateFlags&ApplicationInfo.PRIVATE_FLAG_HIDDEN) != 0 in applyUserAppState() 117 && (info.flags&ApplicationInfo.FLAG_INSTALLED) != 0) { in applyUserAppState() 130 ApplicationInfo info = mIPm.getApplicationInfo(packageName, 0, userId); in applyUserAppState() 173 List<ApplicationInfo> installedApps = pm.getInstalledApplications( in fetchAndMergeApps() 175 for (ApplicationInfo app : installedApps) { in fetchAndMergeApps() 177 if ((app.flags & ApplicationInfo.FLAG_INSTALLED) == 0) continue; in fetchAndMergeApps() 179 if ((app.flags & ApplicationInfo.FLAG_SYSTEM) == 0 in fetchAndMergeApps() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ApplicationInfo.java | 44 public class ApplicationInfo extends PackageItemInfo implements Parcelable { class 866 implements Comparator<ApplicationInfo> { 871 public final int compare(ApplicationInfo aa, ApplicationInfo ab) { in compare() 888 public ApplicationInfo() { in ApplicationInfo() method in ApplicationInfo 891 public ApplicationInfo(ApplicationInfo orig) { in ApplicationInfo() method in ApplicationInfo 993 public static final Parcelable.Creator<ApplicationInfo> CREATOR 994 = new Parcelable.Creator<ApplicationInfo>() { 995 public ApplicationInfo createFromParcel(Parcel source) { 996 return new ApplicationInfo(source); 998 public ApplicationInfo[] newArray(int size) { [all …]
|
D | AppsQueryHelper.java | 60 private List<ApplicationInfo> mAllApps; 90 final ApplicationInfo appInfo = mAllApps.get(i); in queryApps() 111 final ApplicationInfo appInfo = mAllApps.get(i); in queryApps() 155 final ApplicationInfo appInfo = mAllApps.get(i); in queryApps() 169 protected List<ApplicationInfo> getAllApps(int userId) { in getAllApps()
|
D | ComponentInfo.java | 38 public ApplicationInfo applicationInfo; 96 ApplicationInfo ai = applicationInfo; in loadLabel() 208 applicationInfo = ApplicationInfo.CREATOR.createFromParcel(source); in ComponentInfo() 243 @Override protected ApplicationInfo getApplicationInfo() { in getApplicationInfo()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SettingBase.java | 19 import android.content.pm.ApplicationInfo; 45 & (ApplicationInfo.FLAG_SYSTEM in setFlags() 46 | ApplicationInfo.FLAG_EXTERNAL_STORAGE); in setFlags() 51 & (ApplicationInfo.PRIVATE_FLAG_PRIVILEGED in setPrivateFlags() 52 | ApplicationInfo.PRIVATE_FLAG_FORWARD_LOCK in setPrivateFlags() 53 | ApplicationInfo.PRIVATE_FLAG_REQUIRED_FOR_SYSTEM_USER); in setPrivateFlags()
|
D | PackageSetting.java | 19 import android.content.pm.ApplicationInfo; 70 return (pkgPrivateFlags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED) != 0; in isPrivileged() 74 return (pkgPrivateFlags & ApplicationInfo.PRIVATE_FLAG_FORWARD_LOCK) != 0; in isForwardLocked() 78 return (pkgFlags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystem()
|
D | InstructionSets.java | 19 import android.content.pm.ApplicationInfo; 38 public static String[] getAppDexInstructionSets(ApplicationInfo info) { in getAppDexInstructionSets() 116 public static String getPrimaryInstructionSet(ApplicationInfo info) { in getPrimaryInstructionSet()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | CarrierAppUtils.java | 20 import android.content.pm.ApplicationInfo; 100 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidatesHelper(packageManager, in disableCarrierAppsUntilPrivileged() 109 for (ApplicationInfo ai : candidates) { in disableCarrierAppsUntilPrivileged() 163 public static List<ApplicationInfo> getDefaultCarrierApps(IPackageManager packageManager, in getDefaultCarrierApps() 166 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidates(packageManager, userId); in getDefaultCarrierApps() 175 ApplicationInfo ai = candidates.get(i); in getDefaultCarrierApps() 199 public static List<ApplicationInfo> getDefaultCarrierAppCandidates( in getDefaultCarrierAppCandidates() 207 private static List<ApplicationInfo> getDefaultCarrierAppCandidatesHelper( in getDefaultCarrierAppCandidatesHelper() 214 List<ApplicationInfo> apps = null; in getDefaultCarrierAppCandidatesHelper() 218 ApplicationInfo ai = packageManager.getApplicationInfo(packageName, in getDefaultCarrierAppCandidatesHelper()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvContentRatingSystemInfo.java | 21 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()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 26 import android.content.pm.ApplicationInfo; 141 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() 147 public ApplicationInfo getApplicationInfoAsUser(String packageName, int flags, int userId) in getApplicationInfoAsUser() 270 public List<ApplicationInfo> getInstalledApplications(int flags) { in getInstalledApplications() 423 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { in getDrawable() 453 public Drawable getApplicationIcon(ApplicationInfo info) { in getApplicationIcon() 463 public Drawable getApplicationBanner(ApplicationInfo info) { in getApplicationBanner() 483 public Drawable getApplicationLogo(ApplicationInfo info) { in getApplicationLogo() 525 public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { in getText() 530 public XmlResourceParser getXml(String packageName, int resid, ApplicationInfo appInfo) { in getXml() [all …]
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockPackageManager.java | 27 import android.content.pm.ApplicationInfo; 155 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() 162 public ApplicationInfo getApplicationInfoAsUser(String packageName, int flags, int userId) in getApplicationInfoAsUser() 313 public List<ApplicationInfo> getInstalledApplications(int flags) { in getInstalledApplications() 450 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { in getDrawable() 482 public Drawable getApplicationBanner(ApplicationInfo info) { in getApplicationBanner() 492 public Drawable getApplicationIcon(ApplicationInfo info) { in getApplicationIcon() 512 public Drawable getApplicationLogo(ApplicationInfo info) { in getApplicationLogo() 559 public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { in getText() 565 ApplicationInfo appInfo) { in getXml() [all …]
|
/frameworks/base/core/java/android/security/net/config/ |
D | ManifestConfigSource.java | 20 import android.content.pm.ApplicationInfo; 41 ApplicationInfo info = context.getApplicationInfo(); in ManifestConfigSource() 65 boolean debugBuild = (mApplicationInfoFlags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in getConfigSource() 78 (mApplicationInfoFlags & ApplicationInfo.FLAG_USES_CLEARTEXT_TRAFFIC) != 0; in getConfigSource()
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 34 import android.content.pm.ApplicationInfo; 56 ApplicationInfo ai = app.getPackageManager().getApplicationInfo( in init() 59 ai.flags |= ApplicationInfo.FLAG_SUPPORTS_XLARGE_SCREENS in init() 60 | ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS in init() 61 | ApplicationInfo.FLAG_SUPPORTS_NORMAL_SCREENS in init() 62 | ApplicationInfo.FLAG_SUPPORTS_SMALL_SCREENS in init() 63 | ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS in init() 64 | ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES; in init()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BackupRecord.java | 21 import android.content.pm.ApplicationInfo; 33 final ApplicationInfo appInfo; // information about BackupAgent's app 39 BackupRecord(BatteryStatsImpl.Uid.Pkg.Serv _agentStats, ApplicationInfo _appInfo, in BackupRecord()
|
D | CompatModePackages.java | 38 import android.content.pm.ApplicationInfo; 171 ApplicationInfo ai = null; in handlePackageAddedLocked() 199 public CompatibilityInfo compatibilityInfoForPackageLocked(ApplicationInfo ai) { in compatibilityInfoForPackageLocked() 207 public int computeCompatModeLocked(ApplicationInfo ai) { in computeCompatModeLocked() 290 ApplicationInfo ai = null; in getPackageScreenCompatModeLocked() 302 ApplicationInfo ai = null; in setPackageScreenCompatModeLocked() 314 private void setPackageScreenCompatModeLocked(ApplicationInfo ai, int mode) { in setPackageScreenCompatModeLocked() 421 ApplicationInfo ai = null; in saveCompatModes()
|
D | CompatModeDialog.java | 22 import android.content.pm.ApplicationInfo; 33 final ApplicationInfo mAppInfo; 40 ApplicationInfo appInfo) { in CompatModeDialog()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 19 import android.content.pm.ApplicationInfo; 95 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, in CompatibilityInfo() 168 if ((appInfo.flags & ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS) != 0) { in CompatibilityInfo() 178 if ((appInfo.flags & ApplicationInfo.FLAG_SUPPORTS_XLARGE_SCREENS) != 0) { in CompatibilityInfo() 184 if ((appInfo.flags & ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS) != 0) { in CompatibilityInfo() 203 if ((appInfo.flags & ApplicationInfo.FLAG_SUPPORTS_XLARGE_SCREENS) != 0) { in CompatibilityInfo() 211 if ((appInfo.flags & ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS) != 0) { in CompatibilityInfo() 228 if ((appInfo.flags & ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES) != 0) { in CompatibilityInfo()
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
D | PartnerTest.java | 23 import android.content.pm.ApplicationInfo; 115 ApplicationInfo appInfo = new ApplicationInfo(); in createResolveInfo() 116 appInfo.flags = isSystem ? ApplicationInfo.FLAG_SYSTEM : 0; in createResolveInfo() 178 public Resources getResourcesForApplication(ApplicationInfo app) { in getResourcesForApplication()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 26 import android.content.pm.ApplicationInfo; 110 List<ApplicationInfo> mApplications = new ArrayList<ApplicationInfo>(); 186 mApplications = new ArrayList<ApplicationInfo>(); in doResumeIfNeededLocked() 194 ParceledListSlice<ApplicationInfo> list = in doResumeIfNeededLocked() 215 final ApplicationInfo info = mApplications.get(i); in doResumeIfNeededLocked() 278 ApplicationInfo info = getAppInfoLocked(packageName, userId); in getEntry() 296 private ApplicationInfo getAppInfoLocked(String pkg, int userId) { in getAppInfoLocked() 298 ApplicationInfo info = mApplications.get(i); in getAppInfoLocked() 342 ApplicationInfo appInfo = mApplications.get(i); in indexOfApplicationInfoLocked() 368 ApplicationInfo info = mIpm.getApplicationInfo(pkgName, in addPackage() [all …]
|
/frameworks/base/core/java/android/permissionpresenterservice/ |
D | RuntimePermissionPresenterService.java | 23 import android.content.pm.ApplicationInfo; 81 public abstract List<ApplicationInfo> onGetAppsUsingPermissions(boolean system); in onGetAppsUsingPermissions() 134 List<ApplicationInfo> apps = onGetAppsUsingPermissions(system);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | ThemePreviewNavigationBar.java | 23 import android.content.pm.ApplicationInfo; 47 (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SUPPORTS_RTL) != 0, in ThemePreviewNavigationBar()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | Partner.java | 21 import android.content.pm.ApplicationInfo; 121 final ApplicationInfo appInfo = info.activityInfo.applicationInfo; in get() 122 if ((appInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in get()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | DeviceInfoUtils.java | 21 import android.content.pm.ApplicationInfo; 137 ApplicationInfo ai = in getFeedbackReporterPackage() 139 if ((ai.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in getFeedbackReporterPackage()
|