/packages/apps/Launcher2/src/com/android/launcher2/ |
AllAppsList.java | 35 public ArrayList<ApplicationInfo> data = 36 new ArrayList<ApplicationInfo>(DEFAULT_APPLICATIONS_NUMBER); 38 public ArrayList<ApplicationInfo> added = 39 new ArrayList<ApplicationInfo>(DEFAULT_APPLICATIONS_NUMBER); 41 public ArrayList<ApplicationInfo> removed = new ArrayList<ApplicationInfo>(); 43 public ArrayList<ApplicationInfo> modified = new ArrayList<ApplicationInfo>(); 55 * Add the supplied ApplicationInfo objects to the list, and enqueue it into the 60 public void add(ApplicationInfo info) [all...] |
ApplicationInfo.java | 35 class ApplicationInfo extends ItemInfo { 36 private static final String TAG = "Launcher2.ApplicationInfo"; 60 ApplicationInfo() { 67 public ApplicationInfo(LauncherActivityInfo info, UserHandle user, IconCache iconCache, 74 if ((appFlags & android.content.pm.ApplicationInfo.FLAG_SYSTEM) == 0) { 77 if ((appFlags & android.content.pm.ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { 91 public ApplicationInfo(ApplicationInfo info) { 102 return "ApplicationInfo(title=" + title.toString() + " P=" + user + ")"; 106 ArrayList<ApplicationInfo> list) [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
AppsQueryHelperTests.java | 108 protected List<ApplicationInfo> getAllApps(int userId) { 109 final ApplicationInfo ai1 = new ApplicationInfo(); 110 ai1.flags |= ApplicationInfo.FLAG_SYSTEM; 112 final ApplicationInfo ai2 = new ApplicationInfo(); 113 ai2.flags |= ApplicationInfo.FLAG_SYSTEM; 115 ai2.flags |= ApplicationInfo.FLAG_SYSTEM; 116 final ApplicationInfo ai3 = new ApplicationInfo(); [all...] |
/frameworks/base/media/java/android/media/tv/ |
TvContentRatingSystemInfo.java | 21 import android.content.pm.ApplicationInfo; 36 private final ApplicationInfo mApplicationInfo; 43 * @param applicationInfo Information about the application that provides the TV content rating 47 ApplicationInfo applicationInfo) { 50 .authority(applicationInfo.packageName) 53 return new TvContentRatingSystemInfo(uri, applicationInfo); 56 private TvContentRatingSystemInfo(Uri xmlUri, ApplicationInfo applicationInfo) { 58 mApplicationInfo = applicationInfo; [all...] |
/cts/tests/tests/content/src/android/content/pm/cts/ |
ApplicationInfo_DisplayNameComparatorTest.java | 19 import android.content.pm.ApplicationInfo; 21 import android.content.pm.ApplicationInfo.DisplayNameComparator; 47 mDisplayNameComparator = new ApplicationInfo.DisplayNameComparator(pm); 49 ApplicationInfo info1 = new ApplicationInfo(); 50 ApplicationInfo info2 = new ApplicationInfo(); 59 info1 = new ApplicationInfo();
|
ComponentInfoTest.java | 19 import android.content.pm.ApplicationInfo; 44 componentInfo.applicationInfo = new ApplicationInfo(); 71 mComponentInfo.applicationInfo = new ApplicationInfo(); 111 ci.applicationInfo = new ApplicationInfo(); 130 mComponentInfo.applicationInfo = new ApplicationInfo(); 137 assertEquals(mComponentInfo.applicationInfo.icon, mComponentInfo.getIconResource()) [all...] |
ApplicationInfoTest.java | 22 import android.content.pm.ApplicationInfo; 29 * Test {@link ApplicationInfo}. 32 private ApplicationInfo mApplicationInfo; 42 ApplicationInfo info = new ApplicationInfo(); 46 ApplicationInfo copy = new ApplicationInfo(info); 57 ApplicationInfo info = ApplicationInfo.CREATOR.createFromParcel(p); 75 mApplicationInfo = new ApplicationInfo(); [all...] |
/frameworks/base/core/java/android/content/pm/ |
ComponentInfo.java | 38 public ApplicationInfo applicationInfo; 43 * as <var>applicationInfo.processName</var>. 56 * overriden by the one in its parent {@link ApplicationInfo}. 84 applicationInfo = orig.applicationInfo; 96 ApplicationInfo ai = applicationInfo; 120 return enabled && applicationInfo.enabled; 131 return icon != 0 ? icon : applicationInfo.icon [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
SettingBase.java | 19 import android.content.pm.ApplicationInfo; 45 & (ApplicationInfo.FLAG_SYSTEM 46 | ApplicationInfo.FLAG_EXTERNAL_STORAGE); 51 & (ApplicationInfo.PRIVATE_FLAG_PRIVILEGED 52 | ApplicationInfo.PRIVATE_FLAG_FORWARD_LOCK 53 | ApplicationInfo.PRIVATE_FLAG_REQUIRED_FOR_SYSTEM_USER);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
CarrierAppUtilsTest.java | 19 import android.content.pm.ApplicationInfo; 76 ApplicationInfo appInfo = new ApplicationInfo(); 97 ApplicationInfo appInfo = new ApplicationInfo(); 99 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM; 117 ApplicationInfo appInfo = new ApplicationInfo(); 119 appInfo.flags |= ApplicationInfo.FLAG_SYSTEM; 137 ApplicationInfo appInfo = new ApplicationInfo() [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
DebuggableTest.java | 19 import android.content.pm.ApplicationInfo; 36 List<ApplicationInfo> apps = getContext() 39 for (ApplicationInfo app : apps) { 41 if ((app.flags & ApplicationInfo.FLAG_DEBUGGABLE) == ApplicationInfo.FLAG_DEBUGGABLE) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
AppWorkaroundsUtils.java | 40 if (null == mPackageInfo || null == mPackageInfo.applicationInfo) { 43 return mPackageInfo.applicationInfo.targetSdkVersion < VERSION_CODES.JELLY_BEAN; 48 if (null == mPackageInfo || null == mPackageInfo.applicationInfo) { 53 .append(mPackageInfo.applicationInfo.name) 55 .append(mPackageInfo.applicationInfo.packageName) 57 .append(mPackageInfo.applicationInfo.targetSdkVersion);
|
/cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/ |
PrivilegedAppDisableTest.java | 23 import android.content.pm.ApplicationInfo; 38 assertEquals((getApplicationFlags() & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP), 45 assertEquals((getApplicationFlags() & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP), 52 assertEquals((getApplicationFlags() & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP), 53 ApplicationInfo.FLAG_UPDATED_SYSTEM_APP); 59 assertEquals((getApplicationFlags() & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP), 60 ApplicationInfo.FLAG_UPDATED_SYSTEM_APP); 68 ApplicationInfo aInfo = pm.getApplicationInfo(PRIVILEGED_SHIM_PKG,
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
DefaultManifestAttributesTest.java | 19 import android.content.pm.ApplicationInfo; 45 private ApplicationInfo appInfo; 47 protected ApplicationInfo getAppInfo() { 73 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_SMALL_SCREENS) != 0); 80 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_NORMAL_SCREENS) != 0); 85 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS) != 0); 90 (getAppInfo().flags & ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS) != 0); 95 (getAppInfo().flags & ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES) != 0);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
AppRestrictionsHelper.java | 23 import android.content.pm.ApplicationInfo; 107 ApplicationInfo info = mIPm.getApplicationInfo(packageName, 110 || (info.flags&ApplicationInfo.FLAG_INSTALLED) == 0) { 116 if (info != null && (info.privateFlags&ApplicationInfo.PRIVATE_FLAG_HIDDEN) != 0 117 && (info.flags&ApplicationInfo.FLAG_INSTALLED) != 0) { 130 ApplicationInfo info = mIPm.getApplicationInfo(packageName, 0, userId); 173 List<ApplicationInfo> installedApps = pm.getInstalledApplications( 175 for (ApplicationInfo app : installedApps) { 177 if ((app.flags & ApplicationInfo.FLAG_INSTALLED) == 0) continue; 179 if ((app.flags & ApplicationInfo.FLAG_SYSTEM) == [all...] |
/development/apps/Development/src/com/android/development/ |
PackageSummary.java | 25 import android.content.pm.ApplicationInfo; 101 if (info.applicationInfo != null) { 103 pm.getApplicationIcon(info.applicationInfo)); 104 label = info.applicationInfo.nonLocalizedLabel; 105 appClass = info.applicationInfo.className; 106 if (info.applicationInfo.enabled) { 109 if ((info.applicationInfo.flags&ApplicationInfo.FLAG_SYSTEM) == 0) { 112 if ((info.applicationInfo.flags&ApplicationInfo.FLAG_DEBUGGABLE) == 0) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
PackageManagerHelper.java | 19 import android.content.pm.ApplicationInfo; 45 ApplicationInfo info = pm.getApplicationInfo(packageName, flags); 54 ApplicationInfo info = pm.getApplicationInfo(packageName, 0); 61 public static boolean isAppSuspended(ApplicationInfo info) { 63 // ApplicationInfo.FLAG_PRIVILEGED prior to N, so only check for suspended flag on N
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
AppStoragePreference.java | 20 import android.content.pm.ApplicationInfo; 43 final ApplicationInfo applicationInfo = mEntry.info; 44 final VolumeInfo volumeInfo = mPackageManager.getPackageCurrentVolume(applicationInfo); 46 mPackageManager.getPackageCandidateVolumes(applicationInfo);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
RobolectricPackageManager.java | 12 import android.content.pm.ApplicationInfo; 30 private ApplicationInfo applicationInfo; 48 public ApplicationInfo getApplicationInfo(String packageName, int flags) throws NameNotFoundException { 51 if (applicationInfo == null) { 52 applicationInfo = new ApplicationInfo(); 53 applicationInfo.flags = config.getApplicationFlags(); 54 applicationInfo.targetSdkVersion = config.getSdkVersion(); 55 applicationInfo.packageName = config.getPackageName() [all...] |
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/ |
AccessPrivateDataTest.java | 26 import android.content.pm.ApplicationInfo; 62 ApplicationInfo applicationInfo = getApplicationInfo(APP_WITH_DATA_PKG); 63 File privateFile = new File(applicationInfo.dataDir, "files/" + PRIVATE_FILE_NAME); 74 private ApplicationInfo getApplicationInfo(String packageName) { 89 ApplicationInfo applicationInfo = getApplicationInfo(APP_WITH_DATA_PKG); 90 File publicFile = new File(applicationInfo.dataDir, "files/" + PUBLIC_FILE_NAME);
|
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/ |
ResourceHelper.java | 20 import android.content.pm.ApplicationInfo; 41 ApplicationInfo applicationInfo = 43 packageContext.setTheme(applicationInfo.theme);
|
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/ |
ResourceHelper.java | 20 import android.content.pm.ApplicationInfo; 41 ApplicationInfo applicationInfo = 43 packageContext.setTheme(applicationInfo.theme);
|
/development/samples/Support4Demos/src/com/example/android/supportv4/media/utils/ |
ResourceHelper.java | 20 import android.content.pm.ApplicationInfo; 41 ApplicationInfo applicationInfo = 43 packageContext.setTheme(applicationInfo.theme);
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
ResourceHelper.java | 20 import android.content.pm.ApplicationInfo; 41 ApplicationInfo applicationInfo = 43 packageContext.setTheme(applicationInfo.theme);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
AppCounter.java | 19 import android.content.pm.ApplicationInfo; 47 ParceledListSlice<ApplicationInfo> list = 52 for (ApplicationInfo info : list.getList()) { 69 protected abstract boolean includeInCount(ApplicationInfo info);
|