Home
last modified time | relevance | path

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

/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/
DClockAppHelper.kt32 pkgManager: PackageManager = instrumentation.context.packageManager
36 getClockLauncherName(pkgManager),
37 getClockComponent(pkgManager)
41 pkgManager.getLaunchIntentForPackage(packageName)
47 private fun getResolveInfo(pkgManager: PackageManager): ResolveInfo =
48 pkgManager.resolveActivity(getClockIntent(), PackageManager.MATCH_DEFAULT_ONLY)
51 private fun getClockComponent(pkgManager: PackageManager): ComponentNameMatcher =
53 getResolveInfo(pkgManager).activityInfo.packageName,
57 private fun getClockLauncherName(pkgManager: PackageManager): String =
58 getResolveInfo(pkgManager).loadLabel(pkgManager).toString()
DCameraAppHelper.kt32 pkgManager: PackageManager = instrumentation.context.packageManager
36 getCameraLauncherName(pkgManager),
37 getCameraComponent(pkgManager)
41 pkgManager.getLaunchIntentForPackage(packageName)
47 private fun getResolveInfo(pkgManager: PackageManager): ResolveInfo =
48 pkgManager.resolveActivity(getCameraIntent(), PackageManager.MATCH_DEFAULT_ONLY)
51 private fun getCameraComponent(pkgManager: PackageManager): ComponentNameMatcher =
53 getResolveInfo(pkgManager).activityInfo.packageName,
57 private fun getCameraLauncherName(pkgManager: PackageManager): String =
58 getResolveInfo(pkgManager).loadLabel(pkgManager).toString()
DNetflixAppHelper.kt36 pkgManager: PackageManager = instrumentation.context.packageManager
40 getNetflixLauncherName(pkgManager),
41 getNetflixComponent(pkgManager),
72 private fun getNetflixIntent(pkgManager: PackageManager): Intent { in getNetflixIntent()
73 return pkgManager.getLaunchIntentForPackage(PACKAGE_NAME) in getNetflixIntent()
77 private fun getResolveInfo(pkgManager: PackageManager): ResolveInfo { in getResolveInfo()
78 val intent = getNetflixIntent(pkgManager) in getResolveInfo()
79 return pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getResolveInfo()
83 private fun getNetflixComponent(pkgManager: PackageManager): ComponentNameMatcher { in getNetflixComponent()
84 val resolveInfo = getResolveInfo(pkgManager) in getNetflixComponent()
[all …]
DCalendarAppHelper.kt32 pkgManager: PackageManager = instrumentation.context.packageManager
36 getCalendarLauncherName(pkgManager),
37 getCalendarComponent(pkgManager)
50 private fun getResolveInfo(pkgManager: PackageManager): ResolveInfo { in getResolveInfo()
52 return pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getResolveInfo()
56 private fun getCalendarComponent(pkgManager: PackageManager): ComponentNameMatcher { in getCalendarComponent()
57 val resolveInfo = getResolveInfo(pkgManager) in getCalendarComponent()
64 private fun getCalendarLauncherName(pkgManager: PackageManager): String { in getCalendarLauncherName()
65 val resolveInfo = getResolveInfo(pkgManager) in getCalendarLauncherName()
66 return resolveInfo.loadLabel(pkgManager).toString() in getCalendarLauncherName()
DMessagingAppHelper.kt35 pkgManager: PackageManager = instrumentation.context.packageManager
39 getMessagesName(pkgManager),
40 getMessagesComponent(pkgManager),
43 pkgManager.getLaunchIntentForPackage(packageName) ?: error("Unable to find intent for SMS")
52 private fun getMessagesComponent(pkgManager: PackageManager): ComponentNameMatcher { in getMessagesComponent()
55 pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getMessagesComponent()
60 private fun getMessagesName(pkgManager: PackageManager): String { in getMessagesName()
63 pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getMessagesName()
66 return resolveInfo.loadLabel(pkgManager).toString() in getMessagesName()
DBrowserAppHelper.kt38 pkgManager: PackageManager = instrumentation.context.packageManager
42 getBrowserName(pkgManager),
43 getBrowserComponent(pkgManager)
46 pkgManager.getLaunchIntentForPackage(packageName)
56 private fun getBrowserName(pkgManager: PackageManager): String { in getBrowserName()
59 pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getBrowserName()
62 return resolveInfo.loadLabel(pkgManager).toString() in getBrowserName()
65 private fun getBrowserComponent(pkgManager: PackageManager): ComponentNameMatcher { in getBrowserComponent()
68 pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getBrowserComponent()
DYouTubeAppHelper.kt37 pkgManager: PackageManager = instrumentation.context.packageManager
41 getYoutubeLauncherName(pkgManager),
42 getYoutubeComponent(pkgManager),
112 private fun getYoutubeIntent(pkgManager: PackageManager): Intent { in getYoutubeIntent()
113 return pkgManager.getLaunchIntentForPackage(PACKAGE_NAME) in getYoutubeIntent()
117 private fun getResolveInfo(pkgManager: PackageManager): ResolveInfo { in getResolveInfo()
118 val intent = getYoutubeIntent(pkgManager) in getResolveInfo()
119 return pkgManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) in getResolveInfo()
123 private fun getYoutubeComponent(pkgManager: PackageManager): ComponentNameMatcher { in getYoutubeComponent()
124 val resolveInfo = getResolveInfo(pkgManager) in getYoutubeComponent()
[all …]
DMapsAppHelper.kt36 pkgManager: PackageManager = instrumentation.context.packageManager
40 getMapLauncherName(pkgManager),
41 getMapComponent(pkgManager)
231 private fun getResolveInfo(pkgManager: PackageManager): ResolveInfo { in getResolveInfo()
233 return pkgManager.resolveActivity(mapsIntent, PackageManager.MATCH_DEFAULT_ONLY) in getResolveInfo()
237 private fun getMapComponent(pkgManager: PackageManager): ComponentNameMatcher { in getMapComponent()
238 val resolveInfo = getResolveInfo(pkgManager) in getMapComponent()
245 private fun getMapLauncherName(pkgManager: PackageManager): String { in getMapLauncherName()
246 val resolveInfo = getResolveInfo(pkgManager) in getMapLauncherName()
247 return resolveInfo.loadLabel(pkgManager).toString() in getMapLauncherName()
DStandardAppHelper.kt53 protected val pkgManager: PackageManager = instrumentation.context.packageManager constant in android.tools.device.apphelpers.StandardAppHelper
186 pkgManager.getPackageInfo(packageName, PackageManager.PackageInfoFlags.of(0)) in isAvailable()