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

1 2 3 4 5

  /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/core/tests/coretests/src/android/view/inputmethod/
InputMethodInfoTest.java 26 import android.content.pm.ServiceInfo;
74 final ServiceInfo serviceInfo = new ServiceInfo();
75 serviceInfo.applicationInfo = context.getApplicationInfo();
76 serviceInfo.packageName = context.getPackageName();
77 serviceInfo.name = "DummyImeForTest";
78 serviceInfo.metaData = new Bundle();
79 serviceInfo.metaData.putInt(InputMethod.SERVICE_META_DATA, metaDataRes);
81 resolveInfo.serviceInfo = serviceInfo
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/trustagent/
TrustAgentFeatureProviderImplTest.java 20 import android.content.pm.ServiceInfo;
60 ServiceInfo serviceInfo = new ServiceInfo();
61 serviceInfo.packageName = CANNED_PACKAGE_NAME;
63 resolveInfo.serviceInfo = serviceInfo;
73 ServiceInfo serviceInfo = new ServiceInfo();
    [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.
182 if (serviceInfo != null) return serviceInfo;
306 } else if (serviceInfo != null) {
307 pw.println(prefix + "ServiceInfo:");
308 serviceInfo.dump(pw, prefix + " ", flags)
    [all...]
AppsQueryHelper.java 142 ServiceInfo serviceInfo = resolveInfos.get(i).serviceInfo;
143 if (systemAppsOnly && !serviceInfo.applicationInfo.isSystemApp()) {
146 if (!result.contains(serviceInfo.packageName)) {
147 result.add(serviceInfo.packageName);
  /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/tests/servicestests/src/com/android/server/
NetworkScorerAppManagerTest.java 41 import android.content.pm.ServiceInfo;
588 final ResolveInfo serviceInfo = new ResolveInfo();
589 serviceInfo.serviceInfo = new ServiceInfo();
590 serviceInfo.serviceInfo.name = compName.getClassName();
591 serviceInfo.serviceInfo.packageName = compName.getPackageName();
592 serviceInfo.serviceInfo.applicationInfo = new ApplicationInfo()
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
AccessibilityFragment.java 23 import android.content.pm.ServiceInfo;
122 final ServiceInfo serviceInfo = accInfo.getResolveInfo().serviceInfo;
123 final ComponentName componentName = new ComponentName(serviceInfo.packageName,
124 serviceInfo.name);
142 serviceInfo.packageName,
143 serviceInfo.name,
  /frameworks/base/core/java/android/content/
SyncAdaptersCache.java 115 final Collection<RegisteredServicesCache.ServiceInfo<SyncAdapterType>> serviceInfos;
118 for (RegisteredServicesCache.ServiceInfo<SyncAdapterType> serviceInfo : serviceInfos) {
119 if (authority.equals(serviceInfo.type.authority)
120 && serviceInfo.componentName != null) {
121 packages.add(serviceInfo.componentName.getPackageName());
  /frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
MDNSFilteredDiscovery.java 158 public void onServiceFound(NsdServiceInfo serviceInfo) {
159 mResolveQueue.resolve(getNDSManager(), serviceInfo,
162 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) {
163 Log.w(LOG_TAG, "Service found: could not resolve " + serviceInfo + ": " +
168 public void onServiceResolved(NsdServiceInfo serviceInfo) {
169 if (mPrinterFilter.matchesCriteria(serviceInfo)) {
171 boolean added = mPrinters.add(serviceInfo.getHost());
182 public void onServiceLost(NsdServiceInfo serviceInfo) {
183 mResolveQueue.resolve(getNDSManager(), serviceInfo,
186 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode)
    [all...]
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...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
CarrierServicesSmsFilterTest.java 33 import android.content.pm.ServiceInfo;
138 new ServiceInfo());
151 ServiceInfo serviceInfo = new ServiceInfo();
152 serviceInfo.packageName = SYSTEM_APP_PACKAGE_NAME;
158 serviceInfo);
  /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/Nfc/src/com/android/nfc/cardemulation/
EnabledNfcFServices.java 114 NfcFServiceInfo serviceInfo = mNfcFServiceCache.getService(
116 if (serviceInfo == null) {
119 if (serviceInfo.getSystemCode().equalsIgnoreCase("NULL") ||
120 serviceInfo.getNfcid2().equalsIgnoreCase("NULL")) {
TapAgainDialog.java 65 ApduServiceInfo serviceInfo = intent.getParcelableExtra(EXTRA_APDU_SERVICE);
76 String description = serviceInfo.getDescription();
78 CharSequence label = serviceInfo.loadLabel(pm);
AppChooserActivity.java 169 mCardEmuManager.setDefaultForNextTap(info.serviceInfo.getComponent());
172 dialogIntent.putExtra(TapAgainDialog.EXTRA_APDU_SERVICE, info.serviceInfo);
178 ApduServiceInfo serviceInfo;
183 public DisplayAppInfo(ApduServiceInfo serviceInfo, CharSequence label, Drawable icon,
185 this.serviceInfo = serviceInfo;
  /packages/apps/Settings/src/com/android/settings/notification/
NotificationAccessConfirmationActivity.java 33 import android.content.pm.ServiceInfo;
86 ServiceInfo serviceInfo = getPackageManager().getServiceInfo(mComponentName, 0);
87 if (!requiredPermission.equals(serviceInfo.permission)) {
  /packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/
DefaultAssistPreferenceControllerTest.java 28 import android.content.pm.ServiceInfo;
103 final ServiceInfo serviceInfo = new ServiceInfo();
104 serviceInfo.permission = Manifest.permission.BIND_VOICE_INTERACTION;
105 resolveInfo.serviceInfo = serviceInfo;
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
PhotoPriorityResolver.java 26 import android.content.pm.ServiceInfo;
129 final ServiceInfo serviceInfo = resolveInfo.serviceInfo;
130 if (serviceInfo == null) {
134 final XmlResourceParser parser = serviceInfo.loadXmlMetaData(
  /packages/services/BuiltInPrintService/src/com/android/bips/discovery/
NsdResolveQueue.java 60 * Resolve a serviceInfo or queue the request if there is a request currently in flight.
63 * @param serviceInfo The service info to resolve
66 public void resolve(NsdManager nsdManager, NsdServiceInfo serviceInfo,
69 Log.d(TAG, "Adding resolve of " + serviceInfo.getServiceName() + " to queue size=" +
72 mResolveRequests.addLast(new NsdResolveRequest(nsdManager, serviceInfo, listener));
99 final NsdServiceInfo serviceInfo;
104 NsdServiceInfo serviceInfo,
107 this.serviceInfo = serviceInfo;
113 if (DEBUG) Log.d(TAG, "resolveService " + serviceInfo.getServiceName())
    [all...]
  /cts/tests/accessibility/src/android/view/accessibility/cts/
AccessibilityManagerTest.java 22 import android.content.pm.ServiceInfo;
107 ServiceInfo serviceInfo = installedService.getResolveInfo().serviceInfo;
108 if (mTargetContext.getPackageName().equals(serviceInfo.packageName)
109 && SPEAKING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) {
112 if (mTargetContext.getPackageName().equals(serviceInfo.packageName)
113 && VIBRATING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) {
131 ServiceInfo serviceInfo = enabledService.getResolveInfo().serviceInfo
    [all...]
  /external/ims/rcs/rcsmanager/src/java/com/android/ims/
RcsPresenceInfo.java 311 Bundle serviceInfo = mServiceInfo.getBundle(String.valueOf(serviceType));
313 if (serviceInfo != null) {
314 return serviceInfo.getString(infoKey);
320 Bundle serviceInfo = mServiceInfo.getBundle(String.valueOf(serviceType));
321 if (serviceInfo != null) {
322 return serviceInfo.getLong(infoKey);
329 Bundle serviceInfo = mServiceInfo.getBundle(String.valueOf(serviceType));
330 if (serviceInfo != null) {
331 return serviceInfo.getInt(infoType);
337 Bundle serviceInfo = mServiceInfo.getBundle(String.valueOf(serviceType))
    [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...]
  /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...]
  /packages/apps/Car/Stream/src/com/android/car/stream/media/
MediaAppInfo.java 22 import android.content.pm.ServiceInfo;
64 ServiceInfo serviceInfo = null;
71 serviceInfo =
73 smallIconResId = serviceInfo.metaData == null ? 0 : serviceInfo.metaData.getInt
75 labelResId = serviceInfo.labelRes;
83 if (serviceInfo != null && serviceInfo.metaData != null) {
84 appTheme = serviceInfo.metaData.getInt(THEME_META_DATA_NAME)
    [all...]

Completed in 257 milliseconds

1 2 3 4 5