HomeSort by relevance Sort by last modified time
    Searched refs:mPackageManager (Results 1 - 25 of 54) sorted by null

1 2 3

  /cts/tests/tests/content/src/android/content/pm/cts/
PackageManagerTest.java 46 private PackageManager mPackageManager;
64 mPackageManager = getContext().getPackageManager();
73 List<ResolveInfo> listWithDiff = mPackageManager.queryIntentActivityOptions(
78 List<ResolveInfo> listInSame = mPackageManager.queryIntentActivityOptions(
84 mPackageManager.queryIntentActivities(activityIntent, 0);
92 List<InstrumentationInfo> instrumentations = mPackageManager.queryInstrumentation(
98 List<ResolveInfo> services = mPackageManager.queryIntentServices(serviceIntent,
106 broadcastReceivers = mPackageManager.queryBroadcastReceivers(broadcastIntent, 0);
111 List<PermissionInfo> permissions = mPackageManager.queryPermissionsByGroup(
115 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0)
    [all...]
PackageItemInfoTest.java 36 private PackageManager mPackageManager;
41 mPackageManager = getContext().getPackageManager();
51 assertEquals(ACTIVITY_NAME, pkgItemInfo.loadLabel(mPackageManager));
53 assertNotNull(pkgItemInfo.loadIcon(mPackageManager));
56 XmlResourceParser parser = pkgItemInfo.loadXmlMetaData(mPackageManager, METADATA_NAME);
97 mPackageManager.getActivityInfo(componentName, PackageManager.GET_META_DATA);
  /cts/tests/tests/permission/src/android/permission/cts/
PackageManagerRequiringPermissionsTest.java 33 private PackageManager mPackageManager;
38 mPackageManager = getContext().getPackageManager();
39 assertNotNull(mPackageManager);
49 mPackageManager.setApplicationEnabledSetting(PACKAGE_NAME,
68 mPackageManager.addPreferredActivity(filter, 0, null, null);
83 mPackageManager.clearPackagePreferredActivities(null);
98 mPackageManager.verifyPendingInstall(1, 1);
113 mPackageManager.extendVerificationTimeout(1, 1, 10000);
  /frameworks/base/core/tests/coretests/src/android/content/pm/
ComponentTest.java 51 private PackageManager mPackageManager;
108 mPackageManager = mContext.getPackageManager();
132 mPackageManager.setComponentEnabledSetting(DISABLED_ACTIVITY_COMPONENTNAME,
136 final ResolveInfo info = mPackageManager.resolveActivity(mDisabledActivityIntent, 0);
139 final ResolveInfo info2 = mPackageManager.resolveActivity(
148 mPackageManager.setComponentEnabledSetting(ENABLED_ACTIVITY_COMPONENTNAME,
152 final ResolveInfo info = mPackageManager.resolveActivity(mEnabledActivityIntent, 0);
161 mPackageManager.setComponentEnabledSetting(DISABLED_ACTIVITY_COMPONENTNAME,
166 mPackageManager.queryIntentActivities(mDisabledActivityIntent, 0);
170 mPackageManager.queryIntentActivities(mDisabledActivityIntent
    [all...]
  /packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
ContactsMockContext.java 35 private ContactsMockPackageManager mPackageManager;
43 mPackageManager = new ContactsMockPackageManager();
68 return mPackageManager;
  /cts/tests/tests/hardware/src/android/hardware/camera2/cts/
CameraManagerTest.java 40 private PackageManager mPackageManager;
51 mPackageManager = context.getPackageManager();
52 assertNotNull("Can't get package manager", mPackageManager);
84 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY));
97 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT));
100 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA));
112 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY));
115 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA)
116 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT));
  /cts/tests/tests/telephony/src/android/telephony/cts/
