Home
last modified time | relevance | path

Searched refs:canPackageHandleIntent (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppAllServicesPreferenceControllerTest.java64 doReturn(true).when(mController).canPackageHandleIntent(); in getAvailabilityStatus_shouldReturnAvailable()
73 doReturn(false).when(mController).canPackageHandleIntent(); in getAvailabilityStatus_canNotHandleIntent_shouldReturnConditionallyUnavailable()
81 doReturn(true).when(mController).canPackageHandleIntent(); in getAvailabilityStatus_isNotLocationProvider_shouldReturnConditionallyUnavailable()
89 doReturn(false).when(mController).canPackageHandleIntent(); in getAvailabilityStatus_shouldReturnConditionallyUnavailable()
98 mController.canPackageHandleIntent(); in canPackageHandleIntent_nullPackageInfo_shouldNotCrash()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/appinfo/
DAppAllServicesPreferenceController.kt49 return if (canPackageHandleIntent() && isLocationProvider()) { in getPreferenceType()
99 private fun canPackageHandleIntent(): Boolean = getResolveInfo(/* flags = */ 0) != null in canPackageHandleIntent() method
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppAllServicesPreferenceController.java89 if (canPackageHandleIntent() && isLocationProvider()) { in getAvailabilityStatus()
102 boolean canPackageHandleIntent() { in canPackageHandleIntent() method in AppAllServicesPreferenceController