Home
last modified time | relevance | path

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

12345678

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/legal/
DLegalPreferenceControllerTestCase.java105 when(mMockPm.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_systemApp_shouldReturnAvailable()
117 when(mMockPm.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_systemApp_shouldReturnAvailable_zoneWrite()
129 when(mMockPm.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_systemApp_shouldReturnAvailable_zoneRead()
141 when(mMockPm.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_systemApp_shouldReturnAvailable_zoneHidden()
152 when(mMockPm.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported()
157 when(mMockPm.queryIntentActivities(any(Intent.class), anyInt())).thenReturn(null); in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported()
167 when(mMockPm.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported_zoneWrite()
172 when(mMockPm.queryIntentActivities(any(Intent.class), anyInt())).thenReturn(null); in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported_zoneWrite()
182 when(mMockPm.queryIntentActivities(any(Intent.class), anyInt())) in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported_zoneRead()
187 when(mMockPm.queryIntentActivities(any(Intent.class), anyInt())).thenReturn(null); in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported_zoneRead()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DRegulatoryInfoPreferenceControllerTest.java75 when(mPm.queryIntentActivities(any(Intent.class), eq(0))) in hasIntent_isAvailable()
87 when(mPm.queryIntentActivities(any(Intent.class), eq(0))) in hasIntent_isAvailable_zoneWrite()
99 when(mPm.queryIntentActivities(any(Intent.class), eq(0))) in hasIntent_isAvailable_zoneRead()
112 when(mPm.queryIntentActivities(any(Intent.class), eq(0))) in hasIntent_isAvailable_zoneHidden()
123 when(mPm.queryIntentActivities(any(Intent.class), eq(0))) in hasNoIntent_isNotAvailable()
134 when(mPm.queryIntentActivities(any(Intent.class), eq(0))) in hasNoIntent_isNotAvailable_zoneWrite()
146 when(mPm.queryIntentActivities(any(Intent.class), eq(0))) in hasNoIntent_isNotAvailable_zoneRead()
158 when(mPm.queryIntentActivities(any(Intent.class), eq(0))) in hasNoIntent_isNotAvailable_zoneHidden()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DHealthPermissionReader.kt83 .queryIntentActivities( in <lambda>()
98 .queryIntentActivities( in <lambda>()
124 .queryIntentActivities(intent, PackageManager.GET_META_DATA) in <lambda>()
169 context.packageManager.queryIntentActivities( in <lambda>()
177 context.packageManager.queryIntentActivities( in <lambda>()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/
DAddMobileNetworkPreferenceControllerTest.java119 when(mMockPackageManager.queryIntentActivities(ADD_NETWORK_INTENT, /* flags= */ 0)) in getAvailabilityStatus_euiccEnabled_intentResolves_isAvailable()
128 when(mMockPackageManager.queryIntentActivities(ADD_NETWORK_INTENT, /* flags= */ 0)) in getAvailabilityStatus_euiccEnabled_intentResolves_isAvailable_zoneWrite()
139 when(mMockPackageManager.queryIntentActivities(ADD_NETWORK_INTENT, /* flags= */ 0)) in getAvailabilityStatus_euiccEnabled_intentResolves_isAvailable_zoneRead()
150 when(mMockPackageManager.queryIntentActivities(ADD_NETWORK_INTENT, /* flags= */ 0)) in getAvailabilityStatus_euiccEnabled_intentResolves_isAvailable_zoneHidden()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DEmergencyInfoPreferenceControllerTest.java93 when(mContext.getPackageManager().queryIntentActivities( in updateRawDataToIndex_prefUnavailable_shouldNotUpdate()
107 when(mContext.getPackageManager().queryIntentActivities( in updateRawDataToIndex_prefAvailable_shouldUpdate()
119 when(mContext.getPackageManager().queryIntentActivities( in displayPref_prefUnAvailable_shouldNotDisplay()
132 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()
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()
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()
/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/
DRegulatoryInfoPreferenceControllerTest.java75 when(mPackageManager.queryIntentActivities(any(Intent.class), eq(0))) in isAvailable_hasIntent_returnTrue()
84 when(mPackageManager.queryIntentActivities(any(Intent.class), eq(0))) in isAvailable_hasNoIntent_returnFalse()
/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/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/
DMoreSettingsPreferenceControllerTest.java70 when(mPm.queryIntentActivities(captor.capture(), any())).thenReturn( in getAvailabilityStatus_available()
82 when(mPm.queryIntentActivities(captor.capture(), any())).thenReturn(ImmutableList.of()); in getAvailabilityStatus_notAvailable()
/packages/apps/Settings/src/com/android/settings/accounts/
DEmergencyInfoPreferenceController.java94 final List<ResolveInfo> infos = mContext.getPackageManager().queryIntentActivities(mIntent, in isEmergencyInfoSupported()
107 final List<ResolveInfo> infos = mContext.getPackageManager().queryIntentActivities(mIntent, in isAOSPVersionSupported()
/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.java63 infos = packageManager.queryIntentActivities(queryIntent, 0); in resolveAssistPackageAndQueryActivities()
108 infos = context.getPackageManager().queryIntentActivities(queryIntent, 0); in queryAssistActivities()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DPairNewDevicePreferenceControllerUnitTest.java179 when(mMockPm.queryIntentActivities(eq(intent), anyInt())).thenReturn( in preferenceClicked_triggersCustomPairingFlow_whenSystemApplicationIsFound()
208 when(mMockPm.queryIntentActivities(eq(intent), anyInt())).thenReturn( in preferenceClicked_triggersDefaultPairingFlow_whenNoMatchingApplicationsFound()
232 when(mMockPm.queryIntentActivities(eq(intent), anyInt())).thenReturn( in preferenceClicked_triggersDefaultPairingFlow_whenNonSystemApplicationIsFound()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DRegulatoryInfoPreferenceController.java37 return !mContext.getPackageManager().queryIntentActivities(INTENT_PROBE, 0).isEmpty(); in isAvailable()
DSafetyInfoPreferenceController.java44 return !mPackageManager.queryIntentActivities(INTENT_PROBE, 0).isEmpty(); in isAvailable()
/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/Settings/src/com/android/settings/accessibility/
DLiveCaptionPreferenceController.java48 mPackageManager.queryIntentActivities(LIVE_CAPTION_INTENT, 0 /* flags */); in getAvailabilityStatus()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiDiagnosticsTest.java167 when(mPackageManager.queryIntentActivities(any(), anyInt())).thenReturn(mResolveInfoList); in setUp()
927 verify(mPackageManager, times(1)).queryIntentActivities(any(), anyInt());
938 verify(mPackageManager, never()).queryIntentActivities(any(), anyInt());
947 verify(mPackageManager, times(1)).queryIntentActivities(any(), anyInt());
963 verify(mPackageManager, times(1)).queryIntentActivities(any(), anyInt());
967 verify(mPackageManager, times(1)).queryIntentActivities(any(), anyInt());
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DRegulatoryInfoPreferenceController.java51 return mPm.queryIntentActivities(INTENT_PROBE, /* flags= */ 0).isEmpty() in getDefaultAvailabilityStatus()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DPreferenceUtils.java47 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in resolveSystemActivityOrRemove()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEditUserPhotoController.java218 return mImageView.getContext().getPackageManager().queryIntentActivities( in canTakePhoto()
226 return mImageView.getContext().getPackageManager().queryIntentActivities( in canChoosePhoto()
278 .queryIntentActivities(intent, PackageManager.MATCH_SYSTEM_ONLY); in startSystemActivityForResult()

12345678