/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sdp/ |
D | SdpManagerNativeInterface.java | 90 String serviceName, in createMapMasRecord() argument 101 serviceName, masId, rfcommChannel, l2capPsm, version, msgTypes, features); in createMapMasRecord() 121 String serviceName, int rfcommChannel, int l2capPsm, int version, int features) { in createMapMnsRecord() argument 125 return sdpCreateMapMnsRecordNative(serviceName, rfcommChannel, l2capPsm, version, features); in createMapMnsRecord() 139 public int createPbapPceRecord(String serviceName, int version) { in createPbapPceRecord() argument 143 return sdpCreatePbapPceRecordNative(serviceName, version); in createPbapPceRecord() 165 String serviceName, in createPbapPseRecord() argument 175 serviceName, rfcommChannel, l2capPsm, version, repositories, features); in createPbapPseRecord() 196 String serviceName, int rfcommChannel, int l2capPsm, int version, byte[] formatsList) { in createOppOpsRecord() argument 201 serviceName, rfcommChannel, l2capPsm, version, formatsList); in createOppOpsRecord() [all …]
|
D | SdpManager.java | 230 String serviceName, in sdpMasRecordFoundCallback() argument 250 serviceName); in sdpMasRecordFoundCallback() 266 String serviceName, in sdpMnsRecordFoundCallback() argument 283 serviceName); in sdpMnsRecordFoundCallback() 300 String serviceName, in sdpPseRecordFoundCallback() argument 318 serviceName); in sdpPseRecordFoundCallback() 333 String serviceName, in sdpOppOpsRecordFoundCallback() argument 349 serviceName, in sdpOppOpsRecordFoundCallback() 367 String serviceName, in sdpSapsRecordFoundCallback() argument 379 sdpRecord = new SdpSapsRecord(rfcommChannelNumber, profileVersion, serviceName); in sdpSapsRecordFoundCallback()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/ |
D | ServiceManagerInterface.java | 40 String serviceName) { in tryCreateSystemInterface() argument 42 return new SystemInterface(binder, serviceName); in tryCreateSystemInterface() 44 Log.i(TAG, serviceName + " is unsupported."); in tryCreateSystemInterface() 49 private static IRemotelyProvisionedComponent getBinder(String serviceName) { in getBinder() argument 51 ServiceManager.waitForDeclaredService(serviceName)); in getBinder() 53 throw new IllegalArgumentException("Cannot find any implementation for " + serviceName); in getBinder() 78 String serviceName = irpcInterface + "/" + x; in getAllInstances() 79 return tryCreateSystemInterface(getBinder(serviceName), serviceName); in getAllInstances() 93 public static SystemInterface getInstance(String serviceName) { in getInstance() argument 95 if (sBinders.containsKey(serviceName)) { in getInstance() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsRecordRepositoryTest.kt | 81 serviceName = "MyTestService" in <lambda>() 87 serviceName = "MyOtherTestService" in <lambda>() 93 serviceName = "MyTESTSERVICE" in <lambda>() 113 serviceName = "TestService" in <lambda>() 121 serviceName = "TestService" in <lambda>() 251 val serviceName = arrayOf("MyTestService", "_testservice", "_tcp", "local") in testAddAndUpdates() constant 259 serviceName), in testAddAndUpdates() 392 val serviceName = arrayOf("MyTestService", "_testservice", "_tcp", "local") in testOnProbingSucceeded() constant 436 serviceName), in testOnProbingSucceeded() 443 serviceName), in testOnProbingSucceeded() [all …]
|
D | MdnsResponseTests.java | 100 final String[] serviceName = new String[] { "MyService", "_type", "_tcp", "local" }; in makeCompleteResponse() local 102 final MdnsResponse response = new MdnsResponse(/* now= */ 0, serviceName, INTERFACE_INDEX, in makeCompleteResponse() 105 false /* cacheFlush */, recordsTtlMillis, serviceName)); in makeCompleteResponse() 106 response.setServiceRecord(new MdnsServiceRecord(serviceName, receiptTimeMillis, in makeCompleteResponse() 109 response.setTextRecord(new MdnsTextRecord(serviceName, receiptTimeMillis, in makeCompleteResponse() 231 final String[] serviceName = new String[] { "MYSERVICE", "_TYPE", "_tcp", "local" }; in addRecords_noChange() local 235 false /* cacheFlush */, TEST_TTL_MS, serviceName); in addRecords_noChange() 325 final String[] serviceName = new String[] { "MyService", "_type", "_tcp", "local" }; in dropUnmatchedAddressRecords_caseInsensitive() local 327 final MdnsResponse response = new MdnsResponse(/* now= */ 0, serviceName, INTERFACE_INDEX, in dropUnmatchedAddressRecords_caseInsensitive() 330 false /* cacheFlush */, TEST_TTL_MS, serviceName)); in dropUnmatchedAddressRecords_caseInsensitive() [all …]
|
D | MdnsServiceTypeClientTests.java | 766 private static void verifyServiceInfo(MdnsServiceInfo serviceInfo, String serviceName, in verifyServiceInfo() argument 769 assertEquals(serviceName, serviceInfo.getServiceInstanceName()); in verifyServiceInfo() 921 String serviceName, String[] serviceType, SocketKey socketKey) { in verifyServiceRemovedCallback() argument 923 info -> serviceName.equals(info.getServiceInstanceName()) in verifyServiceRemovedCallback() 928 info -> serviceName.equals(info.getServiceInstanceName()) in verifyServiceRemovedCallback() 939 final String serviceName = "service-instance-1"; in processResponse_goodBye() local 943 serviceName, ipV6Address, 5353, in processResponse_goodBye() 958 serviceName, ipV6Address, 5353, in processResponse_goodBye() 962 mockListenerOne, serviceName, SERVICE_TYPE_LABELS, socketKey); in processResponse_goodBye() 964 mockListenerTwo, serviceName, SERVICE_TYPE_LABELS, socketKey); in processResponse_goodBye() [all …]
|
D | MdnsServiceCacheTest.kt | 85 serviceName: String, in <lambda>() 91 assertEquals(serviceName, event.previousResponse.serviceInstanceName) in <lambda>() 132 serviceName: String, in <lambda>() 134 ): Unit = runningOnHandlerAndReturn { serviceCache.removeService(serviceName, cacheKey) } in <lambda>() 138 serviceName: String, in <lambda>() 141 serviceCache.getCachedService(serviceName, cacheKey) in <lambda>() 299 val serviceName = "$serviceInstanceName.$serviceType".split(".").toTypedArray() in <lambda>() constant 310 serviceName) in <lambda>() 315 serviceName, in <lambda>()
|
D | MdnsAnnouncerTest.kt | 153 val serviceName = arrayOf("testservice", "_testtype", "_tcp", "local") in <lambda>() constant 185 serviceName), in <lambda>() 187 serviceName, in <lambda>() 196 serviceName, in <lambda>() 237 MdnsNsecRecord(serviceName, in <lambda>() 241 serviceName, in <lambda>()
|
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/ |
D | SdpSapsRecordTest.java | 38 String serviceName = "SdpSapsRecord"; in createSdpSapsRecord() local 40 SdpSapsRecord record = new SdpSapsRecord(rfcommChannelNumber, profileVersion, serviceName); in createSdpSapsRecord() 44 assertThat(record.getServiceName()).isEqualTo(serviceName); in createSdpSapsRecord() 51 String serviceName = "SdpSapsRecord"; in writeToParcel() local 54 new SdpSapsRecord(rfcommChannelNumber, profileVersion, serviceName); in writeToParcel() 73 String serviceName = "SdpSapsRecord"; in sdpSapsRecordToString() local 75 SdpSapsRecord record = new SdpSapsRecord(rfcommChannelNumber, profileVersion, serviceName); in sdpSapsRecordToString() 84 + serviceName in sdpSapsRecordToString()
|
D | SdpMnsRecordTest.java | 40 String serviceName = "MnsRecord"; in createSdpMnsRecord() local 48 serviceName); in createSdpMnsRecord() 54 assertThat(record.getServiceName()).isEqualTo(serviceName); in createSdpMnsRecord() 63 String serviceName = "MnsRecord"; in writeToParcel() local 71 serviceName); in writeToParcel() 95 String serviceName = "MnsRecord"; in sdpMnsRecordToString() local 103 serviceName); in sdpMnsRecordToString() 115 + serviceName in sdpMnsRecordToString()
|
D | SdpOppOpsRecordTest.java | 38 String serviceName = "OppOpsRecord"; in createSdpOppOpsRecord() local 45 new SdpOppOpsRecord(serviceName, rfcommChannel, l2capPsm, version, formatsList); in createSdpOppOpsRecord() 47 assertThat(record.getServiceName()).isEqualTo(serviceName); in createSdpOppOpsRecord() 56 String serviceName = "OppOpsRecord"; in writeToParcel() local 63 new SdpOppOpsRecord(serviceName, rfcommChannel, l2capPsm, version, formatsList); in writeToParcel() 83 String serviceName = "OppOpsRecord"; in sdpOppOpsRecordToString() local 90 new SdpOppOpsRecord(serviceName, rfcommChannel, l2capPsm, version, formatsList); in sdpOppOpsRecordToString() 105 + serviceName in sdpOppOpsRecordToString()
|
D | SdpPseRecordTest.java | 41 String serviceName = "PseRecord"; in createSdpPseRecord() local 50 serviceName); in createSdpPseRecord() 57 assertThat(record.getServiceName()).isEqualTo(serviceName); in createSdpPseRecord() 67 String serviceName = "PseRecord"; in writeToParcel() local 76 serviceName); in writeToParcel() 103 String serviceName = "PseRecord"; in sdpPseRecordToString() local 112 serviceName); in sdpPseRecordToString() 127 + serviceName in sdpPseRecordToString()
|
D | SdpMasRecordTest.java | 42 String serviceName = "MasRecord"; in createSdpMasRecord() local 52 serviceName); in createSdpMasRecord() 60 assertThat(record.getServiceName()).isEqualTo(serviceName); in createSdpMasRecord() 71 String serviceName = "MasRecord"; in writeToParcel() local 81 serviceName); in writeToParcel() 110 String serviceName = "MasRecord"; in sdpMasRecordToString() local 120 serviceName); in sdpMasRecordToString() 135 + serviceName in sdpMasRecordToString()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/ |
D | AccessibilityServiceFragment.java | 62 public static void prepareArgs(@NonNull Bundle args, String packageName, String serviceName, in prepareArgs() argument 65 args.putString(ARG_SERVICE_NAME, serviceName); in prepareArgs() 112 final String serviceName = getArguments().getString(ARG_SERVICE_NAME); in updateEnablePref() local 113 final ComponentName serviceComponent = new ComponentName(packageName, serviceName); in updateEnablePref() 119 new ComponentName(packageName, serviceName), in updateEnablePref() 161 String serviceName = getArguments().getString(ARG_SERVICE_NAME); in getPageId() local 162 if (TextUtils.isEmpty(serviceName)) { in getPageId() 164 } else if (serviceName.contains("TalkBack")) { in getPageId() 166 } else if (serviceName.contains("AccessibilityMenu")) { in getPageId() 168 } else if (serviceName.contains("SelectToSpeak")) { in getPageId() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/side-less/com/android/adservices/common/ |
D | AbstractAdServicesDeviceSupportedRuleTest.java | 280 String serviceName = "SomeService"; in testAnnotatedWithRequiresAndroidServiceAvailable_available() local 281 mockGetResolveInfos(serviceName, /* isAdIdAvailable= */ true); in testAnnotatedWithRequiresAndroidServiceAvailable_available() 285 .requiresAndroidServiceAvailable(serviceName)); in testAnnotatedWithRequiresAndroidServiceAvailable_available() 294 String serviceName = "SomeService"; in testAnnotatedWithRequiresAndroidServiceAvailable_unavailable() local 296 mockGetResolveInfos(serviceName, /* isAdIdAvailable= */ false); in testAnnotatedWithRequiresAndroidServiceAvailable_unavailable() 300 .requiresAndroidServiceAvailable(serviceName)); in testAnnotatedWithRequiresAndroidServiceAvailable_unavailable() 303 description, getRequiresAndroidServiceAssumptionFailureString(serviceName)); in testAnnotatedWithRequiresAndroidServiceAvailable_unavailable() 323 String serviceName = "SomeService"; in testAnnotatedWithRequiresAndroidServiceAvailable_classAnnotation() local 325 mockGetResolveInfos(serviceName, /* isAdIdAvailable= */ false); in testAnnotatedWithRequiresAndroidServiceAvailable_classAnnotation() 329 .requiresAndroidServiceAvailable(serviceName)); in testAnnotatedWithRequiresAndroidServiceAvailable_classAnnotation() [all …]
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | DumpTestUtils.java | 47 private static String dumpService(String serviceName, boolean adoptPermission, String... args) in dumpService() argument 49 final IBinder ib = ServiceManager.getService(serviceName); in dumpService() 70 final String what = "service '" + serviceName + "' with args: " + Arrays.toString(args); in dumpService() 103 public static String dumpService(String serviceName, String... args) in dumpService() argument 105 return dumpService(serviceName, false, args); in dumpService() 124 public static String dumpServiceWithShellPermission(String serviceName, String... args) in dumpServiceWithShellPermission() argument 126 return dumpService(serviceName, true, args); in dumpServiceWithShellPermission()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsResponse.java | 46 @NonNull private final String[] serviceName; field in MdnsResponse 49 public MdnsResponse(long now, @NonNull String[] serviceName, int interfaceIndex, in MdnsResponse() argument 58 this.serviceName = serviceName; in MdnsResponse() 69 serviceName = base.serviceName; in MdnsResponse() 114 if (!MdnsUtils.equalsDnsLabelIgnoreDnsCase(serviceName, pointerRecord.getPointer())) { in addPointerRecord() 345 return serviceName.length > 0 ? serviceName[0] : null; in getServiceInstanceName() 350 return serviceName; in getServiceName()
|
/packages/apps/Nfc/testutils/src/com/android/nfc/emulator/ |
D | TwoPollingFrameEmulatorActivity.java | 85 void processPollingFrames(List<PollingFrame> frames, String serviceName) { in processPollingFrames() argument 88 processPollingFrame(frame, serviceName); in processPollingFrames() 92 void processPollingFrame(PollingFrame frame, String serviceName) { in processPollingFrame() argument 93 Log.d(TAG, "processPollingFrame: " + (char) (frame.getType()) + " service: " + serviceName); in processPollingFrame() 98 if (serviceName.equals(PollingLoopService2.class.getName()) && in processPollingFrame() 105 } else if (mService2Matched && serviceName.equals(PollingLoopService.class.getName())) { in processPollingFrame()
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/ |
D | FullThreadDevice.java | 275 String serviceName, in addSrpService() argument 287 serviceName, 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() 321 String serviceName, 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 …]
|
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/ |
D | SdkSandboxSystemServiceRegistry.java | 82 @NonNull String serviceName, @NonNull ServiceMutator mutator) { in registerServiceMutator() 84 mServiceMutators.put(serviceName, mutator); in registerServiceMutator() 93 public ServiceMutator getServiceMutator(@NonNull String serviceName) { in getServiceMutator() argument 95 return mServiceMutators.get(serviceName); in getServiceMutator()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | LiveWallpaperInfo.java | 95 String serviceName = attrs.getAttributeValue(null, ATTR_SERVICE); in fromAttributeSet() local 97 serviceName); in fromAttributeSet() 106 String wallpaperId, String packageName, String serviceName) { in fromPackageAndServiceName() argument 107 if (TextUtils.isEmpty(serviceName)) { in fromPackageAndServiceName() 114 String [] parts = serviceName.split("/"); in fromPackageAndServiceName() 117 serviceName = parts[1]; in fromPackageAndServiceName() 123 intent.setClassName(packageName, serviceName); in fromPackageAndServiceName() 127 Log.w(TAG, "Couldn't find live wallpaper for " + serviceName); in fromPackageAndServiceName() 474 String serviceName = component.getServiceName(); in isApplied() local 476 && TextUtils.equals(currentHomeWallpaper.getServiceName(), serviceName); in isApplied() [all …]
|
/packages/modules/OnDevicePersonalization/framework/java/com/android/federatedcompute/internal/util/ |
D | AbstractServiceBinder.java | 45 String serviceName, in getServiceBinderByServiceName() argument 49 context, serviceName, servicePackage, true, converter); in getServiceBinderByServiceName() 76 String serviceName, in getIsolatedServiceBinderByServiceName() argument 82 context, serviceName, servicePackage, isolatedProcessName, in getIsolatedServiceBinderByServiceName()
|
/packages/apps/Contacts/src/com/android/contacts/sdn/ |
D | SdnProvider.kt | 148 it.serviceName.contains(filter, ignoreCase = true) || it.serviceNumber.contains(filter) in <lambda>() 160 Contacts.DISPLAY_NAME -> data.serviceName in <lambda>() 200 StructuredName.DISPLAY_NAME -> result.serviceName in <lambda>() 201 StructuredName.GIVEN_NAME -> result.serviceName in <lambda>() 202 Contacts.DISPLAY_NAME -> result.serviceName in <lambda>() 203 Contacts.DISPLAY_NAME_ALTERNATIVE -> result.serviceName in <lambda>() 248 Contacts.DISPLAY_NAME -> result.serviceName in <lambda>()
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | NeuralNetworksShim.cpp | 95 const char* deviceName, const char* serviceName) { in ANeuralNetworksShimDeviceInfo_create() argument 107 .serviceName = (serviceName == nullptr || strlen(serviceName) == 0) in ANeuralNetworksShimDeviceInfo_create() 109 : std::string(serviceName)}; in ANeuralNetworksShimDeviceInfo_create()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | ServiceManagerWrapper.java | 41 public static IBinder waitForService(String serviceName) { in waitForService() argument 42 return nativeWaitForService(serviceName); in waitForService() 45 private static native IBinder nativeWaitForService(String serviceName); in nativeWaitForService() argument
|