/packages/modules/StatsD/statsd/tests/e2e/ |
D | RestrictedEventMetric_e2e_test.cpp | 130 dbutils::deleteDb(configKey); in TearDown() 131 dbutils::deleteDb(ConfigKey(config_app_uid + 1, configId)); in TearDown() 149 query << "SELECT * FROM metric_" << dbutils::reformatMetricId(restrictedMetricId); in TEST_F() 201 query << "SELECT * FROM metric_" << dbutils::reformatMetricId(restrictedMetricId); in TEST_F() 247 query << "SELECT * FROM metric_" << dbutils::reformatMetricId(restrictedMetricId); in TEST_F() 293 query << "SELECT * FROM metric_" << dbutils::reformatMetricId(restrictedMetricId); in TEST_F() 318 query << "SELECT * FROM metric_" << dbutils::reformatMetricId(restrictedMetricId); in TEST_F() 389 query << "SELECT * FROM metric_" << dbutils::reformatMetricId(restrictedMetricId); in TEST_F() 416 query << "SELECT * FROM metric_" << dbutils::reformatMetricId(restrictedMetricId); in TEST_F() 427 dbutils::deleteDb(key2); in TEST_F() [all …]
|
D | RestrictedConfig_e2e_test.cpp | 128 dbutils::deleteDb(configKey); in TearDown() 134 query << "SELECT * FROM metric_" << dbutils::reformatMetricId(metricIdToVerify); in verifyRestrictedData() 141 dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err)); in verifyRestrictedData() 146 dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err)); in verifyRestrictedData() 252 query << "SELECT * FROM metric_" << dbutils::reformatMetricId(metricId); in TEST_F()
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | RestrictedEventMetricProducer_test.cpp | 34 return dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err); in metricTableExist() 49 dbutils::deleteDb(configKey); in TearDown() 76 dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err); in TEST_F() 118 EXPECT_TRUE(dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err)); in TEST_F() 156 dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err); in TEST_F() 226 sqlite3* dbHandle = dbutils::getDb(configKey); in TEST_F() 228 dbutils::closeDb(dbHandle); in TEST_F() 236 dbutils::query(configKey, query.str(), rows, columnTypes, columnNames, err); in TEST_F()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | RestrictedEventMetricProducer.cpp | 88 dbutils::flushTtl(db, mMetricId, ttlTime); in enforceRestrictedDataTtl() 108 if (!dbutils::isEventCompatible(mConfigKey, mMetricId, mLogEvents[0])) { in flushRestrictedData() 115 if (!dbutils::createTableIfNeeded(mConfigKey, mMetricId, mLogEvents[0])) { in flushRestrictedData() 124 if (!dbutils::insert(mConfigKey, mMetricId, mLogEvents, err)) { in flushRestrictedData() 150 if (!dbutils::deleteTable(mConfigKey, mMetricId)) { in deleteMetricTable()
|
D | MetricsManager.cpp | 911 sqlite3* db = dbutils::getDb(mConfigKey); in enforceRestrictedDataTtls() 914 dbutils::closeDb(db); in enforceRestrictedDataTtls() 920 dbutils::closeDb(db); in enforceRestrictedDataTtls()
|
/packages/modules/StatsD/statsd/src/utils/ |
D | DbUtils.h | 29 namespace dbutils {
|
D | DbUtils.cpp | 34 namespace dbutils { namespace
|
/packages/modules/StatsD/statsd/tests/storage/ |
D | StorageManager_test.cpp | 290 dbutils::createTableIfNeeded(key, /*metricId=*/1, *event); in TEST() 308 dbutils::createTableIfNeeded(key, /*metricId=*/1, *event); in TEST()
|
/packages/modules/StatsD/statsd/src/ |
D | StatsLogProcessor.cpp | 573 dbutils::deleteDb(key); in OnConfigUpdatedLocked() 592 if (!dbutils::updateDeviceInfoTable(key, err)) { in OnConfigUpdatedLocked() 630 dbutils::deleteDb(key); in OnConfigUpdatedLocked() 870 dbutils::deleteDb(key); in OnConfigRemoved() 943 if (minSqlClientVersion > dbutils::getDbVersion()) { in querySql() 946 dbutils::getDbVersion(), minSqlClientVersion)); in querySql() 988 if (!dbutils::query(*(keysToQuery.begin()), sqlQuery, rows, columnTypes, columnNames, err)) { in querySql()
|
/packages/modules/StatsD/statsd/benchmark/ |
D | db_benchmark.cpp | 26 namespace dbutils { namespace
|
/packages/modules/StatsD/statsd/src/storage/ |
D | StorageManager.cpp | 859 if (hasFile(dbutils::getDbName(key).c_str())) { in enforceDbGuardrails() 860 dbutils::verifyIntegrityAndDeleteIfNecessary(key); in enforceDbGuardrails()
|
/packages/modules/StatsD/statsd/tests/utils/ |
D | DbUtils_test.cpp | 32 namespace dbutils { namespace
|
/packages/modules/StatsD/statsd/tests/ |
D | StatsLogProcessor_test.cpp | 2180 dbutils::deleteDb(mConfigKey); in TearDown()
|