/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 46 private PackageManager mPackageManager; field in PackageManagerTest 64 mPackageManager = getContext().getPackageManager(); in setUp() 73 List<ResolveInfo> listWithDiff = mPackageManager.queryIntentActivityOptions( in testQuery() 78 List<ResolveInfo> listInSame = mPackageManager.queryIntentActivityOptions( in testQuery() 84 mPackageManager.queryIntentActivities(activityIntent, 0); in testQuery() 92 List<InstrumentationInfo> instrumentations = mPackageManager.queryInstrumentation( in testQuery() 98 List<ResolveInfo> services = mPackageManager.queryIntentServices(serviceIntent, in testQuery() 106 broadcastReceivers = mPackageManager.queryBroadcastReceivers(broadcastIntent, 0); in testQuery() 111 List<PermissionInfo> permissions = mPackageManager.queryPermissionsByGroup( in testQuery() 115 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testQuery() [all …]
|
D | FeatureTest.java | 34 private PackageManager mPackageManager; field in FeatureTest 40 mPackageManager = getContext().getPackageManager(); in setUp() 45 if (mPackageManager == null || mActivityManager == null) { in testNoManagedUsersIfLowRamDevice() 50 assertFalse(mPackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS)); in testNoManagedUsersIfLowRamDevice()
|
D | PackageItemInfoTest.java | 36 private PackageManager mPackageManager; field in PackageItemInfoTest 41 mPackageManager = getContext().getPackageManager(); in setUp() 51 assertEquals(ACTIVITY_NAME, pkgItemInfo.loadLabel(mPackageManager)); in testLoadMethods() 53 assertNotNull(pkgItemInfo.loadIcon(mPackageManager)); in testLoadMethods() 56 XmlResourceParser parser = pkgItemInfo.loadXmlMetaData(mPackageManager, METADATA_NAME); in testLoadMethods() 97 mPackageManager.getActivityInfo(componentName, PackageManager.GET_META_DATA); in getTestItemInfo()
|
D | FeatureGroupInfoTest.java | 29 private PackageManager mPackageManager; field in FeatureGroupInfoTest 34 mPackageManager = getContext().getPackageManager(); in setUp() 56 PackageInfo pi = mPackageManager.getPackageInfo(getContext().getPackageName(), in testFeatureGroupsAreCorrect()
|
D | PackageInfoTest.java | 32 private PackageManager mPackageManager; field in PackageInfoTest 40 mPackageManager = getContext().getPackageManager(); in setUp() 41 mPackageInfo = mPackageManager.getPackageInfo(PACKAGE_NAME, PackageManager.GET_ACTIVITIES in setUp()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | SettingsIntentsTest.java | 31 private PackageManager mPackageManager; field in SettingsIntentsTest 40 mPackageManager = getActivity().getPackageManager(); in setUp() 44 assertNotNull(mPackageManager.resolveActivity( in testSettings() 49 assertNotNull(mPackageManager.resolveActivity( in testAccounts() 54 assertNotNull(mPackageManager.resolveActivity( in testApps() 60 assertNotNull(mPackageManager.resolveActivity( in testSecurity() 65 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)) { in testNfc() 66 assertNotNull(mPackageManager.resolveActivity( in testNfc() 72 assertNotNull(mPackageManager.resolveActivity( in testLocation()
|
D | ManagedProfileTest.java | 37 private PackageManager mPackageManager; field in ManagedProfileTest 51 mPackageManager = getActivity().getPackageManager(); in setUp() 67 assertEquals(1, mPackageManager.queryIntentActivities( in testClearCrossProfileIntentFilters() 72 assertTrue(mPackageManager.queryIntentActivities( in testClearCrossProfileIntentFilters() 79 assertEquals(0, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_primary() 87 assertEquals(1, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_primary() 94 assertEquals(1, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_all() 102 assertEquals(2, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_all() 109 assertEquals(1, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_managed() 118 assertEquals(1, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_managed()
|
D | PrimaryUserTest.java | 38 private PackageManager mPackageManager; field in PrimaryUserTest 51 mPackageManager = getActivity().getPackageManager(); in setUp() 55 assertEquals(1, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_primary() 62 assertEquals(2, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_all() 70 assertEquals(1, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_managed()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PackageManagerRequiringPermissionsTest.java | 33 private PackageManager mPackageManager; field in PackageManagerRequiringPermissionsTest 38 mPackageManager = getContext().getPackageManager(); in setUp() 39 assertNotNull(mPackageManager); in setUp() 49 mPackageManager.setApplicationEnabledSetting(PACKAGE_NAME, in testSetApplicationEnabledSetting() 68 mPackageManager.addPreferredActivity(filter, 0, null, null); in testAddPreferredActivity() 83 mPackageManager.clearPackagePreferredActivities(null); in testClearPackagePreferredActivities() 98 mPackageManager.verifyPendingInstall(1, 1); in testVerifyPendingInstall() 113 mPackageManager.extendVerificationTimeout(1, 1, 10000); in testExtendVerificationTimeout()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 57 private PackageManager mPackageManager; field in SystemFeaturesTest 72 mPackageManager = mContext.getPackageManager(); in setUp() 74 if (mPackageManager.getSystemAvailableFeatures() != null) { in setUp() 75 for (FeatureInfo feature : mPackageManager.getSystemAvailableFeatures()) { in setUp() 129 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in testCameraFeatures() 190 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera() 191 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera() 195 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera() 196 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera() 268 assertTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE) in testScreenFeatures() [all …]
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | SmsMessageTest.java | 29 private PackageManager mPackageManager; field in SmsMessageTest 75 mPackageManager = getContext().getPackageManager(); in setUp() 79 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCreateFromPdu() 80 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCreateFromPdu() 159 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCPHSVoiceMail() 160 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCPHSVoiceMail() 202 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testGetUserData() 203 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testGetUserData() 221 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSubmitPdu() 265 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testEmailGateway() [all …]
|
D | SmsManagerTest.java | 185 private PackageManager mPackageManager; field in SmsManagerTest 206 mPackageManager = mContext.getPackageManager(); in setUp() 210 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in setUp() 256 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSendMessages()
|
D | SmsUsageMonitorShortCodeTest.java | 32 private PackageManager mPackageManager; field in SmsUsageMonitorShortCodeTest 488 mPackageManager = mContext.getPackageManager(); in setUp() 499 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSmsUsageMonitor()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomAvailabilityTest.java | 43 private PackageManager mPackageManager; field in TelecomAvailabilityTest 50 mPackageManager = getInstrumentation().getTargetContext().getPackageManager(); in setUp() 61 PackageInfo packageInfo = findOnlyTelecomPackageInfo(mPackageManager); in testTelecomIsPreinstalledAndSystem() 79 mPackageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); in testTelecomHandlesCallIntents()
|
/cts/tests/tests/admin/src/android/admin/cts/ |
D | DeviceAdminInfoTest.java | 30 private PackageManager mPackageManager; field in DeviceAdminInfoTest 38 mPackageManager = mContext.getPackageManager(); in setUp() 61 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mComponent, in testDeviceAdminInfo() 93 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mSecondComponent, in testDeviceAdminInfo2()
|
D | DevicePolicyManagerTest.java | 52 private PackageManager mPackageManager; field in DevicePolicyManagerTest 79 mPackageManager = mContext.getPackageManager(); in setUp() 81 mDeviceAdmin = mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN); in setUp() 83 && mPackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS); in setUp() 1025 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in testLauncherVersionAtLeastL() 1030 ApplicationInfo launcherAppInfo = mPackageManager.getApplicationInfo( in testLauncherVersionAtLeastL() 1132 ApplicationInfo info = mPackageManager.getApplicationInfo(packagename, in isPackageInstalledOnSystemImage()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputInfoTest.java | 34 private PackageManager mPackageManager; field in TvInputInfoTest 50 mPackageManager = getContext().getPackageManager(); in setUp() 150 mStubInfo.getServiceInfo().loadIcon(mPackageManager).getConstantState()); in testLoadIcon() 158 mStubInfo.getServiceInfo().loadLabel(mPackageManager)); in testLoadLabel()
|
/cts/suite/cts/deviceTests/browserbench/src/com/android/cts/browser/ |
D | BrowserBenchTest.java | 74 private PackageManager mPackageManager; field in BrowserBenchTest 79 mPackageManager = getInstrumentation().getContext().getPackageManager(); in setUp() 182 return !(mPackageManager.hasSystemFeature("android.hardware.type.television") in isBrowserSupported() 183 || mPackageManager.hasSystemFeature("android.software.leanback") in isBrowserSupported() 184 || mPackageManager.hasSystemFeature("android.hardware.type.watch")); in isBrowserSupported()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 56 private PackageManager mPackageManager; field in CameraManagerTest 69 mPackageManager = context.getPackageManager(); in setContext() 70 assertNotNull("Can't get package manager", mPackageManager); in setContext() 139 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY)); in testCameraManagerGetDeviceIdList() 152 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT)); in testCameraManagerGetDeviceIdList() 155 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA)); in testCameraManagerGetDeviceIdList() 167 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY)); in testCameraManagerGetDeviceIdList() 170 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) in testCameraManagerGetDeviceIdList() 171 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT)); in testCameraManagerGetDeviceIdList()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | BasePackageInstallTest.java | 54 private PackageManager mPackageManager; field in BasePackageInstallTest 89 mPackageManager = mContext.getPackageManager(); in setUp() 90 mPackageInstaller = mPackageManager.getPackageInstaller(); in setUp() 192 PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in isPackageInstalled()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | LowRamDeviceTest.java | 56 private PackageManager mPackageManager; field in LowRamDeviceTest 63 mPackageManager = getContext().getPackageManager(); in setUp() 82 Boolean watch = mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH); in testMinimumMemory()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 73 private PackageManager mPackageManager; field in PermissionsTest 81 mPackageManager = mContext.getPackageManager(); in setUp() 242 assertEquals(expected, mPackageManager.checkPermission(PERMISSION_NAME, in assertPermissionRequest() 247 assertEquals(expected, mPackageManager.checkPermission(PERMISSION_NAME, in assertPermissionGrantState() 283 assertEquals(mPackageManager.checkPermission(PERMISSION_NAME, in assertSetPermissionGrantStatePreMApp()
|
/cts/tests/tests/netlegacy22/api/src/android/net/cts/legacy/api22/ |
D | ConnectivityManagerLegacyTest.java | 59 private PackageManager mPackageManager; field in ConnectivityManagerLegacyTest 67 mPackageManager = getContext().getPackageManager(); in setUp() 110 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testStartUsingNetworkFeature_enableHipri() 111 || !mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in testStartUsingNetworkFeature_enableHipri()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 67 private PackageManager mPackageManager; field in ConnectivityManagerTest 76 mPackageManager = getContext().getPackageManager(); in setUp() 258 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in testRegisterNetworkCallback() 301 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in testRegisterNetworkCallback_withPendingIntent()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | InteractiveVerifierActivity.java | 68 protected PackageManager mPackageManager; field in InteractiveVerifierActivity 139 mPackageManager = getPackageManager(); in onCreate() 389 if (settings.resolveActivity(mPackageManager) == null) { in test()
|