/foundation/communication/bluetooth_service/services/bluetooth/stack/src/sdp/ |
H A D | sdp_client_parse.c | 47 static int SdpParseAttributeValue(BufferInfo *bufferInfo, uint16_t attributeId, SdpService *service); 48 static void SdpFreeService(SdpService *service); 421 static int SdpParseSingleAttributeList(BufferInfo *bufferInfo, SdpService *service) in SdpParseSingleAttributeList() argument 428 service->attributeNumber = 0; in SdpParseSingleAttributeList() 429 service->attribute = MEM_MALLOC.alloc(sizeof(SdpAttribute) * SDP_ATTRIBUTE_COUNT); in SdpParseSingleAttributeList() 430 if (service->attribute == NULL) { in SdpParseSingleAttributeList() 435 service->attribute, sizeof(SdpAttribute) * SDP_ATTRIBUTE_COUNT, 0, sizeof(SdpAttribute) * SDP_ATTRIBUTE_COUNT); in SdpParseSingleAttributeList() 437 service->sequenceAttributeNumber = 0; in SdpParseSingleAttributeList() 438 service->sequenceAttribute = MEM_MALLOC.alloc(sizeof(SdpSequenceAttribute) * SDP_SEQUENCE_ATTRIBUTE_COUNT); in SdpParseSingleAttributeList() 439 if (service in SdpParseSingleAttributeList() 494 SdpParseAttributeList(const BtAddr *addr, uint16_t transactionId, Packet *data, SdpService *service) SdpParseAttributeList() argument 736 SdpService service; SdpParseAttributeResponse() local 928 SdpGetServiceRecordHandle(BufferInfo *bufferInfo, SdpService *service) SdpGetServiceRecordHandle() argument 933 SdpGetServiceClassIdList(BufferInfo *bufferInfo, SdpService *service) SdpGetServiceClassIdList() argument 974 SdpGetServiceRecordState(BufferInfo *bufferInfo, SdpService *service) SdpGetServiceRecordState() argument 979 SdpGetServiceId(uint8_t *buffer, SdpService *service) SdpGetServiceId() argument 1078 SdpGetProtocolDescriptorList(BufferInfo *bufferInfo, SdpService *service) SdpGetProtocolDescriptorList() argument 1096 SdpGetAdditionalProtocolDescriptorList(BufferInfo *bufferInfo, SdpService *service) SdpGetAdditionalProtocolDescriptorList() argument 1151 SdpGetBrowseGroupList(BufferInfo *bufferInfo, SdpService *service) SdpGetBrowseGroupList() argument 1188 SdpGetLanguageBaseAttributeIdList(BufferInfo *bufferInfo, SdpService *service) SdpGetLanguageBaseAttributeIdList() argument 1259 SdpGetServiceInfoTimeToLive(BufferInfo *bufferInfo, SdpService *service) SdpGetServiceInfoTimeToLive() argument 1264 SdpGetServiceAvailability(uint8_t *buffer, SdpService *service) SdpGetServiceAvailability() argument 1280 SdpGetBluetoothProfileDescriptorList(BufferInfo *bufferInfo, SdpService *service) SdpGetBluetoothProfileDescriptorList() argument 1353 SdpGetDocumentationUrl(BufferInfo *bufferInfo, SdpService *service) SdpGetDocumentationUrl() argument 1365 SdpGetClientExecutableUrl(BufferInfo *bufferInfo, SdpService *service) SdpGetClientExecutableUrl() argument 1377 SdpGetIconUrl(BufferInfo *bufferInfo, SdpService *service) SdpGetIconUrl() argument 1389 SdpGetServiceName(BufferInfo *bufferInfo, SdpService *service) SdpGetServiceName() argument 1401 SdpGetServiceDescription(BufferInfo *bufferInfo, SdpService *service) SdpGetServiceDescription() argument 1413 SdpGetProviderName(BufferInfo *bufferInfo, SdpService *service) SdpGetProviderName() argument 1425 SdpGetSequenceAttribute(uint16_t attributeId, BufferInfo *bufferInfo, SdpService *service) SdpGetSequenceAttribute() argument 1461 SdpGetAttributeForBool(uint8_t *buffer, uint8_t size, SdpService *service) SdpGetAttributeForBool() argument 1489 SdpGetAttributeForUint(uint8_t *buffer, uint8_t size, SdpService *service) SdpGetAttributeForUint() argument 1555 SdpGetAttributeForInt(uint8_t *buffer, uint8_t size, SdpService *service) SdpGetAttributeForInt() argument 1613 SdpGetAttributeForUuid(uint8_t *buffer, uint8_t size, SdpService *service) SdpGetAttributeForUuid() argument 1665 SdpGetAttributeForString(uint8_t *buffer, uint8_t size, SdpService *service) SdpGetAttributeForString() argument 1710 SdpGetAttributeForUrl(uint8_t *buffer, uint8_t size, SdpService *service) SdpGetAttributeForUrl() argument 1755 SdpGetAttribute(uint16_t attributeId, BufferInfo *bufferInfo, SdpService *service) SdpGetAttribute() argument 1797 SdpParseAttributeValue(BufferInfo *bufferInfo, uint16_t attributeId, SdpService *service) SdpParseAttributeValue() argument 1842 SdpFreeServiceRemained(SdpService *service) SdpFreeServiceRemained() argument 1878 SdpFreeService(SdpService *service) SdpFreeService() argument [all...] |
/foundation/filemanagement/storage_service/services/storage_manager/user/test/ |
H A D | multi_user_manager_service_test.cpp | 56 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); in HWTEST_F() local 60 if (service != nullptr) { in HWTEST_F() 61 result = service->PrepareAddUser(userId, flag); in HWTEST_F() 64 service->RemoveUser(userId, flag); in HWTEST_F() 80 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); in HWTEST_F() local 84 if (service != nullptr) { in HWTEST_F() 85 result = service->PrepareAddUser(userId, flag); in HWTEST_F() 88 service->RemoveUser(userId, flag); in HWTEST_F() 104 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); in HWTEST_F() local 108 if (service ! in HWTEST_F() 128 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 153 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 177 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 200 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 224 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 250 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 272 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 296 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 322 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 344 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 369 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local 394 std::shared_ptr<MultiUserManagerService> service = DelayedSingleton<MultiUserManagerService>::GetInstance(); HWTEST_F() local [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/test/unittest/audio_spatialization_service_unit_test/src/ |
H A D | audio_spatialization_service_unit_test.cpp | 64 AudioSpatializationService service; in HWTEST_F() local 67 service.UpdateCurrentDevice(newMacAddress); in HWTEST_F() 68 EXPECT_EQ(service.GetCurrentDeviceAddress(), newMacAddress); in HWTEST_F() 71 service.UpdateCurrentDevice(newMacAddress); in HWTEST_F() 72 EXPECT_EQ(service.GetCurrentDeviceAddress(), newMacAddress); in HWTEST_F() 75 std::string originalAddress = service.GetCurrentDeviceAddress(); in HWTEST_F() 76 service.UpdateCurrentDevice(""); in HWTEST_F() 77 EXPECT_NE(service.GetCurrentDeviceAddress(), originalAddress); in HWTEST_F() 81 service.addressToSpatialDeviceStateMap_[service in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwareservice/src/ |
H A D | distributed_hardware_service_test.cpp | 63 DistributedHardwareService service(ASID, true); in HWTEST_F() 64 auto ret = service.RegisterPublisherListener(TOPIC, g_listener); in HWTEST_F() 77 DistributedHardwareService service(ASID, true); in HWTEST_F() 79 auto ret = service.RegisterPublisherListener(TOPIC, listener); in HWTEST_F() 91 DistributedHardwareService service(ASID, true); in HWTEST_F() 92 service.RegisterPublisherListener(TOPIC, g_listener); in HWTEST_F() 93 auto ret = service.UnregisterPublisherListener(TOPIC, g_listener); in HWTEST_F() 106 DistributedHardwareService service(ASID, true); in HWTEST_F() 108 service.RegisterPublisherListener(TOPIC, g_listener); in HWTEST_F() 109 auto ret = service in HWTEST_F() [all...] |
/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/src/appmgr/ |
H A D | app_mgr_client.cpp | 140 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); in LoadAbility() local 141 if (service != nullptr) { in LoadAbility() 142 sptr<IAmsMgr> amsService = service->GetAmsMgr(); in LoadAbility() 158 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); in TerminateAbility() local 159 if (service != nullptr) { in TerminateAbility() 160 sptr<IAmsMgr> amsService = service->GetAmsMgr(); in TerminateAbility() 171 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); in UpdateAbilityState() local 172 if (service != nullptr) { in UpdateAbilityState() 173 sptr<IAmsMgr> amsService = service->GetAmsMgr(); in UpdateAbilityState() 184 sptr<IAppMgr> service in UpdateExtensionState() local 197 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); RegisterAppStateCallback() local 210 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); KillProcessByAbilityToken() local 223 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); KillProcessesByUserId() local 236 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); KillProcessesByPids() local 250 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); AttachPidToParent() local 263 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); UpdateApplicationInfoInstalled() local 279 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); KillApplication() local 296 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); ForceKillApplication() local 312 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); KillProcessesByAccessTokenId() local 329 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); KillApplicationByUid() local 345 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); KillApplicationSelf() local 362 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); ClearUpApplicationData() local 375 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); ClearUpApplicationDataBySelf() local 388 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetAllRunningProcesses() local 401 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetProcessRunningInfosByUserId() local 414 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetProcessRunningInformation() local 427 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetAllRunningInstanceKeysBySelf() local 443 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetAllRunningInstanceKeysByBundleName() local 458 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetAllRenderProcesses() local 471 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetAllChildrenProcesses() local 486 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); NotifyMemoryLevel() local 497 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); NotifyProcMemoryLevel() local 508 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); DumpHeapMemory() local 518 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); DumpJsHeapMemory() local 528 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetConfiguration() local 549 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); IsProcessContainsOnlyUIAbility() local 569 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); AbilityAttachTimeOut() local 582 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); PrepareTerminate() local 596 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetRunningProcessInfoByToken() local 607 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetRunningProcessInfoByPid() local 617 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); SetAbilityForegroundingFlagToAppRecord() local 628 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); AddAbilityStageDone() local 639 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); StartupResidentProcess() local 651 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); StartUserTestProcess() local 661 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); FinishUserTest() local 672 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); StartSpecifiedAbility() local 695 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); StartSpecifiedProcess() local 708 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); RegisterStartSpecifiedAbilityResponse() local 721 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); ScheduleAcceptWantDone() local 732 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); UpdateConfiguration() local 745 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); UpdateConfigurationByBundleName() local 755 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); RegisterConfigurationObserver() local 768 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); UnregisterConfigurationObserver() local 781 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetAbilityRecordsByProcessID() local 792 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetApplicationInfoByProcessID() local 807 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); NotifyAppMgrRecordExitReason() local 822 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); StartNativeProcessForDebugger() local 834 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); PreStartNWebSpawnProcess() local 845 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); StartRenderProcess() local 860 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); AttachRenderProcess() local 869 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetRenderProcessTerminationStatus() local 883 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); SetCurrentUserId() local 896 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); SetEnableStartProcessFlagByUserId() local 909 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetBundleNameByPid() local 923 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); NotifyAppFault() local 932 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); NotifyAppFaultBySA() local 941 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); SetAppFreezeFilter() local 953 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); ChangeAppGcState() local 1060 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); IsAmsServiceReady() local 1077 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); RegisterApplicationStateObserver() local 1086 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); UnregisterApplicationStateObserver() local 1095 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); NotifyPageShow() local 1104 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); NotifyPageHide() local 1118 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); RegisterAppRunningStatusListener() local 1133 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); UnregisterAppRunningStatusListener() local 1143 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); ClearProcessByToken() local 1158 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); IsFinalAppProcess() local 1168 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); RegisterRenderStateObserver() local 1177 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); UnregisterRenderStateObserver() local 1186 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); UpdateRenderState() local 1195 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetAppRunningUniqueIdByPid() local 1205 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetAllUIExtensionRootHostPid() local 1215 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); GetAllUIExtensionProviderPid() local 1225 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); NotifyMemorySizeStateChanged() local 1235 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); IsMemorySizeSufficent() local 1251 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); PreloadApplication() local 1261 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); SetSupportedProcessCacheSelf() local 1272 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); SetSupportedProcessCache() local 1282 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); SaveBrowserChannel() local 1292 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); CheckCallingIsUserTestMode() local 1301 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); AttachedToStatusBar() local 1315 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); NotifyProcessDependedOnWeb() local 1326 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); KillProcessDependedOnWeb() local 1337 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); BlockProcessCacheByPids() local 1350 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); CleanAbilityByUserRequest() local 1366 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); IsKilledForUpgradeWeb() local 1382 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); IsProcessAttached() local 1395 sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject()); IsAppKilling() local [all...] |
/foundation/multimedia/av_session/frameworks/native/session/src/ |
H A D | avsession_manager_impl.cpp | 47 SLOGE("failed to get service"); in GetService() 61 SLOGD("get service success"); in GetService() 100 auto service = GetService(); in CreateSession() local 101 return service ? service->CreateSession(tag, type, elementName) : nullptr; in CreateSession() 119 auto service = GetService(); in CreateSession() local 120 return service ? service->CreateSession(tag, type, elementName, session) : ERR_SERVICE_NOT_EXIST; in CreateSession() 125 auto service = GetService(); in GetAllSessionDescriptors() local 126 return service in GetAllSessionDescriptors() 151 auto service = GetService(); GetSessionDescriptorsBySessionId() local 158 auto service = GetService(); GetHistoricalSessionDescriptors() local 165 auto service = GetService(); GetHistoricalAVQueueInfos() local 171 auto service = GetService(); StartAVPlayback() local 177 auto service = GetService(); IsAudioPlaybackAllowed() local 190 auto service = GetService(); CreateController() local 204 auto service = GetService(); GetAVCastController() local 226 auto service = GetService(); RegisterSessionListener() local 250 auto service = GetService(); RegisterSessionListenerForAllUsers() local 290 auto service = GetService(); SendSystemAVKeyEvent() local 304 auto service = GetService(); SendSystemControlCommand() local 318 auto service = GetService(); CastAudio() local 326 auto service = GetService(); CastAudioForAll() local 334 auto service = GetService(); Close() local 351 auto service = GetService(); StartCastDiscovery() local 358 auto service = GetService(); StopCastDiscovery() local 365 auto service = GetService(); SetDiscoverable() local 372 auto service = GetService(); StartDeviceLogging() local 379 auto service = GetService(); StopDeviceLogging() local 386 auto service = GetService(); StartCast() local 393 auto service = GetService(); StopCast() local [all...] |
/foundation/filemanagement/app_file_service/test/fuzztest/backupservicestub_fuzzer/ |
H A D | backupservicestub_fuzzer.cpp | 25 #include "service.h" 58 bool OnRemoteRequestFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) in OnRemoteRequestFuzzTest() argument 72 service->OnRemoteRequest(code, msg, reply, option); in OnRemoteRequestFuzzTest() 76 bool CmdInitRestoreSessionFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) in CmdInitRestoreSessionFuzzTest() argument 84 service->CmdInitRestoreSession(msg, reply); in CmdInitRestoreSessionFuzzTest() 91 bool CmdInitBackupSessionFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) in CmdInitBackupSessionFuzzTest() argument 99 service->CmdInitBackupSession(msg, reply); in CmdInitBackupSessionFuzzTest() 106 bool CmdStartFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) in CmdStartFuzzTest() argument 112 service->CmdStart(msg, reply); in CmdStartFuzzTest() 119 bool CmdGetLocalCapabilitiesFuzzTest(sptr<Service> service, cons argument 132 CmdPublishFileFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdPublishFileFuzzTest() argument 156 CmdAppFileReadyFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdAppFileReadyFuzzTest() argument 183 CmdAppDoneFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdAppDoneFuzzTest() argument 202 CmdResultReportFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdResultReportFuzzTest() argument 225 CmdGetFileHandleFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdGetFileHandleFuzzTest() argument 241 CmdAppendBundlesRestoreSessionFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdAppendBundlesRestoreSessionFuzzTest() argument 268 CmdAppendBundlesDetailsRestoreSessionFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdAppendBundlesDetailsRestoreSessionFuzzTest() argument 299 CmdAppendBundlesBackupSessionFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdAppendBundlesBackupSessionFuzzTest() argument 315 CmdAppendBundlesDetailsBackupSessionFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdAppendBundlesDetailsBackupSessionFuzzTest() argument 335 CmdFinishFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdFinishFuzzTest() argument 347 CmdReleaseFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdReleaseFuzzTest() argument 359 CmdGetLocalCapabilitiesIncrementalFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdGetLocalCapabilitiesIncrementalFuzzTest() argument 375 CmdGetAppLocalListAndDoIncrementalBackupFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdGetAppLocalListAndDoIncrementalBackupFuzzTest() argument 387 CmdInitIncrementalBackupSessionFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdInitIncrementalBackupSessionFuzzTest() argument 402 CmdAppendBundlesIncrementalBackupSessionFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdAppendBundlesIncrementalBackupSessionFuzzTest() argument 418 CmdAppendBundlesDetailsIncrementalBackupSessionFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdAppendBundlesDetailsIncrementalBackupSessionFuzzTest() argument 438 CmdPublishIncrementalFileFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdPublishIncrementalFileFuzzTest() argument 462 CmdPublishSAIncrementalFileFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdPublishSAIncrementalFileFuzzTest() argument 488 CmdAppIncrementalFileReadyFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdAppIncrementalFileReadyFuzzTest() argument 517 CmdAppIncrementalDoneFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdAppIncrementalDoneFuzzTest() argument 536 CmdGetIncrementalFileHandleFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdGetIncrementalFileHandleFuzzTest() argument 552 CmdGetBackupInfoFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdGetBackupInfoFuzzTest() argument 566 CmdUpdateTimerFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdUpdateTimerFuzzTest() argument 587 CmdUpdateSendRateFuzzTest(sptr<Service> service, const uint8_t *data, size_t size) CmdUpdateSendRateFuzzTest() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/ |
H A D | gatt_database.cpp | 34 int GattDatabase::AddService(bluetooth::Service &service) in AddService() argument 36 std::pair<uint16_t, uint16_t> availableHandlePair = CalculateAndAssignHandle(service); in AddService() 42 service.handle_ = currentHandle++; in AddService() 43 service.endHandle_ = availableHandlePair.second; in AddService() 44 // copy service in AddService() 45 Service dbService(service); in AddService() 48 for (auto &includeService : service.includeServices_) { in AddService() 53 for (auto &ccc : service.characteristics_) { in AddService() 62 valueHandleMap_.emplace(ccc.valueHandle_, std::make_pair(service.handle_, ccc.handle_)); in AddService() 72 valueHandleMap_.emplace(descriptor.handle_, std::make_pair(service in AddService() 119 ReleaseHandle(GattDatabase::Service &service) ReleaseHandle() argument 222 auto service = services_.find(serviceHandle); GetIncludeServices() local 245 auto service = services_.find(serviceHandle); GetCharacteristics() local 254 auto service = services_.find(handle); GetService() local 265 auto service = services_.find(it->second.first); GetCharacteristic() local 282 auto service = services_.find(it->second.first); GetDescriptor() local 415 CheckLegalityOfServiceDefinition(bluetooth::Service &service) CheckLegalityOfServiceDefinition() argument 434 CheckRestrictedGattBasedService(const bluetooth::Service &service) CheckRestrictedGattBasedService() argument [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilityautostartupserviceb_fuzzer/ |
H A D | abilityautostartupserviceb_fuzzer.cpp | 70 std::shared_ptr<AbilityAutoStartupService> service = std::make_shared<AbilityAutoStartupService>(); in AbilityStartupServiceFuzztest1() local 71 service->SetDeathRecipient(nullptr, nullptr); in AbilityStartupServiceFuzztest1() 73 service->SetDeathRecipient(token1, nullptr); // add deathrecipient in AbilityStartupServiceFuzztest1() 75 new (std::nothrow) AbilityAutoStartupService::ClientDeathRecipient(std::weak_ptr(service)); in AbilityStartupServiceFuzztest1() 76 service->SetDeathRecipient(token1, client); // add deathrecipient in AbilityStartupServiceFuzztest1() 77 service->SetDeathRecipient(token1, client); // duplicate add deathrecipient in AbilityStartupServiceFuzztest1() 79 service->RegisterAutoStartupSystemCallback(token1); in AbilityStartupServiceFuzztest1() 80 service->CleanResource(nullptr); // branch nullptr token in AbilityStartupServiceFuzztest1() 81 service->CleanResource(token1); // branch clean exists token in AbilityStartupServiceFuzztest1() 82 service in AbilityStartupServiceFuzztest1() [all...] |
/foundation/communication/nfc/test/unittest/services/services_test/ |
H A D | nfc_polling_manager_test.cpp | 72 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); in HWTEST_F() local 73 service->Initialize(); in HWTEST_F() 74 std::weak_ptr<NFC::NfcPollingManager> nfcPollingManager = service->GetNfcPollingManager(); in HWTEST_F() 85 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); in HWTEST_F() local 86 service->Initialize(); in HWTEST_F() 87 std::weak_ptr<NFC::NfcPollingManager> nfcPollingManager = service->GetNfcPollingManager(); in HWTEST_F() 99 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); in HWTEST_F() local 100 service->Initialize(); in HWTEST_F() 101 std::weak_ptr<NFC::NfcPollingManager> nfcPollingManager = service->GetNfcPollingManager(); in HWTEST_F() 115 std::shared_ptr<NfcService> service in HWTEST_F() local 128 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 143 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 158 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 175 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 194 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 212 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 230 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 248 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 263 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 280 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local [all...] |
/foundation/systemabilitymgr/samgr_lite/communication/broadcast/source/ |
H A D | broadcast_service.c | 22 static const char *GetName(Service *service);
23 static BOOL Initialize(Service *service, Identity identity);
24 static TaskConfig GetTaskConfig(Service *service);
25 static BOOL MessageHandle(Service *service, Request *request);
39 static const char *GetName(Service *service)
in GetName() argument 41 (void)service;
in GetName() 45 static BOOL Initialize(Service *service, Identity identity)
in Initialize() argument 48 if (service == NULL) {
in Initialize() 54 static BOOL MessageHandle(Service *service, Request *request)
in MessageHandle() argument 56 (void)service;
in MessageHandle() 66 GetTaskConfig(Service *service) GetTaskConfig() argument [all...] |
/foundation/communication/nfc/test/unittest/services/services_tags_test/ |
H A D | tag_session_test.cpp | 75 std::shared_ptr<NfcService> service = std::make_shared<NfcService>();
in HWTEST_F() local 76 sptr<NFC::TAG::TagSession> tagSession = new NFC::TAG::TagSession(service);
in HWTEST_F() 89 std::shared_ptr<NfcService> service = std::make_shared<NfcService>();
in HWTEST_F() local 90 sptr<NFC::TAG::TagSession> tagSession = new NFC::TAG::TagSession(service);
in HWTEST_F() 103 std::shared_ptr<NfcService> service = std::make_shared<NfcService>();
in HWTEST_F() local 104 sptr<NFC::TAG::TagSession> tagSession = new NFC::TAG::TagSession(service);
in HWTEST_F() 118 std::shared_ptr<NfcService> service = std::make_shared<NfcService>();
in HWTEST_F() local 119 sptr<NFC::TAG::TagSession> tagSession = new NFC::TAG::TagSession(service);
in HWTEST_F() 133 std::shared_ptr<NfcService> service = std::make_shared<NfcService>();
in HWTEST_F() local 134 sptr<NFC::TAG::TagSession> tagSession = new NFC::TAG::TagSession(service);
in HWTEST_F() 148 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 161 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 176 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 189 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 203 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 217 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 232 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 246 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 259 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 272 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 287 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 302 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 317 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 333 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 347 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 362 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 378 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 391 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 405 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 419 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 433 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 448 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 461 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 477 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 494 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 508 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 523 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 538 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 554 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 567 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 581 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 597 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 611 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 626 std::shared_ptr<NfcService> service = nullptr; HWTEST_F() local 639 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 653 std::shared_ptr<NfcService> service = nullptr; HWTEST_F() local 671 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local [all...] |
H A D | wifi_connection_manager_test.cpp | 63 std::shared_ptr<NfcService> service = std::make_shared<NfcService>();
in HWTEST_F() local 64 WifiConnectionManager::GetInstance().Initialize(service);
in HWTEST_F() 66 ASSERT_TRUE(service != nullptr);
in HWTEST_F() 79 std::shared_ptr<NfcService> service = std::make_shared<NfcService>();
in HWTEST_F() local 80 WifiConnectionManager::GetInstance().Initialize(service);
in HWTEST_F() 82 ASSERT_TRUE(service != nullptr);
in HWTEST_F() 99 std::shared_ptr<NfcService> service = std::make_shared<NfcService>();
in HWTEST_F() local 100 WifiConnectionManager::GetInstance().Initialize(service);
in HWTEST_F() 102 ASSERT_TRUE(service != nullptr);
in HWTEST_F() 118 std::shared_ptr<NfcService> service in HWTEST_F() local 138 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 158 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 177 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local 197 std::shared_ptr<NfcService> service = std::make_shared<NfcService>(); HWTEST_F() local [all...] |
/foundation/ability/dmsfwk_lite/source/ |
H A D | dmslite.c | 28 static const char *GetName(Service *service); 29 static BOOL Initialize(Service *service, Identity identity); 30 static BOOL MessageHandle(Service *service, Request *request); 31 static TaskConfig GetTaskConfig(Service *service); 40 static const char *GetName(Service *service) in GetName() argument 42 if (service == NULL) { in GetName() 48 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument 50 if (service == NULL) { in Initialize() 54 ((DistributedService*) service)->identity = identity; in Initialize() 58 static BOOL MessageHandle(Service *service, Reques argument 69 GetTaskConfig(Service *service) GetTaskConfig() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_service_connection.cpp | 33 A2dpService *service = GetServiceInstance(role_); in A2dpConnect() local 36 if (service == nullptr) { in A2dpConnect() 37 LOG_ERROR("[A2dpConnectManager] %{public}s Can't get the instance of service\n", __func__); in A2dpConnect() 41 for (auto bdr : service->GetDeviceList()) { in A2dpConnect() 69 A2dpService *service = GetServiceInstance(role_); in A2dpDisconnect() local 71 if (service == nullptr) { in A2dpDisconnect() 72 LOG_ERROR("[A2dpConnectManager] %{public}s Can't get the instance of service\n", __func__); in A2dpDisconnect() 76 A2dpDeviceInfo *deviceInfo = service->GetDeviceFromList(device); in A2dpDisconnect() 94 A2dpService *service = GetServiceInstance(role_); in JudgeConnectedNum() local 96 if (service in JudgeConnectedNum() 129 A2dpService *service = GetServiceInstance(role_); AddDevice() local 149 A2dpService *service = GetServiceInstance(role_); DeleteDevice() local 161 A2dpService *service = nullptr; JudgeConnectExit() local [all...] |
/foundation/resourceschedule/work_scheduler/services/native/src/ |
H A D | work_event_handler.cpp | 28 const std::shared_ptr<WorkSchedulerService>& service) : EventHandler(runner), service_(service) in WorkEventHandler() 40 auto service = service_.lock(); in ProcessEvent() local 41 if (!service) { in ProcessEvent() 48 service->GetWorkPolicyManager()->CheckWorkToRun(); in ProcessEvent() 52 service->Init(GetEventRunner()); in ProcessEvent() 56 service->GetWorkPolicyManager()->TriggerIdeWork(); in ProcessEvent() 60 service->TriggerWorkIfConditionReady(); in ProcessEvent() 65 service->GetWorkQueueManager()->OnConditionChanged(WorkCondition::Type::DEEP_IDLE, in ProcessEvent() 67 service in ProcessEvent() 27 WorkEventHandler(const shared_ptr<EventRunner>& runner, const std::shared_ptr<WorkSchedulerService>& service) WorkEventHandler() argument [all...] |
/foundation/ability/ability_lite/services/abilitymgr_lite/src/task/ |
H A D | ability_connect_task.cpp | 34 PageAbilityRecord *service = stackManager.FindServiceAbility(*abilityMgrContext_,
in Execute() local 36 if (service == nullptr) {
in Execute() 37 return AbilityMsStatus::TaskStatus("connectTask", "service ability does not exists");
in Execute() 39 if (service->IsPerformStop()) {
in Execute() 40 return AbilityMsStatus::TaskStatus("connectTask", "service has stopped");
in Execute() 42 return PerformConnectTask(service);
in Execute() 45 AbilityMsStatus AbilityConnectTask::PerformConnectTask(PageAbilityRecord *service)
in PerformConnectTask() argument 47 ConnectStatus serviceConnectStatus = service->GetConnectStatus();
in PerformConnectTask() 50 PRINTW("AbilityConnectTask", "service status has disconnected");
in PerformConnectTask() 51 return AbilityMsStatus::TaskStatus("AbilityConnectTask", "service statu in PerformConnectTask() [all...] |
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/ipc/ |
H A D | cloud_sync_service_stub_test.cpp | 111 MockService service; in HWTEST_F() local 112 EXPECT_CALL(service, UnRegisterCallbackInner(bundleName)).WillOnce(Return(E_OK)); in HWTEST_F() 123 EXPECT_EQ(E_OK, service.OnRemoteRequest( in HWTEST_F() 145 MockService service; in HWTEST_F() local 146 EXPECT_CALL(service, RegisterCallbackInner(_, bundleName)).WillOnce(Return(E_OK)); in HWTEST_F() 157 EXPECT_EQ(E_OK, service.OnRemoteRequest( in HWTEST_F() 179 MockService service; in HWTEST_F() local 180 EXPECT_CALL(service, StartSyncInner(_, bundleName)).WillOnce(Return(E_OK)); in HWTEST_F() 191 EXPECT_EQ(E_OK, service.OnRemoteRequest( in HWTEST_F() 211 MockService service; in HWTEST_F() local 240 MockService service; HWTEST_F() local 271 MockService service; HWTEST_F() local 298 MockService service; HWTEST_F() local 324 MockService service; HWTEST_F() local 351 MockService service; HWTEST_F() local 378 MockService service; HWTEST_F() local 405 MockService service; HWTEST_F() local 431 MockService service; HWTEST_F() local 458 MockService service; HWTEST_F() local 485 MockService service; HWTEST_F() local 513 MockService service; HWTEST_F() local 541 MockService service; HWTEST_F() local 568 MockService service; HWTEST_F() local 594 MockService service; HWTEST_F() local 620 MockService service; HWTEST_F() local 646 MockService service; HWTEST_F() local 674 MockService service; HWTEST_F() local 703 MockService service; HWTEST_F() local [all...] |
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/ |
H A D | client_factory.c | 31 static Factory *GetFactory(const char *service, const char *feature);
33 void *SAMGR_CreateIClient(const char *service, const char *feature, uint32 size)
in SAMGR_CreateIClient() argument 35 if (service == NULL) {
in SAMGR_CreateIClient() 43 Factory *factory = GetFactory(service, feature);
in SAMGR_CreateIClient() 48 return factory->creator(service, feature, size);
in SAMGR_CreateIClient() 51 int SAMGR_ReleaseIClient(const char *service, const char *feature, void *iClient)
in SAMGR_ReleaseIClient() argument 53 if (service == NULL || iClient == NULL) {
in SAMGR_ReleaseIClient() 61 Factory *factory = GetFactory(service, feature);
in SAMGR_ReleaseIClient() 65 factory->destroyer(service, feature, iClient);
in SAMGR_ReleaseIClient() 69 int SAMGR_RegisterFactory(const char *service, cons argument 107 GetFactory(const char *service, const char *feature) GetFactory() argument [all...] |
/foundation/filemanagement/storage_service/services/storage_manager/storage/test/ |
H A D | storage_total_status_service_test.cpp | 79 std::shared_ptr<StorageTotalStatusService> service = DelayedSingleton<StorageTotalStatusService>::GetInstance(); in HWTEST_F() local 81 int32_t result = service->GetSystemSize(systemSize); in HWTEST_F() 98 std::shared_ptr<StorageTotalStatusService> service = DelayedSingleton<StorageTotalStatusService>::GetInstance(); in HWTEST_F() local 100 int32_t result = service->GetTotalSize(totalSize); in HWTEST_F() 117 std::shared_ptr<StorageTotalStatusService> service = DelayedSingleton<StorageTotalStatusService>::GetInstance(); in HWTEST_F() local 119 int32_t result = service->GetFreeSize(freeSize); in HWTEST_F() 136 std::shared_ptr<StorageStatusService> service = DelayedSingleton<StorageStatusService>::GetInstance(); in HWTEST_F() local 148 int32_t result = service->GetUserStorageStats(storageStats); in HWTEST_F() 165 std::shared_ptr<StorageStatusService> service = DelayedSingleton<StorageStatusService>::GetInstance(); in HWTEST_F() local 168 int32_t result = service in HWTEST_F() 185 std::shared_ptr<StorageStatusService> service = DelayedSingleton<StorageStatusService>::GetInstance(); HWTEST_F() local 205 std::shared_ptr<StorageStatusService> service = DelayedSingleton<StorageStatusService>::GetInstance(); HWTEST_F() local 226 std::shared_ptr<StorageStatusService> service = DelayedSingleton<StorageStatusService>::GetInstance(); HWTEST_F() local 245 std::shared_ptr<BundleMgrConnector> service = DelayedSingleton<BundleMgrConnector>::GetInstance(); HWTEST_F() local 262 std::shared_ptr<StorageStatusService> service = DelayedSingleton<StorageStatusService>::GetInstance(); HWTEST_F() local 282 std::shared_ptr<StorageMonitorService> service = DelayedSingleton<StorageMonitorService>::GetInstance(); HWTEST_F() local 299 std::shared_ptr<StorageMonitorService> service = DelayedSingleton<StorageMonitorService>::GetInstance(); HWTEST_F() local 316 std::shared_ptr<StorageMonitorService> service = DelayedSingleton<StorageMonitorService>::GetInstance(); HWTEST_F() local 333 std::shared_ptr<StorageMonitorService> service = DelayedSingleton<StorageMonitorService>::GetInstance(); HWTEST_F() local [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_sa/module_ipc/ |
H A D | service_stub_test.cpp | 97 static inline shared_ptr<ServiceMock> service = nullptr; member in OHOS::FileManagement::Backup::ServiceStubTest 105 service = make_shared<ServiceMock>(); in SetUpTestCase() 114 service = nullptr; in TearDownTestCase() 138 EXPECT_TRUE(service != nullptr); in HWTEST_F() 139 auto err = service->OnRemoteRequest(0, data, reply, option); in HWTEST_F() 145 err = service->OnRemoteRequest(static_cast<uint32_t>(IServiceInterfaceCode::SERVICE_CMD_GET_FILE_NAME), in HWTEST_F() 150 auto ret = service->OnRemoteRequest(-1, data, reply, option); in HWTEST_F() 175 EXPECT_TRUE(service != nullptr); in HWTEST_F() 176 auto err = service->CmdInitRestoreSession(data, reply); in HWTEST_F() 181 err = service in HWTEST_F() [all...] |
/foundation/filemanagement/app_file_service/test/fuzztest/backupsaanother_fuzzer/ |
H A D | backupsaanother_fuzzer.cpp | 25 #include "service.h" 56 sptr service(new Service(SERVICE_ID)); in CmdGetFileHandleFuzzTest() 57 service->OnRemoteRequest(static_cast<uint32_t>(IServiceInterfaceCode::SERVICE_CMD_GET_FILE_NAME), in CmdGetFileHandleFuzzTest() 59 service = nullptr; in CmdGetFileHandleFuzzTest() 81 sptr service(new Service(SERVICE_ID)); in CmdAppendBundlesBackupSessionFuzzTest() 83 service->OnRemoteRequest(code, datas, reply, option); in CmdAppendBundlesBackupSessionFuzzTest() 84 service = nullptr; in CmdAppendBundlesBackupSessionFuzzTest() 97 sptr service(new Service(SERVICE_ID)); in CmdReleaseFuzzTest() 99 service->OnRemoteRequest(code, datas, reply, option); in CmdReleaseFuzzTest() 100 service in CmdReleaseFuzzTest() [all...] |
/foundation/systemabilitymgr/samgr_lite/samgr/source/ |
H A D | task_manager.c | 32 static void BeginWork(ServiceImpl *service);
33 static void EndWork(ServiceImpl *service, const Exchange *exchange);
193 // The ack message use the last service.
in CorrectServiceImpl() 213 static void BeginWork(ServiceImpl *service)
in BeginWork() argument 215 if (service == NULL || service->inited != SVC_IDLE) {
in BeginWork() 219 if (service->ops.step == BOOT_SYS_WAIT) {
in BeginWork() 223 service->ops.messages++;
in BeginWork() 224 service->ops.timestamp = SAMGR_GetProcessTime();
in BeginWork() 225 service in BeginWork() 228 EndWork(ServiceImpl *service, const Exchange *exchange) EndWork() argument [all...] |
/foundation/communication/ipc/services/dbinder/test/unittest/ |
H A D | dbinder_service_stub_unittest.cpp | 69 const std::string service = "serviceTest"; in HWTEST_F() local 72 DBinderServiceStub dBinderServiceStub(service, device, object); in HWTEST_F() 84 const std::string service = ""; in HWTEST_F() local 87 DBinderServiceStub dBinderServiceStub(service, device, object); in HWTEST_F() 99 const std::string service = "serviceTest"; in HWTEST_F() local 102 DBinderServiceStub dBinderServiceStub(service, device, object); in HWTEST_F() 114 const std::string service = "serviceTest"; in HWTEST_F() local 117 DBinderServiceStub dBinderServiceStub(service, device, object); in HWTEST_F() 130 const std::string service = "serviceTest"; in HWTEST_F() local 133 DBinderServiceStub dBinderServiceStub(service, devic in HWTEST_F() 145 const std::string service; HWTEST_F() local 160 const std::string service = "serviceTest"; HWTEST_F() local 175 const std::string service = "serviceTest"; HWTEST_F() local 190 const std::string service = "serviceTest"; HWTEST_F() local 205 const std::string service = "serviceTest"; HWTEST_F() local 220 const std::string service = "serviceTest"; HWTEST_F() local 239 const std::string service = "serviceTest"; HWTEST_F() local 264 const std::string service = "serviceTest"; HWTEST_F() local 283 const std::string service = "serviceTest"; HWTEST_F() local 312 const std::string service = "serviceTest"; HWTEST_F() local 331 const std::string service = "serviceTest"; HWTEST_F() local 351 const std::string service = "serviceTest"; HWTEST_F() local 371 const std::string service = "serviceTest"; HWTEST_F() local 391 const std::string service = "serviceTest"; HWTEST_F() local 409 const std::string service = "serviceTest"; HWTEST_F() local 427 const std::string service = "serviceTest"; HWTEST_F() local 446 const std::string service = "serviceTest"; HWTEST_F() local 465 const std::string service = "serviceTest"; HWTEST_F() local 481 const std::string service = "serviceTest"; HWTEST_F() local 502 const std::string service = "serviceTest"; HWTEST_F() local 523 const std::string service = "serviceTest"; HWTEST_F() local 544 const std::string service = "serviceTest"; HWTEST_F() local 565 const std::string service = "serviceTest"; HWTEST_F() local 582 const std::string service = "serviceTest"; HWTEST_F() local 603 const std::string service = "serviceTest"; HWTEST_F() local 624 const std::string service = "serviceTest"; HWTEST_F() local 645 const std::string service = "serviceTest"; HWTEST_F() local 666 const std::string service = "serviceTest"; HWTEST_F() local 685 const std::string service = "serviceTest"; HWTEST_F() local 704 const std::string service = "serviceTest"; HWTEST_F() local 721 const std::string service = "serviceTest"; HWTEST_F() local [all...] |
/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/ |
H A D | bluetooth_gatt_service_parcel.cpp | 48 BluetoothGattService service = BluetoothGattService(serv); in Marshalling() local 49 if (!parcel.WriteParcelable(&service)) { in Marshalling() 68 BluetoothGattService *service = new BluetoothGattService(); in Unmarshalling() local 69 if (service != nullptr && !service->ReadFromParcel(parcel)) { in Unmarshalling() 70 delete service; in Unmarshalling() 71 service = nullptr; in Unmarshalling() 73 return service; in Unmarshalling() 106 std::shared_ptr<BluetoothGattService> service(parcel.ReadParcelable<BluetoothGattService>()); in ReadFromParcel() 107 if (!service) { in ReadFromParcel() [all...] |