Home
last modified time | relevance | path

Searched refs:then (Results 1 - 25 of 62) sorted by relevance

123

/foundation/distributeddatamgr/preferences/test/js/unittest/storage/src/
H A DStoragePromiseJsunit.test.js54 await promise.then((ret) => {
69 await promise.then((ret) => {
84 await promise.then((ret) => {
99 await promise.then((ret) => {
114 await promise.then((ret) => {
129 await promise.then((ret) => {
143 await promise.then((ret) => {
158 await promise.then((ret) => {
173 await promise.then((ret) => {
188 await promise.then((re
[all...]
H A DStorageHelperJsunit.test.js59 await promise.then((pref) => {
95 await promise.then((pref) => {
129 await promise.then((pref) => {
/foundation/distributeddatamgr/kv_store/test/unittest/distributedKVStore/
H A DSingleKvStoreKVPromiseJsTest.js126 await kvStore.put(KEY_TEST_STRING_ELEMENT, null).then((data) => {
149 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(async () => {
150 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
156 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then((data) => {
179 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then((data) => {
202 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then(async (data) => {
204 await kvStore.get(KEY_TEST_STRING_ELEMENT).then((data) => {
226 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then(async (data) => {
228 await kvStore.get().then((data) => {
251 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then(asyn
[all...]
H A DDeviceKvStoreKVPromiseJsTest.js83 await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => {
94 kvStore.put("getDeviceId", "byPut").then((data) => {
102 await getDeviceId.then(function (deviceId) {
157 await kvStore.put(KEY_TEST_STRING_ELEMENT, null).then((data) => {
180 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(async () => {
181 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
187 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then((data) => {
210 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then((data) => {
233 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then(async (data) => {
235 await kvStore.get(localDeviceId, KEY_TEST_STRING_ELEMENT).then((dat
[all...]
H A DKvManagerKVPromiseJsTest.js64 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(async () => {
66 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
87 await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => {
110 await kvManager.getKVStore(TEST_STORE_ID).then((store) => {
133 await kvManager.getKVStore(options).then((store) => {
156 await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
168 await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then(() => {
180 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(async () => {
181 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
209 await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((stor
[all...]
H A DSchemaJsTest.js68 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(async () => {
70 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
102 await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
115 await kvStore.getEntries(query).then((entries) => {
149 await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
162 await kvStore.getEntries(query).then((entries) => {
196 await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
209 await kvStore.getEntries(query).then((entries) => {
243 await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
256 await kvStore.getEntries(query).then((entrie
[all...]
H A DKvStoreResultSetKVJsTest.js47 await kvManager.getAllKVStoreId(TEST_BUNDLE_NAME).then(async (data) => {
50 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, data[i]).then(() => {
74 await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => {
92 await kvStore.putBatch(entries).then(async (err) => {
97 await kvStore.getResultSet('batch_test_string_key').then((result) => {
109 await kvStore.closeResultSet(resultSet).then((err) => {
115 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(async () => {
117 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
155 await kvStore.getResultSet('test').then((result) => {
162 await kvStore.closeResultSet(rs).then((er
[all...]
/foundation/distributeddatamgr/kv_store/test/unittest/distributeddata/
H A DSingleKvStoreDataPromiseJsTest.js78 await factory.createKVManager(config).then((manager) => {
97 await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => {
109 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(async () => {
111 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
132 await kvStore.put(KEY_TEST_STRING_ELEMENT, null).then((data) => {
154 await kvStore.put(KEY_TEST_STRING_ELEMENT, '').then((data) => {
177 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then((data) => {
204 await kvStore.put(KEY_TEST_STRING_ELEMENT, str).then(async (data) => {
207 await kvStore.get(KEY_TEST_STRING_ELEMENT).then((data) => {
234 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then(asyn
[all...]
H A DKvManagerDataPromiseJsTest.js50 await factory.createKVManager(config).then((manager) => {
72 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(async () => {
74 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
95 await kvManager.getKVStore(TEST_STORE_ID).then((store) => {
116 await kvManager.getKVStore(options).then((store) => {
145 await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => {
173 await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => {
199 await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => {
227 await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => {
255 await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((stor
[all...]
H A DDeviceKvStoreDataPromiseJsTest.js81 await factory.createKVManager(config).then((manager) => {
87 await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => {
98 kvStore.put("getDeviceId", "byPut").then((data) => {
106 await getDeviceId.then(function(deviceId) {
129 await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => {
141 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(async () => {
143 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
164 await kvStore.put(KEY_TEST_STRING_ELEMENT, null).then((data) => {
186 await kvStore.put(KEY_TEST_STRING_ELEMENT, '').then((data) => {
209 await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then((dat
[all...]
H A DSchemaJsTest.js40 await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
54 kvStore.putBatch(entries).then((data) => {
62 await canGet.then(async function(deviceId) {
70 await kvStore.getEntries(query).then((entries) => {
108 await ddm.createKVManager(config).then((manager) => {
135 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(async () => {
137 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
238 await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
251 await kvStore.getEntries(query).then((entries) => {
284 await kvManager.getKVStore(TEST_STORE_ID, options).then(asyn
[all...]
/foundation/distributeddatamgr/preferences/test/js/unittest/preferences/src/
H A DPreferencesPromiseJsunit.test.js113 await promise.then((obj) => {
143 await promise.then(async (ret) => {
160 await promise.then((ret) => {
175 await promise.then((ret) => {
190 await promise.then((ret) => {
205 await promise.then((ret) => {
220 await promise.then((ret) => {
234 await promise.then((ret) => {
249 await promise.then((ret) => {
264 await promise.then((re
[all...]
H A DPreferencesHelperJsunit.test.js62 await promise.then(async (pref) => {
155 await promise.then((pref) => {
200 await promise.then((pref) => {
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_state_mgmt_profiler.cpp46 auto then = GetNanoseconds(); in Begin() local
65 block->SetOwnLookupTime(GetNanoseconds() - then); in Begin()
72 auto then = currentBlocks_.top(); in End() local
73 then->SetTotalTime(then->TotalTime() + (now - then->StartTime())); in End()
77 parent->SetOwnLookupTime(parent->OwnLookupTime() + then->OwnLookupTime()); in End()
/foundation/distributeddatamgr/relational_store/test/js/clouddata/unittest/src/
H A DCloudShareTest.js80 await rdbStore.insert("employee", valueBucket).then((rowId) => {
188 await cloudData.sharing.allocResourceAndShare(undefined, predicates, participants, columns).then((resultSet) => {
209 await cloudData.sharing.allocResourceAndShare("employee", undefined, participants, columns).then((resultSet) => {
232 cloudData.sharing.allocResourceAndShare("employee", predicates, undefined, columns).then((resultSet) => {
294 cloudData.sharing.share(undefined, participants).then(result => {
314 cloudData.sharing.share(SHARING_RESOURCE, undefined).then(result => {
376 cloudData.sharing.unshare(undefined, participants).then(result => {
396 cloudData.sharing.unshare(SHARING_RESOURCE, undefined).then(result => {
437 cloudData.sharing.exit(undefined).then(result => {
509 cloudData.sharing.changePrivilege(undefined, changePart).then(resul
[all...]
/foundation/distributeddatamgr/relational_store/test/js/relationalstore/unittest/src/
H A DRdbstoreCreateDeleteWithFAContextJsunit.test.js104 deletePromise.then(async (ret) => {
182 data_relationalStore.getRdbStore(context, STORE_CONFIG).then((rdbStore) => {
184 rdbStore.executeSql(CREATE_TABLE_TEST, null).then(() => {
192 rdbStore.insert("test", valueBucket).then((rowId) => {
196 rdbStore.delete(predicates).then((rows) => {
200 data_relationalStore.deleteRdbStore(context, "CreateDeleteWithFAContextTest.db").then(() => {
H A DRdbstorePromiseJsunit.test.js63 data_relationalStore.getRdbStore(context, STORE_CONFIG).then(async (rdbStore) => {
75 rdbStore.query(predicates, []).then((resultSet) => {
92 rdbStore.delete(predicates).then((rows) => {
95 data_relationalStore.deleteRdbStore(context, "RDBPromiseTest.db").then(() => {
120 data_relationalStore.getRdbStore(context, {dbname: "RDBCallbackTest.db"}).then((rdbStore) => {
145 data_relationalStore.getRdbStore(context, STORE_CONFIG).then((rdbStore) => {
172 data_relationalStore.deleteRdbStore(context, 123454345).then((rdbStore) => {
200 data_relationalStore.deleteRdbStore(context, "RDBCallbackTest.db").then((err) => {
230 data_relationalStore.getRdbStore(context, STORE_CONFIG).then((rdbStore) => {
260 data_relationalStore.deleteRdbStore(context, STORE_CONFIG).then((er
[all...]
H A DRdbstoreDeleteJsunit.test.js92 deletePromise.then(async (ret) => {
145 deletePromise.then(async (ret) => {
197 deletePromise.then(async (ret) => {
257 deletePromise.then(async (ret) => {
309 deletePromise.then(async (ret) => {
333 deletePromise.then(async (ret) => {
398 await rdbStore.close().then(() => {
451 await rdbStore.close().then(() => {
H A DRdbstoreStoreExcuteSqlJsunit.test.js95 querySqlPromise.then(async (resultSet) => {
148 querySqlPromise.then(async (resultSet) => {
205 querySqlPromise.then(async (resultSet) => {
215 executeSqlPromise.then(async () => {
224 querySqlPromise.then(async (resultSet) => {
/foundation/distributeddatamgr/relational_store/test/js/rdb/unittest/src/
H A DRdbstoreCreateDeleteWithFAContextJsunit.test.js104 deletePromise.then(async (ret) => {
184 dataRdb.getRdbStore(context, STORE_CONFIG, 1).then((rdbStore) => {
186 rdbStore.executeSql(CREATE_TABLE_TEST, null).then(() => {
194 rdbStore.insert("test", valueBucket).then((rowId) => {
198 rdbStore.delete(predicates).then((rows) => {
202 dataRdb.deleteRdbStore(context, "CreateDeleteWithFAContextTest.db").then(() => {
H A DRdbstoreDeleteJsunit.test.js87 deletePromise.then(async (ret) => {
138 deletePromise.then(async (ret) => {
187 deletePromise.then(async (ret) => {
245 deletePromise.then(async (ret) => {
295 deletePromise.then(async (ret) => {
318 deletePromise.then(async (ret) => {
H A DRdbstoreStoreExcuteSqlJsunit.test.js90 querySqlPromise.then(async (resultSet) => {
141 querySqlPromise.then(async (resultSet) => {
195 querySqlPromise.then(async (resultSet) => {
205 executeSqlPromise.then(async () => {
214 querySqlPromise.then(async (resultSet) => {
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/test/unittest/src/
H A DObjectStoreJsunitV9.test.js106 g_object.setSessionId("123456").then((data) => {
131 g_object.setSessionId(123).then((data) => {
161 g_object.setSessionId("session1").then(() => {
185 g_object.setSessionId("123456").then((data) => {
245 g_object.setSessionId("session1").then(() => {
281 * @tc.desc: object join session and on,then object change data twice,object can receive two callbacks when data has been changed
318 * @tc.desc object join session and on,then object do not change data,object can not receive callbacks
328 g_object.setSessionId("session1").then(() => {
366 g_object.setSessionId("session5").then(() => {
415 g_object.setSessionId("session6").then(()
[all...]
/foundation/communication/netmanager_ext/frameworks/native/vpnextension/src/
H A Djs_vpn_extension.cpp328 napi_value then = nullptr; in OnConnect() local
329 napi_get_named_property(env, result, "then", &then); in OnConnect()
330 if (then == nullptr) { in OnConnect()
331 NETMGR_EXT_LOG_E("CallPromise, error to get property: then."); in OnConnect()
335 napi_is_callable(env, then, &isCallable); in OnConnect()
337 NETMGR_EXT_LOG_E("CallPromise, property then is not callable"); in OnConnect()
344 napi_call_function(env, result, then, 1, argv, nullptr); in OnConnect()
550 napi_value then = nullptr; in CallPromise() local
551 napi_get_named_property(env, result, "then", in CallPromise()
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/atomicserviceweb/interfaces/
H A Datomicserviceweb.js781 }).then(h6 => {
783 fs.copy(fileUri.getUriFromPath(z5), i6).then(() => {
801 this.checkAccessToken(j5).then(o5 => {
806 p5.requestPermissionsFromUser(this.context, [j5]).then(t5 => {
832 router.pushUrl({ url: c5.url, params: c5.params }, this.parseRouterMode(c5.mode)).then(() => {
843 router.replaceUrl({ url: y4.url, params: y4.params }, this.parseRouterMode(y4.mode)).then(() => {
971 }).then((g4) => {
990 }).then((b4) => {
999 filePreview.canPreview(this.context, o3).then((s3) => {
1008 }).then(()
[all...]

Completed in 13 milliseconds

123