HomeSort by relevance Sort by last modified time
    Searched refs:serviceInfo (Results 1 - 25 of 184) sorted by null

1 2 3 4 5 6 7 8

  /frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
NsdResolveQueue.java 56 * Container for a request to resolve a serviceInfo.
60 final @NonNull NsdServiceInfo serviceInfo;
64 @NonNull NsdServiceInfo serviceInfo, @NonNull NsdManager.ResolveListener listener) {
66 this.serviceInfo = serviceInfo;
72 * Resolve a serviceInfo or queue the request if there is a request currently in flight.
75 * @param serviceInfo The service info to resolve
78 public void resolve(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo,
81 mResolveRequests.addLast(new NsdResolveRequest(nsdManager, serviceInfo,
102 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode)
    [all...]
DiscoveryListenerMultiplexer.java 154 public void onServiceFound(NsdServiceInfo serviceInfo) {
160 listener.onServiceFound(serviceInfo);
166 public void onServiceLost(NsdServiceInfo serviceInfo) {
172 listener.onServiceLost(serviceInfo);
  /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...]
  /frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
PrinterHashMap.java 24 public static String getKey(NsdServiceInfo serviceInfo) {
25 return serviceInfo.getServiceName();
ServiceResolveQueue.java 61 public void queueRequest(NsdServiceInfo serviceInfo, ResolveCallback callback) {
63 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback);
70 public void removeRequest(NsdServiceInfo serviceInfo, ResolveCallback callback) {
72 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback);
  /frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
PrinterHashMap.java 24 public static String getKey(NsdServiceInfo serviceInfo) {
25 return serviceInfo.getServiceName();
ServiceResolveQueue.java 61 public void queueRequest(NsdServiceInfo serviceInfo, ResolveCallback callback) {
63 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback);
70 public void removeRequest(NsdServiceInfo serviceInfo, ResolveCallback callback) {
72 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback);
  /frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
PrinterHashMap.java 23 public static String getKey(NsdServiceInfo serviceInfo) {
24 return serviceInfo.getServiceName();
ServiceResolver.java 106 private void queueRequest(NsdServiceInfo serviceInfo) {
108 if (mQueue.contains(serviceInfo)) return;
109 mQueue.add(serviceInfo);
114 private void removeRequest(NsdServiceInfo serviceInfo) {
116 mQueue.remove(serviceInfo);
117 if ((mCurrentRequest != null) && serviceInfo.equals(mCurrentRequest))
  /frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/mdnsFilter/
MDNSFilterPlugin.java 149 public void onServiceFound(NsdServiceInfo serviceInfo) {
150 mResolveQueue.resolve(getNDSManager(), serviceInfo,
153 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) {
154 Log.w(LOG_TAG, "Service found: could not resolve " + serviceInfo + ": " +
159 public void onServiceResolved(NsdServiceInfo serviceInfo) {
160 if (MDNSUtils.isVendorPrinter(serviceInfo, mMDNSNames)) {
162 boolean added = mPrinters.add(serviceInfo.getHost().getHostAddress());
174 public void onServiceLost(NsdServiceInfo serviceInfo) {
175 mResolveQueue.resolve(getNDSManager(), serviceInfo,
178 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode)
    [all...]
  /cts/tests/accessibility/src/android/view/accessibility/cts/
AccessibilityManagerTest.java 21 import android.content.pm.ServiceInfo;
100 ServiceInfo serviceInfo = installedService.getResolveInfo().serviceInfo;
101 if (getClass().getPackage().getName().equals(serviceInfo.packageName)
102 && SPEAKING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) {
105 if (getClass().getPackage().getName().equals(serviceInfo.packageName)
106 && VIBRATING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) {
123 ServiceInfo serviceInfo = enabledService.getResolveInfo().serviceInfo
    [all...]
  /frameworks/base/services/core/java/com/android/server/tv/
TvRemoteProviderWatcher.java 27 import android.content.pm.ServiceInfo;
114 ServiceInfo serviceInfo = resolveInfo.serviceInfo;
115 if (serviceInfo != null && verifyServiceTrusted(serviceInfo)) {
116 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name);
120 new ComponentName(serviceInfo.packageName, serviceInfo.name)
    [all...]
  /external/ims/rcs/rcsmanager/src/java/com/android/ims/
RcsPresenceInfo.java 309 Bundle serviceInfo = mServiceInfo.getBundle(String.valueOf(serviceType));
311 if (serviceInfo != null) {
312 return serviceInfo.getString(infoKey);
318 Bundle serviceInfo = mServiceInfo.getBundle(String.valueOf(serviceType));
319 if (serviceInfo != null) {
320 return serviceInfo.getLong(infoKey);
327 Bundle serviceInfo = mServiceInfo.getBundle(String.valueOf(serviceType));
328 if (serviceInfo != null) {
329 return serviceInfo.getInt(infoType);
335 Bundle serviceInfo = mServiceInfo.getBundle(String.valueOf(serviceType))
    [all...]
  /development/samples/training/NsdChat/src/com/example/android/nsdchat/
NsdHelper.java 101 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) {
106 public void onServiceResolved(NsdServiceInfo serviceInfo) {
107 Log.e(TAG, "Resolve Succeeded. " + serviceInfo);
109 if (serviceInfo.getServiceName().equals(mServiceName)) {
113 mService = serviceInfo;
138 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode) {
148 NsdServiceInfo serviceInfo = new NsdServiceInfo();
149 serviceInfo.setPort(port);
150 serviceInfo.setServiceName(mServiceName);
151 serviceInfo.setServiceType(SERVICE_TYPE)
    [all...]
  /frameworks/base/services/core/java/com/android/server/media/
RemoteDisplayProviderWatcher.java 27 import android.content.pm.ServiceInfo;
119 ServiceInfo serviceInfo = resolveInfo.serviceInfo;
120 if (serviceInfo != null && verifyServiceTrusted(serviceInfo)) {
121 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name);
125 new ComponentName(serviceInfo.packageName, serviceInfo.name)
    [all...]
  /packages/apps/Settings/src/com/android/settings/
TrustAgentUtils.java 48 String packageName = resolveInfo.serviceInfo.packageName;
66 if (resolveInfo == null || resolveInfo.serviceInfo == null) return null;
67 return new ComponentName(resolveInfo.serviceInfo.packageName, resolveInfo.serviceInfo.name);
72 if (resolveInfo == null || resolveInfo.serviceInfo == null
73 || resolveInfo.serviceInfo.metaData == null) return null;
79 parser = resolveInfo.serviceInfo.loadXmlMetaData(pm, TRUST_AGENT_META_DATA);
84 Resources res = pm.getResourcesForApplication(resolveInfo.serviceInfo.applicationInfo);
113 Slog.w(TAG, "Error parsing : " + resolveInfo.serviceInfo.packageName, caughtException);
117 cn = resolveInfo.serviceInfo.packageName + "/" + cn
    [all...]
  /frameworks/base/core/java/android/app/
WallpaperInfo.java 27 import android.content.pm.ServiceInfo;
90 ServiceInfo si = service.serviceInfo;
180 return mService.serviceInfo.packageName;
188 return mService.serviceInfo.name;
195 public ServiceInfo getServiceInfo() {
196 return mService.serviceInfo;
203 return new ComponentName(mService.serviceInfo.packageName,
204 mService.serviceInfo.name);
236 return pm.getDrawable(mService.serviceInfo.packageName
    [all...]
  /frameworks/base/core/java/android/net/nsd/
NsdManager.java 270 public void onServiceFound(NsdServiceInfo serviceInfo);
272 public void onServiceLost(NsdServiceInfo serviceInfo);
279 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode);
281 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode);
283 public void onServiceRegistered(NsdServiceInfo serviceInfo);
285 public void onServiceUnregistered(NsdServiceInfo serviceInfo);
291 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode);
293 public void onServiceResolved(NsdServiceInfo serviceInfo);
462 * @param serviceInfo The service being registered
468 public void registerService(NsdServiceInfo serviceInfo, int protocolType
    [all...]
  /packages/apps/Settings/src/com/android/settings/applications/
DefaultAssistPreference.java 82 private void setAssistService(Info serviceInfo) {
83 final String serviceComponentName = serviceInfo.component.flattenToShortString();
85 serviceInfo.component.getPackageName(),
86 serviceInfo.voiceInteractionServiceInfo.getRecognitionService())
98 serviceInfo.voiceInteractionServiceInfo.getSettingsActivity();
101 new ComponentName(serviceInfo.component.getPackageName(), settingsActivity));
120 if (resolveInfo == null || resolveInfo.serviceInfo == null) {
125 return new ComponentName(resolveInfo.serviceInfo.packageName,
126 resolveInfo.serviceInfo.name).flattenToShortString();
148 new VoiceInteractionServiceInfo(pm, resolveInfo.serviceInfo);
    [all...]
  /frameworks/support/v7/mediarouter/src/android/support/v7/media/
RegisteredMediaRouteProviderWatcher.java 26 import android.content.pm.ServiceInfo;
98 ServiceInfo serviceInfo = resolveInfo.serviceInfo;
99 if (serviceInfo != null) {
100 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name);
104 new ComponentName(serviceInfo.packageName, serviceInfo.name));
  /packages/apps/Settings/src/com/android/settings/voice/
VoiceInputHelper.java 24 import android.content.pm.ServiceInfo;
53 public final ServiceInfo service;
61 public BaseInfo(PackageManager pm, ServiceInfo _service, String _settings) {
79 public final VoiceInteractionServiceInfo serviceInfo;
83 serviceInfo = _service;
88 public RecognizerInfo(PackageManager pm, ServiceInfo _service, String _settings) {
132 mContext.getPackageManager(), resolveInfo.serviceInfo);
135 + resolveInfo.serviceInfo.packageName + "/"
136 + resolveInfo.serviceInfo.name + ": " + info.getParseError());
140 interactorRecognizers.add(new ComponentName(resolveInfo.serviceInfo.packageName
    [all...]
  /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...]
  /packages/apps/TV/tests/unit/src/com/android/tv/util/
TestUtils.java 20 import android.content.pm.ServiceInfo;
70 resolveInfo.serviceInfo = new ServiceInfo();
71 resolveInfo.serviceInfo.packageName = packageName;
72 resolveInfo.serviceInfo.name = name;
  /frameworks/base/core/tests/coretests/src/android/content/pm/
AppsQueryHelperTests.java 151 sysApp1.serviceInfo = new ServiceInfo();
152 sysApp1.serviceInfo.packageName = "sys_app1";
153 sysApp1.serviceInfo.name = "name";
154 sysApp1.serviceInfo.applicationInfo = new ApplicationInfo();
155 sysApp1.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM;
157 app4.serviceInfo = new ServiceInfo();
158 app4.serviceInfo.packageName = "app4";
159 app4.serviceInfo.name = "name"
    [all...]
  /frameworks/base/core/java/android/content/pm/
ResolveInfo.java 44 * Exactly one of {@link #activityInfo}, {@link #serviceInfo}, or
52 * {@link #serviceInfo}, or {@link #providerInfo} will be non-null.
54 public ServiceInfo serviceInfo;
59 * {@link #serviceInfo}, or {@link #providerInfo} will be non-null.
178 if (serviceInfo != null) return serviceInfo;
302 } else if (serviceInfo != null) {
303 pw.println(prefix + "ServiceInfo:");
304 serviceInfo.dump(pw, prefix + " ", flags)
    [all...]

Completed in 953 milliseconds

1 2 3 4 5 6 7 8