Home
last modified time | relevance | path

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

12

/system/iorap/src/db/
Dclean_up.cc31 namespace iorap::db { namespace
33 void CleanUpFilesForActivity(const db::DbHandle& db, in CleanUpFilesForActivity()
58 void CleanUpFilesForPackage(const db::DbHandle& db, in CleanUpFilesForPackage()
73 void CleanUpFilesForPackage(const db::DbHandle& db, in CleanUpFilesForPackage()
87 void CleanUpFilesForDb(const db::DbHandle& db) { in CleanUpFilesForDb()
97 db::DbHandle db{db_schema.db()}; in CleanUpFilesForPackage() local
102 void CleanUpFilesForPackage(const db::DbHandle& db, in CleanUpFilesForPackage()
Dmodels.h51 explicit DbHandle(sqlite3* db) in DbHandle()
92 static DbStatement Prepare(DbHandle db, const std::string& sql, Args&&... args) { in Prepare()
97 static DbStatement Prepare(DbHandle db, const char* sql, Args&&... args) { in Prepare()
113 DbStatement(DbHandle db, sqlite3_stmt* stmt) : db_(db), stmt_(stmt) { in DbStatement()
120 DbHandle db() { in db() function
301 static std::optional<int> Insert(DbHandle db, const std::string& sql, Args&&... args) { in Insert()
318 static bool Delete(DbHandle db, const std::string& sql, Args&&... args) { in Delete()
323 static bool Update(DbHandle db, const std::string& sql, Args&&... args) { in Update()
328 static bool ExecuteOnce(DbHandle db, const std::string& sql, Args&&... args) { in ExecuteOnce()
358 DbHandle db() const { in db() function
[all …]
Dmodels.cc17 namespace iorap::db { namespace
Dfile_models.cc29 namespace iorap::db { namespace
135 bool PerfettoTraceFileModel::NeedMorePerfettoTraces(DbHandle& db, in NeedMorePerfettoTraces()
148 void PerfettoTraceFileModel::DeleteOlderFiles(DbHandle& db, VersionedComponentName vcn) { in DeleteOlderFiles()
Dmain.cc33 namespace iorap::db { namespace
176 DbHandle db = schema_model.db(); in Main() local
/system/security/keystore2/src/
Dkey_parameter.rs1154 let db = init_db()?; in test_new_from_sql_enum_i32() localVariable
1173 let db = init_db()?; in test_new_from_sql_i32() localVariable
1185 let db = init_db()?; in test_new_from_sql_i64() localVariable
1207 let db = init_db()?; in test_new_from_sql_bool() localVariable
1219 let db = init_db()?; in test_new_from_sql_vec_u8() localVariable
1242 let db = init_db()?; in test_to_sql_enum_i32() localVariable
1258 let db = init_db()?; in test_to_sql_i32() localVariable
1271 let db = init_db()?; in test_to_sql_i64() localVariable
1288 let db = init_db()?; in test_to_sql_vec_u8() localVariable
1304 let db = init_db()?; in test_to_sql_bool() localVariable
[all …]
Ddatabase.rs848 let mut db = Self { conn, gc, perboot: perboot::PERBOOT_DB.clone() }; in new() localVariable
3246 let mut db = KeystoreDB { conn, gc: None, perboot: Arc::new(perboot::PerbootDB::new()) }; in new_test_db() localVariable
3319 let db = new_test_db()?; in test_tables() localVariable
3337 let mut db = new_test_db()?; in test_auth_token_table_invariant() localVariable
3395 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files() localVariable
3401 let db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files() localVariable
3414 let mut db = new_test_db()?; in test_create_key_entry() localVariable
3443 let mut db = new_test_db()?; in test_add_unsigned_key() localVariable
3461 let mut db = new_test_db()?; in test_store_signed_attestation_certificate_chain() localVariable
3479 let mut db = new_test_db()?; in test_get_attestation_pool_status() localVariable
[all …]
Dremote_provisioning.rs290 let mut db = db.borrow_mut(); in generate_csr() localVariable
346 let mut db = db.borrow_mut(); in provision_cert_chain() localVariable
382 let mut db = db.borrow_mut(); in generate_key_pair() localVariable
401 let mut db = db.borrow_mut(); in delete_all_keys() localVariable
413 let mut db = db.borrow_mut(); in get_pool_status() localVariable
Dservice.rs208 let mut db = db.borrow_mut(); in update_subcomponent() localVariable
298 let mut db = db.borrow_mut(); in list_entries() localVariable
Dgc.rs88 db: KeystoreDB, field
Dglobals.rs59 let mut db = KeystoreDB::new(&db_path, Some(GC.clone())).expect("Failed to open database."); in create_thread_local_db() localVariable
Dsecurity_level.rs158 let mut db = db.borrow_mut(); in store_new_key() localVariable
785 let mut db = db.borrow_mut(); in store_upgraded_keyblob() localVariable
/system/security/keystore2/legacykeystore/
Dlib.rs46 let mut db = Self { in new() localVariable
309 let mut db = self.open_db().context("In get.")?; in get() localVariable
331 let mut db = self.open_db().context("In put.")?; in put() localVariable
337 let mut db = self.open_db().context("In remove.")?; in remove() localVariable
368 let mut db = self.open_db().context("In LegacyKeystore::delete_namespace.")?; in delete_namespace() localVariable
376 let mut db = self.open_db().context("In LegacyKeystore::delete_user.")?; in delete_user() localVariable
381 let mut db = self.open_db().context("In list.")?; in list() localVariable
429 let mut db = DB::new(&state.db_path).context("In open_db: Failed to open db.")?; in get_legacy() localVariable
538 let mut db = DB::new(&test_dir.build().push(LegacyKeystore::LEGACY_KEYSTORE_FILE_NAME)) in test_entry_db() localVariable
581 let mut db = DB::new(&test_dir.build().push(LegacyKeystore::LEGACY_KEYSTORE_FILE_NAME)) in test_delete_uid() localVariable
[all …]
/system/iorap/src/maintenance/
Dcontroller.cc225 const db::DbHandle& db, in GetPerfettoTraceInfo()
281 bool CompileActivity(const db::DbHandle& db, in CompileActivity()
383 bool CompilePackage(const db::DbHandle& db, in CompilePackage()
415 bool CompileAppsOnDevice(const db::DbHandle& db, const ControllerParameters& params) { in CompileAppsOnDevice()
438 bool CompileSingleAppOnDevice(const db::DbHandle& db, in CompileSingleAppOnDevice()
454 db::DbHandle db{db_schema.db()}; in Compile() local
463 db::DbHandle db{db_schema.db()}; in Compile() local
473 db::DbHandle db{db_schema.db()}; in Compile() local
516 void DumpPackageActivity(const db::DbHandle& db, in DumpPackageActivity()
584 void DumpPackage(const db::DbHandle& db, in DumpPackage()
[all …]
Ddb_cleaner.cc37 void CleanUpDatabase(const db::DbHandle& db, in CleanUpDatabase()
/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.cpp985 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1026 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1074 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1127 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1175 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1219 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1264 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1908 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
1987 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
2035 auto& db = GetApexDatabaseForTesting(); in TEST_F() local
[all …]
/system/bt/stack/gatt/
Dgatt_db.cc54 void gatts_init_service_db(tGATT_SVC_DB& db, const Uuid& service_uuid, in gatts_init_service_db()
326 uint16_t gatts_add_included_service(tGATT_SVC_DB& db, uint16_t s_handle, in gatts_add_included_service()
365 uint16_t gatts_add_characteristic(tGATT_SVC_DB& db, tGATT_PERM perm, in gatts_add_characteristic()
397 tGATT_SVC_DB& db, uint16_t extended_properties) { in gatts_add_char_ext_prop_descr()
425 uint16_t gatts_add_char_descr(tGATT_SVC_DB& db, tGATT_PERM perm, in gatts_add_char_descr()
681 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const Uuid& uuid, in allocate_attr_in_db()
/system/bt/stack/test/
Dstack_gatt_sr_hash_test.cc33 tGATT_SVC_DB* db, bool is_primary) { in add_item_to_list()
/system/bt/bta/test/gatt/
Ddatabase_test.cc59 Database db = builder.Build(); in TEST() local
246 Database db = builder.Build(); in TEST() local
/system/iorap/src/manager/
Devent_manager.cc374 db::DbHandle db{db::SchemaModel::GetSingleton()}; in GetCompiledTrace() local
471 db::DbHandle db{db::SchemaModel::GetSingleton()}; in StartTracing() local
546 db::DbHandle db{db::SchemaModel::GetSingleton()}; in StartTracing() local
646 db::DbHandle db{db::SchemaModel::GetSingleton()}; in InsertDbLaunchHistory() local
698 db::DbHandle db{db::SchemaModel::GetSingleton()}; in UpdateReportFullyDrawn() local
1035 db::DbHandle db{db::SchemaModel::GetSingleton()}; in OnPackageChanged() local
1098 db::DbHandle db{db::SchemaModel::GetSingleton()}; in StartMaintenance() local
1268 db::DbHandle db{db::SchemaModel::GetSingleton()}; in PurgePackage() local
1289 db::DbHandle db{db::SchemaModel::GetSingleton()}; in CompilePackage() local
/system/sepolicy/tools/
Dversion_policy.c30 static int read_cil_file(struct cil_db **db, char *path) { in read_cil_file()
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.cpp195 DmaBuffer& db = dmabufs->emplace_back(inode, size, count, exporter, name); in ReadDmaBufFdRefs() local

12