Home
last modified time | relevance | path

Searched defs:db (Results 1 – 16 of 16) sorted by relevance

/system/security/keystore2/src/
Dkey_parameter.rs1225 let db = init_db()?; in test_new_from_sql_enum_i32() localVariable
1244 let db = init_db()?; in test_new_from_sql_i32() localVariable
1256 let db = init_db()?; in test_new_from_sql_i64() localVariable
1278 let db = init_db()?; in test_new_from_sql_bool() localVariable
1290 let db = init_db()?; in test_new_from_sql_vec_u8() localVariable
1313 let db = init_db()?; in test_to_sql_enum_i32() localVariable
1329 let db = init_db()?; in test_to_sql_i32() localVariable
1342 let db = init_db()?; in test_to_sql_i64() localVariable
1359 let db = init_db()?; in test_to_sql_vec_u8() localVariable
1375 let db = init_db()?; in test_to_sql_bool() localVariable
[all …]
Ddatabase.rs878 let mut db = Self { conn, gc, perboot: perboot::PERBOOT_DB.clone() }; in new() localVariable
3298 let mut db = KeystoreDB { conn, gc: None, perboot: Arc::new(perboot::PerbootDB::new()) }; in new_test_db() localVariable
3371 let db = new_test_db()?; in test_tables() localVariable
3389 let mut db = new_test_db()?; in test_auth_token_table_invariant() localVariable
3447 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files() localVariable
3453 let db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files() localVariable
3466 let mut db = new_test_db()?; in test_create_key_entry() localVariable
3495 let mut db = new_test_db()?; in test_add_unsigned_key() localVariable
3513 let mut db = new_test_db()?; in test_store_signed_attestation_certificate_chain() localVariable
3536 let mut db = new_test_db_with_gc(temp_dir.path(), |_, _| Ok(()))?; in test_remove_expired_certs() localVariable
[all …]
Dgc.rs89 db: KeystoreDB, field
Dglobals.rs63 let mut db = KeystoreDB::new(&db_path, Some(GC.clone())).expect("Failed to open database."); in create_thread_local_db() localVariable
Dsecurity_level.rs162 let mut db = db.borrow_mut(); in store_new_key() localVariable
829 let mut db = db.borrow_mut(); in store_upgraded_keyblob() localVariable
Dmetrics_store.rs535 let mut db = db.borrow_mut(); in pull_storage_stats() localVariable
Dservice.rs205 let mut db = db.borrow_mut(); in update_subcomponent() localVariable
Dlegacy_importer.rs84 db: KeystoreDB, field
/system/security/keystore2/legacykeystore/
Dlib.rs47 let mut db = Self { in new() localVariable
319 let mut db = self.open_db().context("In get.")?; in get() localVariable
338 let mut db = self.open_db().context("In put.")?; in put() localVariable
347 let mut db = self.open_db().context("In remove.")?; in remove() localVariable
379 let mut db = self.open_db().context("In LegacyKeystore::delete_namespace.")?; in delete_namespace() localVariable
387 let mut db = self.open_db().context("In LegacyKeystore::delete_user.")?; in delete_user() localVariable
392 let mut db = self.open_db().context("In list.")?; in list() localVariable
440 let mut db = DB::new(&state.db_path).context("In open_db: Failed to open db.")?; in get_legacy() localVariable
570 let mut db = DB::new(&test_dir.build().push(LegacyKeystore::LEGACY_KEYSTORE_FILE_NAME)) in test_entry_db() localVariable
613 let mut db = DB::new(&test_dir.build().push(LegacyKeystore::LEGACY_KEYSTORE_FILE_NAME)) in test_delete_uid() localVariable
[all …]
/system/sepolicy/tests/
Dsepol_wrap.cpp35 policydb_t *db = static_cast<policydb_t *>(policydbp); in init_genfs_iter() local
54 policydb_t *db = static_cast<policydb_t *>(policydbp); in get_genfs() local
100 policydb_t *db = static_cast<policydb_t *>(policydbp); in init_type_iter() local
162 policydb_t *db = static_cast<policydb_t *>(policydbp); in get_type() local
194 policydb_t *db; in load_policy() local
268 static int get_avtab_allow_rule(char *out, size_t max_size, policydb_t *db, in get_avtab_allow_rule()
302 policydb_t *db = static_cast<policydb_t *>(policydbp); in get_allow_rule() local
/system/apex/apexd/
Dapex_database_test.cpp96 size_t CountPackages(const MountedApexDatabase& db) { in CountPackages()
104 bool Contains(const MountedApexDatabase& db, const std::string& package, in Contains()
120 bool ContainsPackage(const MountedApexDatabase& db, const std::string& package, in ContainsPackage()
143 MountedApexDatabase db; in TEST() local
169 MountedApexDatabase db; in TEST() local
212 MountedApexDatabase db; in TEST() local
230 MountedApexDatabase db; in TEST() local
Dapexd_test.cpp1137 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1178 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1265 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1318 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1366 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1410 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1455 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1598 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1644 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
2392 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
[all …]
/system/sepolicy/tools/
Dversion_policy.c29 static int read_cil_file(struct cil_db **db, char *path) { in read_cil_file()
Dseamendc.c104 static int read_cil_files(struct cil_db **db, char **paths, in read_cil_files()
Dcheck_seapp.c148 sepol_policydb_t *db; member
315 static type_datum_t *find_type(sepol_policydb_t *db, char *type, uint32_t flavor) { in find_type()
329 static bool type_has_attribute(sepol_policydb_t *db, type_datum_t *type_dat, in type_has_attribute()
/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo.cpp194 DmaBuffer& db = dmabufs->emplace_back(inode, size, count, exporter, name); in ReadDmaBufFdRefs() local