Home
last modified time | relevance | path

Searched refs:queryIntentActivities (Results 1 – 25 of 139) sorted by relevance

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DEmergencyInfoPreferenceControllerTest.java89 when(mContext.getPackageManager().queryIntentActivities( in updateRawDataToIndex_prefUnavailable_shouldNotUpdate()
103 when(mContext.getPackageManager().queryIntentActivities( in updateRawDataToIndex_prefAvailable_shouldUpdate()
115 when(mContext.getPackageManager().queryIntentActivities( in displayPref_prefUnAvailable_shouldNotDisplay()
128 when(mContext.getPackageManager().queryIntentActivities( in displayPref_prefAvailable_shouldDisplay()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DTermsPreferenceControllerTest.java82 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_systemApp_shouldReturnTrue()
93 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_notSystemApp_shouldReturnFalseAndNoCrash()
98 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())).thenReturn(null); in getAvailabilityStatus_notSystemApp_shouldReturnFalseAndNoCrash()
DWebViewLicensePreferenceControllerTest.java82 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_systemApp_shouldReturnTrue()
93 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_notSystemApp_shouldReturnFalseAndNoCrash()
98 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())).thenReturn(null); in getAvailabilityStatus_notSystemApp_shouldReturnFalseAndNoCrash()
DCopyrightPreferenceControllerTest.java82 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_systemApp_shouldReturnTrue()
93 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_notSystemApp_shouldReturnFalseAndNoCrash()
98 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())).thenReturn(null); in getAvailabilityStatus_notSystemApp_shouldReturnFalseAndNoCrash()
DLicensePreferenceControllerTest.java82 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_systemApp_shouldReturnTrue()
93 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_notSystemApp_shouldReturnFalseAndNoCrash()
98 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())).thenReturn(null); in getAvailabilityStatus_notSystemApp_shouldReturnFalseAndNoCrash()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DTopLevelDisplayPreferenceControllerTest.java83 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getSummary_hasWallpaper_shouldReturnWallpaperSummary()
96 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getSummary_hasWallpaperWithStyles_shouldReturnWallpaperSummary()
106 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) in getSummary_hasWallpaper_shouldReturnNoWallpaperSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DRegulatoryInfoPreferenceControllerTest.java70 when(mPackageManager.queryIntentActivities(any(Intent.class), eq(0))) in isAvailable_hasIntent_returnTrue()
79 when(mPackageManager.queryIntentActivities(any(Intent.class), eq(0))) in isAvailable_hasNoIntent_returnFalse()
/packages/apps/Contacts/src/com/android/contacts/util/
DPhoneCapabilityTester.java50 final List<ResolveInfo> receiverList = packageManager.queryIntentActivities(intent, in isIntentRegistered()
88 final List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities(intent, 0); in getSmsComponent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/firmwareversion/
DSecurityPatchLevelPreferenceControllerTest.java82 when(mPackageManager.queryIntentActivities(any(), anyInt())) in onClick_noActivityIntent_shouldDoNothing()
97 when(mPackageManager.queryIntentActivities(any(), anyInt())) in onClick_activityIntentFound_shouldStartActivity()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DThirdPartyAppCategory.java56 final List<ResolveInfo> apps = pm.queryIntentActivities(pickWallpaperIntent, 0); in getAll()
64 context.getPackageManager().queryIntentActivities(pickImageIntent, 0); in getAll()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DThirdPartyWallpaperInfo.java65 for (ResolveInfo info : pm.queryIntentActivities(pickImageIntent, 0)) { in getAll()
72 for (ResolveInfo info : pm.queryIntentActivities(pickWallpaperIntent, 0)) { in getAll()
/packages/services/Telephony/src/com/android/phone/
DEmergencyAssistanceHelper.java63 infos = packageManager.queryIntentActivities(queryIntent, 0); in resolveAssistPackageAndQueryActivities()
108 infos = context.getPackageManager().queryIntentActivities(queryIntent, 0); in queryAssistActivities()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java212 List<ResolveInfo> infos = packageManager.queryIntentActivities( in isEditorAvailable()
227 List<ResolveInfo> infos = packageManager.queryIntentActivities( in isAnyCameraAvailable()
240 List<ResolveInfo> apps = pm.queryIntentActivities(cameraIntent, 0); in isCameraAvailable()
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
DLensPickerActivity.java170 return mPackageManager.queryIntentActivities(intent, 0); in resolvePackage()
178 return mPackageManager.queryIntentActivities(intent, 0); in resolveCategory()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DAssistantRoleBehavior.java134 List<ResolveInfo> activities = userPackageManager.queryIntentActivities( in getQualifyingPackagesAsUser()
171 boolean hasAssistantActivity = !packageManager.queryIntentActivities(pkgActivityProbe, in isPackageQualified()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileNetworkUtilsTest.java154 when(mPackageManager.queryIntentActivities(nullable(Intent.class), anyInt())) in buildConfigureIntent_noActivityHandleIntent_returnNull()
163 when(mPackageManager.queryIntentActivities(nullable(Intent.class), anyInt())) in buildConfigureIntent_hasActivityHandleIntent_returnIntent()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DSafetyInfoPreferenceController.java40 return !mPackageManager.queryIntentActivities(INTENT_PROBE, 0).isEmpty(); in isAvailable()
DRegulatoryInfoPreferenceController.java37 return !mContext.getPackageManager().queryIntentActivities(INTENT_PROBE, 0).isEmpty(); in isAvailable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DSafetyInfoPreferenceController.java40 return !mPackageManager.queryIntentActivities(INTENT_PROBE, 0).isEmpty(); in isAvailable()
DRegulatoryInfoPreferenceController.java37 return !mContext.getPackageManager().queryIntentActivities(INTENT_PROBE, 0).isEmpty(); in isAvailable()
/packages/apps/Settings/src/com/android/settings/accessibility/
DLiveCaptionPreferenceController.java47 mPackageManager.queryIntentActivities(LIVE_CAPTION_INTENT, 0 /* flags */); in getAvailabilityStatus()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DLiveCaptionPreferenceController.java47 mPackageManager.queryIntentActivities(LIVE_CAPTION_INTENT, 0 /* flags */); in getAvailabilityStatus()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DPreferenceUtils.java47 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in resolveSystemActivityOrRemove()
/packages/apps/Settings/tests/unit/src/com/android/settings/backup/
DBackupIntentTest.java56 List<ResolveInfo> activities = pm.queryIntentActivities(intent, 0); in testPrivacySettingsIntentResolvesToOnlyOneActivity()
/packages/apps/Camera2/src/com/android/camera/util/
DIntentHelper.java39 pm.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); in getGalleryIntent()

123456