/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/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() 191 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera() 192 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera() 196 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera() 197 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera() 269 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 78 mPackageManager = getContext().getPackageManager(); in setUp() 82 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCreateFromPdu() 83 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCreateFromPdu() 162 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCPHSVoiceMail() 163 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCPHSVoiceMail() 205 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testGetUserData() 206 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testGetUserData() 224 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSubmitPdu() 268 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testEmailGateway() [all …]
|
D | SmsManagerTest.java | 202 private PackageManager mPackageManager; field in SmsManagerTest 231 mPackageManager = mContext.getPackageManager(); in setUp() 235 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in setUp() 292 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSendAndReceiveMessages() 358 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSmsBlocking()
|
D | MmsTest.java | 88 private PackageManager mPackageManager; field in MmsTest 169 mPackageManager = mContext.getPackageManager(); in setUp() 173 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testSendMmsMessage()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomAvailabilityTest.java | 44 private PackageManager mPackageManager; field in TelecomAvailabilityTest 51 mPackageManager = getInstrumentation().getTargetContext().getPackageManager(); in setUp() 62 PackageInfo packageInfo = findOnlyTelecomPackageInfo(mPackageManager); in testTelecomIsPreinstalledAndSystem() 80 mPackageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); in testTelecomHandlesCallIntents() 112 mPackageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); in testTelecomCanManageBlockedNumbers()
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | SuspendPackageTest.java | 11 private PackageManager mPackageManager; field in SuspendPackageTest 22 mPackageManager = mContext.getPackageManager(); in setUp() 53 assertNotNull(mPackageManager.resolveActivity(intent, 0)); in assertPackageSuspended()
|
/cts/tests/admin/src/android/admin/cts/ |
D | DeviceAdminInfoTest.java | 30 private PackageManager mPackageManager; field in DeviceAdminInfoTest 38 mPackageManager = mContext.getPackageManager(); in setUp() 59 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mComponent, in testDeviceAdminInfo() 91 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mSecondComponent, in testDeviceAdminInfo2()
|
D | DevicePolicyManagerTest.java | 51 private PackageManager mPackageManager; field in DevicePolicyManagerTest 78 mPackageManager = mContext.getPackageManager(); in setUp() 79 mDeviceAdmin = mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN); in setUp() 81 && mPackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS); in setUp() 658 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in testLauncherVersionAtLeastL() 663 ApplicationInfo launcherAppInfo = mPackageManager.getApplicationInfo( in testLauncherVersionAtLeastL() 732 ApplicationInfo info = mPackageManager.getApplicationInfo(packagename, in isPackageInstalledOnSystemImage()
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | CarrierApiTest.java | 39 private PackageManager mPackageManager; field in CarrierApiTest 51 mPackageManager = getContext().getPackageManager(); in setUp() 76 PackageInfo pInfo = mPackageManager.getPackageInfo(pkgName, in getCertHash()
|
/cts/tests/camera/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() 153 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in testCameraManagerGetDeviceIdList() 156 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA)); in testCameraManagerGetDeviceIdList() 168 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY)); in testCameraManagerGetDeviceIdList() 171 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) in testCameraManagerGetDeviceIdList() 172 || 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/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 74 private PackageManager mPackageManager; field in PermissionsTest 82 mPackageManager = mContext.getPackageManager(); in setUp() 244 assertEquals(expected, mPackageManager.checkPermission(PERMISSION_NAME, in assertPermissionRequest() 249 assertEquals(expected, mPackageManager.checkPermission(PERMISSION_NAME, in assertPermissionGrantState() 285 assertEquals(mPackageManager.checkPermission(PERMISSION_NAME, in assertSetPermissionGrantStatePreMApp()
|
/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/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputInfoTest.java | 36 private PackageManager mPackageManager; field in TvInputInfoTest 68 mPackageManager = getContext().getPackageManager(); in setUp() 169 mStubInfo.getServiceInfo().loadIcon(mPackageManager).getConstantState()); in testLoadIcon() 177 mStubInfo.getServiceInfo().loadLabel(mPackageManager)); in testLoadLabel()
|
/cts/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() 144 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testStartUsingNetworkFeature_enableHipri() 145 || !mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in testStartUsingNetworkFeature_enableHipri()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | CreateAndManageUserTest.java | 49 private PackageManager mPackageManager; field in CreateAndManageUserTest 59 mPackageManager = mContext.getPackageManager(); in setUp()
|