Home
last modified time | relevance | path

Searched refs:packageManager (Results 1 – 9 of 9) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageManagerTest.java113 private PackageManager packageManager; field in ShadowPackageManagerTest
119 packageManager = in setUp()
121 shadowPackageManager = shadowOf(packageManager); in setUp()
186 int flags = packageManager.getApplicationInfo("org.robolectric", 0).flags; in applicationFlags()
209 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage()
211 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage()
213 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_thisPackage()
216 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_thisPackage()
218 assertEquals(PERMISSION_DENIED, packageManager.checkPermission( in testCheckPermission_thisPackage()
237 assertEquals(PERMISSION_GRANTED, packageManager.checkPermission( in testCheckPermission_otherPackages()
[all …]
DShadowDevicePolicyManagerTest.java53 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 …]
DShadowSliceManagerTest.java33 PackageManager packageManager = RuntimeEnvironment.application.getPackageManager(); in setUp() local
35 (ShadowApplicationPackageManager) shadowOf(packageManager); in setUp()
DShadowIntentTest.java36 PackageManager packageManager = context.getPackageManager(); in resolveActivityInfo_shouldReturnActivityInfoForExistingActivity() local
40 …ActivityInfo activityInfo = intent.resolveActivityInfo(packageManager, PackageManager.GET_ACTIVITI… in resolveActivityInfo_shouldReturnActivityInfoForExistingActivity()
/external/libchrome/base/android/java/src/org/chromium/base/
DPackageUtils.java44 PackageManager packageManager = ContextUtils.getApplicationContext().getPackageManager(); in decodeImageResource() local
46 Resources resources = packageManager.getResourcesForApplication(otherPackage); in decodeImageResource()
/external/replicaisland/src/com/replica/replicaisland/
DMultiTouchFilter.java36 PackageManager packageManager = context.getPackageManager(); in supportsMultitouch() local
37 … mSupportsMultitouch = packageManager.hasSystemFeature("android.hardware.touchscreen.multitouch"); in supportsMultitouch()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSliceManager.java68 PackageManager packageManager = context.getPackageManager(); in getUidForPackage() local
70 return packageManager.getPackageUid(packageName, 0); in getUidForPackage()
DShadowDevicePolicyManager.java823 PackageManager packageManager = context.getPackageManager(); in addPersistentPreferredActivity() local
824 packageManager.addPreferredActivity(filter, 0, null, activity); in addPersistentPreferredActivity()
831 PackageManager packageManager = context.getPackageManager(); in clearPackagePersistentPreferredActivities() local
832 packageManager.clearPackagePreferredActivities(packageName); in clearPackagePersistentPreferredActivities()
/external/deqp/framework/platform/android/
DtcuAndroidUtil.cpp388 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()