/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 19 import android.content.pm.ApplicationInfo; 101 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 122 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 124 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 142 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 144 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 162 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled() 164 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled() 182 ApplicationInfo appInfo = new ApplicationInfo(); in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp() 184 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/telephony/java/com/android/internal/telephony/ |
D | CarrierAppUtils.java | 21 import android.content.pm.ApplicationInfo; 121 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidatesHelper(packageManager, in disableCarrierAppsUntilPrivileged() 127 Map<String, List<ApplicationInfo>> associatedApps = getDefaultCarrierAssociatedAppsHelper( in disableCarrierAppsUntilPrivileged() 138 for (ApplicationInfo ai : candidates) { in disableCarrierAppsUntilPrivileged() 163 List<ApplicationInfo> associatedAppList = associatedApps.get(packageName); in disableCarrierAppsUntilPrivileged() 165 for (ApplicationInfo associatedApp : associatedAppList) { in disableCarrierAppsUntilPrivileged() 204 List<ApplicationInfo> associatedAppList = associatedApps.get(packageName); in disableCarrierAppsUntilPrivileged() 206 for (ApplicationInfo associatedApp : associatedAppList) { in disableCarrierAppsUntilPrivileged() 251 public static List<ApplicationInfo> getDefaultCarrierApps(IPackageManager packageManager, in getDefaultCarrierApps() 254 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidates(packageManager, userId); in getDefaultCarrierApps() [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/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/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/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; 146 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() 152 public ApplicationInfo getApplicationInfoAsUser(String packageName, int flags, int userId) in getApplicationInfoAsUser() 275 public List<ApplicationInfo> getInstalledApplications(int flags) { in getInstalledApplications() 428 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { in getDrawable() 458 public Drawable getApplicationIcon(ApplicationInfo info) { in getApplicationIcon() 468 public Drawable getApplicationBanner(ApplicationInfo info) { in getApplicationBanner() 488 public Drawable getApplicationLogo(ApplicationInfo info) { in getApplicationLogo() 530 public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { in getText() 535 public XmlResourceParser getXml(String packageName, int resid, 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/test-runner/src/android/test/mock/ |
D | MockPackageManager.java | 27 import android.content.pm.ApplicationInfo; 161 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() 168 public ApplicationInfo getApplicationInfoAsUser(String packageName, int flags, int userId) in getApplicationInfoAsUser() 319 public List<ApplicationInfo> getInstalledApplications(int flags) { in getInstalledApplications() 456 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { in getDrawable() 488 public Drawable getApplicationBanner(ApplicationInfo info) { in getApplicationBanner() 498 public Drawable getApplicationIcon(ApplicationInfo info) { in getApplicationIcon() 518 public Drawable getApplicationLogo(ApplicationInfo info) { in getApplicationLogo() 565 public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { in getText() 571 ApplicationInfo appInfo) { in getXml() [all …]
|
/frameworks/base/core/java/android/os/ |
D | GraphicsEnvironment.java | 20 import android.content.pm.ApplicationInfo; 61 ApplicationInfo ai = context.getApplicationInfo(); in chooseDriver() 66 ApplicationInfo driverInfo; in chooseDriver() 97 private static String chooseAbi(ApplicationInfo ai) { in chooseAbi()
|
/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/services/tests/servicestests/src/com/android/server/storage/ |
D | AppCollectorTest.java | 21 import android.content.pm.ApplicationInfo; 56 private List<ApplicationInfo> mApps; 141 ApplicationInfo otherUsersApp = new ApplicationInfo(); in testMultipleUsersOneApp() 199 ApplicationInfo info = new ApplicationInfo(); in addApplication()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | AppCollector.java | 21 import android.content.pm.ApplicationInfo; 135 final List<ApplicationInfo> apps = mPm.getInstalledApplications( in handleMessage() 139 final List<ApplicationInfo> volumeApps = new ArrayList<>(); in handleMessage() 140 for (ApplicationInfo app : apps) { in handleMessage() 155 for (ApplicationInfo app : volumeApps) { in handleMessage()
|
/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; 111 List<ApplicationInfo> mApplications = new ArrayList<ApplicationInfo>(); 187 mApplications = new ArrayList<ApplicationInfo>(); in doResumeIfNeededLocked() 195 ParceledListSlice<ApplicationInfo> list = in doResumeIfNeededLocked() 216 final ApplicationInfo info = mApplications.get(i); in doResumeIfNeededLocked() 279 ApplicationInfo info = getAppInfoLocked(packageName, userId); in getEntry() 297 private ApplicationInfo getAppInfoLocked(String pkg, int userId) { in getAppInfoLocked() 299 ApplicationInfo info = mApplications.get(i); in getAppInfoLocked() 343 ApplicationInfo appInfo = mApplications.get(i); in indexOfApplicationInfoLocked() 369 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);
|