Home
last modified time | relevance | path

Searched refs:notify (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dobject_dms_handler_test.cpp48 notify.srcNetworkId_ = localNetworkId;
49 notify.dstNetworkId_ = "networkId2";
50 notify.srcBundleName_ = "bundleName1";
51 notify.destBundleName_ = "bundleName2";
53 listener.DSchedEventNotify(notify);
74 notify.srcNetworkId_ = "networkId1";
75 notify.dstNetworkId_ = localNetworkId;
76 notify.srcBundleName_ = "bundleName1";
79 listener.DSchedEventNotify(notify);
132 notify.srcNetworkId_ = srcNetworkId;
[all …]
/ohos5.0/foundation/ability/dmsfwk/interfaces/innerkits/tests/
H A Ddms_sdk_demo.cpp74 for (auto notify : notifys) { in GetDSchedEventInfo() local
87 cout << "state: " << notify.state_ << endl << endl; in GetDSchedEventInfo()
93 void Business::DSchedEventNotify(EventNotify& notify) in DSchedEventNotify() argument
96 cout << "eventResult: " << notify.eventResult_ << endl; in DSchedEventNotify()
97 cout << "srcNetworkId: " << notify.srcNetworkId_ << endl; in DSchedEventNotify()
98 cout << "dstNetworkId: " << notify.dstNetworkId_ << endl; in DSchedEventNotify()
99 cout << "srcBundleName: " << notify.srcBundleName_ << endl; in DSchedEventNotify()
100 cout << "srcModuleName: " << notify.srcModuleName_ << endl; in DSchedEventNotify()
101 cout << "srcAbilityName: " << notify.srcAbilityName_ << endl; in DSchedEventNotify()
105 cout << "developerId: " << notify.developerId_ << endl; in DSchedEventNotify()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/adapter/bluetooth/
H A Dsoftbus_adapter_ble_gatt_client_test.cpp47 SoftBusGattcNotify notify; member in OHOS::GattcNotifyRecordCtx
412 SoftBusGattcNotify notify = { variable
474 SoftBusFree(notify.data); in Reset()
475 notify.data = nullptr; in Reset()
484 this->notify = *param; in Update()
487 if (notify.charaUuid.uuid == nullptr || notify.data == nullptr) { in Update()
489 SoftBusFree(notify.data); in Update()
495 SoftBusFree(notify.data); in Update()
498 if (memcpy_s(notify.data, notify.dataLen, param->data, param->dataLen) != EOK) { in Update()
513 if (notify.dataLen != param->dataLen || memcmp(notify.data, param->data, notify.dataLen) != 0) { in Expect()
[all …]
/ohos5.0/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/
H A Dupdate_policy_utils_test.cpp84 packageInfo.description.notify.installTips = TEST_INSTALL_TIPS;
85 packageInfo.description.notify.installTipsDetail = TEST_INSTALL_TIPS_DEATIL;
92 ASSERT_TRUE(packageInfo2.description.notify.installTips.empty());
93 ASSERT_TRUE(packageInfo2.description.notify.installTipsDetail.empty());
109 packageInfo.description.notify.installTips = TEST_INSTALL_TIPS;
110 packageInfo.description.notify.installTipsDetail = TEST_INSTALL_TIPS_DEATIL;
117 ASSERT_TRUE(packageInfo2.description.notify.installTips == TEST_INSTALL_TIPS);
118 ASSERT_TRUE(packageInfo2.description.notify.installTipsDetail == TEST_INSTALL_TIPS_DEATIL);
/ohos5.0/base/security/device_security_level/services/dslm/
H A Ddslm_fsm_process.c238 if (notify == NULL) { in ProcessSdkRequest()
243 notify->owner = inputNotify->owner; in ProcessSdkRequest()
244 notify->cookie = inputNotify->cookie; in ProcessSdkRequest()
245 notify->requestCallback = inputNotify->requestCallback; in ProcessSdkRequest()
246 notify->start = inputNotify->start; in ProcessSdkRequest()
247 notify->keep = inputNotify->keep; in ProcessSdkRequest()
248 if (notify->cookie == 0 || notify->requestCallback == NULL) { in ProcessSdkRequest()
250 FREE(notify); in ProcessSdkRequest()
251 notify = NULL; in ProcessSdkRequest()
255 DslmStartProcessTraceAsync("SDK_GET", notify->owner, notify->cookie); in ProcessSdkRequest()
[all …]
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
H A Dwake_list.rs73 self.notify(Notify::One) in notify_one()
81 self.notify(Notify::All) in notify_all()
84 fn notify(&self, notify_type: Notify) -> bool { in notify() method
87 inner.notify(notify_type) in notify()
107 fn notify(&mut self, notify_type: Notify) -> bool { in notify() method
124 self.notify(Notify::One) in notify_one()
130 self.notify(Notify::All) in notify_all()
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-migration-background.md94 function notify(who: string, what: string) {
98 notify('Jack', 'You look great today')
101 在大多数情况下,函数`notify`会接受两个`string`类型的变量作为输入,产生一个新的字符串。但是,如果将一些特殊值作为输入,例如`notify(null, undefined)`,情况会怎…
116 现在想象一下,如果函数`notify`是某些复杂的负载场景中的一部分,而不仅仅是打印日志,那么在运行时执行像`__internal_tostring`的类型检查将会是一个性能问题。
118 如果可以保证在运行时,只有`string`类型的值(不会是其他值,例如`null`或者`undefined`)可以被传入函数`notify`呢?在这种情况下,因为可以确保没有其他边界情况,像`__i…
121 function notify(who: string, what: string) {
125 notify('Jack', 'You look great today')
126 notify(null, undefined) // 编译时错误
/ohos5.0/drivers/peripheral/usb/test/unittest/device_sdk/
H A Dusb_device_cdcacm_test.cpp458 req->length = sizeof(*notify) + length; in SendNotifyRequest()
462 notify->bNotificationType = type; in SendNotifyRequest()
463 notify->wValue = CPU_TO_LE16(value); in SendNotifyRequest()
465 notify->wLength = CPU_TO_LE16(length); in SendNotifyRequest()
572 if (acm->notify && acm->notify->Connect) { in Enable()
573 acm->notify->Connect(acm); in Enable()
576 if (acm->notify && acm->notify->Disconnect) { in Enable()
577 acm->notify->Disconnect(acm); in Enable()
657 if (acm->notify && acm->notify->Connect) { in Resume()
658 acm->notify->Connect(acm); in Resume()
[all …]
/ohos5.0/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
H A Dusb_device_lite_cdcacm_test.c445 req->length = sizeof(*notify) + length; in SendNotifyRequest()
449 notify->bNotificationType = type; in SendNotifyRequest()
450 notify->wValue = CPU_TO_LE16(value); in SendNotifyRequest()
452 notify->wLength = CPU_TO_LE16(length); in SendNotifyRequest()
562 if (acm->notify && acm->notify->Connect) { in Enable()
563 acm->notify->Connect(acm); in Enable()
566 if (acm->notify && acm->notify->Disconnect) { in Enable()
567 acm->notify->Disconnect(acm); in Enable()
650 if (acm->notify && acm->notify->Connect) { in Resume()
651 acm->notify->Connect(acm); in Resume()
[all …]
/ohos5.0/base/sensors/sensor_lite/frameworks/src/
H A Dsensor_agent_proxy.c130 if (notify == NULL) { in GetSensorInfos()
134 ReadInt32(reply, &(notify->retCode)); in GetSensorInfos()
135 if (notify->retCode < 0) { in GetSensorInfos()
139 ReadInt32(reply, &(notify->count)); in GetSensorInfos()
143 if ((notify->count <= 0) || (data == NULL)) { in GetSensorInfos()
149 *(notify->sensorInfo) = (SensorInfo *)malloc(sizeof(SensorInfo) * notify->count); in GetSensorInfos()
150 if (*(notify->sensorInfo) == NULL) { in GetSensorInfos()
155 for (int32_t i = 0; i < notify->count; i++) { in GetSensorInfos()
159 free(*(notify->sensorInfo)); in GetSensorInfos()
160 *(notify->sensorInfo) = NULL; in GetSensorInfos()
[all …]
/ohos5.0/foundation/ai/ai_engine/services/client/communication_adapter/source/
H A Dsa_client_proxy.cpp59 ReadInt32(reply, &(notify->clientId)); in Callback()
60 ReadUint32(reply, &(notify->serverUid)); in Callback()
71 auto notify = reinterpret_cast<struct NotifyBuff *>(owner); in CallbackBuff() local
72 ReadInt32(reply, &(notify->retCode)); in CallbackBuff()
75 notify->ipcRetCode = UnParcelDataInfo(reply, &dataInfo); in CallbackBuff()
76 if (notify->ipcRetCode == RETCODE_SUCCESS) { in CallbackBuff()
77 notify->outLen = dataInfo.length; in CallbackBuff()
78 notify->outBuff = dataInfo.data; in CallbackBuff()
80 notify->outLen = 0; in CallbackBuff()
81 notify->outBuff = nullptr; in CallbackBuff()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/engine/
H A Dengine_value_manager.cpp279 if (v.second.notify) { in NotifySyncs()
281 v.second.notify = false; in NotifySyncs()
296 bool notify = false; in Sync() local
303 v.second.notify = true; in Sync()
304 notify = true; in Sync()
308 notify = notify && !task_token_; in Sync()
309 if (notify && !queue_.expired()) { in Sync()
318 notify = false; in Sync()
321 if (notify) { in Sync()
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/
H A Dzip_utils.cpp22 …tils::ZipFolder(const std::string &srcPath, const std::string &dstFile, const ZipTickNotify notify) in ZipFolder() argument
41 if ((notify != nullptr) && (notify(UNSET_PROGRESS, UNSET_PROGRESS))) { in ZipFolder()
67 bool ret = zipWriter.Write(zipItems, notify); in ZipFolder()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
H A Drd_single_ver_storage_executor.cpp258 NotifyConflictAndObserverData notify = { in PrepareNotifyForEntries() local
265 notifys.push_back(notify); in PrepareNotifyForEntries()
462 NotifyConflictAndObserverData notify = { in SaveSyncDataItem() local
473 PutIntoCommittedData(entry.key, entry.value, notify); in SaveSyncDataItem()
751 NotifyConflictAndObserverData &notify, bool isDelete) in PrepareForNotifyConflictAndObserver() argument
754 int errCode = DBCommon::CalcValueHash(entry.key, notify.hashKey); in PrepareForNotifyConflictAndObserver()
758 errCode = GetSyncDataPreByKey(entry.key, notify.getData); in PrepareForNotifyConflictAndObserver()
767 notify.dataStatus.isDeleted = isDelete; in PrepareForNotifyConflictAndObserver()
769 notify.dataStatus.preStatus = DataStatus::EXISTED; in PrepareForNotifyConflictAndObserver()
771 notify.dataStatus.preStatus = DataStatus::NOEXISTED; in PrepareForNotifyConflictAndObserver()
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_runtime/
H A Djs_caller_complex.cpp297 auto task = [notify = this, &str] () { in OnReleaseNotify()
298 if (!FindJsCallerComplex(notify)) { in OnReleaseNotify()
302 notify->OnReleaseNotifyTask(str); in OnReleaseNotify()
332 auto task = [notify = this, &str] () { in OnRemoteStateChangedNotify()
333 if (!FindJsCallerComplex(notify)) { in OnRemoteStateChangedNotify()
337 notify->OnRemoteStateChangedNotifyTask(str); in OnRemoteStateChangedNotify()
412 auto task = [notify = this] (const std::string &str) { in SetOnReleaseCallBackInner()
413 if (!FindJsCallerComplexAndChangeState(notify, OBJSTATE::OBJ_EXECUTION)) { in SetOnReleaseCallBackInner()
417 notify->OnReleaseNotify(str); in SetOnReleaseCallBackInner()
452 auto task = [notify = this] (const std::string &str) { in SetOnRemoteStateChangedInner()
[all …]
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/platform/liteos/dfile/
H A Dsys_dfile.c44 char notify = 0; in NotifyPipeEvent() local
46 if (write(session->receiverPipe[PIPE_IN], &notify, sizeof(notify)) <= 0) { in NotifyPipeEvent()
/ohos5.0/base/security/security_guard/test/unittest/risk_collect/src/
H A Drisk_collect_test.cpp204 UeventNotify notify(mockObj);
207 notify.NotifyScan();
208 notify.NotifyScan();
209 notify.NotifyScan();
222 UeventNotify notify(mockObj);
225 notify.AddWhiteList(whitelist);
227 notify.AddWhiteList(whitelist);
228 notify.AddWhiteList(whitelist);
229 notify.AddWhiteList(whitelist);
/ohos5.0/base/useriam/user_auth_framework/test/unittest/services/src/
H A Dcontext_callback_impl_test.cpp104 …auto notify = [](const ContextCallbackNotifyListener::MetaData &metaData, TraceFlag flag) { return… in __anon6d8c4ed60202() variable
105 ContextCallbackNotifyListener::GetInstance().AddNotifier(notify);
135 …auto notify = [](const ContextCallbackNotifyListener::MetaData &metaData, TraceFlag flag) { return… in __anon6d8c4ed60302() variable
136 ContextCallbackNotifyListener::GetInstance().AddNotifier(notify);
163 …auto notify = [](const ContextCallbackNotifyListener::MetaData &metaData, TraceFlag flag) { return… in __anon6d8c4ed60402() variable
164 ContextCallbackNotifyListener::GetInstance().AddNotifier(notify);
/ohos5.0/base/update/update_app/feature/ota/src/main/ets/manager/
H A DStateManager.ets25 import { NotificationManager } from '../notify/NotificationManager';
248 async notify(context?: common.Context, eventId?: update.EventId): Promise<void> {
263 async notify(): Promise<void> {
283 async notify(context?: common.Context, eventId?: update.EventId): Promise<void> {
318 async notify(context?: common.Context): Promise<void> {
347 async notify(context?: common.Context, eventId?: update.EventId): Promise<void> {
392 async notify(context?: common.Context, eventId?: update.EventId): Promise<void> {
423 async notify(context?: common.Context, eventId?: update.EventId): Promise<void> {
472 async notify(context?: common.Context): Promise<void> {
529 async notify(context?: common.Context): Promise<void> {
[all …]
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/platform/unix/dfile/
H A Dsys_dfile.c65 char notify = 0; in NotifyPipeEvent() local
67 if (write(session->receiverPipe[PIPE_IN], &notify, sizeof(notify)) <= 0) { in NotifyPipeEvent()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/signal/unix/
H A Dregistry.rs30 notify: AtomicBool, field
40 notify: AtomicBool::new(false), in default()
129 event.notify.store(true, SeqCst); in notify_event()
135 if event.notify.swap(false, SeqCst) { in broadcast()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/
H A Derrorcode-filemanagement.md959 ### 14300005 notify注册失败
975 ### 14300006 notify移除失败
991 ### 14300007 notify代理初始化失败
999 未注册就去取消notify
1009 Failed to notify the agent
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_storage_executor_cache.cpp260 NotifyConflictAndObserverData notify; in MigrateDataItem() local
261 notify.committedData = syncData.committedData; in MigrateDataItem()
270 if (notify.dataStatus.isDefeated) { in MigrateDataItem()
274 bool isUpdate = notify.dataStatus.preStatus != DataStatus::NOEXISTED; in MigrateDataItem()
753 const DeviceInfo &deviceInfo, NotifyConflictAndObserverData &notify, bool isPermitForceWrite) in PutIntoConflictAndCommitForMigrateCache() argument
755 …int errCode = PrepareForNotifyConflictAndObserver(dataItem, deviceInfo, notify, isPermitForceWrite… in PutIntoConflictAndCommitForMigrateCache()
759 notify.dataStatus.isDefeated = true; in PutIntoConflictAndCommitForMigrateCache()
767 dataItem.key = notify.getData.key; in PutIntoConflictAndCommitForMigrateCache()
770 PutConflictData(dataItem, notify.getData, deviceInfo, notify.dataStatus, notify.committedData); in PutIntoConflictAndCommitForMigrateCache()
771 if (notify.dataStatus.isDefeated) { in PutIntoConflictAndCommitForMigrateCache()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-connectedTag.md380 ## connectedTag.on('notify')
382 on(type: "notify", callback: Callback&lt;number&gt;): void
394 | type | string | 是 | 固定填"notify"字符串 |
397 ## connectedTag.off('notify')
399 off(type: "notify", callback?: Callback&lt;number&gt;): void
411 | type | string | 是 | 固定填"notify"字符串 |
420 connectedTag.on("notify", (rfState : number)=> {
435 connectedTag.off("notify", (rfState : number)=> {
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/
H A Dzip_writer.cpp78 …Write(const std::vector<std::pair<std::string, std::string>> &zipItems, const ZipTickNotify notify) in Write() argument
89 bool ret = FlushItems(notify); in Write()
100 bool ZipWriter::FlushItems(const ZipTickNotify notify) in FlushItems() argument
110 if ((notify != nullptr) && (notify(((PROCENT100 * i) / zipItems.size()), UNSET_PROGRESS))) { in FlushItems()

12345678910>>...15