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

1 2 3

  /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...]
  /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...]
ResolveInfo_DisplayNameComparatorTest.java 38 ResolveInfo serviceInfo = pm.resolveService(intent, PackageManager.GET_RESOLVED_FILTER);
40 assertTrue(dnc.compare(activityInfo, serviceInfo) < 0);
42 assertTrue(dnc.compare(serviceInfo, activityInfo) > 0);
  /development/samples/training/NsdChat/src/com/example/android/nsdchat/
NsdHelper.java 105 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) {
110 public void onServiceResolved(NsdServiceInfo serviceInfo) {
111 Log.e(TAG, "Resolve Succeeded. " + serviceInfo);
113 if (serviceInfo.getServiceName().equals(mServiceName)) {
117 mService = serviceInfo;
139 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode) {
146 NsdServiceInfo serviceInfo = new NsdServiceInfo();
147 serviceInfo.setPort(port);
148 serviceInfo.setServiceName(mServiceName);
149 serviceInfo.setServiceType(SERVICE_TYPE)
    [all...]
  /frameworks/base/core/java/android/app/
WallpaperInfo.java 27 import android.content.pm.ServiceInfo;
85 ServiceInfo si = service.serviceInfo;
157 return mService.serviceInfo.packageName;
165 return mService.serviceInfo.name;
172 public ServiceInfo getServiceInfo() {
173 return mService.serviceInfo;
180 return new ComponentName(mService.serviceInfo.packageName,
181 mService.serviceInfo.name);
213 return pm.getDrawable(mService.serviceInfo.packageName
    [all...]
  /frameworks/support/v7/mediarouter/src/android/support/v7/media/
RegisteredMediaRouteProviderWatcher.java 26 import android.content.pm.ServiceInfo;
71 ServiceInfo serviceInfo = resolveInfo.serviceInfo;
72 if (serviceInfo != null) {
73 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name);
77 new ComponentName(serviceInfo.packageName, serviceInfo.name));
  /frameworks/base/core/java/android/content/pm/
ResolveInfo.java 39 * serviceInfo must be non-null.
48 public ServiceInfo serviceInfo;
144 ComponentInfo ci = activityInfo != null ? activityInfo : serviceInfo;
178 ComponentInfo ci = activityInfo != null ? activityInfo : serviceInfo;
199 if (serviceInfo != null) return serviceInfo.getIconResource();
224 } else if (serviceInfo != null) {
225 pw.println(prefix + "ServiceInfo:");
226 serviceInfo.dump(pw, prefix + " ")
    [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...]
  /frameworks/base/core/java/android/net/nsd/
NsdManager.java 271 public void onServiceFound(NsdServiceInfo serviceInfo);
273 public void onServiceLost(NsdServiceInfo serviceInfo);
280 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode);
282 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode);
284 public void onServiceRegistered(NsdServiceInfo serviceInfo);
286 public void onServiceUnregistered(NsdServiceInfo serviceInfo);
292 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode);
294 public void onServiceResolved(NsdServiceInfo serviceInfo);
449 * @param serviceInfo The service being registered
454 public void registerService(NsdServiceInfo serviceInfo, int protocolType
    [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...]
ServiceWatcher.java 175 String packageName = rInfo.serviceInfo.packageName;
194 if (rInfo.serviceInfo.metaData != null) {
195 version = rInfo.serviceInfo.metaData.getInt(
197 isMultiuser = rInfo.serviceInfo.metaData.getBoolean(EXTRA_SERVICE_IS_MULTIUSER);
  /frameworks/base/core/java/android/webkit/
PluginManager.java 30 import android.content.pm.ServiceInfo;
127 ServiceInfo serviceInfo = info.serviceInfo;
128 if (serviceInfo == null) {
136 pkgInfo = pm.getPackageInfo(serviceInfo.packageName,
140 Log.w(LOGTAG, "Can't find plugin: " + serviceInfo.packageName);
169 if (serviceInfo.metaData == null) {
170 Log.e(LOGTAG, "The plugin '" + serviceInfo.name + "' has no type defined");
174 String pluginType = serviceInfo.metaData.getString(PLUGIN_TYPE)
    [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/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
LiveWallpaperChange.java 34 import android.content.pm.ServiceInfo;
65 if (ri.serviceInfo.name.equals(comp.getClassName())) {
70 Log.w(TAG, "Bad wallpaper " + ri.serviceInfo, e);
74 Log.w(TAG, "Bad wallpaper " + ri.serviceInfo, e);
  /frameworks/base/core/java/android/view/inputmethod/
InputMethodInfo.java 28 import android.content.pm.ServiceInfo;
113 ServiceInfo si = service.serviceInfo;
243 final ServiceInfo si = ri.serviceInfo;
258 ServiceInfo si = new ServiceInfo();
268 ri.serviceInfo = si;
284 return mService.serviceInfo.packageName;
292 return mService.serviceInfo.name
    [all...]
  /frameworks/base/core/java/android/view/textservice/
SpellCheckerInfo.java 26 import android.content.pm.ServiceInfo;
67 ServiceInfo si = service.serviceInfo;
160 mService.serviceInfo.packageName, mService.serviceInfo.name);
167 return mService.serviceInfo.packageName;
209 return pm.getText(getPackageName(), mLabel, mService.serviceInfo.applicationInfo);
226 public ServiceInfo getServiceInfo() {
227 return mService.serviceInfo;
  /packages/apps/Settings/src/com/android/settings/
DreamBackend.java 29 import android.content.pm.ServiceInfo;
104 if (resolveInfo.serviceInfo == null)
134 ServiceInfo ri = pm.getServiceInfo(cn, 0);
234 if (resolveInfo == null || resolveInfo.serviceInfo == null)
236 return new ComponentName(resolveInfo.serviceInfo.packageName, resolveInfo.serviceInfo.name);
241 || resolveInfo.serviceInfo == null
242 || resolveInfo.serviceInfo.metaData == null)
248 parser = resolveInfo.serviceInfo.loadXmlMetaData(pm, DreamService.DREAM_META_DATA);
253 Resources res = pm.getResourcesForApplication(resolveInfo.serviceInfo.applicationInfo)
    [all...]
VoiceInputOutputSettings.java 23 import android.content.pm.ServiceInfo;
124 new ComponentName(resolveInfo.serviceInfo.packageName,
125 resolveInfo.serviceInfo.name).flattenToShortString();
166 new ComponentName(resolveInfo.serviceInfo.packageName,
167 resolveInfo.serviceInfo.name).flattenToShortString();
188 ServiceInfo si = currentRecognizer.serviceInfo;
AccessibilitySettings.java 32 import android.content.pm.ServiceInfo;
382 ServiceInfo serviceInfo = info.getResolveInfo().serviceInfo;
383 ComponentName componentName = new ComponentName(serviceInfo.packageName,
384 serviceInfo.name);
417 new ComponentName(info.getResolveInfo().serviceInfo.packageName,
587 resolveInfo.serviceInfo.packageName,
588 resolveInfo.serviceInfo.name);
    [all...]
  /frameworks/base/core/tests/coretests/src/android/content/pm/
ComponentTest.java 289 assertNotNull(info2.serviceInfo);
290 assertFalse(info2.serviceInfo.enabled);
302 assertNotNull(info.serviceInfo);
303 assertTrue(info.serviceInfo.enabled);
322 assertNotNull(info.serviceInfo);
323 assertFalse(info.serviceInfo.enabled);
337 assertNotNull(info.serviceInfo);
338 assertTrue(info.serviceInfo.enabled);
354 final ServiceInfo serviceInfo
    [all...]
  /frameworks/base/core/java/android/accessibilityservice/
AccessibilityServiceInfo.java 24 import android.content.pm.ServiceInfo;
409 ServiceInfo serviceInfo = resolveInfo.serviceInfo;
410 mId = new ComponentName(serviceInfo.packageName, serviceInfo.name).flattenToShortString();
417 parser = serviceInfo.loadXmlMetaData(packageManager,
436 serviceInfo.applicationInfo);
485 + serviceInfo.packageName);
621 ServiceInfo serviceInfo = mResolveInfo.serviceInfo
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/
EnableAccessibilityController.java 24 import android.content.pm.ServiceInfo;
245 ServiceInfo serviceInfo = service.getResolveInfo().serviceInfo;
246 ComponentName componentName = new ComponentName(serviceInfo.packageName, serviceInfo.name);
  /packages/apps/Phone/src/com/android/phone/
RespondViaSmsManager.java 33 import android.content.pm.ServiceInfo;
338 ServiceInfo serviceInfo = null;
340 serviceInfo = packageManager.getServiceInfo(componentName, 0);
345 if (serviceInfo != null &&
346 PERMISSION_SEND_RESPOND_VIA_MESSAGE.equals(serviceInfo.permission)) {
385 final ServiceInfo serviceInfo = resolveInfo.serviceInfo;
386 if (serviceInfo == null)
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
VoiceSearch.java 98 ComponentInfo ci = ri.activityInfo != null ? ri.activityInfo : ri.serviceInfo;
  /frameworks/base/services/tests/servicestests/src/com/android/server/
AccessibilityManagerServiceTest.java 23 import android.content.pm.ServiceInfo;
166 ServiceInfo serviceInfo = info.getResolveInfo().serviceInfo;
167 if (packageName.equals(serviceInfo.packageName)) {
168 if (firstMockServiceClassName.equals(serviceInfo.name)) {
170 } else if (secondMockServiceClassName.equals(serviceInfo.name)) {

Completed in 1136 milliseconds

1 2 3