Home
last modified time | relevance | path

Searched refs:sPackageManager (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerGetPropertyTest.java54 private static PackageManager sPackageManager; field in PackageManagerGetPropertyTest
86 sPackageManager = InstrumentationRegistry in setupClass()
114 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
121 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
128 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
135 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
142 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
149 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
156 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
163 final Property testProperty = sPackageManager.getProperty( in testGetApplicationProperty()
[all …]
DPackageManagerQueryPropertyTest.java52 private static PackageManager sPackageManager; field in PackageManagerQueryPropertyTest
83 sPackageManager = InstrumentationRegistry in setupClass()
112 final List<Property> testPropertyList = sPackageManager in testQueryApplicationProperties()
125 final List<Property> testPropertyList = sPackageManager in testQueryApplicationProperties()
134 final List<Property> testPropertyList = sPackageManager in testQueryApplicationProperties()
143 final List<Property> testPropertyList = sPackageManager in testQueryApplicationProperties()
152 final List<Property> testPropertyList = sPackageManager in testQueryActivityProperties()
165 final List<Property> testPropertyList = sPackageManager in testQueryActivityProperties()
178 final List<Property> testPropertyList = sPackageManager in testQueryActivityProperties()
195 final List<Property> testPropertyList = sPackageManager in testQueryActivityProperties()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/device/
DDevice.java45 private static PackageManager sPackageManager = field in Device
144 return sPackageManager.hasSystemFeature(sPackageManager.FEATURE_TOUCHSCREEN) in isHandheld()
145 && !sPackageManager.hasSystemFeature(sPackageManager.FEATURE_WATCH) in isHandheld()
146 && !sPackageManager.hasSystemFeature(sPackageManager.FEATURE_TELEVISION) in isHandheld()
147 && !sPackageManager.hasSystemFeature(sPackageManager.FEATURE_AUTOMOTIVE) in isHandheld()
148 && !sPackageManager.hasSystemFeature(sPackageManager.FEATURE_PC); in isHandheld()
/cts/tests/tests/content/pm/SecureFrp/src/com/android/tests/securefrpinstall/
DSecureFrpInstallTest.java56 private static PackageManager sPackageManager; field in SecureFrpInstallTest
81 sPackageManager.getPackageInfo(TestApp.A, PackageManager.PackageInfoFlags.of(0)); in assertInstalled()
86 sPackageManager.getPackageInfo(TestApp.A, PackageManager.PackageInfoFlags.of(0)); in assertNotInstalled()
94 sPackageManager = InstrumentationRegistry in initialize()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DLauncherAppsTest.java63 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in LauncherAppsTest
131 sPackageManager.setSyntheticAppDetailsActivityEnabled( in setSyntheticAppDetailsActivityEnabled_noPermission_throwsException()
143 sPackageManager.setSyntheticAppDetailsActivityEnabled( in setSyntheticAppDetailsActivityEnabled_true_isEnabled()
158 sPackageManager.setSyntheticAppDetailsActivityEnabled( in setSyntheticAppDetailsActivityEnabled_true_activityListIncludesSyntheticActivity()
175 sPackageManager.setSyntheticAppDetailsActivityEnabled( in setSyntheticAppDetailsActivityEnabled_false_isNotEnabled()
193 sPackageManager.setSyntheticAppDetailsActivityEnabled( in setSyntheticAppDetailsActivityEnabled_false_activityListDoesNotIncludeSyntheticActivity()
DCrossProfileIntentFiltersTest.java82 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in CrossProfileIntentFiltersTest
93 assertThat(sPackageManager.queryIntentActivities( in queryIntentActivities_doesntIncludeAppInOtherUser()
116 sPackageManager.queryIntentActivities( in queryIntentActivities_intentFilterIsSet_includesAppInOtherUser()
143 sPackageManager.queryIntentActivities( in queryIntentActivities_intentFilterIsSet_includesAppInOwnUser()
258 assertThat(sPackageManager.queryIntentActivities( in clearCrossProfileIntentFilters_clears()
285 sPackageManager.queryIntentActivities( in queryIntentActivities_intentFilterIsSet_includesAppInBothUsers()
DManagedSubscriptionsPolicyTest.java73 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in ManagedSubscriptionsPolicyTest
185 List<ResolveInfo> dialIntentActivities = sPackageManager.queryIntentActivitiesAsUser( in setManagedSubscriptionsPolicy_callAndSmsIntent_resolvesToWorkProfileApps()
190 List<ResolveInfo> smsIntentActivities = sPackageManager.queryIntentActivitiesAsUser( in setManagedSubscriptionsPolicy_callAndSmsIntent_resolvesToWorkProfileApps()
DBluetoothTest.java131 private static final PackageManager sPackageManager = field in BluetoothTest
438 List<ResolveInfo> resolveInfos = sPackageManager.queryIntentActivities( in share_disallowBluetoothAndSharingRestrictionsAreNotSet_canShare()
457 List<ResolveInfo> resolveInfos = sPackageManager.queryIntentActivities( in share_disallowBluetoothSharingRestrictionIsSet_canNotShare()
515 List<ResolveInfo> resolveInfos = sPackageManager.queryIntentActivities( in share_disallowBluetoothRestrictionIsSet_canNotShare()
/cts/tests/camera/src/android/hardware/camera2/cts/
DPropertyTest.java51 private static PackageManager sPackageManager; field in PropertyTest
86 sPackageManager = InstrumentationRegistry in setupClass()
/cts/tests/tests/packageinstaller/criticaluserjourney/src/android/packageinstaller/criticaluserjourney/cts/
DPackageInstallerCujTestBase.java146 private static PackageManager sPackageManager; field in PackageInstallerCujTestBase
157 sPackageManager = sContext.getPackageManager(); in setUpClass()
214 sPackageManager = null; in tearDownClass()
772 sPackageManager.getPackageInfo(packageName, /* flags= */ 0); in isInstalled()
790 PackageInfo packageInfo = sPackageManager.getPackageInfo( in isInstalledAndVerifyAppName()
792 CharSequence appLabel = packageInfo.applicationInfo.loadLabel(sPackageManager); in isInstalledAndVerifyAppName()
827 final ResolveInfo ri = sPackageManager.resolveActivity(intent, /* flags= */ 0); in getPackageInstallerPackageName()
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/
DPermissions.java61 private static final PackageManager sPackageManager = sContext.getPackageManager(); field in Permissions
469 protectionLevel = Integer.toString(sPackageManager.getPermissionInfo(
542 PermissionInfo p = sPackageManager.getPermissionInfo(permission, /* flags= */ 0);
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java100 private static final PackageManager sPackageManager = field in Package
454 sPackageManager.getPermissionInfo(permission, /* flags= */ 0); in checkCanGrantOrRevokePermission()
903 return sPackageManager.isInstantApp(mPackageName); in isInstantApp()
DPackages.java171 private static final PackageManager sPackageManager = field in Packages