Home
last modified time | relevance | path

Searched refs:queryIntentActivities (Results 1 – 25 of 145) 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/
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()
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()
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()
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()
/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/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/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/services/Telephony/src/com/android/phone/
DEmergencyAssistanceHelper.java65 infos = packageManager.queryIntentActivities(queryIntent, 0); in resolveAssistPackageAndQueryActivities()
110 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.java118 List<ResolveInfo> activities = userPackageManager.queryIntentActivities( in getQualifyingPackagesAsUser()
155 boolean hasAssistantActivity = !packageManager.queryIntentActivities(pkgActivityProbe, in isPackageQualified()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileNetworkUtilsTest.java142 when(mPackageManager.queryIntentActivities(nullable(Intent.class), anyInt())) in buildConfigureIntent_noActivityHandleIntent_returnNull()
151 when(mPackageManager.queryIntentActivities(nullable(Intent.class), anyInt())) in buildConfigureIntent_hasActivityHandleIntent_returnIntent()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DRegulatoryInfoPreferenceController.java37 return !mContext.getPackageManager().queryIntentActivities(INTENT_PROBE, 0).isEmpty(); in isAvailable()
DSafetyInfoPreferenceController.java40 return !mPackageManager.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/UnifiedEmail/src/com/android/mail/browse/
DWebViewContextMenu.java104 mSupportsDial = !pm.queryIntentActivities( in WebViewContextMenu()
107 mSupportsSms = !pm.queryIntentActivities( in WebViewContextMenu()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DEditUserPhotoController.java204 return mImageView.getContext().getPackageManager().queryIntentActivities( in canTakePhoto()
212 return mImageView.getContext().getPackageManager().queryIntentActivities( in canChoosePhoto()

123456