/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageItemInfo_DisplayNameComparatorTest.java | 17 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()
|
D | ApplicationInfo_DisplayNameComparatorTest.java | 17 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()
|
D | PermissionGroupInfoTest.java | 17 package android.content.pm.cts; 20 import android.content.pm.PackageManager; 21 import android.content.pm.PermissionGroupInfo; 22 import android.content.pm.PackageManager.NameNotFoundException; 32 PackageManager pm = getContext().getPackageManager(); in testPermissionGroupInfo() local 36 PermissionGroupInfo permissionGroupInfo = pm in testPermissionGroupInfo() 44 assertEquals(GROUP_NAME, permissionGroupInfo.loadLabel(pm)); in testPermissionGroupInfo() 45 assertEquals(GROUP_DESCRIPTION, permissionGroupInfo.loadDescription(pm)); in testPermissionGroupInfo()
|
D | PermissionInfoTest.java | 17 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()
|
D | ResolveInfoTest.java | 17 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()
|
D | ConfigurationInfoTest.java | 17 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()
|
D | ServiceInfoTest.java | 17 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()
|
D | ProviderInfoTest.java | 17 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()
|
D | FeatureTest.java | 16 package android.content.pm.cts; 20 import android.content.pm.FeatureGroupInfo; 21 import android.content.pm.FeatureInfo; 22 import android.content.pm.PackageInfo; 23 import android.content.pm.PackageManager;
|
D | InstrumentationInfoTest.java | 17 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()
|
D | ComponentInfoTest.java | 17 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 …]
|
D | PackageManager_NameNotFoundExceptionTest.java | 17 package android.content.pm.cts; 20 import android.content.pm.PackageManager; 21 import android.content.pm.PackageManager.NameNotFoundException;
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManagerTest.java | 37 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/tests/tests/security/src/android/security/cts/ |
D | IntentSenderRemovalTest.java | 21 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/hostsidetests/appsecurity/test-apps/keysets/testApp/src/com/android/cts/keysets/ |
D | KeySetPermissionsTest.java | 19 import android.content.pm.PackageInfo; 20 import android.content.pm.PackageManager; 36 PackageManager pm = getContext().getPackageManager(); in testHasPerm() local 38 … pm.checkPermission(KEYSET_PERM_NAME, KEYSET_APP_PKG) == PackageManager.PERMISSION_GRANTED); in testHasPerm()
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | DefaultManifestAttributesTest.java | 19 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/apps/CtsVerifier/src/com/android/cts/verifier/car/ |
D | CarDockTestActivity.java | 23 import android.content.pm.ActivityInfo; 24 import android.content.pm.PackageManager; 25 import android.content.pm.ResolveInfo; 86 PackageManager pm = getApplicationContext().getPackageManager(); in onCreate() local 90 if (pm.getComponentEnabledSetting(component1) == in onCreate() 102 PackageManager pm = getApplicationContext().getPackageManager(); in swapCarDockHandler() local 104 pm.setComponentEnabledSetting(toBeDisabledComponent, in swapCarDockHandler() 108 pm.setComponentEnabledSetting(toBeEnabledComponent, in swapCarDockHandler()
|
/cts/suite/cts/deviceTests/simplecpu/jni/ |
D | CpuNativeJni.cpp | 77 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/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | PackageDeviceInfo.java | 18 import android.content.pm.PackageInfo; 19 import android.content.pm.PackageManager; 37 PackageManager pm = this.getPackageManager(); in collectDeviceInfo() local 39 for (PackageInfo pkg : pm.getInstalledPackages(0)) { in collectDeviceInfo()
|
/cts/tests/tests/dpi2/src/android/dpi2/cts/ |
D | DefaultManifestAttributesCupcakeTest.java | 19 import android.content.pm.ApplicationInfo; 20 import android.content.pm.PackageManager; 21 import android.content.pm.PackageManager.NameNotFoundException;
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecListTest.java | 19 import android.content.pm.PackageManager; 276 PackageManager pm = getContext().getPackageManager(); in hasCamera() local 277 return pm.hasSystemFeature(pm.FEATURE_CAMERA_FRONT) || in hasCamera() 278 pm.hasSystemFeature(pm.FEATURE_CAMERA); in hasCamera() 282 PackageManager pm = getContext().getPackageManager(); in hasMicrophone() local 283 return pm.hasSystemFeature(pm.FEATURE_MICROPHONE); in hasMicrophone() 287 PackageManager pm = getContext().getPackageManager(); in isWatch() local 288 return pm.hasSystemFeature(pm.FEATURE_WATCH); in isWatch() 294 PackageManager pm = getContext().getPackageManager(); in isHandheld() local 295 return pm.hasSystemFeature(pm.FEATURE_TOUCHSCREEN) in isHandheld() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | NfcTest.java | 20 import android.content.pm.PackageManager; 21 import android.content.pm.ResolveInfo; 49 PackageManager pm = mContext.getPackageManager(); in isNfcBeamActivityResolved() local 50 for (ResolveInfo resolveInfo : pm.queryIntentActivities(intent, 0)) { in isNfcBeamActivityResolved()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomAvailabilityTest.java | 23 import android.content.pm.ApplicationInfo; 24 import android.content.pm.PackageInfo; 25 import android.content.pm.PackageManager; 26 import android.content.pm.ResolveInfo; 117 private static List<PackageInfo> findMatchingPackages(PackageManager pm) { in findMatchingPackages() argument 119 for (PackageInfo info : pm.getInstalledPackages(0)) { in findMatchingPackages()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ApplicationTest.java | 25 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/nfc/hce/ |
D | HceUtils.java | 4 import android.content.pm.PackageManager; 28 public static void enableComponent(PackageManager pm, ComponentName component) { in enableComponent() argument 29 pm.setComponentEnabledSetting( in enableComponent() 35 public static void disableComponent(PackageManager pm, ComponentName component) { in disableComponent() argument 36 pm.setComponentEnabledSetting( in disableComponent()
|