/frameworks/base/core/java/android/content/pm/ |
ServiceInfo.aidl | 20 parcelable ServiceInfo;
|
ServiceInfo.java | 28 public class ServiceInfo extends ComponentInfo 67 public ServiceInfo() { 70 public ServiceInfo(ServiceInfo orig) { 83 return "ServiceInfo{" 98 public static final Creator<ServiceInfo> CREATOR = 99 new Creator<ServiceInfo>() { 100 public ServiceInfo createFromParcel(Parcel source) { 101 return new ServiceInfo(source); 103 public ServiceInfo[] newArray(int size) [all...] |
RegisteredServicesCache.java | 91 public Map<V, ServiceInfo<V>> services = null; 173 for (ServiceInfo<?> info : user.services.values()) { 224 public static class ServiceInfo<V> { 230 public ServiceInfo(V type, ComponentName componentName, int uid) { 238 return "ServiceInfo: " + type + ", " + componentName + ", uid " + uid; 247 public ServiceInfo<V> getServiceInfo(V type, int userId) { 259 * @return a collection of {@link RegisteredServicesCache.ServiceInfo} objects for all 262 public Collection<ServiceInfo<V>> getAllServices(int userId) { 270 new ArrayList<ServiceInfo<V>>(user.services.values())); 300 final ArrayList<ServiceInfo<V>> serviceInfos = new ArrayList<ServiceInfo<V>>() [all...] |
/cts/tests/tests/content/src/android/content/pm/cts/ |
ServiceInfoTest.java | 22 import android.content.pm.ServiceInfo; 36 // Test ServiceInfo() 37 new ServiceInfo(); 39 ServiceInfo serviceInfo = pm.getServiceInfo(componentName, 0); 40 // Test ServiceInfo(ServiceInfo orig) 41 ServiceInfo infoFromExisted = new ServiceInfo(serviceInfo); [all...] |
/external/jmdns/src/javax/jmdns/ |
JmDNS.java | 35 public void cannotRecoverFromIOError(JmDNS dns, Collection<ServiceInfo> infos); 185 public abstract ServiceInfo getServiceInfo(String type, String name); 200 public abstract ServiceInfo getServiceInfo(String type, String name, long timeout); 215 public abstract ServiceInfo getServiceInfo(String type, String name, boolean persistent); 232 public abstract ServiceInfo getServiceInfo(String type, String name, boolean persistent, long timeout); 326 * Note that the given {@code ServiceInfo} is bound to this {@code JmDNS} instance, and should not be reused for any other {@linkplain #registerService(ServiceInfo)}. 333 public abstract void registerService(ServiceInfo info) throws IOException; 350 public abstract void unregisterService(ServiceInfo info); 384 public abstract ServiceInfo[] list(String type) [all...] |
JmmDNS.java | 159 public abstract ServiceInfo[] getServiceInfos(String type, String name); 175 public abstract ServiceInfo[] getServiceInfos(String type, String name, long timeout); 191 public abstract ServiceInfo[] getServiceInfos(String type, String name, boolean persistent); 209 public abstract ServiceInfo[] getServiceInfos(String type, String name, boolean persistent, long timeout); 311 * @see javax.jmdns.JmDNS#registerService(javax.jmdns.ServiceInfo) 313 public abstract void registerService(ServiceInfo info) throws IOException; 320 * @see javax.jmdns.JmDNS#unregisterService(javax.jmdns.ServiceInfo) 322 public abstract void unregisterService(ServiceInfo info); 348 public abstract ServiceInfo[] list(String type); 360 public abstract ServiceInfo[] list(String type, long timeout) [all...] |
ServiceInfo.java | 33 public abstract class ServiceInfo implements Cloneable { 79 public static ServiceInfo create(final String type, final String name, final int port, final String text) { 98 public static ServiceInfo create(final String type, final String name, final String subtype, final int port, final String text) { 119 public static ServiceInfo create(final String type, final String name, final int port, final int weight, final int priority, final String text) { 142 public static ServiceInfo create(final String type, final String name, final String subtype, final int port, final int weight, final int priority, final String text) { 163 public static ServiceInfo create(final String type, final String name, final int port, final int weight, final int priority, final Map<String, ?> props) { 186 public static ServiceInfo create(final String type, final String name, final String subtype, final int port, final int weight, final int priority, final Map<String, ?> props) { 207 public static ServiceInfo create(final String type, final String name, final int port, final int weight, final int priority, final byte[] text) { 230 public static ServiceInfo create(final String type, final String name, final String subtype, final int port, final int weight, final int priority, final byte[] text) { 253 public static ServiceInfo create(final String type, final String name, final int port, final int weight, final int priority, (…) [all...] |
ServiceEvent.java | 58 public abstract ServiceInfo getInfo();
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/ |
AccessibilityManager.java | 21 import android.content.pm.ServiceInfo; 101 * Returns the {@link ServiceInfo}s of the installed accessibility services. 103 * @return An unmodifiable list with {@link ServiceInfo}s. 105 public List<ServiceInfo> getAccessibilityServiceList() { 108 List<ServiceInfo> services = null;
|
/external/jmdns/src/javax/jmdns/impl/ |
JmmDNSImpl.java | 31 import javax.jmdns.ServiceInfo; 54 private final ConcurrentMap<String, ServiceInfo> _services; 69 _services = new ConcurrentHashMap<String, ServiceInfo>(20); 171 public ServiceInfo[] getServiceInfos(String type, String name) { 180 public ServiceInfo[] getServiceInfos(String type, String name, long timeout) { 189 public ServiceInfo[] getServiceInfos(String type, String name, boolean persistent) { 198 public ServiceInfo[] getServiceInfos(final String type, final String name, final boolean persistent, final long timeout) { 200 final Set<ServiceInfo> result = Collections.synchronizedSet(new HashSet<ServiceInfo>(_knownMDNS.size())); 219 return result.toArray(new ServiceInfo[result.size()]) [all...] |
ServiceEventImpl.java | 9 import javax.jmdns.ServiceInfo; 36 private final ServiceInfo _info; 50 public ServiceEventImpl(JmDNSImpl jmDNS, String type, String name, ServiceInfo info) { 110 public ServiceInfo getInfo() {
|
ListenerStatus.java | 13 import javax.jmdns.ServiceInfo; 29 private final ConcurrentMap<String, ServiceInfo> _addedServices; 39 _addedServices = new ConcurrentHashMap<String, ServiceInfo>(32); 48 * ServiceInfo info = event.getDNS().getServiceInfo(event.getType(), event.getName()) 61 ServiceInfo info = event.getInfo(); 86 * A service has been resolved. Its details are now available in the ServiceInfo record.<br/> 93 ServiceInfo info = event.getInfo(); 96 ServiceInfo previousServiceInfo = _addedServices.get(qualifiedName); 116 private static final boolean _sameInfo(ServiceInfo info, ServiceInfo lastInfo) [all...] |
JmDNSImpl.java | 37 import javax.jmdns.ServiceInfo; 38 import javax.jmdns.ServiceInfo.Fields; 93 * This hashtable holds the services that have been registered. Keys are instances of String which hold an all lower-case version of the fully qualified service name. Values are instances of ServiceInfo. 95 private final ConcurrentMap<String, ServiceInfo> _services; 404 _services = new ConcurrentHashMap<String, ServiceInfo>(20); 426 private void start(Collection<? extends ServiceInfo> serviceInfos) { 432 for (ServiceInfo info : serviceInfos) { 710 public ServiceInfo getServiceInfo(String type, String name) { 718 public ServiceInfo getServiceInfo(String type, String name, long timeout) { 726 public ServiceInfo getServiceInfo(String type, String name, boolean persistent) [all...] |
DNSRecord.java | 20 import javax.jmdns.ServiceInfo; 21 import javax.jmdns.ServiceInfo.Fields; 206 public ServiceInfo getServiceInfo(boolean persistent) { 251 public ServiceInfo getServiceInfo(boolean persistent) { 350 for (ServiceInfo serviceInfo : dns.getServices().values()) { 351 ServiceInfoImpl info = (ServiceInfoImpl) serviceInfo; 372 for (ServiceInfo serviceInfo : dns.getServices().values()) { 373 ServiceInfoImpl info = (ServiceInfoImpl) serviceInfo; [all...] |
/frameworks/base/services/java/com/android/server/accounts/ |
IAccountAuthenticatorCache.java | 35 * Accessor for the {@link android.content.pm.RegisteredServicesCache.ServiceInfo} that 39 * @return the {@link android.content.pm.RegisteredServicesCache.ServiceInfo} that 42 RegisteredServicesCache.ServiceInfo<AuthenticatorDescription> getServiceInfo( 48 Collection<RegisteredServicesCache.ServiceInfo<AuthenticatorDescription>> getAllServices(
|
/cts/tests/tests/accessibility/src/android/view/accessibility/cts/ |
AccessibilityManagerTest.java | 21 import android.content.pm.ServiceInfo; 86 ServiceInfo serviceInfo = installedService.getResolveInfo().serviceInfo; 87 if (SOME_ACCESSIBLITY_SERVICES_PACKAGE_NAME.equals(serviceInfo.packageName) 88 && SPEAKING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) { 91 if (SOME_ACCESSIBLITY_SERVICES_PACKAGE_NAME.equals(serviceInfo.packageName) 92 && VIBRATING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) { 109 ServiceInfo serviceInfo = enabledService.getResolveInfo().serviceInfo [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
IsolatedService.java | 106 static class ServiceInfo { 113 ServiceInfo(Activity activity, Class<?> clz, 184 ServiceInfo mService1; 185 ServiceInfo mService2; 193 mService1 = new ServiceInfo(this, IsolatedService.class, R.id.start1, R.id.stop1, 195 mService2 = new ServiceInfo(this, IsolatedService2.class, R.id.start2, R.id.stop2,
|
/external/jmdns/src/javax/jmdns/impl/tasks/resolver/ |
ServiceResolver.java | 9 import javax.jmdns.ServiceInfo; 49 for (ServiceInfo info : this.getDns().getServices().values()) {
|
/external/jmdns/src/javax/jmdns/impl/tasks/state/ |
DNSStateTask.java | 10 import javax.jmdns.ServiceInfo; 80 for (ServiceInfo serviceInfo : this.getDns().getServices().values()) { 81 ((ServiceInfoImpl) serviceInfo).associateWithTask(this, state); 95 for (ServiceInfo serviceInfo : this.getDns().getServices().values()) { 96 ((ServiceInfoImpl) serviceInfo).removeAssociationWithTask(this); 118 for (ServiceInfo serviceInfo : this.getDns().getServices().values()) { 119 ServiceInfoImpl info = (ServiceInfoImpl) serviceInfo; [all...] |
/frameworks/base/services/java/com/android/server/ |
RecognitionManagerService.java | 29 import android.content.pm.ServiceInfo; 92 ServiceInfo info = null; 120 ServiceInfo serviceInfo = available.get(i).serviceInfo; 121 if (prefPackage.equals(serviceInfo.packageName)) { 122 return new ComponentName(serviceInfo.packageName, serviceInfo.name); 130 ServiceInfo serviceInfo = available.get(0).serviceInfo [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
AccountManagerServiceTest.java | 24 import android.content.pm.RegisteredServicesCache.ServiceInfo; 192 private ArrayList<ServiceInfo<AuthenticatorDescription>> mServices; 195 mServices = new ArrayList<ServiceInfo<AuthenticatorDescription>>(); 198 mServices.add(new ServiceInfo<AuthenticatorDescription>(d1, null, 0)); 199 mServices.add(new ServiceInfo<AuthenticatorDescription>(d2, null, 0)); 203 public ServiceInfo<AuthenticatorDescription> getServiceInfo( 205 for (ServiceInfo<AuthenticatorDescription> service : mServices) { 214 public Collection<ServiceInfo<AuthenticatorDescription>> getAllServices(int userId) {
|
/frameworks/base/core/java/android/view/accessibility/ |
AccessibilityManager.java | 23 import android.content.pm.ServiceInfo; 299 * Returns the {@link ServiceInfo}s of the installed accessibility services. 301 * @return An unmodifiable list with {@link ServiceInfo}s. 306 public List<ServiceInfo> getAccessibilityServiceList() { 308 List<ServiceInfo> services = new ArrayList<ServiceInfo>(); 312 services.add(info.getResolveInfo().serviceInfo);
|
/development/apps/Development/src/com/android/development/ |
SyncAdapterDriver.java | 93 Collection<RegisteredServicesCache.ServiceInfo<SyncAdapterType>> all = 99 for (RegisteredServicesCache.ServiceInfo<SyncAdapterType> item : all) { 225 final RegisteredServicesCache.ServiceInfo<SyncAdapterType> mSyncAdapter; 228 RegisteredServicesCache.ServiceInfo<SyncAdapterType> syncAdapter) { 287 RegisteredServicesCache.ServiceInfo<SyncAdapterType> syncAdapter = 325 private RegisteredServicesCache.ServiceInfo<SyncAdapterType> getSelectedSyncAdapter() { 333 return (RegisteredServicesCache.ServiceInfo<SyncAdapterType>)
|
/packages/apps/Settings/src/com/android/settings/ |
NotificationAccessSettings.java | 28 import android.content.pm.ServiceInfo; 210 private static int getListeners(ArrayAdapter<ServiceInfo> adapter, PackageManager pm) { 224 ServiceInfo info = resolveInfo.serviceInfo; 242 boolean isListenerEnabled(ServiceInfo info) { 249 ServiceInfo info = mList.getItem(position); 270 class ListenerListAdapter extends ArrayAdapter<ServiceInfo> { 311 ServiceInfo info = getItem(position);
|
/frameworks/base/core/java/android/view/inputmethod/ |
InputMethodInfo.java | 28 import android.content.pm.ServiceInfo; 130 ServiceInfo si = service.serviceInfo; 269 final ServiceInfo si = ri.serviceInfo; 285 ServiceInfo si = new ServiceInfo(); 295 ri.serviceInfo = si; 311 return mService.serviceInfo.packageName; 319 return mService.serviceInfo.name [all...] |