/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/legal/ |
D | LegalPreferenceControllerTestCase.java | 105 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/ |
D | RegulatoryInfoPreferenceControllerTest.java | 75 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/ |
D | HealthPermissionReader.kt | 83 .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/ |
D | AddMobileNetworkPreferenceControllerTest.java | 119 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/ |
D | EmergencyInfoPreferenceControllerTest.java | 93 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/ |
D | TermsPreferenceControllerTest.java | 82 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()
|
D | CopyrightPreferenceControllerTest.java | 82 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()
|
D | LicensePreferenceControllerTest.java | 82 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()
|
D | WebViewLicensePreferenceControllerTest.java | 82 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/ |
D | PhoneCapabilityTester.java | 50 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/ |
D | RegulatoryInfoPreferenceControllerTest.java | 75 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/ |
D | SecurityPatchLevelPreferenceControllerTest.java | 82 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/ |
D | MoreSettingsPreferenceControllerTest.java | 70 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/ |
D | EmergencyInfoPreferenceController.java | 94 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/ |
D | ThirdPartyAppCategory.java | 56 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/ |
D | EmergencyAssistanceHelper.java | 63 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/ |
D | PairNewDevicePreferenceControllerUnitTest.java | 179 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/ |
D | RegulatoryInfoPreferenceController.java | 37 return !mContext.getPackageManager().queryIntentActivities(INTENT_PROBE, 0).isEmpty(); in isAvailable()
|
D | SafetyInfoPreferenceController.java | 44 return !mPackageManager.queryIntentActivities(INTENT_PROBE, 0).isEmpty(); in isAvailable()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | GalleryUtils.java | 212 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/ |
D | LiveCaptionPreferenceController.java | 48 mPackageManager.queryIntentActivities(LIVE_CAPTION_INTENT, 0 /* flags */); in getAvailabilityStatus()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiDiagnosticsTest.java | 167 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/ |
D | RegulatoryInfoPreferenceController.java | 51 return mPm.queryIntentActivities(INTENT_PROBE, /* flags= */ 0).isEmpty() in getDefaultAvailabilityStatus()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | PreferenceUtils.java | 47 List<ResolveInfo> list = pm.queryIntentActivities(intent, 0); in resolveSystemActivityOrRemove()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/ |
D | EditUserPhotoController.java | 218 return mImageView.getContext().getPackageManager().queryIntentActivities( in canTakePhoto() 226 return mImageView.getContext().getPackageManager().queryIntentActivities( in canChoosePhoto() 278 .queryIntentActivities(intent, PackageManager.MATCH_SYSTEM_ONLY); in startSystemActivityForResult()
|