/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowPackageManagerTest.java | 116 private PackageManager packageManager; field in ShadowPackageManagerTest 122 packageManager = in setUp() 124 shadowPackageManager = shadowOf(packageManager); in setUp() 189 int flags = packageManager.getApplicationInfo("org.robolectric", 0).flags; in applicationFlags() 212 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage() 214 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage() 216 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage() 219 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_thisPackage() 221 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_thisPackage() 240 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_otherPackages() [all …]
|
D | ShadowDevicePolicyManagerTest.java | 53 private PackageManager packageManager; field in ShadowDevicePolicyManagerTest 65 packageManager = context.getPackageManager(); in setUp() 310 shadowOf(packageManager).addPackage(app); in isApplicationHiddenShouldReturnFalseForAppsByDefault() 325 shadowOf(packageManager).addPackage(hiddenApp); in isApplicationHiddenShouldReturnTrueForHiddenApps() 341 shadowOf(packageManager).addPackage(nonHiddenApp); in isApplicationHiddenShouldReturnFalseForNonHiddenApps() 357 shadowOf(packageManager).addPackage(app); in setApplicationHiddenShouldBeAbleToUnhideHiddenApps() 388 shadowOf(packageManager).addPackage(app); in wasPackageEverHiddenShouldReturnFalseForPackageNeverHidden() 403 shadowOf(packageManager).addPackage(hiddenApp); in wasPackageEverHiddenShouldReturnTrueForPackageWhichIsHidden() 419 shadowOf(packageManager).addPackage(app); in wasPackageEverHiddenShouldReturnTrueForPackageWhichWasHidden() 909 shadowOf(packageManager).addPackage("installed"); in setPackagesSuspended_suspendsPossible() [all …]
|
D | ShadowSliceManagerTest.java | 33 PackageManager packageManager = RuntimeEnvironment.application.getPackageManager(); in setUp() local 35 (ShadowApplicationPackageManager) shadowOf(packageManager); in setUp()
|
D | ShadowCrossProfileAppsTest.java | 39 private final PackageManager packageManager = ((Context) application).getPackageManager(); field in ShadowCrossProfileAppsTest 357 shadowOf(packageManager).installPackage(buildTestPackageInfo(testPackage1)); in clearInteractAcrossProfilesAppOps_clearsAppOps() 358 shadowOf(packageManager).installPackage(buildTestPackageInfo(testPackage2)); in clearInteractAcrossProfilesAppOps_clearsAppOps()
|
D | ShadowIntentTest.java | 36 PackageManager packageManager = context.getPackageManager(); in resolveActivityInfo_shouldReturnActivityInfoForExistingActivity() local 40 …ActivityInfo activityInfo = intent.resolveActivityInfo(packageManager, PackageManager.GET_ACTIVITI… in resolveActivityInfo_shouldReturnActivityInfoForExistingActivity()
|
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/testing/ |
D | FakeContextBuilder.java | 46 private final PackageManager packageManager; field in FakeContextBuilder 53 packageManager = mock(PackageManager.class); in FakeContextBuilder() 54 when(packageManager.resolveActivity(any(Intent.class), anyInt())).thenReturn(null); in FakeContextBuilder() 59 return packageManager; in FakeContextBuilder() 95 when(packageManager.resolveActivity(any(Intent.class), anyInt())) in build() 104 when(packageManager.getApplicationLabel(any(ApplicationInfo.class))) in build()
|
/external/libchrome/base/android/java/src/org/chromium/base/ |
D | PackageUtils.java | 44 PackageManager packageManager = ContextUtils.getApplicationContext().getPackageManager(); in decodeImageResource() local 46 Resources resources = packageManager.getResourcesForApplication(otherPackage); in decodeImageResource()
|
D | ApiCompatibilityUtils.java | 500 PackageManager packageManager = context.getPackageManager(); in getUserBadgedIcon() local 501 drawable = packageManager.getUserBadgedIcon(drawable, Process.myUserHandle()); in getUserBadgedIcon() 513 PackageManager packageManager = context.getPackageManager(); in getUserBadgedDrawableForDensity() local 514 return packageManager.getUserBadgedDrawableForDensity( in getUserBadgedDrawableForDensity()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | MultiTouchFilter.java | 36 PackageManager packageManager = context.getPackageManager(); in supportsMultitouch() local 37 … mSupportsMultitouch = packageManager.hasSystemFeature("android.hardware.touchscreen.multitouch"); in supportsMultitouch()
|
/external/libchrome/base/android/java/src/org/chromium/base/multidex/ |
D | ChromiumMultiDexInstaller.java | 67 PackageManager packageManager = context.getPackageManager(); in shouldInstallMultiDex() local 69 ApplicationInfo appInfo = packageManager.getApplicationInfo(context.getPackageName(), in shouldInstallMultiDex()
|
/external/libtextclassifier/java/src/com/android/textclassifier/common/intent/ |
D | LabeledIntent.java | 187 @Nullable ResolveInfo resolveInfo, PackageManager packageManager) { in resolveDescription() argument 190 String applicationName = getApplicationName(resolveInfo, packageManager); in resolveDescription() 221 @Nullable ResolveInfo resolveInfo, PackageManager packageManager) { in getApplicationName() argument 231 return packageManager.getApplicationLabel(resolveInfo.activityInfo.applicationInfo).toString(); in getApplicationName()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowSliceManager.java | 68 PackageManager packageManager = context.getPackageManager(); in getUidForPackage() local 70 return packageManager.getPackageUid(packageName, 0); in getUidForPackage()
|
D | ShadowCrossProfileApps.java | 87 private PackageManager packageManager; field in ShadowCrossProfileApps 92 this.packageManager = context.getPackageManager(); in __constructor__() 273 packageManager.queryIntentActivities( in verifyActivityInManifest() 355 packageInfo = packageManager.getPackageInfo(packageName, /* flags= */ 0); in canUserAttemptToConfigureInteractAcrossProfiles()
|
D | ShadowDevicePolicyManager.java | 831 PackageManager packageManager = context.getPackageManager(); in addPersistentPreferredActivity() local 832 packageManager.addPreferredActivity(filter, 0, null, activity); in addPersistentPreferredActivity() 839 PackageManager packageManager = context.getPackageManager(); in clearPackagePersistentPreferredActivities() local 840 packageManager.clearPackagePreferredActivities(packageName); in clearPackagePersistentPreferredActivities()
|
D | ShadowApplicationPackageManager.java | 138 Object contextImpl, Object packageManager, Object permissionManager) { in __constructor__() argument 144 from(IPackageManager.class, packageManager), in __constructor__()
|
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/ |
D | CrossProfileSDKUtilities.java | 65 PackageManager packageManager = context.getPackageManager(); in calculateIsRunningOnWorkProfile() local 68 for (PackageInfo pkg : packageManager.getInstalledPackages(/* flags= */ 0)) { in calculateIsRunningOnWorkProfile()
|
D | AbstractProfileBinder.java | 115 PackageManager packageManager = context.getPackageManager(); in cachePermissionRequests() local 118 packageManager.getPackageInfo(context.getPackageName(), PackageManager.GET_PERMISSIONS); in cachePermissionRequests()
|
/external/libchrome/base/android/java/src/org/chromium/base/process_launcher/ |
D | ChildConnectionAllocator.java | 82 PackageManager packageManager = context.getPackageManager(); in create() local 85 packageManager.getApplicationInfo(packageName, PackageManager.GET_META_DATA); in create() 100 packageManager.getServiceInfo( in create()
|
/external/deqp/framework/platform/android/ |
D | tcuAndroidUtil.cpp | 388 const jobject packageManager = env->CallObjectMethod(activity, getPMID); in getPackageManager() local 390 return packageManager; in getPackageManager() 395 const LocalRef packageManager (env, getPackageManager(env, activity)); in hasSystemFeature() local 396 const jclass pmCls = getObjectClass(env, *packageManager); in hasSystemFeature() 403 return env->CallBooleanMethodA(*packageManager, hasFeatureID, callArgs) == JNI_TRUE; in hasSystemFeature()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/ |
D | RobolectricTestUtilities.java | 74 private final PackageManager packageManager; field in RobolectricTestUtilities 101 packageManager = context.getPackageManager(); in RobolectricTestUtilities() 275 shadowOf(packageManager).installPackage(packageInfo); in setRequestsPermissions()
|
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/ |
D | TextClassifierApiTest.java | 195 PackageManager packageManager = in getExtServicesPackageName() local 198 packageManager.getApplicationInfo(PKG_NAME_GOOGLE_EXTSERVICES, /* flags= */ 0); in getExtServicesPackageName()
|