/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowVoiceInteractionServiceInfo.java | 20 import android.content.pm.ServiceInfo; 32 private static Map<ServiceInfo, Boolean> sSupportsAssistMap = new HashMap<>(); 33 private static Map<ServiceInfo, String> sRecognitionServiceMap = new HashMap<>(); 34 private static Map<ServiceInfo, String> sSettingsActivityMap = new HashMap<>(); 36 private ServiceInfo mServiceInfo; 38 public void __constructor__(PackageManager pm, ServiceInfo si) { in __constructor__() 42 public static void setSupportsAssist(ServiceInfo si, boolean supports) { in setSupportsAssist() 46 public static void setRecognitionService(ServiceInfo si, String recognitionService) { in setRecognitionService() 50 public static void setSettingsActivity(ServiceInfo si, String settingsActivity) { in setSettingsActivity() 70 protected ServiceInfo getServiceInfo() { in getServiceInfo()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/com/android/adservices/ |
D | AdServicesCommonTest.java | 27 import android.content.pm.ServiceInfo; 41 private ServiceInfo mServiceInfo1, mServiceInfo2, mServiceInfoGms; 49 mServiceInfo1 = new ServiceInfo(); in setUp() 55 mServiceInfo2 = new ServiceInfo(); in setUp() 61 ServiceInfo serviceInfo3 = new ServiceInfo(); in setUp() 68 ServiceInfo serviceInfo4 = new ServiceInfo(); in setUp() 74 mServiceInfoGms = new ServiceInfo(); in setUp()
|
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/ |
D | DeviceLockControllerPackageUtils.java | 28 import android.content.pm.ServiceInfo; 50 private ServiceInfo mServiceInfo; 62 public synchronized ServiceInfo findService(@NonNull StringBuilder errorMessage) { in findService() 73 private ServiceInfo findServiceInternal(@NonNull StringBuilder errorMessage) { in findServiceInternal() 90 ServiceInfo resultServiceInfo = null; in findServiceInternal() 93 final ServiceInfo serviceInfo = resolveInfo.serviceInfo; in findServiceInternal() 132 ServiceInfo serviceInfo = findService(errorMessage); in getDeviceIdTypeBitmapInternal()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accessibility/ |
D | ScreenReaderSettingsIntentPreferenceControllerTest.java | 28 import android.content.pm.ServiceInfo; 81 ServiceInfo serviceInfo = new ServiceInfo(); in testUpdateState_noSettingsActivity_hidesSettings() 104 ServiceInfo serviceInfo = new ServiceInfo(); in testUpdateState_noSettingsActivity_hidesSettings_zoneWrite() 128 ServiceInfo serviceInfo = new ServiceInfo(); in testUpdateState_noSettingsActivity_hidesSettings_zoneRead() 152 ServiceInfo serviceInfo = new ServiceInfo(); in testUpdateState_noSettingsActivity_hidesSettings_zoneHidden()
|
D | ScreenReaderCategoryPreferenceControllerTest.java | 29 import android.content.pm.ServiceInfo; 73 ServiceInfo serviceInfo = new ServiceInfo(); in testGetAvailability_screenReaderInstalled_isAvailable() 91 ServiceInfo serviceInfo = new ServiceInfo(); in testGetAvailability_screenReaderInstalled_zoneWrite() 110 ServiceInfo serviceInfo = new ServiceInfo(); in testGetAvailability_screenReaderInstalled_zoneRead() 129 ServiceInfo serviceInfo = new ServiceInfo(); in testGetAvailability_screenReaderInstalled_zoneHidden()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | NotificationAssistantPickerTest.java | 34 import android.content.pm.ServiceInfo; 101 List<ServiceInfo> list = new ArrayList<>(); in candidateListHasNoneAtEnd() 102 ServiceInfo serviceInfo = mock(ServiceInfo.class, RETURNS_SMART_NULLS); in candidateListHasNoneAtEnd() 114 List<ServiceInfo> list = new ArrayList<>(); in candidateListHasCorrectCandidate() 115 ServiceInfo serviceInfo = mock(ServiceInfo.class, RETURNS_SMART_NULLS); in candidateListHasCorrectCandidate()
|
D | NotificationAccessSettingsTest.java | 35 import android.content.pm.ServiceInfo; 101 ArrayList<ServiceInfo> services = new ArrayList<>(); in updateList_enabledLongName_shown() 122 ArrayList<ServiceInfo> services = new ArrayList<>(); in updateList_disabledLongName_notShown() 137 private static ServiceInfo newServiceInfo(String packageName, String serviceName, int uid) { in newServiceInfo() 138 ServiceInfo serviceInfo = new ServiceInfo(); in newServiceInfo()
|
/packages/apps/Settings/src/com/android/settings/development/qstile/ |
D | DevelopmentTilePreferenceController.java | 24 import android.content.pm.ServiceInfo; 64 List<ServiceInfo> serviceInfos = getTileServiceList(context); in displayPreference() 66 for (ServiceInfo sInfo : serviceInfos) { in displayPreference() 99 public static List<ServiceInfo> getTileServiceList(Context context) { in getTileServiceList() 106 List<ServiceInfo> servicesInfos = new ArrayList<>(); in getTileServiceList() 108 ServiceInfo sInfo = info.serviceInfo; in getTileServiceList()
|
/packages/modules/AdServices/adservices/framework/java/com/android/adservices/ |
D | AdServicesCommon.java | 24 import android.content.pm.ServiceInfo; 124 public static ServiceInfo resolveAdServicesService( in resolveAdServicesService() 145 ServiceInfo serviceInfo = getServiceInfoIfAdServices(intentResolveInfos.get(0)); in resolveAdServicesService() 161 private static ServiceInfo getServiceInfoIfAdServices(@Nullable ResolveInfo resolveInfo) { in getServiceInfoIfAdServices() 166 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in getServiceInfoIfAdServices()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentManagerTest.java | 32 import android.content.pm.ServiceInfo; 105 ServiceInfo serviceInfo = new ServiceInfo(); in shouldProvideTrust_doesProvideTrustWithPermission() 118 ServiceInfo serviceInfo = new ServiceInfo(); in shouldProvideTrust_doesNotProvideTrustWithoutPermission() 187 ServiceInfo serviceInfo = new ServiceInfo(); in createResolveInfo()
|
/packages/apps/Settings/src/com/android/settings/language/ |
D | VoiceInputHelper.java | 24 import android.content.pm.ServiceInfo; 55 public final ServiceInfo mService; 63 public BaseInfo(PackageManager pm, ServiceInfo service, String settings) { in BaseInfo() 85 ServiceInfo serviceInfo, in RecognizerInfo() 147 final ServiceInfo serviceInfo = resolveInfo.serviceInfo; in validRecognitionServices() 179 Context context, ServiceInfo serviceInfo) { in parseRecognitionServiceXmlMetadata()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/ |
D | NotificationAccessConfirmationActivityTest.java | 39 import android.content.pm.ServiceInfo; 74 private static ServiceInfo createServiceInfoForTempComponent(String permission) { in createServiceInfoForTempComponent() 75 ServiceInfo info = new ServiceInfo(); in createServiceInfoForTempComponent() 111 ServiceInfo info = createServiceInfoForTempComponent(/* permission = */ ""); in onAllow_permissionMissing_finishes() 128 ServiceInfo info = createServiceInfoForTempComponent( in onAllow_permissionAvailable_callsNotificationManager()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | TestUtils.java | 26 import android.content.pm.ServiceInfo; 67 ServiceInfo serviceInfo = new ServiceInfo(); in createPackageInfoWithService() 74 packageInfo.services = new ServiceInfo[]{serviceInfo}; in createPackageInfoWithService()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/ |
D | UtilsTest.java | 26 import android.content.pm.ServiceInfo; 95 ServiceInfo serviceInfo = new ServiceInfo(); in testHasCeServicesWithValidPermissions() 97 packageInfo.services = new ServiceInfo[]{serviceInfo}; in testHasCeServicesWithValidPermissions()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/ |
D | VoiceInputInfoProvider.java | 24 import android.content.pm.ServiceInfo; 159 private final ServiceInfo mServiceInfo; 161 VoiceInputInfo(Context context, ServiceInfo serviceInfo) { in VoiceInputInfo() 170 protected ServiceInfo getServiceInfo() { in getServiceInfo() 249 VoiceRecognitionInfo(Context context, ServiceInfo serviceInfo) { in VoiceRecognitionInfo() 263 private String getServiceSettingsActivity(ServiceInfo serviceInfo) { in getServiceSettingsActivity()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/ |
D | SilentTypeFilterPreferenceControllerTest.java | 25 import android.content.pm.ServiceInfo; 46 ServiceInfo mSi = new ServiceInfo();
|
D | ConversationTypeFilterPreferenceControllerTest.java | 26 import android.content.pm.ServiceInfo; 47 ServiceInfo mSi = new ServiceInfo();
|
D | AlertingTypeFilterPreferenceControllerTest.java | 26 import android.content.pm.ServiceInfo; 47 ServiceInfo mSi = new ServiceInfo();
|
D | OngoingTypeFilterPreferenceControllerTest.java | 26 import android.content.pm.ServiceInfo; 47 ServiceInfo mSi = new ServiceInfo();
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/testutils/ |
D | Utils.java | 26 import android.content.pm.ServiceInfo; 39 final ServiceInfo serviceInfo = new ServiceInfo(); in addAutofill()
|
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/ |
D | AdservicesTestHelper.java | 24 import android.content.pm.ServiceInfo; 58 final ServiceInfo serviceInfo = in getAdServicesPackageName() 147 private static ServiceInfo resolveAdServicesService( in resolveAdServicesService() 172 ServiceInfo serviceInfo = null; in resolveAdServicesService()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/specialaccess/ |
D | ServiceListing.java | 28 import android.content.pm.ServiceInfo; 53 private final List<ServiceInfo> mServices = new ArrayList<>(); 145 ServiceInfo info = resolveInfo.serviceInfo; in reload() 192 void onServicesReloaded(List<ServiceInfo> services); in onServicesReloaded() 233 public Builder setValidator(Predicate<ServiceInfo> validator) { in setValidator()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAutofillPickerPreferenceControllerTest.java | 26 import android.content.pm.ServiceInfo; 76 serviceResolveInfo.serviceInfo = new ServiceInfo(); in getCandidates_hasServiceWithoutPermissions_returnsEmptyList() 89 serviceResolveInfo.serviceInfo = new ServiceInfo(); in getCandidates_hasServiceWithBindAutofillServicePermission_returnsService() 102 serviceResolveInfo.serviceInfo = new ServiceInfo(); in getCandidates_hasServiceWithBindAutofillPermission_returnsEmptyList()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/packageinfo/ |
D | PackageInfoFragment.java | 21 import android.content.pm.ServiceInfo; 140 for (ServiceInfo info : Arrays.asList(packageInfo.services)) { in refreshPackages() 167 private boolean systemUserOnlyOrSingleUserService(ServiceInfo info) { in systemUserOnlyOrSingleUserService() 169 && (info.flags & ServiceInfo.FLAG_SYSTEM_USER_ONLY) == 0) in systemUserOnlyOrSingleUserService() 171 && (info.flags & ServiceInfo.FLAG_SINGLE_USER) == 0)); in systemUserOnlyOrSingleUserService()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | AccessibilityTestUtils.java | 31 import android.content.pm.ServiceInfo; 78 final ServiceInfo serviceInfo = new ServiceInfo(); in createAccessibilityServiceInfo()
|