Home
last modified time | relevance | path

Searched refs:serviceType (Results 1 – 25 of 50) sorted by relevance

12

/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsDiscoveryManager.java67 public void put(@NonNull String serviceType, @NonNull SocketKey socketKey, in put() argument
69 final String dnsLowerServiceType = MdnsUtils.toDnsLowerCase(serviceType); in put()
77 @NonNull String serviceType, @NonNull SocketKey socketKey) { in get()
78 final String dnsLowerServiceType = MdnsUtils.toDnsLowerCase(serviceType); in get()
84 public List<MdnsServiceTypeClient> getByServiceType(@NonNull String serviceType) { in getByServiceType() argument
85 final String dnsLowerServiceType = MdnsUtils.toDnsLowerCase(serviceType); in getByServiceType()
222 @NonNull String serviceType, in registerListener()
225 sharedLog.i("Registering listener for serviceType: " + serviceType); in registerListener()
227 handleRegisterListener(serviceType, listener, searchOptions)); in registerListener()
231 @NonNull String serviceType, in handleRegisterListener()
[all …]
DMdnsServiceInfo.java77 private final String[] serviceType; field in MdnsServiceInfo
104 String[] serviceType, in MdnsServiceInfo() argument
115 serviceType, in MdnsServiceInfo()
135 String[] serviceType, in MdnsServiceInfo() argument
147 this.serviceType = serviceType; in MdnsServiceInfo()
199 return serviceType; in getServiceType()
327 out.writeStringArray(serviceType); in writeToParcel()
343 + ", type: " + TextUtils.join(".", serviceType) in toString()
DMdnsResponseDecoder.java39 @Nullable private final String[] serviceType; field in MdnsResponseDecoder
43 public MdnsResponseDecoder(@NonNull MdnsUtils.Clock clock, @Nullable String[] serviceType) { in MdnsResponseDecoder() argument
45 this.serviceType = serviceType; in MdnsResponseDecoder()
175 if ((serviceType == null) || MdnsUtils.typeEqualsOrIsSubtype( in augmentResponses()
176 serviceType, name)) { in augmentResponses()
DMdnsServiceTypeClient.java67 private final String serviceType; field in MdnsServiceTypeClient
257 @NonNull String serviceType, in MdnsServiceTypeClient()
265 this(serviceType, socketClient, executor, new Clock(), socketKey, sharedLog, looper, in MdnsServiceTypeClient()
271 @NonNull String serviceType, in MdnsServiceTypeClient()
281 this.serviceType = serviceType; in MdnsServiceTypeClient()
284 this.serviceTypeLabels = TextUtils.split(serviceType, "\\."); in MdnsServiceTypeClient()
293 this.cacheKey = new MdnsServiceCache.CacheKey(serviceType, socketKey); in MdnsServiceTypeClient()
744 serviceType, in run()
801 pw.println("ServiceTypeClient: Type{" + serviceType + "} " + socketKey + " with " in dump()
DMdnsRecordRepository.java267 final String[] serviceType = hasService ? splitServiceType(serviceInfo) : null; in ServiceRegistration() local
269 hasService ? splitFullyQualifiedName(serviceInfo, serviceType) : null; in ServiceRegistration()
276 serviceType, in ServiceRegistration()
286 MdnsUtils.constructFullSubtype(serviceType, subtype), in ServiceRegistration()
326 serviceType), in ServiceRegistration()
491 @Nullable String serviceName, @Nullable String serviceType) { in getServiceByNameAndType() argument
492 if (TextUtils.isEmpty(serviceName) || TextUtils.isEmpty(serviceType)) { in getServiceByNameAndType()
498 && MdnsUtils.equalsIgnoreDnsCase(serviceType, info.getServiceType())) { in getServiceByNameAndType()
1468 @NonNull NsdServiceInfo info, @NonNull String[] serviceType) { in splitFullyQualifiedName() argument
1469 final String[] split = new String[serviceType.length + 1]; in splitFullyQualifiedName()
[all …]
/packages/modules/Connectivity/framework-t/src/android/net/nsd/
DDiscoveryRequest.java53 String serviceType = in.readString();
57 return new DiscoveryRequest(protocolType, serviceType, subtype, network);
66 private DiscoveryRequest(int protocolType, @NonNull String serviceType, in DiscoveryRequest() argument
69 mServiceType = serviceType; in DiscoveryRequest()
176 public Builder(@NonNull String serviceType) { in Builder() argument
177 this(NsdManager.PROTOCOL_DNS_SD, serviceType); in Builder()
181 public Builder(int protocolType, @NonNull String serviceType) { in Builder() argument
184 setServiceType(serviceType); in Builder()
201 public Builder setServiceType(@NonNull String serviceType) { in setServiceType() argument
202 if (TextUtils.isEmpty(serviceType)) { in setServiceType()
[all …]
DNsdManager.java580 private PerNetworkDiscoveryTracker(String serviceType, int protocolType, in PerNetworkDiscoveryTracker() argument
582 mServiceType = serviceType; in PerNetworkDiscoveryTracker()
653 public void onStartDiscoveryFailed(String serviceType, int errorCode) { in onStartDiscoveryFailed() argument
657 Log.e(TAG, "Failed to start discovery for " + serviceType + " on " + mNetwork in onStartDiscoveryFailed()
663 public void onDiscoveryStarted(String serviceType) { in onDiscoveryStarted() argument
669 public void onStopDiscoveryFailed(String serviceType, int errorCode) { in onStopDiscoveryFailed() argument
670 Log.e(TAG, "Failed to stop discovery for " + serviceType + " on " + mNetwork in onStopDiscoveryFailed()
677 mWrappedExecutor.execute(() -> mWrapped.onDiscoveryStopped(serviceType)); in onStopDiscoveryFailed()
682 public void onDiscoveryStopped(String serviceType) { in onDiscoveryStopped() argument
685 mWrappedExecutor.execute(() -> mWrapped.onDiscoveryStopped(serviceType)); in onDiscoveryStopped()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/
DWifiP2pDnsSdServiceRequest.java75 public static WifiP2pDnsSdServiceRequest newInstance(String serviceType) { in newInstance() argument
76 if (serviceType == null) { in newInstance()
79 return new WifiP2pDnsSdServiceRequest(serviceType + ".local.", in newInstance()
97 String serviceType) { in newInstance() argument
98 if (instanceName == null || serviceType == null) { in newInstance()
102 String fullDomainName = instanceName + "." + serviceType + ".local."; in newInstance()
DWifiP2pDnsSdServiceInfo.java95 String serviceType, Map<String, String> txtMap) { in newInstance() argument
96 if (TextUtils.isEmpty(instanceName) || TextUtils.isEmpty(serviceType)) { in newInstance()
109 queries.add(createPtrServiceQuery(instanceName, serviceType)); in newInstance()
110 queries.add(createTxtServiceQuery(instanceName, serviceType, txtRecord)); in newInstance()
125 String serviceType) { in createPtrServiceQuery() argument
129 sb.append(createRequest(serviceType + ".local.", DNS_TYPE_PTR, VERSION_1)); in createPtrServiceQuery()
152 String serviceType, in createTxtServiceQuery() argument
159 sb.append(createRequest((instanceName + "." + serviceType + ".local."), in createTxtServiceQuery()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DHandleMap.java40 public int serviceType = 0; field in HandleMap.Entry
46 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance) { in Entry() argument
52 this.serviceType = serviceType; in Entry()
59 int serviceType, in Entry() argument
67 this.serviceType = serviceType; in Entry()
107 int serviceType, in addService() argument
110 mEntries.add(new Entry(serverIf, handle, uuid, serviceType, instance, advertisePreferred)); in addService()
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DAdvertisingRequestTest.kt44 serviceType = "_ipp._tcp" in testParcelingIsLossLess()
53 assertEquals(beforeParcel.serviceInfo.serviceType, afterParcel.serviceInfo.serviceType) in testParcelingIsLossLess()
60 serviceType = "_ipp._tcp" in testBuilder_setNullTtl_success()
72 serviceType = "_ipp._tcp" in testBuilder_setPropertiesSuccess()
79 assertEquals("_ipp._tcp", request.serviceInfo.serviceType) in testBuilder_setPropertiesSuccess()
88 serviceType = "_ipp._tcp" in testEquality()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DFullThreadDevice.java276 String serviceType, in addSrpService() argument
281 StringBuilder fullServiceType = new StringBuilder(serviceType); in addSrpService()
293 waitFor(() -> isSrpServiceRegistered(serviceName, serviceType), SERVICE_DISCOVERY_TIMEOUT); in addSrpService()
303 public void removeSrpService(String serviceName, String serviceType, boolean notifyServer) { in removeSrpService() argument
305 executeCommand("srp client service %s %s %s", verb, serviceName, serviceType); in removeSrpService()
322 String serviceType, in updateSrpService() argument
327 removeSrpService(serviceName, serviceType, false /* notifyServer */); in updateSrpService()
328 addSrpService(serviceName, serviceType, subtypes, port, txtMap); in updateSrpService()
332 public boolean isSrpServiceRegistered(String serviceName, String serviceType) { in isSrpServiceRegistered() argument
335 if (line.contains(serviceName) && line.contains(serviceType)) { in isSrpServiceRegistered()
[all …]
DIntegrationTestUtils.java319 public static NsdServiceInfo discoverService(NsdManager nsdManager, String serviceType) in discoverService() argument
329 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, listener); in discoverService()
344 String serviceType, in discoverForServiceLost() argument
353 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, listener); in discoverForServiceLost()
418 public void onStartDiscoveryFailed(String serviceType, int errorCode) {} in onStartDiscoveryFailed() argument
421 public void onStopDiscoveryFailed(String serviceType, int errorCode) {} in onStopDiscoveryFailed() argument
424 public void onDiscoveryStarted(String serviceType) {} in onDiscoveryStarted() argument
427 public void onDiscoveryStopped(String serviceType) {} in onDiscoveryStopped() argument
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothGattService.java96 public BluetoothGattService(UUID uuid, int serviceType) { in BluetoothGattService() argument
100 mServiceType = serviceType; in BluetoothGattService()
111 BluetoothDevice device, UUID uuid, int instanceId, int serviceType) { in BluetoothGattService() argument
115 mServiceType = serviceType; in BluetoothGattService()
125 public BluetoothGattService(UUID uuid, int instanceId, int serviceType) { in BluetoothGattService() argument
129 mServiceType = serviceType; in BluetoothGattService()
DBluetoothGattIncludedService.java42 public BluetoothGattIncludedService(UUID uuid, int instanceId, int serviceType) { in BluetoothGattIncludedService() argument
45 mServiceType = serviceType; in BluetoothGattIncludedService()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNsdManagerDownstreamTetheringTest.kt49 private val serviceType = "_nmt%09d._tcp".format(Random().nextInt(1_000_000_000)) constant in android.net.cts.NsdManagerDownstreamTetheringTest
90 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, discoveryRecord) in testMdnsDiscoveryCanSendPacketOnLocalOnlyDownstreamTetheringInterface()
92 assertNotNull(downstreamReader?.pollForQuery("$serviceType.local", 12 /* type PTR */)) in testMdnsDiscoveryCanSendPacketOnLocalOnlyDownstreamTetheringInterface()
137 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, discoveryRecord) in testMdnsDiscoveryWorkOnTetheringInterface()
139 assertNotNull(downstreamReader?.pollForQuery("$serviceType.local", 12 /* type PTR */)) in testMdnsDiscoveryWorkOnTetheringInterface()
/packages/services/Telecomm/src/com/android/server/telecom/callredirection/
DCallRedirectionProcessor.java72 private CallRedirectionAttempt(ComponentName componentName, String serviceType) { in CallRedirectionAttempt() argument
74 mServiceType = serviceType; in CallRedirectionAttempt()
420 private void processTimeoutForCallRedirection(String serviceType) { in processTimeoutForCallRedirection() argument
421 long timeout = serviceType.equals(SERVICE_TYPE_USER_DEFINED) ? in processTimeoutForCallRedirection()
430 serviceType.equals(SERVICE_TYPE_USER_DEFINED) ? in processTimeoutForCallRedirection()
433 Log.i(this, serviceType + " call redirection has timed out."); in processTimeoutForCallRedirection()
434 Log.addEvent(mCall, serviceType.equals(SERVICE_TYPE_USER_DEFINED) in processTimeoutForCallRedirection()
438 if (serviceType.equals(SERVICE_TYPE_USER_DEFINED)) { in processTimeoutForCallRedirection()
DCallRedirectionProcessorHelper.java100 protected ComponentName getComponentName(Intent intent, String serviceType) { in getComponentName() argument
104 Log.i(this, "There are no " + serviceType + " call redirection services installed" + in getComponentName()
108 Log.i(this, "There are multiple " + serviceType + " call redirection services" + in getComponentName()
114 Log.w(this, "The " + serviceType + " call redirection service has invalid" + in getComponentName()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DTunerChannel.java80 Channel.AtscServiceType serviceType = in TunerChannel() local
91 serviceType = chanServiceType; in TunerChannel()
104 .setServiceType(serviceType) in TunerChannel()
183 Channel.AtscServiceType serviceType = in TunerChannel() local
191 serviceType = chanServiceType; in TunerChannel()
198 .setServiceType(serviceType) in TunerChannel()
298 int serviceType = getServiceType(); in getServiceTypeName() local
299 if (serviceType >= 0 && serviceType < ATSC_SERVICE_TYPE_NAMES.length) { in getServiceTypeName()
300 return ATSC_SERVICE_TYPE_NAMES[serviceType]; in getServiceTypeName()
/packages/services/Car/car-lib/src/android/car/evs/
DICarEvsService.aidl43 int startVideoStream(int serviceType, in IBinder token, in ICarEvsStreamCallback callback); in startVideoStream() argument
53 void stopVideoStreamFrom(in int serviceType, in ICarEvsStreamCallback callback); in stopVideoStreamFrom() argument
63 CarEvsStatus getCurrentStatus(in int serviceType); in getCurrentStatus() argument
/packages/services/Car/service/src/com/android/car/evs/
DCarEvsServiceUtils.java122 @CarEvsServiceType int serviceType = INVALID_SERVICE_TYPE; in parse() local
141 serviceType = CarEvsUtils.convertToServiceType(keyValuePair[1]); in parse()
158 return Parameters.create(serviceType, cameraId, activityName); in parse()
DCarEvsService.java846 @CarEvsServiceType int serviceType = CarEvsUtils.convertToServiceType(type); in setCameraIdFromCommand() local
847 StateMachine instance = mServiceInstances.get(serviceType); in setCameraIdFromCommand()
893 @CarEvsServiceType int serviceType = CarEvsUtils.convertToServiceType(type); in getCameraIdFromCommand() local
894 StateMachine instance = mServiceInstances.get(serviceType); in getCameraIdFromCommand()
927 @CarEvsServiceType int serviceType = CarEvsUtils.convertToServiceType(typeString); in enableServiceTypeFromCommand() local
932 if (type == serviceType || cameraId.equals(instance.getCameraId())) { in enableServiceTypeFromCommand()
940 serviceType, cameraId); in enableServiceTypeFromCommand()
946 mServiceInstances.put(serviceType, s); in enableServiceTypeFromCommand()
963 @CarEvsServiceType int serviceType = CarEvsUtils.convertToServiceType(type); in isServiceTypeEnabledFromCommand() local
964 return mServiceInstances.get(serviceType) != null; in isServiceTypeEnabledFromCommand()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsResponseTests.java101 final String[] serviceType = new String[] { "_type", "_tcp", "local" }; in makeCompleteResponse() local
104 response.addPointerRecord(new MdnsPointerRecord(serviceType, receiptTimeMillis, in makeCompleteResponse()
232 final String[] serviceType = new String[] { "_TYPE", "_tcp", "local" }; in addRecords_noChange() local
234 new MdnsPointerRecord(serviceType, 0L /* receiptTimeMillis */, in addRecords_noChange()
326 final String[] serviceType = new String[] { "_type", "_tcp", "local" }; in dropUnmatchedAddressRecords_caseInsensitive() local
329 response.addPointerRecord(new MdnsPointerRecord(serviceType, 0L /* receiptTimeMillis */, in dropUnmatchedAddressRecords_caseInsensitive()
DMdnsRecordRepositoryTest.kt80 serviceType = "_testservice._tcp" in <lambda>()
86 serviceType = "_testservice._tcp" in <lambda>()
92 serviceType = "_TESTSERVICE._tcp" in <lambda>()
112 serviceType = "_testservice._tcp" in <lambda>()
120 serviceType = "_testservice._tcp" in <lambda>()
389 val serviceType = arrayOf("_testservice", "_tcp", "local") in testOnProbingSucceeded() constant
431 serviceType, in testOnProbingSucceeded()
472 serviceType)) in testOnProbingSucceeded()
513 val serviceType = arrayOf("_testservice", "_tcp", "local") in testGetOffloadPacket() constant
522 serviceType, in testGetOffloadPacket()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/data/repository/
DUserScopedService.kt56 private val serviceType: KClass<T>, constant in com.android.intentresolver.data.repository.UserScopedServiceImpl
65 return requireNotNull(context.getSystemService(serviceType.java)) in forUser()

12