/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/data/repository/ |
D | FakeInstalledTilesComponentRepository.kt | 22 import android.content.pm.ServiceInfo 30 private val installedServicesPerUser = mutableMapOf<Int, MutableStateFlow<List<ServiceInfo>>>() 36 override fun getInstalledTilesServiceInfos(userId: Int): List<ServiceInfo> { in getInstalledTilesServiceInfos() 43 ServiceInfo().apply { in setInstalledPackagesForUser() 51 fun setInstalledServicesForUser(userId: Int, services: List<ServiceInfo>) { in setInstalledServicesForUser() 55 private fun getFlow(userId: Int): MutableStateFlow<List<ServiceInfo>> = in getFlow() 59 fun ServiceInfo( in ServiceInfo() method 65 ): ServiceInfo { in ServiceInfo() 77 object : ServiceInfo() { in ServiceInfo()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ActiveServicesTest.java | 37 import android.content.pm.ServiceInfo; 202 final ServiceInfo regularService = new ServiceInfo(); in testGetProcessNameForService() 209 final ServiceInfo isolatedService = new ServiceInfo(); in testGetProcessNameForService() 211 isolatedService.flags = ServiceInfo.FLAG_ISOLATED_PROCESS; in testGetProcessNameForService() 218 final ServiceInfo isolatedService1 = new ServiceInfo(); in testGetProcessNameForService() 220 isolatedService1.flags = ServiceInfo.FLAG_ISOLATED_PROCESS; in testGetProcessNameForService() 227 final ServiceInfo isolatedPackageSharedService = new ServiceInfo(); in testGetProcessNameForService() 232 isolatedPackageSharedService.flags = ServiceInfo.FLAG_ISOLATED_PROCESS; in testGetProcessNameForService() 238 final ServiceInfo isolatedPackageSharedService1 = new ServiceInfo( in testGetProcessNameForService() 243 isolatedPackageSharedService1.flags = ServiceInfo.FLAG_ISOLATED_PROCESS; in testGetProcessNameForService() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ServiceInfo.java | 36 public class ServiceInfo extends ComponentInfo class 634 public ServiceInfo() { in ServiceInfo() method in ServiceInfo 637 public ServiceInfo(ServiceInfo orig) { in ServiceInfo() method in ServiceInfo 727 public static final @android.annotation.NonNull Creator<ServiceInfo> CREATOR = 728 new Creator<ServiceInfo>() { 729 public ServiceInfo createFromParcel(Parcel source) { 730 return new ServiceInfo(source); 732 public ServiceInfo[] newArray(int size) { 733 return new ServiceInfo[size]; 737 private ServiceInfo(Parcel source) { in ServiceInfo() method in ServiceInfo
|
D | RegisteredServicesCache.java | 101 Map<V, ServiceInfo<V>> services = null; 265 for (ServiceInfo<?> info : user.services.values()) { in dump() 318 public static class ServiceInfo<V> { class in RegisteredServicesCache 328 public ServiceInfo(V type, ComponentInfo componentInfo, ComponentName componentName) { in ServiceInfo() method in RegisteredServicesCache.ServiceInfo 346 public ServiceInfo<V> getServiceInfo(V type, int userId) { in getServiceInfo() 361 public Collection<ServiceInfo<V>> getAllServices(int userId) { in getAllServices() 369 new ArrayList<ServiceInfo<V>>(user.services.values())); in getAllServices() 377 List<ServiceInfo<V>> allServices; in updateServices() 387 for (ServiceInfo<V> service : allServices) { in updateServices() 489 final ArrayList<ServiceInfo<V>> serviceInfos = new ArrayList<>(); in generateServicesMap() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
D | ServiceListingTest.java | 34 import android.content.pm.ServiceInfo; 77 ServiceInfo s1 = new ServiceInfo(); in testValidator() 80 ServiceInfo s2 = new ServiceInfo(); in testValidator() 109 ArgumentCaptor<List<ServiceInfo>> captor = ArgumentCaptor.forClass(List.class); in testValidator() 118 ServiceInfo s1 = new ServiceInfo(); in testNoValidator() 121 ServiceInfo s2 = new ServiceInfo(); in testNoValidator() 144 ArgumentCaptor<List<ServiceInfo>> captor = ArgumentCaptor.forClass(List.class); in testNoValidator()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsListingControllerImplTest.kt | 27 import android.content.pm.ServiceInfo 165 callback?.onServicesReloaded(listOf(ServiceInfo(componentName))) in testImmediateListingReload_doesNotCrash() 198 val list = listOf(ServiceInfo(componentName)) in testCallbackGetsList() 238 val serviceInfo = ServiceInfo(componentName) in testChangeUserSendsCorrectServiceUpdate() 269 serviceListingCallbackCaptor.value.onServicesReloaded(emptyList<ServiceInfo>()) in testChangeUserSendsCorrectServiceUpdate() 278 val list = listOf(ServiceInfo(componentName)) in test_nullPanelActivity() 288 val serviceInfo = ServiceInfo( in testNoActivity_nullPanel() 303 val serviceInfo = ServiceInfo( in testActivityWithoutPermission_nullPanel() 320 val serviceInfo = ServiceInfo( in testActivityPermissionNotExported_nullPanel() 339 val serviceInfo = ServiceInfo( in testActivityDisabled_nullPanel() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/tv/ |
D | TvRemoteProviderWatcherTest.java | 30 import android.content.pm.ServiceInfo; 120 ServiceInfo serviceInfo = createTvServiceInfo(); in permissionIsRequired() 128 ServiceInfo serviceInfo = createTvServiceInfo(); in permissionMustBeBindRemote() 135 ServiceInfo serviceInfo = createTvServiceInfo(); in packageNameMustMatch() 159 private ServiceInfo createTvServiceInfo() { in createTvServiceInfo() 160 ServiceInfo serviceInfo = new ServiceInfo(); in createTvServiceInfo()
|
/frameworks/base/core/java/com/android/internal/pm/pkg/component/ |
D | ParsedServiceUtils.java | 25 import android.content.pm.ServiceInfo; 96 ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE)) in parseService() 97 .setFlags(service.getFlags() | (flag(ServiceInfo.FLAG_STOP_WITH_TASK, in parseService() 99 | flag(ServiceInfo.FLAG_ISOLATED_PROCESS, in parseService() 101 | flag(ServiceInfo.FLAG_EXTERNAL_SERVICE, in parseService() 103 | flag(ServiceInfo.FLAG_USE_APP_ZYGOTE, in parseService() 105 | flag(ServiceInfo.FLAG_ALLOW_SHARED_ISOLATED_PROCESS, in parseService() 107 | flag(ServiceInfo.FLAG_SINGLE_USER, in parseService() 111 service.setFlags(service.getFlags() | flag(ServiceInfo.FLAG_SYSTEM_USER_ONLY, in parseService()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/ |
D | InstalledTilesComponentRepository.kt | 26 import android.content.pm.ServiceInfo 50 fun getInstalledTilesServiceInfos(userId: Int): List<ServiceInfo> in getInstalledTilesComponents() 62 @GuardedBy("userMap") private val userMap = mutableMapOf<Int, StateFlow<List<ServiceInfo>>>() in getInstalledTilesComponents() 68 override fun getInstalledTilesServiceInfos(userId: Int): List<ServiceInfo> { in getInstalledTilesComponents() 72 private fun getForUserLocked(userId: Int): StateFlow<List<ServiceInfo>> { in getInstalledTilesComponents() 100 private fun reloadComponents(userId: Int, packageManager: PackageManager): List<ServiceInfo> { in getInstalledTilesComponents()
|
/frameworks/base/core/java/android/service/contentcapture/ |
D | ContentCaptureServiceInfo.java | 28 import android.content.pm.ServiceInfo; 56 private static ServiceInfo getServiceInfoOrThrow(ComponentName comp, boolean isTemp, in getServiceInfoOrThrow() 63 ServiceInfo si = null; in getServiceInfoOrThrow() 77 private final ServiceInfo mServiceInfo; 88 private ContentCaptureServiceInfo(@NonNull Context context, @NonNull ServiceInfo si) { in ContentCaptureServiceInfo() 143 public ServiceInfo getServiceInfo() { in getServiceInfo()
|
/frameworks/base/core/java/android/service/translation/ |
D | TranslationServiceInfo.java | 28 import android.content.pm.ServiceInfo; 57 private final ServiceInfo mServiceInfo; 62 private static ServiceInfo getServiceInfoOrThrow(ComponentName comp, boolean isTemp, in getServiceInfoOrThrow() 69 ServiceInfo si = null; in getServiceInfoOrThrow() 83 public ServiceInfo getServiceInfo() { in getServiceInfo() 98 private TranslationServiceInfo(@NonNull Context context, @NonNull ServiceInfo si) { in TranslationServiceInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | FgsLoggerTest.java | 38 import android.content.pm.ServiceInfo; 73 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testFgsStartThenApiStart() 94 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testApiStartThenFgsStart() 118 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testFgsStartApiStartFgsStopApiStop() 157 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testApiStartStopFgs() 177 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testFgsStartStopApiStartStop() 201 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testMultipleStartStopApis() 258 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testMultipleStartStops() 326 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testMultiStartStopThroughout() 395 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testMultipleFGS() [all …]
|
/frameworks/base/core/java/android/service/credentials/ |
D | CredentialProviderInfoFactory.java | 34 import android.content.pm.ServiceInfo; 115 @NonNull ServiceInfo serviceInfo, in create() 144 @NonNull ServiceInfo serviceInfo, in createForTests() 157 private static void verifyProviderPermission(ServiceInfo serviceInfo) throws SecurityException { in verifyProviderPermission() 167 ServiceInfo serviceInfo, Context context) { in isSystemProviderWithValidPermission() 180 ServiceInfo serviceInfo, in isValidSystemProvider() 202 @NonNull Context context, ServiceInfo serviceInfo) { in populateMetadata() 243 @NonNull ServiceInfo serviceInfo, in extractXmlMetadata() 353 private static ServiceInfo getServiceInfoOrThrow( in getServiceInfoOrThrow() 357 ServiceInfo si = in getServiceInfoOrThrow() [all …]
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | RecognitionServiceInfo.java | 25 import android.content.pm.ServiceInfo; 53 private final ServiceInfo mServiceInfo; 89 static RecognitionServiceInfo parseInfo(@NonNull PackageManager pm, @NonNull ServiceInfo si) { in parseInfo() 129 @NonNull ServiceInfo si, boolean selectableAsDefault, @NonNull String parseError) { in RecognitionServiceInfo() 141 public ServiceInfo getServiceInfo() { in getServiceInfo()
|
/frameworks/base/core/java/android/service/voice/ |
D | VoiceInteractionServiceInfo.java | 25 import android.content.pm.ServiceInfo; 45 private ServiceInfo mServiceInfo; 69 private static ServiceInfo getServiceInfoOrThrow(@NonNull ComponentName comp, int userHandle) in getServiceInfoOrThrow() 72 ServiceInfo si = AppGlobals.getPackageManager().getServiceInfo(comp, in getServiceInfoOrThrow() 93 public VoiceInteractionServiceInfo(@NonNull PackageManager pm, @NonNull ServiceInfo si) { in VoiceInteractionServiceInfo() 164 public ServiceInfo getServiceInfo() { in getServiceInfo()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | RegisteredServicesCacheTest.java | 105 Collection<RegisteredServicesCache.ServiceInfo<TestServiceType>> allServices = cache in testGetAllServicesReplaceUid() 109 for (RegisteredServicesCache.ServiceInfo<TestServiceType> srv : allServices) { in testGetAllServicesReplaceUid() 205 private static RegisteredServicesCache.ServiceInfo<TestServiceType> newServiceInfo( in newServiceInfo() 210 return new RegisteredServicesCache.ServiceInfo<>(type, info, null); in newServiceInfo() 227 private SparseArray<Map<ResolveInfo, ServiceInfo<TestServiceType>>> mServices 243 Map<ResolveInfo, ServiceInfo<TestServiceType>> map = mServices in queryIntentServices() 244 .get(userId, new HashMap<ResolveInfo, ServiceInfo<TestServiceType>>()); in queryIntentServices() 276 ServiceInfo<TestServiceType> serviceInfo) { in addServiceForQuerying() 277 Map<ResolveInfo, ServiceInfo<TestServiceType>> map = mServices.get(userId); in addServiceForQuerying() 303 protected ServiceInfo<TestServiceType> parseServiceInfo( in parseServiceInfo() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/ |
D | GameServiceProviderSelectorImplTest.java | 36 import android.content.pm.ServiceInfo; 86 private static final ServiceInfo GAME_SERVICE_B_WITH_OUT_META_DATA = 88 private static final ServiceInfo GAME_SERVICE_B_SERVICE_INFO = 96 private static final ServiceInfo GAME_SERVICE_SERVICE_INFO_WITHOUT_META_DATA = 98 private static final ServiceInfo GAME_SERVICE_SERVICE_INFO = 406 private static ResolveInfo resolveInfo(ServiceInfo serviceInfo) { in resolveInfo() 412 private static ServiceInfo serviceInfo(String packageName, String name) { in serviceInfo() 417 ServiceInfo serviceInfo = new ServiceInfo(); in serviceInfo() 426 private static ServiceInfo addGameServiceMetaData(ServiceInfo serviceInfo, int resId) { in addGameServiceMetaData()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | PackageManagerAdapter.java | 26 import android.content.pm.ServiceInfo; 48 public ServiceInfo getServiceInfo(ComponentName className, int flags, int userId) in getServiceInfo() 53 public ServiceInfo getServiceInfo(ComponentName component, int flags) in getServiceInfo()
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
D | ServiceInfo.java | 40 public class ServiceInfo { class 52 public ServiceInfo(Map<Locale, String> newNames, String newClassName, List<Locale> newLocales, in ServiceInfo() method in ServiceInfo 76 protected ServiceInfo(Parcel in) { in ServiceInfo() method in ServiceInfo 189 if (!(o instanceof ServiceInfo)) { in equals() 192 ServiceInfo that = (ServiceInfo) o; in equals()
|
/frameworks/base/core/java/android/credentials/ |
D | CredentialProviderInfo.java | 25 import android.content.pm.ServiceInfo; 43 @NonNull private final ServiceInfo mServiceInfo; 76 public ServiceInfo getServiceInfo() { in getServiceInfo() 192 mServiceInfo = in.readTypedObject(ServiceInfo.CREATOR); in CredentialProviderInfo() 218 @NonNull private ServiceInfo mServiceInfo; 232 public Builder(@NonNull ServiceInfo serviceInfo) { in Builder()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ForegroundServiceTypeLoggerModule.java | 37 import android.content.pm.ServiceInfo; 445 if ((fgsType & ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA) in convertFgsTypeToApiTypes() 446 == ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA) { in convertFgsTypeToApiTypes() 449 if ((fgsType & ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE) in convertFgsTypeToApiTypes() 450 == ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE) { in convertFgsTypeToApiTypes() 455 if ((fgsType & ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION) in convertFgsTypeToApiTypes() 456 == ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION) { in convertFgsTypeToApiTypes() 459 if ((fgsType & ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK) in convertFgsTypeToApiTypes() 460 == ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK) { in convertFgsTypeToApiTypes() 464 if ((fgsType & ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE) in convertFgsTypeToApiTypes() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/ |
D | TestUtils.java | 27 import android.content.pm.ServiceInfo; 61 ServiceInfo serviceInfo = mock(ServiceInfo.class); in createFakeServiceInfo()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/data/repository/ |
D | FakePackageManagerAdapterFacade.kt | 21 import android.content.pm.ServiceInfo 64 private fun createServiceInfo(): ServiceInfo { in createServiceInfo() 65 return ServiceInfo().apply { in createServiceInfo()
|
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/ |
D | TestUtils.java | 22 import android.content.pm.ServiceInfo; 87 final ServiceInfo si = new ServiceInfo(); in createFakeInputMethodInfo()
|
/frameworks/base/services/core/java/com/android/server/appbinding/ |
D | AppBindingUtils.java | 25 import android.content.pm.ServiceInfo; 47 public static ServiceInfo findService(@NonNull String packageName, int userId, in findService() 73 final ServiceInfo si = list.get(0).serviceInfo; in findService()
|