Home
last modified time | relevance | path

Searched refs:pm (Results 1 – 25 of 107) sorted by relevance

12345

/cts/tests/tests/content/src/android/content/pm/cts/
DPackageItemInfo_DisplayNameComparatorTest.java17 package android.content.pm.cts;
21 import android.content.pm.ActivityInfo;
22 import android.content.pm.PackageItemInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.PackageItemInfo.DisplayNameComparator;
25 import android.content.pm.PackageManager.NameNotFoundException;
34 PackageManager pm = getContext().getPackageManager(); in testDisplayNameComparator() local
35 DisplayNameComparator comparator = new DisplayNameComparator(pm); in testDisplayNameComparator()
38 ActivityInfo activityInfo = pm.getActivityInfo(componentName, 0); in testDisplayNameComparator()
42 activityInfo = pm.getActivityInfo(componentName, 0); in testDisplayNameComparator()
DResolveInfo_DisplayNameComparatorTest.java17 package android.content.pm.cts;
21 import android.content.pm.PackageManager;
22 import android.content.pm.ResolveInfo;
23 import android.content.pm.ResolveInfo.DisplayNameComparator;
31 PackageManager pm = getContext().getPackageManager(); in testDisplayNameComparator() local
32 DisplayNameComparator dnc = new DisplayNameComparator(pm); in testDisplayNameComparator()
35 ResolveInfo activityInfo = pm.resolveActivity(intent, 0); in testDisplayNameComparator()
38 ResolveInfo serviceInfo = pm.resolveService(intent, PackageManager.GET_RESOLVED_FILTER); in testDisplayNameComparator()
DApplicationInfo_DisplayNameComparatorTest.java17 package android.content.pm.cts;
19 import android.content.pm.ApplicationInfo;
20 import android.content.pm.PackageManager;
21 import android.content.pm.ApplicationInfo.DisplayNameComparator;
22 import android.content.pm.PackageManager.NameNotFoundException;
39 PackageManager pm = getContext().getPackageManager(); in testConstructor() local
40 new DisplayNameComparator(pm); in testConstructor()
46 PackageManager pm = getContext().getPackageManager(); in testCompare() local
47 mDisplayNameComparator = new ApplicationInfo.DisplayNameComparator(pm); in testCompare()
DPermissionGroupInfoTest.java17 package android.content.pm.cts;
20 import android.content.pm.PackageManager;
21 import android.content.pm.PermissionGroupInfo;
22 import android.content.pm.PackageManager.NameNotFoundException;
31 PackageManager pm = getContext().getPackageManager(); in testPermissionGroupInfo() local
35 PermissionGroupInfo permissionGroupInfo = pm in testPermissionGroupInfo()
43 assertEquals(DEFAULT_DISCRIPTION, permissionGroupInfo.loadDescription(pm)); in testPermissionGroupInfo()
DResolveInfoTest.java17 package android.content.pm.cts;
22 import android.content.pm.PackageManager;
23 import android.content.pm.ResolveInfo;
38 PackageManager pm = getContext().getPackageManager(); in testResolveInfo() local
41 ResolveInfo resolveInfo = pm.resolveActivity(intent, 0); in testResolveInfo()
44 assertEquals(expectedLabel, resolveInfo.loadLabel(pm).toString()); in testResolveInfo()
45 assertNotNull(resolveInfo.loadIcon(pm)); in testResolveInfo()
52 PackageManager pm = getContext().getPackageManager(); in testDump() local
54 ResolveInfo resolveInfo = pm.resolveService(intent, PackageManager.GET_RESOLVED_FILTER); in testDump()
DPermissionInfoTest.java17 package android.content.pm.cts;
20 import android.content.pm.PackageManager;
21 import android.content.pm.PermissionInfo;
22 import android.content.pm.PackageManager.NameNotFoundException;
34 PackageManager pm = getContext().getPackageManager(); in testPermissionInfo() local
38 PermissionInfo permissionInfo = pm.getPermissionInfo(PERMISSION_NAME, 0); in testPermissionInfo()
45 assertEquals(DEFAULT_DISCPRIPTION, permissionInfo.loadDescription(pm)); in testPermissionInfo()
DConfigurationInfoTest.java17 package android.content.pm.cts;
20 import android.content.pm.ConfigurationInfo;
21 import android.content.pm.PackageInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.PackageManager.NameNotFoundException;
29 PackageManager pm = getContext().getPackageManager(); in testConfigPreferences() local
33 PackageInfo pkgInfo = pm.getPackageInfo(getContext().getPackageName(), in testConfigPreferences()
DProviderInfoTest.java17 package android.content.pm.cts;
20 import android.content.pm.ApplicationInfo;
21 import android.content.pm.PackageManager;
22 import android.content.pm.ProviderInfo;
23 import android.content.pm.PackageManager.NameNotFoundException;
35 PackageManager pm = getContext().getPackageManager(); in testProviderInfo() local
40 ApplicationInfo appInfo = pm.getApplicationInfo(PACKAGE_NAME, 0); in testProviderInfo()
41 List<ProviderInfo> providers = pm.queryContentProviders(PACKAGE_NAME, appInfo.uid, 0); in testProviderInfo()
DServiceInfoTest.java17 package android.content.pm.cts;
21 import android.content.pm.PackageManager;
22 import android.content.pm.ServiceInfo;
23 import android.content.pm.PackageManager.NameNotFoundException;
32 PackageManager pm = getContext().getPackageManager(); in testServiceInfo() local
39 ServiceInfo serviceInfo = pm.getServiceInfo(componentName, 0); in testServiceInfo()
DComponentInfoTest.java17 package android.content.pm.cts;
19 import android.content.pm.ApplicationInfo;
20 import android.content.pm.ComponentInfo;
21 import android.content.pm.PackageManager;
22 import android.content.pm.PackageManager.NameNotFoundException;
73 PackageManager pm = mContext.getPackageManager(); in testLoadIcon() local
74 assertNotNull(pm); in testLoadIcon()
76 Drawable defaultIcon = pm.getDefaultActivityIcon(); in testLoadIcon()
79 d = mComponentInfo.loadIcon(pm); in testLoadIcon()
85 d2 = mComponentInfo.loadIcon(pm); in testLoadIcon()
[all …]
DInstrumentationInfoTest.java17 package android.content.pm.cts;
21 import android.content.pm.InstrumentationInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.PackageManager.NameNotFoundException;
33 PackageManager pm = getContext().getPackageManager(); in testInstrumentationInfo() local
39 InstrumentationInfo instrInfo = pm.getInstrumentationInfo(componentName, 0); in testInstrumentationInfo()
DPackageManager_NameNotFoundExceptionTest.java17 package android.content.pm.cts;
20 import android.content.pm.PackageManager;
21 import android.content.pm.PackageManager.NameNotFoundException;
DPackageItemInfoTest.java17 package android.content.pm.cts;
23 import android.content.pm.ActivityInfo;
24 import android.content.pm.PackageItemInfo;
25 import android.content.pm.PackageManager;
26 import android.content.pm.PackageManager.NameNotFoundException;
DPackageInfoTest.java17 package android.content.pm.cts;
20 import android.content.pm.ApplicationInfo;
21 import android.content.pm.ConfigurationInfo;
22 import android.content.pm.PackageInfo;
23 import android.content.pm.PackageItemInfo;
24 import android.content.pm.PackageManager;
25 import android.content.pm.Signature;
DActivityInfoTest.java17 package android.content.pm.cts;
22 import android.content.pm.ActivityInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.PackageManager.NameNotFoundException;
/cts/tests/tests/os/src/android/os/cts/
DPowerManagerTest.java37 PowerManager pm = (PowerManager)getContext().getSystemService(Context.POWER_SERVICE); in testPowerManager() local
39 WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, TAG); in testPowerManager()
46 pm.goToSleep(SystemClock.uptimeMillis()); in testPowerManager()
53 pm.wakeUp(SystemClock.uptimeMillis()); in testPowerManager()
60 pm.nap(SystemClock.uptimeMillis()); in testPowerManager()
67 pm.reboot("Testing"); in testPowerManager()
75 pm.userActivity(SystemClock.uptimeMillis(), false); in testPowerManager()
/cts/suite/cts/deviceTests/simplecpu/jni/
DCpuNativeJni.cpp77 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in qsort_local() local
84 for (pm = (char *)a + es; pm < (char *) a + n * es; pm += es) in qsort_local()
85 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; in qsort_local()
90 pm = (char *)a + (n / 2) * es; in qsort_local()
97 pm = med3(pm - d, pm, pm + d, cmp); in qsort_local()
100 pm = med3(pl, pm, pn, cmp); in qsort_local()
102 swap(a, pm); in qsort_local()
131 for (pm = (char *) a + es; pm < (char *) a + n * es; pm += es) in qsort_local()
132 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; in qsort_local()
/cts/tests/tests/dpi/src/android/dpi/cts/
DDefaultManifestAttributesTest.java19 import android.content.pm.ApplicationInfo;
20 import android.content.pm.PackageManager;
21 import android.content.pm.PackageManager.NameNotFoundException;
56 PackageManager pm = getContext().getPackageManager(); in setUp() local
58 appInfo = pm.getApplicationInfo(packageName, 0); in setUp()
/cts/tests/tests/security/src/android/security/cts/
DIntentSenderRemovalTest.java21 import android.content.pm.PackageManager;
22 import android.content.pm.ResolveInfo;
39 PackageManager pm = getContext().getPackageManager(); in testIntentSenderIntent() local
40 ResolveInfo ri = pm.resolveActivity(debugIntentSender, 0); in testIntentSenderIntent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DHceUtils.java4 import android.content.pm.PackageManager;
21 public static void enableComponent(PackageManager pm, ComponentName component) { in enableComponent() argument
22 pm.setComponentEnabledSetting( in enableComponent()
28 public static void disableComponent(PackageManager pm, ComponentName component) { in disableComponent() argument
29 pm.setComponentEnabledSetting( in disableComponent()
/cts/tests/tests/dpi2/src/android/dpi2/cts/
DDefaultManifestAttributesCupcakeTest.java19 import android.content.pm.ApplicationInfo;
20 import android.content.pm.PackageManager;
21 import android.content.pm.PackageManager.NameNotFoundException;
/cts/tests/tests/app/src/android/app/cts/
DApplicationTest.java25 import android.content.pm.PackageManager;
46 final PackageManager pm = targetContext.getPackageManager(); in testApplication() local
47 if(!(pm.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE) in testApplication()
48 && pm.hasSystemFeature(PackageManager.FEATURE_SCREEN_PORTRAIT))){ in testApplication()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DVersion.java20 import android.content.pm.PackageInfo;
21 import android.content.pm.PackageManager;
22 import android.content.pm.PackageManager.NameNotFoundException;
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DInputMethodInfoTest.java22 import android.content.pm.ApplicationInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.ResolveInfo;
25 import android.content.pm.ServiceInfo;
95 PackageManager pm = mContext.getPackageManager(); in testInputMethodInfoProperties() local
96 List<ResolveInfo> ris = pm.queryIntentServices(intent, PackageManager.GET_META_DATA); in testInputMethodInfoProperties()
146 PackageManager pm = mContext.getPackageManager(); in testLoadIcon() local
147 assertNotNull(mInputMethodInfo.loadIcon(pm)); in testLoadIcon()
158 PackageManager pm = mContext.getPackageManager(); in testLoadLabel() local
159 assertEquals(expected.toString(), mInputMethodInfo.loadLabel(pm).toString()); in testLoadLabel()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilitySettingsTest.java20 import android.content.pm.PackageManager;
21 import android.content.pm.ResolveInfo;

12345