Home
last modified time | relevance | path

Searched refs:serviceId (Results 1 – 23 of 23) sorted by relevance

/packages/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DAppActiveStreams.java76 public int getStateForService(String serviceId) { in getStateForService() argument
77 StreamCallbackWithState callbackWithState = mStreamStates.get(serviceId); in getStateForService()
82 public void startStreaming(String serviceId, StreamingServiceCallback callback, int reason) { in startStreaming() argument
83 if (mStreamStates.get(serviceId) != null) { in startStreaming()
93 mStreamStates.put(serviceId, in startStreaming()
97 updateStreamingMethod(serviceId); in startStreaming()
100 public void stopStreaming(String serviceId, int reason) { in stopStreaming() argument
101 StreamCallbackWithState entry = mStreamStates.get(serviceId); in stopStreaming()
111 public void dispose(String serviceId) { in dispose() argument
112 mStreamStates.remove(serviceId); in dispose()
[all …]
DStreamStateTracker.java33 public static int getStreamingState(FrontendAppIdentifier appIdentifier, String serviceId) { in getStreamingState() argument
38 return appStreams.getStateForService(serviceId); in getStreamingState()
41 public static void startStreaming(FrontendAppIdentifier appIdentifier, String serviceId, in startStreaming() argument
49 appStreams.startStreaming(serviceId, callback, reason); in startStreaming()
52 public static void stopStreaming(FrontendAppIdentifier appIdentifier, String serviceId, in stopStreaming() argument
54 Log.i(LOG_TAG, "Stopping stream " + serviceId); in stopStreaming()
60 appStreams.stopStreaming(serviceId, reason); in stopStreaming()
63 public static void dispose(FrontendAppIdentifier appIdentifier, String serviceId) { in dispose() argument
69 appStreams.dispose(serviceId); in dispose()
DEmbmsTestStreamingService.java122 public int startStreaming(int subscriptionId, String serviceId,
127 checkServiceExists(serviceId);
129 if (StreamStateTracker.getStreamingState(appKey, serviceId) ==
135 () -> StreamStateTracker.startStreaming(appKey, serviceId, callback,
142 public Uri getPlaybackUri(int subscriptionId, String serviceId) {
146 checkServiceExists(serviceId);
148 Uri streamingUri = StreamingServiceRepository.getUriForService(serviceId);
156 public void stopStreaming(int subscriptionId, String serviceId) {
160 checkServiceExists(serviceId);
162 mHandler.post(() -> StreamStateTracker.stopStreaming(appKey, serviceId,
[all …]
DStreamingServiceRepository.java49 public static Uri getUriForService(String serviceId) { in getUriForService() argument
50 if (sIdToStreamingUri.containsKey(serviceId)) { in getUriForService()
51 return sIdToStreamingUri.get(serviceId); in getUriForService()
56 public static StreamingServiceInfo getStreamingServiceInfoForId(String serviceId) { in getStreamingServiceInfoForId() argument
57 return sIdToServiceInfo.getOrDefault(serviceId, null); in getStreamingServiceInfoForId()
DEmbmsSampleDownloadService.java431 private void addTempFileInUse(FrontendAppIdentifier appKey, String serviceId, Uri tempFileUri) { in addTempFileInUse() argument
437 Set<Uri> tempFilesInUse = tempFileByService.get(serviceId); in addTempFileInUse()
440 tempFileByService.put(serviceId, tempFilesInUse); in addTempFileInUse()
445 private void removeTempFileInUse(FrontendAppIdentifier appKey, String serviceId, in removeTempFileInUse() argument
448 .getOrDefault(serviceId, Collections.emptySet()); in removeTempFileInUse()
453 appKey + " and service id " + serviceId); in removeTempFileInUse()
DFileServiceRepository.java73 public FileServiceInfo getFileServiceInfoForId(String serviceId) { in getFileServiceInfoForId() argument
74 return mIdToServiceInfo.getOrDefault(serviceId, null); in getFileServiceInfoForId()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsRecordRepository.java441 public void updateService(int serviceId, @NonNull Set<String> subtypes) { in updateService() argument
442 final ServiceRegistration existingRegistration = mServices.get(serviceId); in updateService()
445 "Service ID must already exist for an update request: " + serviceId); in updateService()
449 mServices.put(serviceId, updatedRegistration); in updateService()
463 public int addService(int serviceId, NsdServiceInfo serviceInfo, @Nullable Duration ttl) in addService() argument
465 if (mServices.contains(serviceId)) { in addService()
467 "Service ID must not be reused across registrations: " + serviceId); in addService()
480 mServices.put(serviceId, registration); in addService()
506 int serviceId, ServiceRegistration registration) { in makeProbingInfo() argument
547 return new MdnsProber.ProbingInfo(serviceId, probingRecords); in makeProbingInfo()
[all …]
DMdnsInterfaceAdvertiser.java88 void onServiceProbingSucceeded(@NonNull MdnsInterfaceAdvertiser advertiser, int serviceId); in onServiceProbingSucceeded() argument
101 @NonNull MdnsInterfaceAdvertiser advertiser, int serviceId, int conflictType); in onServiceConflict() argument
362 for (int serviceId : mRecordRepository.clearServices()) { in destroyNow()
363 mProber.stop(serviceId); in destroyNow()
364 mAnnouncer.stop(serviceId); in destroyNow()
373 public boolean maybeRestartProbingForConflict(int serviceId) { in maybeRestartProbingForConflict() argument
374 final MdnsProber.ProbingInfo probingInfo = mRecordRepository.setServiceProbing(serviceId); in maybeRestartProbingForConflict()
377 mAnnouncer.stop(serviceId); in maybeRestartProbingForConflict()
387 public void renameServiceForConflict(int serviceId, NsdServiceInfo newInfo) { in renameServiceForConflict() argument
389 serviceId, newInfo); in renameServiceForConflict()
[all …]
DMdnsAnnouncer.java52 protected BaseAnnouncementInfo(int serviceId, @NonNull List<MdnsRecord> announcedRecords, in BaseAnnouncementInfo() argument
54 mServiceId = serviceId; in BaseAnnouncementInfo()
75 AnnouncementInfo(int serviceId, List<MdnsRecord> announcedRecords, in AnnouncementInfo() argument
77 super(serviceId, announcedRecords, additionalRecords); in AnnouncementInfo()
94 ExitAnnouncementInfo(int serviceId, List<MdnsRecord> announcedRecords) { in ExitAnnouncementInfo() argument
95 super(serviceId, announcedRecords, Collections.emptyList() /* additionalRecords */); in ExitAnnouncementInfo()
DMdnsAdvertiser.java151 @NonNull MdnsInterfaceAdvertiser advertiser, int serviceId) {
152 final Registration registration = mRegistrations.get(serviceId);
165 existingOffloadServiceInfoWrappers.removeIf(item -> item.mServiceId == serviceId);
167 byte[] rawOffloadPacket = advertiser.getRawOffloadPayload(serviceId);
169 serviceId, registration, rawOffloadPacket);
176 if (any(mAllAdvertisers, (k, a) -> a.isProbing(serviceId))) return;
181 mCb.onRegisterServiceSucceeded(serviceId, registration.getServiceInfo());
187 public void onServiceConflict(@NonNull MdnsInterfaceAdvertiser advertiser, int serviceId,
190 + serviceId + " "
193 final Registration registration = mRegistrations.get(serviceId);
[all …]
DMdnsProber.java59 ProbingInfo(int serviceId, @NonNull List<MdnsRecord> probeRecords) { in ProbingInfo() argument
60 mServiceId = serviceId; in ProbingInfo()
/packages/services/Telephony/testapps/EmbmsTestStreamingApp/src/com/android/phone/testapps/embmsfrontend/
DEmbmsTestStreamingApp.java114 String serviceId = getItem(position); in getView() local
115 StreamingServiceTracker tracker = mStreamingServiceTrackerById.get(serviceId); in getView()
123 String serviceId = getItem(position); in getDropDownView() local
124 StreamingServiceTracker tracker = mStreamingServiceTrackerById.get(serviceId); in getDropDownView()
183 String serviceId = (String) mStreamSelector.getItemAtPosition(position); in onCreate()
184 StreamingServiceTracker tracker = mStreamingServiceTrackerById.get(serviceId); in onCreate()
250 String serviceId = (String) mStreamSelector.getSelectedItem(); in getSelectedTrackedStream() local
251 return mStreamingServiceTrackerById.get(serviceId); in getSelectedTrackedStream()
/packages/services/Car/car-lib/src/android/car/remoteaccess/
DRemoteTaskClientRegistrationInfo.java83 @NonNull String serviceId, in RemoteTaskClientRegistrationInfo()
87 this.mServiceId = serviceId; in RemoteTaskClientRegistrationInfo()
158 String serviceId = in.readString(); in RemoteTaskClientRegistrationInfo() local
163 this.mServiceId = serviceId; in RemoteTaskClientRegistrationInfo()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsInterfaceAdvertiserTest.kt207 doReturn(TEST_SERVICE_ID_2).`when`(probingInfo).serviceId in testAddRemoveServiceWithCustomHost_restartProbingForProbingServices()
520 private fun addServiceAndStartProbing(serviceId: Int, serviceInfo: NsdServiceInfo): in addServiceAndStartProbing()
523 doReturn(serviceId).`when`(testProbingInfo).serviceId in addServiceAndStartProbing()
524 doReturn(testProbingInfo).`when`(repository).setServiceProbing(serviceId) in addServiceAndStartProbing()
526 advertiser.addService(serviceId, serviceInfo, MdnsAdvertisingOptions.getDefaultOptions()) in addServiceAndStartProbing()
527 verify(repository).addService(serviceId, serviceInfo, null /* ttl */) in addServiceAndStartProbing()
533 private fun addServiceAndFinishProbing(serviceId: Int, serviceInfo: NsdServiceInfo): in addServiceAndFinishProbing()
535 val testProbingInfo = addServiceAndStartProbing(serviceId, serviceInfo) in addServiceAndFinishProbing()
538 val testAnnouncementInfo = AnnouncementInfo(serviceId, emptyList(), emptyList()) in addServiceAndFinishProbing()
DMdnsRecordRepositoryTest.kt194 assertEquals(TEST_SERVICE_ID_1, probingInfo.serviceId) in makeFlags()
1761 assertEquals(TEST_SERVICE_ID_1, probingInfo.serviceId) in testIncludeInetAddressRecordsInProbing()
2185 assertEquals(TEST_SERVICE_CUSTOM_HOST_ID_1, probingInfo.serviceId) in testRestartProbingForHostname()
2219 assertEquals(TEST_SERVICE_CUSTOM_HOST_ID_1, announcementInfo.serviceId) in testRestartAnnouncingForHostname()
2294 serviceId: Int, in MdnsRecordRepository()
2301 return addServiceAndFinishProbing(serviceId, serviceInfo) in MdnsRecordRepository()
2305 serviceId: Int, in addServiceAndFinishProbing()
2308 addService(serviceId, serviceInfo, null /* ttl */) in addServiceAndFinishProbing()
2309 val probingInfo = setServiceProbing(serviceId) in addServiceAndFinishProbing()
DMdnsProberTest.kt201 Handler(thread.looper).post { stopResult.complete(prober.stop(probeInfo.serviceId)) } in <lambda>()
/packages/apps/Camera2/src/com/android/camera/
DAccessibilityUtil.java117 String serviceId = enabledService.getId(); in containsGoogleAccessibilityService() local
118 if (serviceId != null && serviceId.startsWith(ACCESSIBILITY_PACKAGE_NAME_PREFIX)) { in containsGoogleAccessibilityService()
/packages/services/Car/tests/CarLibUnitTest/src/android/car/remoteaccess/
DCarRemoteAccessManagerUnitTest.java179 String serviceId = "serviceId_testing"; in testClientRegistration() local
185 new RemoteTaskClientRegistrationInfo(serviceId, vehicleId, processorId, clientId)); in testClientRegistration()
187 assertWithMessage("Service ID").that(remoteTaskClient.getServiceId()).isEqualTo(serviceId); in testClientRegistration()
246 String serviceId = "serviceId_testing"; in testRemoteTaskRequested_mismatchedClientId() local
255 new RemoteTaskClientRegistrationInfo(serviceId, vehicleId, processorId, clientId)); in testRemoteTaskRequested_mismatchedClientId()
314 String serviceId = "serviceId_testing"; in testOnShutdownStarting() local
320 new RemoteTaskClientRegistrationInfo(serviceId, vehicleId, processorId, clientId)); in testOnShutdownStarting()
638 String serviceId = "serviceId_testing"; in prepareRemoteTaskRequested() local
643 new RemoteTaskClientRegistrationInfo(serviceId, vehicleId, processorId, clientId)); in prepareRemoteTaskRequested()
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DDownloadCompletionReceiver.java47 private Path getDestinationFile(Context context, String serviceId, FileInfo info) { in getDestinationFile() argument
49 if (serviceId.contains("2")) { in getDestinationFile()
DEmbmsTestDownloadApp.java448 private Uri getDestination(String serviceId) { in getDestination() argument
452 if (serviceId.contains("2")) { in getDestination()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java211 public int onStartCommand(Intent intent, int flags, int serviceId) { in onStartCommand() argument
219 Log.d(TAG, "onStartCommand: " + jobId + " with serviceId " + serviceId); in onStartCommand()
230 mLastServiceId = serviceId; in onStartCommand()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DPsipData.java244 int serviceId, in SdtItem() argument
249 mServiceId = serviceId; in SdtItem()
DSectionParser.java1089 int serviceId = ((data[pos] & 0xff) << 8) | (data[pos + 1] & 0xff); in parseSDT() local
1108 serviceId, in parseSDT()