Home
last modified time | relevance | path

Searched refs:context (Results 1 - 25 of 1254) sorted by relevance

12345678910>>...51

/test/xts/acts/ai/mindspore/mindsporectest/src/
H A Dohos_c_api_test_mslite.cpp55 void AddContextDeviceCPU(OH_AI_ContextHandle context) { in AddContextDeviceCPU() argument
61 OH_AI_ContextAddDeviceInfo(context, cpu_device_info); in AddContextDeviceCPU()
93 void AddContextDeviceNNRT(OH_AI_ContextHandle context) { in AddContextDeviceNNRT() argument
126 OH_AI_ContextAddDeviceInfo(context, nnrt_device_info); in AddContextDeviceNNRT()
130 void AddContextDeviceNNRTWithCache(OH_AI_ContextHandle context, const char *cache_path, const char *cache_version) { in AddContextDeviceNNRTWithCache() argument
165 OH_AI_ContextAddDeviceInfo(context, nnrt_device_info); in AddContextDeviceNNRTWithCache()
169 void AddContextDeviceNNRTByType(OH_AI_ContextHandle context) { in AddContextDeviceNNRTByType() argument
192 OH_AI_ContextAddDeviceInfo(context, nnrt_device_info); in AddContextDeviceNNRTByType()
196 void AddContextDeviceNNRTByName(OH_AI_ContextHandle context) { in AddContextDeviceNNRTByName() argument
219 OH_AI_ContextAddDeviceInfo(context, nnrt_device_inf in AddContextDeviceNNRTByName()
278 ModelPredict(OH_AI_ModelHandle model, OH_AI_ContextHandle context, string model_name, OH_AI_ShapeInfo shape_infos, bool build_by_graph, bool is_transpose, bool is_callback) ModelPredict() argument
329 ModelTrain(OH_AI_ModelHandle model, OH_AI_ContextHandle context, string model_name, OH_AI_ShapeInfo shape_infos, bool build_by_graph, bool is_transpose, bool is_callback) ModelTrain() argument
404 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
446 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
507 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
532 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
557 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
589 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
621 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
659 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
700 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
715 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
757 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
779 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
801 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
824 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
840 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
855 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
870 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
885 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
908 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
931 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
954 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
977 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
997 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1019 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1034 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1051 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1068 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1083 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1098 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1113 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1136 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1182 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1205 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1279 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1308 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1337 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1366 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1397 OH_AI_ContextHandle context = OH_AI_ContextCreate(); Predict_CPU() local
1413 OH_AI_ContextHandle context = OH_AI_ContextCreate(); Predict_NPU() local
1425 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1437 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1453 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1469 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1485 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1505 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1525 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1545 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1565 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1589 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1617 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1648 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1668 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1688 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1706 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1724 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1742 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1760 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1775 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1790 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1805 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1822 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1840 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1857 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1879 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1896 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1912 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1928 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1944 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1960 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
1996 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2008 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2036 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2060 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2084 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2108 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2120 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2145 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2167 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2185 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2227 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2246 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2284 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2311 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2678 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2690 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2722 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2771 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2790 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2810 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2838 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2889 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2921 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2952 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
2984 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3016 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3041 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3068 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3086 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3117 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3152 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3179 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3206 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3234 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3270 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3352 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3370 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3401 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3420 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3447 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3520 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3531 AddContextDeviceHIAI(OH_AI_ContextHandle context) AddContextDeviceHIAI() argument
3560 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3579 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3600 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3615 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3661 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3705 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3741 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3777 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3823 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3869 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3931 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
3976 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
4015 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
4085 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
4114 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
4143 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
4208 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
4235 OH_AI_ContextHandle context = OH_AI_ContextCreate(); HWTEST() local
[all...]
/test/xts/acts/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/entry/src/ohosTest/js/test/
H A DRelationalStoreJsunit.test.js21 var context = ability_featureAbility.getContext(); variable
22 var contextApplication = context.getApplicationContext();
45 await data_Rdb.deleteRdbStore(context, "rdbstore.db");
64 await data_Rdb.getRdbStore(context, STORE_CONFIG).then(async (store) => {
87 let storePromise = data_Rdb.getRdbStore(context, STORE_CONFIG);
118 data_Rdb.getRdbStore(context, storeConfig).then(async (ret) => {
144 let store = await data_Rdb.getRdbStore(context, STORE_CONFIG);
146 await data_Rdb.deleteRdbStore(context, "rdbstore.db");
165 let store = await data_Rdb.getRdbStore(context, STORE_CONFIG);
168 await data_Rdb.deleteRdbStore(context, "rdbstor
[all...]
H A DRelationalStoreEncryptionJsunit.test.js25 var context = ability_featureAbility.getContext();
43 async function CreatRdbStore(context, STORE_CONFIG) {
44 let rdbStore = await data_rdb.getRdbStore(context, STORE_CONFIG)
90 await data_rdb.deleteRdbStore(context, STORE_CONFIG_ENCRYPT.name)
91 await data_rdb.deleteRdbStore(context, STORE_CONFIG_UNENCRYPT.name)
92 await data_rdb.deleteRdbStore(context, STORE_CONFIG_WRONG.name)
109 context = ability_featureAbility.getContext()
110 data_rdb.getRdbStore(context, STORE_CONFIG_ENCRYPT).then((store) => {
126 context = ability_featureAbility.getContext()
127 let storePromise = data_rdb.getRdbStore(context, STORE_CONFIG_UNENCRYP
[all...]
H A DRelationalStoreCustomDir.test.js19 var context = ability_featureAbility.getContext()
63 await data_Rdb.getRdbStore(context, STORE_CONFIG)
64 await data_Rdb.deleteRdbStore(context, STORE_CONFIG)
85 await data_Rdb.getRdbStore(context, STORE_CONFIG).then(async (rdbStore) => {
92 await data_Rdb.deleteRdbStore(context, STORE_CONFIG).then(() => {
117 store = await data_Rdb.getRdbStore(context, STORE_CONFIG);
228 await data_Rdb.deleteRdbStore(context, STORE_CONFIG);
248 data_Rdb.getRdbStore(context, STORE_CONFIG, async (err, rdbStore) => {
252 await data_Rdb.deleteRdbStore(context, STORE_CONFIG);
277 await data_Rdb.getRdbStore(context, STORE_CONFI
[all...]
H A DRelationalStoreBackupRestoreWithFAContextJsunit.test.js25 var context = ability_featureAbility.getContext()
32 async function CreatRdbStore(context, STORE_CONFIG) {
33 let RdbStore = await data_Rdb.getRdbStore(context, STORE_CONFIG)
110 RdbStore = await CreatRdbStore(context, STORE_CONFIG)
116 await data_Rdb.deleteRdbStore(context, STORE_CONFIG.name)
117 await data_Rdb.deleteRdbStore(context, DATABASE_BACKUP_NAME)
118 await data_Rdb.deleteRdbStore(context, "BackupTest003.db")
272 await data_Rdb.deleteRdbStore(context, DATABASE_BACKUP_NAME);
315 await data_Rdb.deleteRdbStore(context, DATABASE_BACKUP_NAME)
H A DRelationalStoreQuery.test.js34 var context = ability_featureAbility.getContext()
36 async function CreatRdbStore(context, STORE_CONFIG) {
37 let RdbStore = await data_Rdb.getRdbStore(context, STORE_CONFIG)
81 context:context
140 rdbStore = await CreatRdbStore(context, STORE_CONFIG)
145 await data_Rdb.deleteRdbStore(context, STORE_CONFIG.name)
H A DRelationalStoreBackupRestoreCallbackJsunit.test.js25 var context = ability_featureAbility.getContext()
32 async function CreatRdbStore(context, STORE_CONFIG) {
33 let RdbStore = await data_Rdb.getRdbStore(context, STORE_CONFIG)
112 RdbStore = await CreatRdbStore(context, STORE_CONFIG)
118 await data_Rdb.deleteRdbStore(context, STORE_CONFIG.name)
119 await data_Rdb.deleteRdbStore(context, DATABASE_BACKUP_NAME)
120 await data_Rdb.deleteRdbStore(context, "BackupTest003.db")
292 data_Rdb .deleteRdbStore(context, DATABASE_BACKUP_NAME).then(() => {
359 data_Rdb.deleteRdbStore(context, DATABASE_BACKUP_TEST_NAME, () => {
/test/xts/acts/distributeddatamgr/relationalStoretest/RdbJstest/hap/entry/src/ohosTest/js/test/
H A DRdbstoreEncryptionJsunit.test.js25 var context
40 async function CreatRdbStore(context, STORE_CONFIG) {
41 let rdbStore = await data_rdb.getRdbStore(context, STORE_CONFIG, 1)
87 await data_rdb.deleteRdbStore(context, STORE_CONFIG_ENCRYPT.name)
88 await data_rdb.deleteRdbStore(context, STORE_CONFIG_UNENCRYPT.name)
89 await data_rdb.deleteRdbStore(context, STORE_CONFIG_WRONG.name)
106 context = ability_featureAbility.getContext()
107 data_rdb.getRdbStore(context, STORE_CONFIG_ENCRYPT, 1).then((store) => {
123 context = ability_featureAbility.getContext()
124 let storePromise = data_rdb.getRdbStore(context, STORE_CONFIG_UNENCRYP
[all...]
/test/xts/acts/distributeddatamgr/preferencesjstest/hap/entry/src/ohosTest/js/test/
H A DPreferencesHelperJsunit.test.js22 var context; variable
27 context = featureAbility.getContext()
36 mPreferences = await dataPreferences.getPreferences(context, NAME);
41 await dataPreferences.deletePreferences(context, NAME);
52 mPreferences = await dataPreferences.getPreferences(context, NAME);
68 const promise = dataPreferences.getPreferences(context, NAME);
89 let perf = await dataPreferences.getPreferences(context, NAME);
91 const promise = dataPreferences.removePreferencesFromCache(context, NAME);
108 let perf = await dataPreferences.getPreferences(context, NAME);
110 const promise = dataPreferences.deletePreferences(context, NAM
[all...]
H A DPreferencesFlushJsunit.test.js28 var context; variable
36 context = featureAbility.getContext()
45 mPreferences = await dataPreferences.getPreferences(context, NAME);
50 await dataPreferences.deletePreferences(context, NAME);
83 await dataPreferences.removePreferencesFromCache(context, NAME).then(() => {
90 mPreferences = await dataPreferences.getPreferences(context, NAME);
130 await dataPreferences.removePreferencesFromCache(context, NAME).then(() => {
137 mPreferences = await dataPreferences.getPreferences(context, NAME);
177 await dataPreferences.removePreferencesFromCache(context, NAME).then(() => {
184 mPreferences = await dataPreferences.getPreferences(context, NAM
[all...]
H A DPreferencesCallBackJsunit.test.js29 var context; variable
36 context = featureAbility.getContext()
45 mPreferences = await dataPreferences.getPreferences(context, NAME);
50 await dataPreferences.deletePreferences(context, NAME);
499 await dataPreferences.getPreferences(context, NAME, (err, preferences) => {
521 await dataPreferences.getPreferences(context, NAME, (err, preferences) => {
530 await dataPreferences.deletePreferences(context, NAME, (err, data) => {
551 await dataPreferences.getPreferences(context, NAME, (err, preferences) => {
560 await dataPreferences.removePreferencesFromCache(context, NAME, (err ,data) => {
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/cpp/napi/
H A DmediaAssetManager.cpp67 MediaAssetMangerContext *context = reinterpret_cast<MediaAssetMangerContext *>(work->data); in Callback() local
68 if (context == nullptr) { in Callback()
69 DEBUG_LOG("Callback context is nullptr"); in Callback()
75 if (context->env != nullptr && context->callbackRef != nullptr) { in Callback()
77 napi_open_handle_scope(context->env, &scope); in Callback()
80 delete context; in Callback()
85 napi_create_int32(context->env, context->result, &argv[PARAM1]); in Callback()
86 napi_create_string_utf8(context in Callback()
127 MediaAssetMangerContext *context = new MediaAssetMangerContext; OnDataPreared() local
[all...]
/test/xts/acts/graphic/graphicGlesExtension/
H A DgraphicGlesExtension.cpp53 EGLContext context; in HWTEST_F() local
67 context = eglCreateContext(display, config, EGL_NO_CONTEXT, NULL); in HWTEST_F()
69 eglMakeCurrent(display, surfaceCache, surfaceCache, context); in HWTEST_F()
113 EGLContext context; in HWTEST_F() local
127 context = eglCreateContext(display, config, EGL_NO_CONTEXT, NULL); in HWTEST_F()
129 eglMakeCurrent(display, surfaceCache, surfaceCache, context); in HWTEST_F()
173 EGLContext context; in HWTEST_F() local
187 context = eglCreateContext(display, config, EGL_NO_CONTEXT, NULL); in HWTEST_F()
189 eglMakeCurrent(display, surfaceCache, surfaceCache, context); in HWTEST_F()
233 EGLContext context; in HWTEST_F() local
293 EGLContext context; HWTEST_F() local
[all...]
/test/testfwk/xdevice/src/xdevice/_core/context/
H A Dproxy.py21 from _core.context.life_stage import StageEvent
52 from _core.context.service import ContextImpl
61 from _core.context.center import Context
66 from _core.context.center import Context
71 from _core.context.center import Context
77 from _core.context.tdd import TSD
82 from _core.context.log import RuntimeLogs
H A Dabs.py22 from _core.context.life_stage import StageEvent
23 from _core.context.life_stage import ILifeStageListener
24 from _core.context.result import ExecuteFinished
50 from _core.context.service import ContextImpl
51 from _core.context.service import ActiveState
H A Dimpl.py31 from _core.context.abs import Sub
43 from _core.context.result import ExecuteFinished
45 from _core.context.center import Context
46 from _core.context.handler import report_not_executed
47 from _core.context.life_stage import ILifeStageListener
48 from _core.context.life_stage import StageEvent
228 from _core.context.log import RuntimeLogs
/test/testfwk/arkxtest/uitest/cj/
H A Dui_event_observer_impl.cpp154 auto context = new (std::nothrow) EventCallbackContext(); in HandleEventCallback() local
155 if (context == nullptr) { in HandleEventCallback()
159 InitCallbackContext(in, out, *context); in HandleEventCallback()
161 delete context; in HandleEventCallback()
165 auto info = CreateElementInfo(context->elmentInfo.dump().c_str()); in HandleEventCallback()
167 delete context; in HandleEventCallback()
172 auto callback = context->callbackRef.lock(); in HandleEventCallback()
174 if (context->releaseCallback) { in HandleEventCallback()
175 LOG_D("[UiEventObserverImpl]Unref callback: %{public}s", context->callbackId.c_str()); in HandleEventCallback()
176 g_callbacks.erase(context in HandleEventCallback()
[all...]
/test/xts/acts/distributeddatamgr/dataObjecttest/dataObjectjstest/hap/entry/src/ohosTest/js/test/
H A DObjectStoreJsunitV9.test.js22 let context;
68 context = featureAbility.getContext();
98 expect(error.message == "Parameter error. The type of 'context' must be 'Context'.").assertEqual(true);
101 g_object = distributedObject.create(context, 123);
107 g_object = distributedObject.create(context, {name: "Amy", age: 18, isVis: false});
133 let g_object = distributedObject.create(context, {name: "Amy", age: 18, isVis: false});
163 let g_object = distributedObject.create(context, {name: "Amy", age: 18, isVis: false});
190 let g_object = distributedObject.create(context, {name: "Amy", age: 18, isVis: false});
215 let g_object = distributedObject.create(context, {name: "Amy", age: 18, isVis: false});
252 let g_object = distributedObject.create(context, {nam
[all...]
/test/xts/acts/storage/storagefilejstest/entry/src/ohosTest/js/test/
H A DCommon.js53 var context = featureAbility.getContext();
54 let data = await context.getCacheDir();
59 var context = featureAbility.getContext();
60 let data = await context.getFilesDir();
65 var context = featureAbility.getContext();
66 let data = await context.getFilesDir();
/test/xts/dcts/testtools/disjsTest/server/
H A DtestApi.js34 let context;
50 let context = globalThis.extensionContext;
51 console.info(logTag + "context=" + context);
53 context: context,
71 let context = globalThis.extensionContext;
72 console.info(logTag + "context=" + context);
74 context
[all...]
/test/xts/hats/kernel/syscalls/fileio/preadv/
H A DPreadvApiTest.cpp163 const char *context = "this is a test file."; in HWTEST_F() local
171 .iov_len = strlen(context), in HWTEST_F()
176 write(fd, context, strlen(context)); in HWTEST_F()
178 // preadv context to 2 iovec in HWTEST_F()
180 EXPECT_EQ(size, TEST_LEN + strlen(context)); in HWTEST_F()
182 EXPECT_STREQ(static_cast<char *>(iov[1].iov_base), context); in HWTEST_F() local
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/nodecontent/
H A Dnode_content_test.cpp26 ArkUI_ContextHandle context = nullptr; in TestNodeContent001() local
27 auto ret = OH_ArkUI_GetContextFromNapiValue(env, args, &context); in TestNodeContent001()
84 ArkUI_ContextHandle context = nullptr; in TestNodeContent007() local
85 auto ret = OH_ArkUI_GetContextFromNapiValue(env, args, &context); in TestNodeContent007()
/test/xts/acts/distributeddatamgr/Pasteboardnapitest/entry/src/main/cpp/
H A Dnapi_init.cpp52 static void* GetDataCallback(void* context, const char* type);
56 void FinalizeFunc(void* context) {}; in FinalizeFunc() argument
57 void ContextFinalizeFunc(void* context) {}; in ContextFinalizeFunc() argument
58 void CallbackFunc(void* context, Pasteboard_NotifyType type) in CallbackFunc() argument
64 void* GetDataCallbackFunc(void* context, const char* type) in GetDataCallbackFunc() argument
72 void* GetDataCallback(void* context, const char* type) in GetDataCallback() argument
100 void* context = static_cast<void*>(pasteboard); in OH_PasteboardObserver_SetData0100() local
102 int setRes1 = OH_PasteboardObserver_SetData(observer, context, CallbackFunc, ContextFinalizeFunc); in OH_PasteboardObserver_SetData0100()
113 void* context = static_cast<void*>(pasteboard); in OH_PasteboardObserver_SetData0200() local
116 int setRes1 = OH_PasteboardObserver_SetData(nullptr, context, CallbackFun in OH_PasteboardObserver_SetData0200()
129 void* context = static_cast<void*>(pasteboard); OH_PasteboardObserver_SetData0300() local
142 void* context = static_cast<void*>(pasteboard); OH_PasteboardObserver_SetData0400() local
[all...]
/test/xts/acts/ability/ability_runtime/featureability/sceneproject/getcallingbundletest/entry/src/main/js/MainAbility/pages/index/
H A Dindex.js39 let context = featureAbility.getContext();
40 let info = await context.getCallingBundle();
42 context.getCallingBundle(
/test/xts/acts/ability/ability_runtime/featureability/sceneproject/getcallingbundletest/entry/src/main/js/MainAbility/
H A Dapp.js39 let context = featureAbility.getContext();
40 let info = await context.getCallingBundle();
42 context.getCallingBundle(

Completed in 15 milliseconds

12345678910>>...51