/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/ |
H A D | zip.cpp | 139 std::list<FileAccessor::DirectoryContentEntry> entries; in Zip() local 141 entries.push_back(FileAccessor::DirectoryContentEntry(srcDir, true)); in Zip() 143 for (auto iter = entries.begin(); iter != entries.end(); ++iter) { in Zip() 144 if (iter != entries.begin() && ((!params.GetIncludeHiddenFiles() && IsHiddenFile(iter->path)) || in Zip() 148 if (iter != entries.begin()) { in Zip() 159 entries.insert(entries.end(), subEntries.begin(), subEntries.end()); in Zip() 180 std::list<FileAccessor::DirectoryContentEntry> &entries, in GetZipsAllRelativeFilesInner() 184 for (auto iter = entries in GetZipsAllRelativeFilesInner() 179 GetZipsAllRelativeFilesInner(const ZipParams ¶ms, const FilePath &iterPath, std::list<FileAccessor::DirectoryContentEntry> &entries, std::vector<std::pair<FilePath, FilePath>> &allRelativeFiles) GetZipsAllRelativeFilesInner() argument 207 std::list<FileAccessor::DirectoryContentEntry> entries; GetZipsAllRelativeFiles() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/ |
H A D | distributeddb_nb_crud_power_test.cpp | 91 vector<Entry> entries; in RepeatExeCrud() local 93 EXPECT_EQ(g_nbDelegate->GetEntries({'p'}, entries), OK); in RepeatExeCrud() 94 entries.clear(); in RepeatExeCrud() 98 EXPECT_EQ(g_nbDelegate->GetEntries({'u'}, entries), OK); in RepeatExeCrud() 99 entries.clear(); in RepeatExeCrud() 102 EXPECT_EQ(g_nbDelegate->GetEntries(KEY_EMPTY, entries), OK); in RepeatExeCrud() 103 entries.clear(); in RepeatExeCrud()
|
/foundation/distributeddatamgr/kv_store/test/unittest/distributeddata/ |
H A D | SingleKvStoreDataCallbackJsTest.js | 43 let entries = []; 52 entries.push(entry); 54 return entries; 1011 let entries = []; 1021 entries.push(entry); 1023 console.info('SingleKvStorePutBatchCallbackTest001 entries: ' + JSON.stringify(entries)); 1024 await kvStore.putBatch(entries, async function (err,data) { 1052 let entries = []; 1062 entries [all...] |
H A D | DeviceKvStoreDataCallbackJsTest.js | 46 let entries = []; 55 entries.push(entry); 57 return entries; 1055 let entries = []; 1065 entries.push(entry); 1067 console.info('DeviceKvStorePutBatchCallbackTest001 entries: ' + JSON.stringify(entries)); 1068 await kvStore.putBatch(entries, async function (err,data) { 1096 let entries = []; 1106 entries [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_p2p_sync_check_test.cpp | 66 const int ENTRY_NUM = 2; // 16 entries 75 void CancelTestInit(DeviceSyncOption &option, std::vector<Entry> &entries, const uint32_t mtuSize); 76 void CancelTestEnd(std::vector<Entry> &entries, const uint32_t mtuSize); 534 std::vector<Entry> entries; in HWTEST_F() local 536 DistributedDBUnitTest::GenerateNumberEntryVector(dataCount, entries); in HWTEST_F() 538 for (uint32_t i = 0; i < entries.size(); i++) { in HWTEST_F() 540 g_deviceB->PutData(entries[i].key, entries[i].value, 0, 0); in HWTEST_F() 542 g_deviceC->PutData(entries[i].key, entries[ in HWTEST_F() 591 std::vector<Entry> entries; HWTEST_F() local 661 std::vector<Entry> entries; HWTEST_F() local 724 std::vector<Entry> entries; HWTEST_F() local 776 std::vector<Entry> entries; HWTEST_F() local 828 std::vector<Entry> entries; HWTEST_F() local 879 CancelTestInit(DeviceSyncOption &option, std::vector<Entry> &entries, const uint32_t mtuSize) CancelTestInit() argument 905 CancelTestEnd(std::vector<Entry> &entries, const uint32_t mtuSize) CancelTestEnd() argument 934 std::vector<Entry> entries; HWTEST_F() local [all...] |
/third_party/libuv/src/win/ |
H A D | fs-fd-hash-inl.h | 59 struct uv__fd_hash_entry_s entries[UV__FD_HASH_GROUP_SIZE]; member 102 if (group_ptr->entries[i].fd == fd) { \ 103 entry_ptr = &group_ptr->entries[i]; \ 158 entry_ptr = &bucket_ptr->data->entries[i]; in uv__fd_hash_add() 180 if (entry_ptr != &bucket_ptr->data->entries[i]) { in uv__fd_hash_remove() 181 *entry_ptr = bucket_ptr->data->entries[i]; in uv__fd_hash_remove()
|
/third_party/jerryscript/tests/unit-core/ |
H A D | test-api-value-type.cpp | 78 test_entry_t entries[] = in HWTEST_F() local 106 for (size_t idx = 0; idx < sizeof (entries) / sizeof (entries[0]); idx++) in HWTEST_F() 108 jerry_type_t type_info = jerry_value_get_type (entries[idx].value); in HWTEST_F() 111 TEST_ASSERT (type_info == entries[idx].type_info); in HWTEST_F() 113 jerry_release_value (entries[idx].value); in HWTEST_F()
|
/third_party/node/deps/uv/src/win/ |
H A D | fs-fd-hash-inl.h | 59 struct uv__fd_hash_entry_s entries[UV__FD_HASH_GROUP_SIZE]; member 102 if (group_ptr->entries[i].fd == fd) { \ 103 entry_ptr = &group_ptr->entries[i]; \ 158 entry_ptr = &bucket_ptr->data->entries[i]; in uv__fd_hash_add() 180 if (entry_ptr != &bucket_ptr->data->entries[i]) { in uv__fd_hash_remove() 181 *entry_ptr = bucket_ptr->data->entries[i]; in uv__fd_hash_remove()
|
/third_party/python/Lib/test/ |
H A D | test_spwd.py | 17 entries = spwd.getspall() 18 self.assertIsInstance(entries, list) 19 for entry in entries: 23 entries = spwd.getspall() 24 if not entries: 26 random_name = entries[0].sp_namp
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | acl.cpp | 78 for (const auto &e : entries) { in ReCalcMaskPerm() 88 return entries.empty(); in IsEmpty() 93 if (!entries.count(ACL_TAG::USER_OBJ) || !entries.count(ACL_TAG::GROUP_OBJ) || in IsValid() 94 !entries.count(ACL_TAG::OTHER)) { in IsValid() 97 if (maskDemand && !entries.count(ACL_TAG::MASK)) { in IsValid() 105 if (entries.count(entry)) { in CompareInsertEntry() 106 auto it = entries.find(entry); in CompareInsertEntry() 107 entries.erase(it); in CompareInsertEntry() 110 entries in CompareInsertEntry() [all...] |
/foundation/distributeddatamgr/kv_store/test/unittest/distributedKVStore/ |
H A D | SchemaJsTest.js | 115 await kvStore.getEntries(query).then((entries) => { 116 console.info('SchemaToJsonStringSucTest get success : ' + JSON.stringify(entries)); 117 expect(entries.length == 2).assertTrue(); 162 await kvStore.getEntries(query).then((entries) => { 163 console.info('SchemaToJsonStringSucTest001 get success : ' + JSON.stringify(entries)); 164 expect(entries.length == 1).assertTrue(); 209 await kvStore.getEntries(query).then((entries) => { 210 console.info('SchemaToJsonStringSucTest002 get success : ' + JSON.stringify(entries)); 211 expect(entries.length == 1).assertTrue(); 256 await kvStore.getEntries(query).then((entries) [all...] |
H A D | SingleKvStoreKVPromiseJsTest.js | 49 let entries = []; 58 entries.push(entry); 60 return entries; 814 let entries = putBatchString(10, 'batch_test_string_key'); 815 console.info('SingleKvStorePutBatchPromiseStringTest entries: ' + JSON.stringify(entries)); 816 await kvStore.putBatch(entries).then(async (err) => { 821 console.info('SingleKvStorePutBatchPromiseStringTest ' + JSON.stringify(entries)); 848 let entries = []; 858 entries [all...] |
H A D | DeviceKvStoreKVPromiseJsTest.js | 50 let entries = []; 59 entries.push(entry); 61 return entries; 811 let entries = putBatchString(10, 'batch_test_string_key'); 812 console.info('DeviceKvStorePutBatchPromiseStringTest entries: ' + JSON.stringify(entries)); 813 await kvStore.putBatch(entries).then(async (err) => { 818 console.info('DeviceKvStorePutBatchPromiseStringTest ' + JSON.stringify(entries)); 845 let entries = []; 855 entries [all...] |
/third_party/littlefs/scripts/ |
H A D | coverage.py | 164 entries = co.defaultdict(lambda: (0, 0)) 167 entry_hits, entry_count = entries[entry] 168 entries[entry] = (entry_hits + hits, entry_count + count) 169 return entries 189 def sorted_entries(entries): 191 return sorted(entries, key=lambda x: (-(x[1][0]/x[1][1] if x[1][1] else -1), x)) 193 return sorted(entries, key=lambda x: (+(x[1][0]/x[1][1] if x[1][1] else -1), x)) 195 return sorted(entries) 197 def sorted_diff_entries(entries): 199 return sorted(entries, ke [all...] |
/third_party/f2fs-tools/mkfs/ |
H A D | f2fs_format.c | 870 journal->nat_j.entries[0].nid = sb->root_ino; in f2fs_write_check_point_pack() 871 journal->nat_j.entries[0].ne.version = 0; in f2fs_write_check_point_pack() 872 journal->nat_j.entries[0].ne.ino = sb->root_ino; in f2fs_write_check_point_pack() 873 journal->nat_j.entries[0].ne.block_addr = cpu_to_le32( in f2fs_write_check_point_pack() 880 journal->nat_j.entries[i].nid = sb->qf_ino[qtype]; in f2fs_write_check_point_pack() 881 journal->nat_j.entries[i].ne.version = 0; in f2fs_write_check_point_pack() 882 journal->nat_j.entries[i].ne.ino = sb->qf_ino[qtype]; in f2fs_write_check_point_pack() 883 journal->nat_j.entries[i].ne.block_addr = cpu_to_le32( in f2fs_write_check_point_pack() 891 journal->nat_j.entries[i].nid = cpu_to_le32(c.lpf_ino); in f2fs_write_check_point_pack() 892 journal->nat_j.entries[ in f2fs_write_check_point_pack() [all...] |
/third_party/mesa3d/src/asahi/compiler/ |
H A D | agx_lower_parallel_copy.c | 69 /* For each physreg, the number of pending copy entries that use it as a 78 struct agx_copy entries[AGX_NUM_REGS]; member 106 struct agx_copy *new_entry = &ctx->entries[ctx->entry_count++]; in split_32bit_copy() 134 ctx->entries[i] = *entry; in agx_emit_parallel_copies() 160 struct agx_copy *entry = &ctx->entries[i]; in agx_emit_parallel_copies() 187 struct agx_copy *entry = &ctx->entries[i]; in agx_emit_parallel_copies() 237 struct agx_copy *entry = &ctx->entries[i]; in agx_emit_parallel_copies() 256 struct agx_copy *blocking = &ctx->entries[j]; in agx_emit_parallel_copies() 275 struct agx_copy *blocking = &ctx->entries[j]; in agx_emit_parallel_copies()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/store/ |
H A D | runtime_store.cpp | 109 std::vector<Entry> entries;
in Put() local 120 entries.push_back(entry);
in Put() 133 entries.push_back(entry);
in Put() 135 auto status = PutEntries(entries);
in Put() 142 std::vector<Entry> entries;
in Get() local 143 if (GetEntries(key, entries) != E_OK) {
in Get() 147 if (entries.empty()) {
in Get() 148 ZLOGW("entries is empty, dataPrefix: %{public}s", key.c_str());
in Get() 151 return UnmarshalEntries(key, entries, unifiedData);
in Get() 234 std::vector<Entry> entries;
in Delete() local 369 std::vector<Entry> entries; GetBatchData() local 528 GetEntries(const std::string &dataPrefix, std::vector<Entry> &entries) GetEntries() argument 542 PutEntries(const std::vector<Entry> &entries) PutEntries() argument 590 UnmarshalEntries(const std::string &key, std::vector<Entry> &entries, UnifiedData &unifiedData) UnmarshalEntries() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_natural_store_connection.h | 43 int GetEntries(const IOption &option, const Key &keyPrefix, std::vector<Entry> &entries) const override; 45 int GetEntries(const IOption &option, const Query &query, std::vector<Entry> &entries) const override; 50 int PutBatch(const IOption &option, const std::vector<Entry> &entries) override; 121 int GetEntries(const std::string &device, std::vector<Entry> &entries) const override; 129 int PutBatchInner(const IOption &option, const std::vector<Entry> &entries) override; 132 int SaveSyncEntries(const std::vector<Entry> &entries); 133 int SaveLocalEntries(const std::vector<Entry> &entries); 143 int CheckSyncEntriesValid(const std::vector<Entry> &entries) const override; 147 int CheckLocalEntriesValid(const std::vector<Entry> &entries) const; 220 const Key &keyPrefix, std::vector<Entry> &entries) cons [all...] |
/third_party/f2fs-tools/fsck/ |
H A D | sload.c | 49 int entries, struct dentry *de) in f2fs_make_directory() 54 for (i = 0; i < entries; i++) { in f2fs_make_directory() 207 int entries = 0; in build_directory() local 212 entries = scandir(full_path, &namelist, filter_dot, (void *)alphasort); in build_directory() 213 if (entries < 0) { in build_directory() 214 ERR_MSG("No entries in %s\n", full_path); in build_directory() 218 dentries = calloc(entries, sizeof(struct dentry)); in build_directory() 221 for (i = 0; i < entries; i++) { in build_directory() 244 ret = f2fs_make_directory(sbi, entries, dentries); in build_directory() 248 for (i = 0; i < entries; in build_directory() 48 f2fs_make_directory(struct f2fs_sb_info *sbi, int entries, struct dentry *de) f2fs_make_directory() argument [all...] |
/third_party/node/deps/npm/node_modules/ignore-walk/lib/ |
H A D | index.js | 23 this.entries = null 53 fs.readdir(this.path, (er, entries) => 54 er ? this.emit('error', er) : this.onReaddir(entries)) 64 onReaddir (entries) { 65 this.entries = entries 66 if (entries.length === 0) { 72 const hasIg = this.entries.some(e => 84 const newIg = this.entries 124 // entries i [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_nb_delegate_schema_put_test.cpp | 142 std::vector<Entry> entries; in CheckPutBatchSchemaData() local 143 entries.push_back({key, value}); in CheckPutBatchSchemaData() 148 entries.push_back({key, value}); in CheckPutBatchSchemaData() 150 EXPECT_NE(kvStore->PutBatch(entries), INVALID_FORMAT); in CheckPutBatchSchemaData() 152 entries.clear(); in CheckPutBatchSchemaData() 153 entries.push_back({key, value}); in CheckPutBatchSchemaData() 162 entries.push_back({key, value}); in CheckPutBatchSchemaData() 164 EXPECT_EQ(kvStore->PutBatch(entries), OK); in CheckPutBatchSchemaData() 353 std::vector<Entry> entries; in HWTEST_F() local 356 EXPECT_EQ(g_kvStore->GetEntries(query, entries), O in HWTEST_F() 407 std::vector<Entry> entries; HWTEST_F() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_relational_encrypted_db_test.cpp | 90 void FreeEntires(std::vector<SingleVerKvEntry *> &entries) in FreeEntires() argument 92 for (auto *&it : entries) { in FreeEntires() 264 std::vector<SingleVerKvEntry *> entries; in HWTEST_F() local 265 EXPECT_EQ(store->GetSyncData(query, SyncTimeRange {}, DataSizeSpecInfo {}, token, entries), E_OK); in HWTEST_F() 266 EXPECT_EQ(entries.size(), 3u); in HWTEST_F() 267 FreeEntires(entries); in HWTEST_F() 366 std::vector<SingleVerKvEntry *> entries; in HWTEST_F() local 367 EXPECT_EQ(store->GetSyncData(query, SyncTimeRange {}, DataSizeSpecInfo {}, token, entries), E_OK); in HWTEST_F() 368 EXPECT_EQ(entries.size(), 3u); in HWTEST_F() 369 FreeEntires(entries); in HWTEST_F() 422 std::vector<SingleVerKvEntry *> entries; HWTEST_F() local [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_vec4_copy_propagation.cpp | 468 struct copy_entry entries[alloc.total_size]; in opt_copy_propagation() local 470 memset(&entries, 0, sizeof(entries)); in opt_copy_propagation() 481 memset(&entries, 0, sizeof(entries)); in opt_copy_propagation() 504 const copy_entry &entry = entries[reg]; in opt_copy_propagation() 522 entries[reg].saturatemask &= ~inst->dst.writemask; in opt_copy_propagation() 525 entries[reg].value[i] = direct_copy ? &inst->src[0] : NULL; in opt_copy_propagation() 526 entries[reg].saturatemask |= in opt_copy_propagation() 535 memset(&entries, in opt_copy_propagation() [all...] |
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_pipeline_state.cpp | 99 D3D12_SO_DECLARATION_ENTRY *entries, UINT *num_entries, in fill_so_declaration() 111 /* Mesa doesn't store entries for gl_SkipComponents in the Outputs[] in fill_so_declaration() 115 * DirectX12 requires that we create gap entries. in fill_so_declaration() 120 entries[*num_entries].Stream = output->stream; in fill_so_declaration() 121 entries[*num_entries].SemanticName = NULL; in fill_so_declaration() 122 entries[*num_entries].ComponentCount = skip_components; in fill_so_declaration() 123 entries[*num_entries].OutputSlot = buffer; in fill_so_declaration() 129 entries[*num_entries].Stream = output->stream; in fill_so_declaration() 133 entries[*num_entries].SemanticName = get_semantic_name(var->data.location, in fill_so_declaration() 135 entries[*num_entrie in fill_so_declaration() 97 fill_so_declaration(const struct pipe_stream_output_info *info, nir_shader *last_vertex_stage, D3D12_SO_DECLARATION_ENTRY *entries, UINT *num_entries, UINT *strides, UINT *num_strides) fill_so_declaration() argument 223 D3D12_SO_DECLARATION_ENTRY entries[PIPE_MAX_SO_OUTPUTS] = {}; create_gfx_pipeline_state() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | single_ver_natural_store_connection.h | 29 int PutBatch(const IOption &option, const std::vector<Entry> &entries) override; 41 virtual int CheckSyncEntriesValid(const std::vector<Entry> &entries) const; 45 virtual int PutBatchInner(const IOption &option, const std::vector<Entry> &entries) = 0; 51 bool CheckAndGetEntryLen(const std::vector<Entry> &entries, uint32_t limit, uint32_t &keyLen) const;
|