Home
last modified time | relevance | path

Searched refs:db (Results 1 – 25 of 1031) sorted by relevance

12345678910>>...42

/external/swiftshader/third_party/llvm-subzero/lib/Demangle/
DItaniumDemangle.cpp40 static const char *parse_type(const char *first, const char *last, C &db);
42 static const char *parse_encoding(const char *first, const char *last, C &db);
44 static const char *parse_name(const char *first, const char *last, C &db,
47 static const char *parse_expression(const char *first, const char *last, C &db);
50 C &db);
53 C &db);
56 C &db);
58 static const char *parse_decltype(const char *first, const char *last, C &db);
117 C &db) { in parse_floating_number() argument
145 db.names.push_back(std::string(num, static_cast<std::size_t>(n))); in parse_floating_number()
[all …]
/external/python/cpython2/Lib/bsddb/test/
Dtest_db.py4 from test_all import db, test_support, get_new_environment_path, \
12 self.db = db.DB()
15 self.db.close()
16 del self.db
21 self.db.open(self.path, dbtype=db.DB_HASH, flags = db.DB_CREATE)
22 self.assertEqual(db.DB_CREATE, self.db.get_open_flags())
25 self.db.open(self.path, dbtype=db.DB_HASH, flags = db.DB_CREATE |
26 db.DB_THREAD)
27 self.assertEqual(db.DB_CREATE | db.DB_THREAD, self.db.get_open_flags())
30 self.db.open(self.path, dbtype=db.DB_HASH, flags = db.DB_CREATE)
[all …]
Dtest_early_close.py8 from test_all import db, test_support, verbose, get_new_environment_path, get_new_database_path
33 dbenv = db.DBEnv()
35 db.DB_INIT_CDB| db.DB_CREATE |db.DB_THREAD|db.DB_INIT_MPOOL,
38 d = db.DB(dbenv)
39 d2 = db.DB(dbenv)
40 d.open(self.filename, db.DB_BTREE, db.DB_CREATE | db.DB_THREAD, 0666)
42 self.assertRaises(db.DBNoSuchFileError, d2.open,
43 self.filename+"2", db.DB_BTREE, db.DB_THREAD, 0666)
48 self.assertRaises(db.DBError, d.get, "test")
51 dbenv = db.DBEnv()
[all …]
Dtest_dbobj.py5 from test_all import db, dbobj, test_support, get_new_environment_path, \
19 del self.db
32 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
33 self.db = TestDB(self.env)
34 self.db.open(self.db_name, db.DB_HASH, db.DB_CREATE)
35 self.db.put('spam', 'eggs')
36 self.assertEqual(self.db.get('spam'), None,
38 self.assertEqual(self.db.get('SPAM'), 'eggs',
40 self.db.close()
45 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
[all …]
Dtest_dbenv.py4 from test_all import db, test_support, get_new_environment_path, \
12 self.env = db.DBEnv()
21 flags = db.DB_CREATE | db.DB_INIT_MPOOL
26 flags = db.DB_CREATE | db.DB_INIT_MPOOL | \
27 db.DB_INIT_LOCK | db.DB_THREAD
31 if db.version() >= (4, 7) :
42 self.assertRaises(db.DBInvalidArgError,
45 if db.version() >= (4, 6) :
60 if db.version() >= (4, 4) :
62 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL |
[all …]
Dtest_misc.py7 from test_all import db, dbshelve, hashopen, test_support, get_new_environment_path, get_new_databa…
23 self.assertRaises(db.DBError, dbs.get, "foo")
26 env = db.DBEnv()
29 env.open(self.homeDir, db.DB_CREATE)
36 db = hashopen(self.filename)
37 db.close()
38 rp = repr(db)
42 db = hashopen(self.filename)
45 db[repr(i)] = repr(100*i)
47 db.close()
[all …]
Dtest_replication.py8 from test_all import db, test_support, have_threads, verbose, \
19 self.dbenvMaster = db.DBEnv()
20 self.dbenvClient = db.DBEnv()
25 self.dbenvMaster.open(self.homeDirMaster, db.DB_CREATE | db.DB_INIT_TXN
26 | db.DB_INIT_LOG | db.DB_INIT_MPOOL | db.DB_INIT_LOCK |
27 db.DB_INIT_REP | db.DB_RECOVER | db.DB_THREAD, 0666)
28 self.dbenvClient.open(self.homeDirClient, db.DB_CREATE | db.DB_INIT_TXN
29 | db.DB_INIT_LOG | db.DB_INIT_MPOOL | db.DB_INIT_LOCK |
30 db.DB_INIT_REP | db.DB_RECOVER | db.DB_THREAD, 0666)
34 if b==db.DB_EVENT_REP_MASTER :
[all …]
Dtest_basics.py14 from test_all import db, test_support, verbose, get_new_environment_path, \
24 info = db.version()
28 print db.DB_VERSION_STRING
30 self.assertEqual(info, (db.DB_VERSION_MAJOR, db.DB_VERSION_MINOR,
31 db.DB_VERSION_PATCH))
36 dbtype = db.DB_UNKNOWN # must be set in derived class
52 self.env = db.DBEnv()
58 self.env.open(self.homeDir, self.envflags | db.DB_CREATE)
69 self.d = db.DB(self.env)
81 self.dbopenflags|db.DB_CREATE, self.dbmode)
[all …]
Dtest_associate.py10 from test_all import db, dbshelve, test_support, verbose, have_threads, \
82 self.env = db.DBEnv()
83 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
96 dupDB = db.DB(self.env)
97 dupDB.set_flags(db.DB_DUP)
98 dupDB.open(self.filename, "primary", db.DB_BTREE, db.DB_CREATE)
100 secDB = db.DB(self.env)
101 secDB.open(self.filename, "secondary", db.DB_BTREE, db.DB_CREATE)
108 except db.DBError:
117 @unittest.skipUnless(db.version() >= (4, 6), 'Needs 4.6+')
[all …]
Dtest_lock.py9 from test_all import db, test_support, verbose, have_threads, \
24 self.env = db.DBEnv()
25 self.env.open(self.homeDir, db.DB_THREAD | db.DB_INIT_MPOOL |
26 db.DB_INIT_LOCK | db.DB_CREATE)
42 lock = self.env.lock_get(anID, "some locked thing", db.DB_LOCK_WRITE)
58 args=(db.DB_LOCK_WRITE,)))
60 args=(db.DB_LOCK_READ,)))
62 args=(db.DB_LOCK_READ,)))
64 args=(db.DB_LOCK_WRITE,)))
66 args=(db.DB_LOCK_READ,)))
[all …]
/external/u-boot/drivers/net/
Duli526x.c207 struct uli526x_board_info *db; /* board information structure */ in uli526x_initialize() local
228 db = (struct uli526x_board_info *) in uli526x_initialize()
231 dev->priv = db; in uli526x_initialize()
232 db->pdev = devno; in uli526x_initialize()
241 db->ioaddr = dev->iobase; in uli526x_initialize()
244 pci_read_config_dword(devno, PCI_VENDOR_ID, &db->chip_id); in uli526x_initialize()
247 printf("uli526x: chip_id%x\n", db->chip_id); in uli526x_initialize()
260 struct uli526x_board_info *db = dev->priv; in uli526x_init_one() local
276 db->desc_pool_ptr = (uchar *)&desc_pool_array[0]; in uli526x_init_one()
277 db->desc_pool_dma_ptr = (dma_addr_t)&desc_pool_array[0]; in uli526x_init_one()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_copy_ast.h38 int cil_copy_expr(struct cil_db *db, struct cil_list *orig, struct cil_list **new);
40 int cil_copy_block(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
41 int cil_copy_blockabstract(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
42 int cil_copy_blockinherit(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
43 int cil_copy_perm(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
44 int cil_copy_class(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
45 int cil_copy_classorder(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
46 int cil_copy_classmapping(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
47 int cil_copy_permset(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
52 int cil_copy_classpermission(__attribute__((unused)) struct cil_db *db, void *data, void **copy, sy…
[all …]
Dcil_build_ast.h40 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum,…
43 int cil_gen_block(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast…
45 int cil_gen_blockinherit(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_no…
47 int cil_gen_blockabstract(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_n…
49 int cil_gen_in(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_no…
51 int cil_gen_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast…
53 int cil_gen_classorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node…
55 int cil_gen_perm(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_…
57 int cil_gen_perm_nodes(struct cil_db *db, struct cil_tree_node *current_perm, struct cil_tree_node …
65 int cil_gen_classpermission(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree…
[all …]
Dcil_post.c53 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db);
54 … __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct cil_db *db);
553 struct cil_db *db = extra_args; in __cil_post_db_count_helper() local
570 db->num_classes++; in __cil_post_db_count_helper()
578 type->value = db->num_types; in __cil_post_db_count_helper()
579 db->num_types++; in __cil_post_db_count_helper()
580 db->num_types_and_attrs++; in __cil_post_db_count_helper()
588 db->num_types_and_attrs++; in __cil_post_db_count_helper()
597 role->value = db->num_roles; in __cil_post_db_count_helper()
598 db->num_roles++; in __cil_post_db_count_helper()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddecoder_database_unittest.cc26 DecoderDatabase db; in TEST() local
27 EXPECT_EQ(0, db.Size()); in TEST()
28 EXPECT_TRUE(db.Empty()); in TEST()
32 DecoderDatabase db; in TEST() local
37 db.RegisterPayload(kPayloadType, NetEqDecoder::kDecoderPCMu, kCodecName)); in TEST()
38 EXPECT_EQ(1, db.Size()); in TEST()
39 EXPECT_FALSE(db.Empty()); in TEST()
40 EXPECT_EQ(DecoderDatabase::kOK, db.Remove(kPayloadType)); in TEST()
41 EXPECT_EQ(0, db.Size()); in TEST()
42 EXPECT_TRUE(db.Empty()); in TEST()
[all …]
Dtimestamp_scaler_unittest.cc25 MockDecoderDatabase db; in TEST() local
30 EXPECT_CALL(db, GetDecoderInfo(kRtpPayloadType)) in TEST()
33 TimestampScaler scaler(db); in TEST()
42 EXPECT_CALL(db, Die()); // Called when database object is deleted. in TEST()
46 MockDecoderDatabase db; in TEST() local
51 EXPECT_CALL(db, GetDecoderInfo(kRtpPayloadType)) in TEST()
54 TimestampScaler scaler(db); in TEST()
68 EXPECT_CALL(db, Die()); // Called when database object is deleted. in TEST()
72 MockDecoderDatabase db; in TEST() local
76 EXPECT_CALL(db, GetDecoderInfo(kRtpPayloadType)) in TEST()
[all …]
/external/python/cpython3/Lib/test/
Dtest_unicodedata.py74 self.db = unicodedata
77 del self.db
92 format(self.db.digit(char, -1), '.12g'),
93 format(self.db.numeric(char, -1), '.12g'),
94 format(self.db.decimal(char, -1), '.12g'),
95 self.db.category(char),
96 self.db.bidirectional(char),
97 self.db.decomposition(char),
98 str(self.db.mirrored(char)),
99 str(self.db.combining(char)),
[all …]
/external/syzkaller/pkg/db/
Ddb_test.go4 package db package
19 db, err := Open(fn)
23 if len(db.Records) != 0 {
26 db.Save("", nil, 0)
27 db.Save("1", []byte("ab"), 1)
28 db.Save("23", []byte("abcd"), 2)
35 if !reflect.DeepEqual(db.Records, want) {
36 t.Fatalf("bad db after save: %v, want: %v", db.Records, want)
38 if err := db.Flush(); err != nil {
41 if !reflect.DeepEqual(db.Records, want) {
[all …]
Ddb.go9 package db package
40 db := &DB{
43 f, err := os.OpenFile(db.filename, os.O_RDONLY|os.O_CREATE, osutil.DefaultFilePerm)
47 db.Version, db.Records, db.uncompacted = deserializeDB(bufio.NewReader(f))
49 if len(db.Records) == 0 || db.uncompacted/10*9 > len(db.Records) {
50 if err := db.compact(); err != nil {
54 return db, nil
57 func (db *DB) Save(key string, val []byte, seq uint64) {
61 if rec, ok := db.Records[key]; ok && seq == rec.Seq && bytes.Equal(val, rec.Val) {
64 db.Records[key] = Record{val, seq}
[all …]
/external/tensorflow/tensorflow/core/summary/
Dschema.cc22 Status Run(Sqlite* db, const char* sql) { in Run() argument
24 TF_RETURN_IF_ERROR(db->Prepare(sql, &stmt)); in Run()
30 Status SetupTensorboardSqliteDb(Sqlite* db) { in SetupTensorboardSqliteDb() argument
34 db->PrepareOrDie(strings::StrCat("PRAGMA application_id=", in SetupTensorboardSqliteDb()
37 db->PrepareOrDie("PRAGMA user_version=0").StepAndResetOrDie(); in SetupTensorboardSqliteDb()
56 s.Update(Run(db, R"sql( in SetupTensorboardSqliteDb()
68 s.Update(Run(db, R"sql( in SetupTensorboardSqliteDb()
105 s.Update(Run(db, R"sql( in SetupTensorboardSqliteDb()
117 s.Update(Run(db, R"sql( in SetupTensorboardSqliteDb()
139 s.Update(Run(db, R"sql( in SetupTensorboardSqliteDb()
[all …]
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DDatabaseContentProvider.java75 protected void bootstrapDatabase(SQLiteDatabase db) { in bootstrapDatabase() argument
86 protected abstract boolean upgradeDatabase(SQLiteDatabase db, int oldVersion, int newVersion); in upgradeDatabase() argument
97 protected abstract boolean downgradeDatabase(SQLiteDatabase db, int oldVersion, int newVersion); in downgradeDatabase() argument
107 protected static boolean addColumn(SQLiteDatabase db, String table, String columnName, in addColumn() argument
113 db.execSQL(sb.toString()); in addColumn()
126 protected void onDatabaseOpened(SQLiteDatabase db) { in onDatabaseOpened() argument
139 public void onCreate(SQLiteDatabase db) { in onCreate() argument
140 bootstrapDatabase(db); in onCreate()
144 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
145 upgradeDatabase(db, oldVersion, newVersion); in onUpgrade()
[all …]
/external/python/cpython2/Lib/test/
Dtest_unicodedata.py74 self.db = unicodedata
77 del self.db
92 str(self.db.digit(char, -1)),
93 str(self.db.numeric(char, -1)),
94 str(self.db.decimal(char, -1)),
95 self.db.category(char),
96 self.db.bidirectional(char),
97 self.db.decomposition(char),
98 str(self.db.mirrored(char)),
99 str(self.db.combining(char)),
[all …]
/external/python/cpython2/Lib/bsddb/
Ddbtables.py57 from bsddb3 import db
60 from bsddb import db
166 self.db = None
167 myflags = db.DB_THREAD
169 myflags |= db.DB_CREATE
170 flagsforenv = (db.DB_INIT_MPOOL | db.DB_INIT_LOCK | db.DB_INIT_LOG |
171 db.DB_INIT_TXN | dbflags)
174 dbflags |= db.DB_AUTO_COMMIT
178 flagsforenv = flagsforenv | db.DB_RECOVER
179 self.env = db.DBEnv()
[all …]
/external/iproute2/lib/
Dnames.c55 struct db_names *db; in db_names_alloc() local
57 db = calloc(1, sizeof(*db)); in db_names_alloc()
58 if (!db) in db_names_alloc()
61 db->size = MAX_ENTRIES; in db_names_alloc()
62 db->hash = calloc(db->size, sizeof(struct db_entry *)); in db_names_alloc()
64 return db; in db_names_alloc()
67 int db_names_load(struct db_names *db, const char *path) in db_names_load() argument
101 entry->next = db->hash[id & (db->size - 1)]; in db_names_load()
102 db->hash[id & (db->size - 1)] = entry; in db_names_load()
111 void db_names_free(struct db_names *db) in db_names_free() argument
[all …]
/external/autotest/frontend/tko/preconfigs/metrics/
Dperf3 globalFilter[0][db]: hostname
10 seriesFilters[0][0][db]: iteration_key
12 seriesFilters[0][1][db]: test_name
19 seriesFilters[1][0][db]: iteration_key
21 seriesFilters[1][1][db]: test_name
28 seriesFilters[2][0][db]: iteration_key
30 seriesFilters[2][1][db]: test_name
37 seriesFilters[3][0][db]: iteration_key
39 seriesFilters[3][1][db]: test_name
46 seriesFilters[4][0][db]: iteration_key
[all …]

12345678910>>...42