Searched refs:packageManager (Results 1 – 17 of 17) sorted by relevance
41 private PackageManager packageManager; field in AppVersionHelper47 packageManager = context.getPackageManager(); in setUp()62 List<PackageInfo> pkgInfos = packageManager.getInstalledPackages(0); in getMetrics()71 PackageInfo pkgInfo = packageManager.getPackageInfo(pkg, 0); in getMetrics()
105 void setPackageManager(PackageManager packageManager) { in setPackageManager() argument106 mPackageManager = packageManager; in setPackageManager()
32 pkgManager: PackageManager = instrumentation.context.packageManager
35 pkgManager: PackageManager = instrumentation.context.packageManager
38 pkgManager: PackageManager = instrumentation.context.packageManager
36 pkgManager: PackageManager = instrumentation.context.packageManager
37 pkgManager: PackageManager = instrumentation.context.packageManager
53 protected val pkgManager: PackageManager = instrumentation.context.packageManager
35 packageManager.getLaunchIntentForPackage(app.packageName)?.apply { in Context()
236 PackageManager packageManager = getContext().getPackageManager(); in launchApp() local237 appIntent = packageManager.getLaunchIntentForPackage( in launchApp()
229 val packageManager = InstrumentationRegistry.getInstrumentation().context.getPackageManager() in outputFileName() constant230 val uid = packageManager.getApplicationInfo(SYSTEMUI_PACKAGE, 0).uid in outputFileName()231 return requireNotNull(packageManager.getNameForUid(uid)) in outputFileName()
167 runCatching { context.packageManager.getPackageInfo(packageName, /* flags= */ 0) }.isSuccess in isPackageInstalled()
64 PackageManager packageManager = in batteryUsageStatsFromBucket() local171 String[] packagesForUid = packageManager.getPackagesForUid(perUidConsumer.uid); in batteryUsageStatsFromBucket()
337 context.packageManager.getPackageUid(packageName, 0) in stopPackage()