Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 1997) sorted by relevance

12345678910>>...80

/test/xts/acts/ability/ability_runtime/actsfwkdataaccessortest/actsdataabilityrelyhap/entry/src/main/ets/TestDataAbility/
Ddata.ts46 insert(uri, valueBucket, callback) {
53 callback(err, returnError1);
61 callback(err, returnError2);
65 callback(err, returnError2);
69 callback(err, returnError2);
77 callback(err, defaultReturn);
81 query(uri, columns, predicates, callback) {
87 callback(err, returnError1);
91 rdbStore.query(rdbPredicates, columns, callback)
94 update(uri, valueBucket, predicates, callback) {
[all …]
/test/xts/acts/ability/ability_runtime/actsfwkdataaccessortest/actsdataabilityrelyhap/entry/src/main/ets/TestDataAbility2/
Ddata.ts46 insert(uri, valueBucket, callback) {
53 callback(err, returnError1);
61 callback(err, returnError2);
65 callback(err, returnError2);
69 callback(err, returnError2);
77 callback(err, defaultReturn);
81 query(uri, columns, predicates, callback) {
87 callback(err, returnError1);
91 rdbStore.query(rdbPredicates, columns, callback)
94 update(uri, valueBucket, predicates, callback) {
[all …]
/test/xts/acts/ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/src/main/js/TestDataAbility/
Ddata.js46 insert(uri, valueBucket, callback) {
53 callback(err, returnError1);
61 callback(err, returnError2);
65 callback(err, returnError2);
69 callback(err, returnError2);
77 callback(err, defaultReturn);
81 query(uri, columns, predicates, callback) {
87 callback(err, returnError1);
91 rdbStore.query(rdbPredicates, columns, callback)
94 update(uri, valueBucket, predicates, callback) {
[all …]
/test/xts/acts/ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/src/main/js/TestDataAbility2/
Ddata.js46 insert(uri, valueBucket, callback) {
53 callback(err, returnError1);
61 callback(err, returnError2);
65 callback(err, returnError2);
69 callback(err, returnError2);
77 callback(err, defaultReturn);
81 query(uri, columns, predicates, callback) {
87 callback(err, returnError1);
91 rdbStore.query(rdbPredicates, columns, callback)
94 update(uri, valueBucket, predicates, callback) {
[all …]
/test/xts/acts/ability/ability_runtime/actsfwkdataaccessortest/actsdataabilityrelyhap/entry/src/main/ets/TestDataAbility3/
Ddata.ts46 insert(uri, valueBucket, callback) {
53 callback(err, returnError1);
61 callback(err, returnError2);
65 callback(err, returnError2);
69 callback(err, returnError2);
77 callback(err, defaultReturn);
81 query(uri, columns, predicates, callback) {
87 callback(err, returnError1);
91 rdbStore.query(rdbPredicates, columns, callback)
94 update(uri, valueBucket, predicates, callback) {
[all …]
/test/xts/acts/ability/ability_runtime/actsdataabilityaccessdatasharetest/datashareserverhap/entry/src/main/ets/DataShareExtAbility/
DDataShareExtAbility.ts37 async onCreate(want, callback) {
46 callback(err);
50 async getFileTypes(uri: string, mimeTypeFilter: string, callback) {
55 await callback(err,ret);
59 async openFile(uri: string, mode: string, callback) {
63 await callback(err,ret);
67 async insert(uri, value, callback) {
77 if (callback != undefined) {
78 callback(err, ret);
84 async update(uri, predicates, value, callback) {
[all …]
/test/xts/acts/ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/src/main/js/TestDataAbility3/
Ddata.js46 insert(uri, valueBucket, callback) {
53 callback(err, returnError1);
61 callback(err, returnError2);
65 callback(err, returnError2);
69 callback(err, returnError2);
77 callback(err, defaultReturn);
81 query(uri, columns, predicates, callback) {
87 callback(err, returnError1);
91 rdbStore.query(rdbPredicates, columns, callback)
94 update(uri, valueBucket, predicates, callback) {
[all …]
/test/xts/hats/hdf/codec/hdi_omx_additional/
Dcodec_hdi_manager_test.cpp167 struct CodecCallbackType *callback = CodecCallbackTypeGet(nullptr); variable
170 ASSERT_TRUE(callback != nullptr);
172 …et = manager_->CreateComponent(&component, &componentId, compName.data(), (int64_t)this, callback);
174 CodecCallbackTypeRelease(callback);
184 struct CodecCallbackType *callback = CodecCallbackTypeGet(nullptr); variable
185 ASSERT_TRUE(callback != nullptr);
190 …et = manager_->CreateComponent(&component, &componentId, compName.data(), (int64_t)this, callback);
193 CodecCallbackTypeRelease(callback);
203 struct CodecCallbackType *callback = CodecCallbackTypeGet(nullptr); variable
204 ASSERT_TRUE(callback != nullptr);
[all …]
/test/xts/device_attest/interfaces/kits/napi/src/
Ddevattest_napi.cpp82 static napi_value GenerateReturnValue(napi_env env, DevAttestAsyncContext* callback) in GenerateReturnValue() argument
85 if (callback->ret == DEVATTEST_SUCCESS) { in GenerateReturnValue()
86 …result = GenerateDevAttestHandle(env, callback->value.authResult_, callback->value.softwareResult_, in GenerateReturnValue()
87 callback->value.ticket_, callback->value.softwareResultDetail_); in GenerateReturnValue()
113 DevAttestAsyncContext* callback = static_cast<DevAttestAsyncContext*>(data); in Complete() local
117 result[0] = GenerateBusinessError(env, callback->ret); in Complete()
118 result[1] = GenerateReturnValue(env, callback); in Complete()
120 if (callback->callbackRef != nullptr) { // callback模式 in Complete()
123 napi_get_reference_value(env, callback->callbackRef, &callbackfunc); in Complete()
127 napi_delete_reference(env, callback->callbackRef); in Complete()
[all …]
/test/xts/acts/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/test/
DBackgroundTaskMagrJs.test.js60 function callback() {} function
61 let info = backgroundTaskManager.requestSuspendDelay("test", callback);
79 function callback() {} function
80 let info1 = backgroundTaskManager.requestSuspendDelay("test", callback);
81 let info2 = backgroundTaskManager.requestSuspendDelay("test", callback);
82 let info3 = backgroundTaskManager.requestSuspendDelay("test", callback);
83 let info4 = backgroundTaskManager.requestSuspendDelay("test", callback);
102 function callback() {} function
103 let info = backgroundTaskManager.requestSuspendDelay("test", callback);
133 function callback() {} function
[all …]
DShortTimeTaskJS.test.js61 function callback() {} function
62 let info = backgroundTaskManager.requestSuspendDelay("test", callback);
84 function callback() {} function
85 let info = backgroundTaskManager.requestSuspendDelay("test", callback);
111 function callback() { } function
112 let info = backgroundTaskManager.requestSuspendDelay("test", callback);
140 function callback() { } function
141 let info = backgroundTaskManager.requestSuspendDelay("123456", callback);
163 function callback() {} function
166 let info = backgroundTaskManager.requestSuspendDelay(reason, callback);
[all …]
/test/xts/dcts/distributedhardware/distributedinputtest/
Ddistributed_input_test.cpp164 sptr<TestPrepareDInputCallback> callback(new TestPrepareDInputCallback());
165 int32_t ret = DistributedInputKit::PrepareRemoteInput(deviceId, callback);
172 sptr<TestPrepareDInputCallback> callback = nullptr; variable
173 int32_t ret = DistributedInputKit::PrepareRemoteInput(deviceId, callback);
181 sptr<IPrepareDInputCallback> callback(new TestPrepareDInputCallback());
182 int32_t ret = DistributedInputKit::PrepareRemoteInput(srcId, sinkId, callback);
190 sptr<TestPrepareDInputCallback> callback = nullptr; variable
191 int32_t ret = DistributedInputKit::PrepareRemoteInput(srcId, sinkId, callback);
198 sptr<TestUnprepareDInputCallback> callback(new TestUnprepareDInputCallback());
199 int32_t ret = DistributedInputKit::UnprepareRemoteInput(deviceId, callback);
[all …]
/test/xts/acts/account/appaccount/sceneProject/actsaccountauthenticator/entry/src/main/ets/ServiceExtAbility/
DServiceExtAbility.ets41 addAccountImplicitly(authType, callerBundleName, options, callback) {
50 callback.onResult(0, authResult);
54 authenticate(name, authType, callerBundleName, options, callback) {
58 callback.onResult(0, {
66 createAccountImplicitly(options, callback) {
77 callback.onResult(0, authResult);
81 auth(name, authType, options, callback) {
93 callback.onResult(0, authResult);
96 verifyCredential(name, options, callback) {
99 callback.onRequestContinued()
[all …]
/test/xts/hats/hdf/camera/cameraHdi/v4l2/src/
Dopen_camera_test.cpp53 const OHOS::sptr<ICameraDeviceCallback> callback = new DemoCameraDeviceCallback(); variable
55 display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(cameraId, callback, cameraDevice);
70 OHOS::sptr<ICameraDeviceCallback> callback = new DemoCameraDeviceCallback(); variable
72 …display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(cameraId, callback, display_->cameraDe…
88 OHOS::sptr<ICameraDeviceCallback> callback = new DemoCameraDeviceCallback(); variable
89 …display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(cameraId, callback, display_->cameraDe…
104 OHOS::sptr<ICameraDeviceCallback> callback = new DemoCameraDeviceCallback(); variable
105 …display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(cameraId, callback, display_->cameraDe…
120 OHOS::sptr<ICameraDeviceCallback> callback = nullptr; variable
121 …display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(cameraId, callback, display_->cameraDe…
[all …]
/test/xts/hats/hdf/external_device_manager/device_manager_test/
Ddevice_manager_test.cpp82 std::shared_ptr<DevChangeCallback> callback = std::make_shared<DevChangeCallback>(); variable
86 int32_t ret = callback->OnDeviceAdd(device);
89 ret = callback->OnDeviceRemove(device);
99 std::shared_ptr<DevChangeCallback> callback = std::make_shared<DevChangeCallback>(); variable
103 int32_t ret = callback->OnDeviceAdd(device);
105 ret = callback->OnDeviceAdd(device);
108 ret = callback->OnDeviceRemove(device);
111 ret = callback->OnDeviceRemove(device);
119 std::shared_ptr<DevChangeCallback> callback = std::make_shared<DevChangeCallback>(); variable
123 int32_t ret = callback->OnDeviceAdd(device0);
[all …]
/test/xts/hats/hdf/codec/hdi_omx/
Dcodec_hdi_manager_test.cpp76 struct CodecCallbackType *callback = CodecCallbackTypeGet(nullptr); variable
77 ASSERT_TRUE(callback != nullptr);
81 …nt32_t ret = manager_->CreateComponent(&component, &componentId, nullptr, (int64_t)this, callback);
84 CodecCallbackTypeRelease(callback);
85 callback = nullptr;
107 struct CodecCallbackType *callback = CodecCallbackTypeGet(nullptr); variable
110 ASSERT_TRUE(callback != nullptr);
111 …et = manager_->CreateComponent(&component, &componentId, compName.data(), (int64_t)this, callback);
114 CodecCallbackTypeRelease(callback);
115 callback = nullptr;
/test/xts/acts/telephony/telephonyjstest/observer/entry/src/main/ets/test/
DObserverJsunit.test.ets29 * @tc.desc : check the getCellularDataState callback to verify the call back data
58 let callback = NetworkState => {
64 }, callback);
83 let callback = NetworkState => {
87 observer.on('networkStateChange', callback);
88 // 可以指定传入on中的callback取消一个订阅,也可以不指定callback清空所有订阅。
89 observer.off('networkStateChange', callback);
109 let callback = SignalInformation => {
115 }, callback);
133 let callback = SignalInformation => {
[all …]
/test/xts/acts/account/appaccount/sceneProject/actsaccountoauthtoken/entry/src/main/js/default/pages/index/
Dindex.js22 authenticate(name, authType, callerBundleName, options, callback) { argument
26 callback.onResult(0, {"name":name,"authType":authType,"token":newTokenData});
29 addAccountImplicitly(authType, callerBundleName, options, callback) { argument
31 callback.onRequestRedirected({
37 auth(name, authType, callerBundleName, callback) { argument
41 callback.onResult(0, {"name":name,"authType":authType,"token":newTokenData});
44 createAccountImplicitly(options, callback) { argument
46 callback.onRequestRedirected({
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_XNode/ace_ets_module_XNode_api12/entry/src/main/ets/MainAbility/utils/
DMessageManager.ets18 callback: Callback
25 registerCallback(callback: Callback, type?: string) {
27 console.error('registerCallback callback set')
28 this.callback = callback
31 this.callbacks.set(type, callback)
36 this.callback(message)
42 console.error('callbacks has no callback for type ' + type)
50 this.callback = null
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_information/ace_ets_module_information_api11/entry/src/main/ets/MainAbility/utils/
DMessageManager1.ets20 callback:Callback
27 registerCallback(callback:Callback , type?:string) {
29 console.error('registerCallback callback set')
30 this.callback = callback
33 this.callbacks.set(type,callback)
38 this.callback(message)
44 console.error('callbacks has no callback for type ' + type)
52 this.callback = null
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_observer/ace_ets_module_observer_api12/entry/src/main/ets/MainAbility/utils/
DMessageManager.ets18 callback: Callback
25 registerCallback(callback: Callback, type?: string) {
27 console.error('registerCallback callback set')
28 this.callback = callback
31 this.callbacks.set(type, callback)
36 this.callback(message)
42 console.error('callbacks has no callback for type ' + type)
50 this.callback = null
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_dialog/ace_ets_module_dialog_api12/entry/src/main/ets/MainAbility/utils/
DMessageManager.ets20 callback:Callback
27 registerCallback(callback:Callback , type?:string) {
29 console.error('registerCallback callback set')
30 this.callback = callback
33 this.callbacks.set(type,callback)
38 this.callback(message)
44 console.error('callbacks has no callback for type ' + type)
52 this.callback = null
/test/xts/acts/arkui/ace_ets_module_noui/ace_ets_module_StateMangagement/ace_ets_module_StateMangagement_api12/entry/src/main/ets/MainAbility/utils/
DMessageManager.ets20 callback:Callback
27 registerCallback(callback:Callback , type?:string) {
29 console.error('registerCallback callback set')
30 this.callback = callback
33 this.callbacks.set(type,callback)
38 this.callback(message)
44 console.error('callbacks has no callback for type ' + type)
52 this.callback = null
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_commonEvents/ace_ets_module_commonEvents_api12/entry/src/main/ets/MainAbility/common/
DMessageManager.ets18 callback: Callback
25 registerCallback(callback: Callback, type?: string) {
27 console.error('registerCallback callback set')
28 this.callback = callback
31 this.callbacks.set(type, callback)
36 this.callback(message)
42 console.error('callbacks has no callback for type ' + type)
50 this.callback = null
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_information/ace_ets_module_information_api11/entry/src/main/ets/MainAbility/common/
DMessageManager.ets18 callback: Callback
25 registerCallback(callback: Callback, type?: string) {
27 console.error('registerCallback callback set')
28 this.callback = callback
31 this.callbacks.set(type, callback)
36 this.callback(message)
42 console.error('callbacks has no callback for type ' + type)
50 this.callback = null

12345678910>>...80