SmsMessageTest.java 29 private PackageManager mPackageManager;
71 mPackageManager = getContext().getPackageManager();
76 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)
77 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) {
155 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)
156 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) {
197 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)
198 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) {
215 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
259 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY
    [all...]
SmsManagerTest.java 173 private PackageManager mPackageManager;
194 mPackageManager = mContext.getPackageManager();
198 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
233 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
  /packages/apps/MusicFX/src/com/android/musicfx/
Compatibility.java 110 PackageManager mPackageManager;
119 if (mPackageManager == null) {
120 mPackageManager = getPackageManager();
150 List<ResolveInfo> ris = mPackageManager.queryIntentActivities(i, PackageManager.GET_DISABLED_COMPONENTS);
200 List<ResolveInfo> ris = mPackageManager.queryBroadcastReceivers(i, PackageManager.GET_DISABLED_COMPONENTS);
204 ris = mPackageManager.queryBroadcastReceivers(i, PackageManager.GET_DISABLED_COMPONENTS);
226 mPackageManager.setComponentEnabledSetting(comp,
231 mPackageManager.setComponentEnabledSetting(comp,
  /frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
AppCompatibility.java 52 private PackageManager mPackageManager;
69 mPackageManager = mContext.getPackageManager();
70 Assert.assertNotNull("Missing Package Manager", mPackageManager);
142 Intent intent = mPackageManager.getLaunchIntentForPackage(packageName);
199 PackageInfo packageInfo = mPackageManager.getPackageInfo(packageName, 0);
  /packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
ThirdPartyWallpaperPickerListAdapter.java 42 private final PackageManager mPackageManager;
66 mPackageManager = context.getPackageManager();
68 final PackageManager pm = mPackageManager;
133 label.setText(info.loadLabel(mPackageManager));
134 Drawable icon = info.loadIcon(mPackageManager);
LiveWallpaperListAdapter.java 51 private final PackageManager mPackageManager;
58 mPackageManager = context.getPackageManager();
60 List<ResolveInfo> list = mPackageManager.queryIntentServices(
103 icon.setImageDrawable(wallpaperInfo.mInfo.loadIcon(mPackageManager));
108 label.setText(wallpaperInfo.mInfo.loadLabel(mPackageManager));
  /packages/apps/Settings/src/com/android/settings/location/
RecentLocationApps.java 48 private final PackageManager mPackageManager;
52 mPackageManager = activity.getPackageManager();
166 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(
176 mPackageManager.getApplicationIcon(appInfo),
177 mPackageManager.getApplicationLabel(appInfo),
  /cts/tests/tests/app/src/android/app/cts/
SystemFeaturesTest.java 54 private PackageManager mPackageManager;
68 mPackageManager = mContext.getPackageManager();
70 if (mPackageManager.getSystemAvailableFeatures() != null) {
71 for (FeatureInfo feature : mPackageManager.getSystemAvailableFeatures()) {
210 assertTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE)
211 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_PORTRAIT));
293 boolean hasSensorFeature = mPackageManager.hasSystemFeature(expectedFeature);
354 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) {
375 mPackageManager.hasSystemFeature(feature));
382 mPackageManager.hasSystemFeature(feature))
    [all...]
  /cts/tests/tests/admin/src/android/admin/cts/
DeviceAdminInfoTest.java 30 private PackageManager mPackageManager;
38 mPackageManager = mContext.getPackageManager();
61 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mComponent,
93 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mSecondComponent,
  /packages/apps/Contacts/src/com/android/contacts/quickcontact/
ResolveCache.java 64 private final PackageManager mPackageManager;
116 mPackageManager = context.getPackageManager();
136 final List<ResolveInfo> matches = mPackageManager.queryIntentActivities(intent,
149 final Drawable icon = bestResolve.loadIcon(mPackageManager);
171 final ResolveInfo foundResolve = mPackageManager.resolveActivity(intent,
211 final CharSequence infoStr = info != null ? info.loadLabel(mPackageManager) : null;
  /packages/apps/Launcher2/src/com/android/launcher2/
IconCache.java 49 private final PackageManager mPackageManager;
59 mPackageManager = context.getPackageManager();
85 resources = mPackageManager.getResourcesForApplication(packageName);
105 resources = mPackageManager.getResourcesForApplication(
164 final ResolveInfo resolveInfo = mPackageManager.resolveActivity(intent, 0);
204 entry.title = info.loadLabel(mPackageManager).toString();
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
ContactDirectoryManagerTest.java 53 private ContactsMockPackageManager mPackageManager;
118 mPackageManager = (ContactsMockPackageManager) getProvider()
146 mPackageManager.setInstalledPackages(
195 mPackageManager.setInstalledPackages(
224 mPackageManager.getInstalledPackages(0).add(
246 mPackageManager.setInstalledPackages(
276 mPackageManager.getInstalledPackages(0).remove(1);
292 mPackageManager.setInstalledPackages(
350 mPackageManager.setInstalledPackages(
380 PackageInfo info = mPackageManager.getInstalledPackages(0).get(1)
    [all...]
  /developers/samples/android/ui/actionbarcompat/ActionBarCompat-SearchView/src/main/src/com/example/android/actionbarcompat/searchview/
AppListFragment.java 50 private PackageManager mPackageManager;
57 mPackageManager = getActivity().getPackageManager();
191 List<ApplicationInfo> apps = mPackageManager.getInstalledApplications(0);
198 loadedApps.add(new ApplicationItem(mPackageManager, info));
239 icon = item.applicationInfo.loadIcon(mPackageManager);
  /frameworks/base/services/java/com/android/server/media/
RemoteDisplayProviderWatcher.java 52 private final PackageManager mPackageManager;
64 mPackageManager = context.getPackageManager();
117 for (ResolveInfo resolveInfo : mPackageManager.queryIntentServicesAsUser(
176 if (mPackageManager.checkPermission(Manifest.permission.CAPTURE_VIDEO_OUTPUT,
180 if (mPackageManager.checkPermission(Manifest.permission.CAPTURE_SECURE_VIDEO_OUTPUT,
  /frameworks/support/v7/mediarouter/src/android/support/v7/media/
RegisteredMediaRouteProviderWatcher.java 42 private final PackageManager mPackageManager;
52 mPackageManager = context.getPackageManager();
97 for (ResolveInfo resolveInfo : mPackageManager.queryIntentServices(intent, 0)) {
  /packages/apps/Settings/src/com/android/settings/
AppWidgetPickActivity.java 60 private PackageManager mPackageManager;
64 mPackageManager = getPackageManager();
121 Resources packageResources = mPackageManager.
  /packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
LiveWallpaperListAdapter.java 56 private final PackageManager mPackageManager;
63 mPackageManager = context.getPackageManager();
65 List<ResolveInfo> list = mPackageManager.queryIntentServices(
117 holder.title.setText(wallpaperInfo.info.loadLabel(mPackageManager));
  /packages/apps/Launcher3/src/com/android/launcher3/
IconCache.java 66 private final PackageManager mPackageManager;
76 mPackageManager = context.getPackageManager();
102 resources = mPackageManager.getResourcesForApplication(packageName);
122 resources = mPackageManager.getResourcesForApplication(
216 final ResolveInfo resolveInfo = mPackageManager.resolveActivity(intent, 0);
260 entry.title = info.loadLabel(mPackageManager).toString();
  /frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
ProcessErrorsTest.java 48 protected PackageManager mPackageManager;
74 mPackageManager = getContext().getPackageManager();
79 assertNotNull(mPackageManager);
99 for (ResolveInfo app : getLauncherActivities(mPackageManager)) {

Completed in 634 milliseconds

1 2 3