Home
last modified time | relevance | path

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

12

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageManagerTest.java166 private PackageManager packageManager; field in ShadowPackageManagerTest
174 packageManager = context.getPackageManager(); in setUp()
218 shadowOf(packageManager).installPackage(generateTestPackageInfo()); in packageInstallerAndGetPackageArchiveInfo()
219 verifyTestPackageInfo(packageManager.getPackageArchiveInfo(TEST_APP_PATH, 0)); in packageInstallerAndGetPackageArchiveInfo()
224 shadowOf(packageManager).installPackage(generateTestPackageInfo()); in packageInstallerAndGetPackageInfo()
225 verifyTestPackageInfo(packageManager.getPackageInfo(TEST_PACKAGE_NAME, 0)); in packageInstallerAndGetPackageInfo()
231 shadowOf(packageManager).installPackage(generateTestPackageInfo()); in packageInstallerAndGetPackageInfo_T()
232 verifyTestPackageInfo(packageManager.getPackageInfo(TEST_PACKAGE_NAME, PackageInfoFlags.of(0))); in packageInstallerAndGetPackageInfo_T()
237 int flags = packageManager.getApplicationInfo("org.robolectric", 0).flags; in applicationFlags()
261 packageManager.checkPermission("android.permission.INTERNET", thisPackage)); in testCheckPermission_thisPackage()
[all …]
DAppWidgetProviderInfoBuilderTest.java27 private PackageManager packageManager; field in AppWidgetProviderInfoBuilderTest
35 packageManager = context.getPackageManager(); in setUp()
76 assertThat(appWidgetProviderInfo.loadLabel(packageManager)) in loadLabel_shouldReturnAssignedLabel()
DShadowDevicePolicyManagerTest.java82 private PackageManager packageManager; field in ShadowDevicePolicyManagerTest
96 packageManager = context.getPackageManager(); in setUp()
231 shadowOf(packageManager).addReceiverIfNotPresent(otherComponent); in transferOwnershipShouldTransferOwnership()
246 shadowOf(packageManager).addReceiverIfNotPresent(otherComponent); in transferOwnershipShouldFailForNotOwner()
388 shadowOf(packageManager).addPackage(app); in isApplicationHiddenShouldReturnFalseForAppsByDefault()
403 shadowOf(packageManager).addPackage(hiddenApp); in isApplicationHiddenShouldReturnTrueForHiddenApps()
419 shadowOf(packageManager).addPackage(nonHiddenApp); in isApplicationHiddenShouldReturnFalseForNonHiddenApps()
435 shadowOf(packageManager).addPackage(app); in setApplicationHiddenShouldBeAbleToUnhideHiddenApps()
466 shadowOf(packageManager).addPackage(app); in wasPackageEverHiddenShouldReturnFalseForPackageNeverHidden()
481 shadowOf(packageManager).addPackage(hiddenApp); in wasPackageEverHiddenShouldReturnTrueForPackageWhichIsHidden()
[all …]
DShadowSliceManagerTest.java37 PackageManager packageManager = RuntimeEnvironment.getApplication().getPackageManager(); in setUp() local
39 (ShadowApplicationPackageManager) shadowOf(packageManager); in setUp()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageManagerTest.java116 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 …]
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()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/testing/
DFakeContextBuilder.java47 private final PackageManager packageManager; field in FakeContextBuilder
54 packageManager = mock(PackageManager.class); in FakeContextBuilder()
55 when(packageManager.resolveActivity(any(Intent.class), anyInt())).thenReturn(null); in FakeContextBuilder()
60 return packageManager; in FakeContextBuilder()
99 when(packageManager.resolveActivity(any(Intent.class), anyInt())) in build()
108 when(packageManager.getApplicationLabel(any(ApplicationInfo.class))) in build()
DExtServicesTextClassifierRule.java124 PackageManager packageManager = ApplicationProvider.getApplicationContext().getPackageManager(); in getExtServicesPackageName() local
126 packageManager.getApplicationInfo(PKG_NAME_GOOGLE_EXTSERVICES, /* flags= */ 0); in getExtServicesPackageName()
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/
DAudioQueryTools.java55 public static String getAudioFeatureReport(PackageManager packageManager) { in getAudioFeatureReport() argument
58 + packageManager.hasSystemFeature(PackageManager.FEATURE_AUDIO_PRO)); in getAudioFeatureReport()
60 + packageManager.hasSystemFeature(PackageManager.FEATURE_AUDIO_LOW_LATENCY)); in getAudioFeatureReport()
62 + packageManager.hasSystemFeature(PackageManager.FEATURE_MIDI)); in getAudioFeatureReport()
64 + packageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST)); in getAudioFeatureReport()
66 + packageManager.hasSystemFeature(PackageManager.FEATURE_USB_ACCESSORY)); in getAudioFeatureReport()
/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/libtextclassifier/java/src/com/android/textclassifier/common/intent/
DLabeledIntent.java187 @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/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/libchrome/base/android/java/src/org/chromium/base/multidex/
DChromiumMultiDexInstaller.java67 PackageManager packageManager = context.getPackageManager(); in shouldInstallMultiDex() local
69 ApplicationInfo appInfo = packageManager.getApplicationInfo(context.getPackageName(), in shouldInstallMultiDex()
/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()
DShadowCrossProfileApps.java87 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()
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/
DCrossProfileSDKUtilities.java65 PackageManager packageManager = context.getPackageManager(); in calculateIsRunningOnWorkProfile() local
68 for (PackageInfo pkg : packageManager.getInstalledPackages(/* flags= */ 0)) { in calculateIsRunningOnWorkProfile()
DAbstractProfileBinder.java115 PackageManager packageManager = context.getPackageManager(); in cachePermissionRequests() local
118 packageManager.getPackageInfo(context.getPackageName(), PackageManager.GET_PERMISSIONS); in cachePermissionRequests()
DDefaultUserBinder.java113 PackageManager packageManager = context.getPackageManager(); in cachePermissionRequests() local
116 packageManager.getPackageInfo(context.getPackageName(), PackageManager.GET_PERMISSIONS); in cachePermissionRequests()
/external/libchrome/base/android/java/src/org/chromium/base/process_launcher/
DChildConnectionAllocator.java82 PackageManager packageManager = context.getPackageManager(); in create() local
85 packageManager.getApplicationInfo(packageName, PackageManager.GET_META_DATA); in create()
100 packageManager.getServiceInfo( in create()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/android/controller/
DActivityController.java110 PackageManager packageManager = context.getPackageManager(); in attach() local
113 ((ShadowPackageManager) extract(packageManager)).addActivityIfNotPresent(componentName); in attach()
114 packageManager.setComponentEnabledSetting( in attach()
125 PackageManager packageManager = application.getPackageManager(); in getActivityInfo() local
129 return packageManager.getActivityInfo(componentName, PackageManager.GET_META_DATA); in getActivityInfo()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSliceManager.java99 PackageManager packageManager = context.getPackageManager(); in getUidForPackage() local
101 return packageManager.getPackageUid(packageName, 0); in getUidForPackage()
/external/mobly-snippet-lib/third_party/sl4a/src/main/java/com/google/android/mobly/snippet/util/
DLog.java47 PackageManager packageManager = context.getPackageManager(); in initLogTag() local
50 appInfo = packageManager.getApplicationInfo(packageName, PackageManager.GET_META_DATA); in initLogTag()
/external/cronet/base/android/java/src/org/chromium/base/compat/
DApiHelperForO.java59 public static boolean isInstantApp(PackageManager packageManager) { in isInstantApp() argument
60 return packageManager.isInstantApp(); in isInstantApp()
/external/robolectric/robolectric/src/main/java/org/robolectric/android/internal/
DLocalActivityInvoker.java177 PackageManager packageManager = in getIntentForActivity() local
183 if (packageManager.resolveActivity(intent, 0) != null) { in getIntentForActivity()

12