/system/iorap/src/db/ |
D | clean_up.cc | 31 namespace iorap::db { namespace 33 void CleanUpFilesForActivity(const db::DbHandle& db, in CleanUpFilesForActivity() argument 34 const db::VersionedComponentName& vcn) { in CleanUpFilesForActivity() 37 std::vector<db::RawTraceModel> raw_traces = in CleanUpFilesForActivity() 38 db::RawTraceModel::SelectByVersionedComponentName(db, vcn); in CleanUpFilesForActivity() 39 for (db::RawTraceModel raw_trace : raw_traces) { in CleanUpFilesForActivity() 47 std::optional<db::PrefetchFileModel> prefetch_file = in CleanUpFilesForActivity() 48 db::PrefetchFileModel::SelectByVersionedComponentName(db, vcn); in CleanUpFilesForActivity() 58 void CleanUpFilesForPackage(const db::DbHandle& db, in CleanUpFilesForPackage() argument 64 std::vector<db::ActivityModel> activities = in CleanUpFilesForPackage() [all …]
|
D | models.h | 35 namespace iorap::db { 40 void operator()(sqlite3* db) { in operator() 41 if (db != nullptr) { in operator() 42 LOG(VERBOSE) << "sqlite3_close for: " << db; in operator() 43 sqlite3_close(db); in operator() 51 explicit DbHandle(sqlite3* db) in DbHandle() argument 52 : db_{std::shared_ptr<sqlite3>{db, SqliteDbDeleter{}}}, in DbHandle() 92 static DbStatement Prepare(DbHandle db, const std::string& sql, Args&&... args) { in Prepare() argument 93 return Prepare(db, sql.c_str(), std::forward<Args>(args)...); in Prepare() 97 static DbStatement Prepare(DbHandle db, const char* sql, Args&&... args) { in Prepare() argument [all …]
|
D | clean_up.h | 26 namespace iorap::db { 30 void CleanUpFilesForDb(const db::DbHandle& db); 34 void CleanUpFilesForPackage(const db::DbHandle& db, 44 void CleanUpFilesForPackage(const db::DbHandle& db, 49 void CleanUpFilesForPackage(const db::DbHandle& db,
|
D | main.cc | 33 namespace iorap::db { namespace 176 DbHandle db = schema_model.db(); in Main() local 189 ActivityModel::SelectOrInsert(db, in Main() 207 ActivityModel::SelectOrInsert(db, in Main() 228 return ::iorap::db::Main(argc, argv); in main()
|
D | file_models.cc | 29 namespace iorap::db { namespace 116 return ::iorap::db::MkdirWithParents(BaseDir()); in MkdirWithParents() 135 void PerfettoTraceFileModel::DeleteOlderFiles(DbHandle& db, VersionedComponentName vcn) { in DeleteOlderFiles() argument 137 RawTraceModel::SelectByVersionedComponentName(db, vcn); in DeleteOlderFiles()
|
/system/iorap/src/maintenance/ |
D | controller.cc | 57 db::CompiledTraceFileModel CalculateNewestFilePath( in CalculateNewestFilePath() 61 db::VersionedComponentName versioned_component_name{ in CalculateNewestFilePath() 64 db::CompiledTraceFileModel output_file = in CalculateNewestFilePath() 65 db::CompiledTraceFileModel::CalculateNewestFilePath(versioned_component_name); in CalculateNewestFilePath() 217 const db::DbHandle& db, in GetPerfettoTraceInfo() argument 218 const std::vector<db::AppLaunchHistoryModel>& histories) { in GetPerfettoTraceInfo() 221 for(db::AppLaunchHistoryModel history : histories) { in GetPerfettoTraceInfo() 223 std::optional<db::RawTraceModel> raw_trace = in GetPerfettoTraceInfo() 224 db::RawTraceModel::SelectByHistoryId(db, history.id); in GetPerfettoTraceInfo() 268 bool CompileActivity(const db::DbHandle& db, in CompileActivity() argument [all …]
|
D | db_cleaner.cc | 37 void CleanUpDatabase(const db::DbHandle& db, in CleanUpDatabase() argument 39 std::vector<db::PackageModel> packages = db::PackageModel::SelectAll(db); in CleanUpDatabase() 41 if (!db::DbQueryBuilder::ExecuteOnce(db, kForeignKeyOnSql)) { in CleanUpDatabase() 45 for (db::PackageModel package : packages) { in CleanUpDatabase() 57 db::CleanUpFilesForPackage(db, package.id, package.name, package.version); in CleanUpDatabase()
|
D | controller.h | 103 bool CompileAppsOnDevice(const db::DbHandle& db, const ControllerParameters& params); 105 bool CompileSingleAppOnDevice(const db::DbHandle& db, 109 void Dump(const db::DbHandle& db, ::android::Printer& printer);
|
D | db_cleaner.h | 30 void CleanUpDatabase(const db::DbHandle& db,
|
/system/apex/apexd/ |
D | apex_database_test.cpp | 95 size_t CountPackages(const MountedApexDatabase& db) { in CountPackages() argument 97 db.ForallMountedApexes([&ret](const std::string& a ATTRIBUTE_UNUSED, in CountPackages() 103 bool Contains(const MountedApexDatabase& db, const std::string& package, in Contains() argument 108 db.ForallMountedApexes([&](const std::string& p, const MountedApexData& d, in Contains() 119 bool ContainsPackage(const MountedApexDatabase& db, const std::string& package, in ContainsPackage() argument 124 db.ForallMountedApexes( in ContainsPackage() 142 MountedApexDatabase db; in TEST() local 143 ASSERT_EQ(CountPackages(db), 0u); in TEST() 145 db.AddMountedApex(kPackage, false, kLoopName, kPath, kMountPoint, kDeviceName, in TEST() 147 ASSERT_TRUE(Contains(db, kPackage, kLoopName, kPath, kMountPoint, kDeviceName, in TEST() [all …]
|
/system/sepolicy/tests/ |
D | sepol_wrap.cpp | 35 policydb_t *db = static_cast<policydb_t *>(policydbp); in init_genfs_iter() local 37 out->genfs = db->genfs; in init_genfs_iter() 38 out->ocon = db->genfs->head; in init_genfs_iter() 54 policydb_t *db = static_cast<policydb_t *>(policydbp); in get_genfs() local 59 db->p_user_val_to_name[i->ocon->context->user-1], in get_genfs() 60 db->p_role_val_to_name[i->ocon->context->role-1], in get_genfs() 61 db->p_type_val_to_name[i->ocon->context->type-1]); in get_genfs() 100 policydb_t *db = static_cast<policydb_t *>(policydbp); in init_type_iter() local 110 out->length = db->p_types.nprim; in init_type_iter() 118 out->d = static_cast<type_datum *>(hashtab_search(db->p_types.table, type)); in init_type_iter() [all …]
|
/system/iorap/tests/src/maintenance/ |
D | controller_test.cc | 113 iorap::db::SchemaModel db_schema = db::SchemaModel::GetOrCreate(db_path); in TEST_F() 114 db::DbHandle db{db_schema.db()}; in TEST_F() local 138 CompileAppsOnDevice(db, params); in TEST_F() 154 CompileAppsOnDevice(db, params2); in TEST_F()
|
/system/iorap/tests/src/db/ |
D | app_component_name_test.cc | 25 db::AppComponentName component_name{"foo.bar", "foo.bar.MainActivity"}; in TEST() 27 db::AppComponentName result = component_name.Canonicalize(); in TEST() 34 db::AppComponentName component_name{"foo.bar", ".MainActivity"}; in TEST() 36 db::AppComponentName result = component_name.Canonicalize(); in TEST()
|
/system/iorap/src/manager/ |
D | event_manager.cc | 63 using db::AppComponentName; 390 db::DbHandle db{db::SchemaModel::GetSingleton()}; in GetCompiledTrace() local 397 db::VersionedComponentName vcn{component_name.package, in GetCompiledTrace() 401 std::optional<db::PrefetchFileModel> compiled_trace = in GetCompiledTrace() 402 db::PrefetchFileModel::SelectByVersionedComponentName(db, vcn); in GetCompiledTrace() 518 db::VersionedComponentName versioned_component_name{component_name.package, in StartTracing() 528 db::PerfettoTraceFileModel file_model = in StartTracing() 529 db::PerfettoTraceFileModel::CalculateNewestFilePath(versioned_component_name); in StartTracing() 551 db::DbHandle db{db::SchemaModel::GetSingleton()}; in StartTracing() local 552 std::optional<db::RawTraceModel> raw_trace = in StartTracing() [all …]
|
/system/bt/stack/gatt/ |
D | gatt_db.cc | 43 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const Uuid& uuid, 52 void gatts_init_service_db(tGATT_SVC_DB& db, const Uuid& service_uuid, in gatts_init_service_db() argument 54 db.attr_list.reserve(num_handle); in gatts_init_service_db() 60 db.next_handle = s_hdl; in gatts_init_service_db() 61 db.end_handle = s_hdl + num_handle; in gatts_init_service_db() 66 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_init_service_db() 328 uint16_t gatts_add_included_service(tGATT_SVC_DB& db, uint16_t s_handle, in gatts_add_included_service() argument 341 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_add_included_service() 366 uint16_t gatts_add_characteristic(tGATT_SVC_DB& db, tGATT_PERM perm, in gatts_add_characteristic() argument 374 tGATT_ATTR& char_decl = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_add_characteristic() [all …]
|
/system/ca-certificates/files/ |
D | facacbc6.0 | 48 8f:7e:07:57:ec:ef:43:db:66:62:15:61:cf:60:0d: 52 7b:c7:70:f6:b3:dc:12:74:db:7b:5d:4b:56:d3:96: 77 d8:e6:06:91:40:18:b9:f8:c1:ed:df:db:41:aa:e0:96:20:c9: 78 cd:64:15:38:81:c9:94:ee:a2:84:29:0b:13:6f:8e:db:0c:dd: 79 25:02:db:a4:8b:19:44:d2:41:7a:05:69:4a:58:4f:60:ca:7e: 80 82:6a:0b:02:aa:25:17:39:b5:db:7f:e7:84:65:2a:95:8a:bd: 83 32:db:ce:9d:51:5e:28:b6:9e:85:d3:5b:ef:a5:7d:45:40:72:
|
D | d41b5e2a.0 | 30 7b:46:4b:63:b0:62:f6:2d:1b:db:08:71:21:d2:00: 32 aa:a3:5b:20:98:45:5d:16:db:fd:e8:10:6d:e3:9c: 34 ba:88:a1:2a:a0:75:f8:81:ae:62:06:c4:81:db:39: 50 a7:88:9c:8a:e4:4c:4a:db:96:d4:ac:8b:6b:6b:49:12:53:33:
|
D | 3a3b02ce.0 | 49 05:99:0b:ed:45:31:09:ca:c2:00:db:f7:72:a0:96: 51 b4:63:a2:9f:7f:93:13:30:f1:a1:27:db:d9:ff:2c: 56 68:f7:bd:96:1b:ac:70:b1:16:14:0b:db:60:b9:26: 72 b0:6c:51:f9:36:7e:db:f5:4c:32:3a:41:4f:5b:47:cf:e8:0b: 73 2d:b6:c4:19:9d:74:c5:47:c6:3b:6a:0f:ac:14:db:3c:f4:73: 79 84:b3:46:91:46:96:00:b7:80:2c:b6:e1:e3:10:e2:db:a2:e7:
|
D | 81b9768f.0 | 42 a4:a9:41:59:3a:d3:dc:94:d6:3c:db:74:38:a4:4a: 45 f8:c5:ec:db:38:92:e3:06:e5:08:91:0c:c4:28:41: 51 68:73:d0:34:04:13:5c:a1:71:d3:5a:7c:55:db:5e: 69 1c:1a:06:97:dc:d7:9c:9f:3c:88:66:06:08:57:21:db:21:47: 72 b3:78:ce:db:e3:53:79:71:d6:e5:21:94:01:da:55:87:9a:24: 79 d8:bc:2a:02:5b:0f:44:d4:20:31:db:f4:ba:70:26:5d:90:60:
|
D | 3c860d51.0 | 56 84:db:52:2c:f3:0e:27:77:0b:6b:bf:11:2f:72:78: 61 33:51:de:be:8d:ba:84:7a:60:3c:6a:db:9f:2b:ec: 65 13:db:c9:db:79:36:7b:85:3a:4a:c5:52:89:f9:24: 69 89:92:f1:9d:26:8f:a1:07:d4:c6:b2:78:50:db:0c: 109 db:5f:26:6b:52:d9:2e:8a:f1:14:c6:44:8d:15:a9:b7:bf:bd: 118 cb:ce:9a:db:6a:b4:a6:b2:db:41:08:86:27:77:f7:6a:a0:42: 127 e9:b8:c9:66:f4:db:26:f3:3a:a4:74:f2:49:24:5b:c9:b0:d0:
|
/system/ca-certificates/google/files/ |
D | facacbc6.0 | 48 8f:7e:07:57:ec:ef:43:db:66:62:15:61:cf:60:0d: 52 7b:c7:70:f6:b3:dc:12:74:db:7b:5d:4b:56:d3:96: 77 d8:e6:06:91:40:18:b9:f8:c1:ed:df:db:41:aa:e0:96:20:c9: 78 cd:64:15:38:81:c9:94:ee:a2:84:29:0b:13:6f:8e:db:0c:dd: 79 25:02:db:a4:8b:19:44:d2:41:7a:05:69:4a:58:4f:60:ca:7e: 80 82:6a:0b:02:aa:25:17:39:b5:db:7f:e7:84:65:2a:95:8a:bd: 83 32:db:ce:9d:51:5e:28:b6:9e:85:d3:5b:ef:a5:7d:45:40:72:
|
D | 81b9768f.0 | 42 a4:a9:41:59:3a:d3:dc:94:d6:3c:db:74:38:a4:4a: 45 f8:c5:ec:db:38:92:e3:06:e5:08:91:0c:c4:28:41: 51 68:73:d0:34:04:13:5c:a1:71:d3:5a:7c:55:db:5e: 69 1c:1a:06:97:dc:d7:9c:9f:3c:88:66:06:08:57:21:db:21:47: 72 b3:78:ce:db:e3:53:79:71:d6:e5:21:94:01:da:55:87:9a:24: 79 d8:bc:2a:02:5b:0f:44:d4:20:31:db:f4:ba:70:26:5d:90:60:
|
D | 3e7271e8.0 | 43 78:40:c0:73:42:c8:68:c0:db:53:2b:dd:5e:b8:76: 53 fd:b2:64:4c:0e:e4:98:07:75:db:7f:df:b9:08:55: 74 ed:6d:e5:2a:db:ed:14:a9:2b:c6:36:11:d0:2b:eb:07:8b:a5: 79 7f:7b:ff:af:1c:cf:e6:db:07:ad:5e:db:85:9d:d0:2b:0d:33: 80 db:04:d1:e6:49:40:13:2b:76:fb:3e:e9:9c:89:0f:15:ce:18:
|
/system/sepolicy/tools/ |
D | version_policy.c | 30 static int read_cil_file(struct cil_db **db, char *path) { in read_cil_file() argument 37 cil_db_init(db); in read_cil_file() 65 rc = cil_add_file(*db, path, buff, file_size); in read_cil_file() 78 cil_db_destroy(db); in read_cil_file()
|
/system/iorap/src/iorapd/ |
D | main.cc | 44 iorap::db::SchemaModel db_schema = in main() 45 iorap::db::SchemaModel::GetOrCreate( in main()
|