Home
last modified time | relevance | path

Searched refs:dbutils (Results 1 – 13 of 13) sorted by relevance

/packages/modules/StatsD/statsd/tests/e2e/
DRestrictedEventMetric_e2e_test.cpp130 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 …]
DRestrictedConfig_e2e_test.cpp128 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/
DRestrictedEventMetricProducer_test.cpp34 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/
DRestrictedEventMetricProducer.cpp88 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()
DMetricsManager.cpp911 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/
DDbUtils.h29 namespace dbutils {
DDbUtils.cpp34 namespace dbutils { namespace
/packages/modules/StatsD/statsd/tests/storage/
DStorageManager_test.cpp290 dbutils::createTableIfNeeded(key, /*metricId=*/1, *event); in TEST()
308 dbutils::createTableIfNeeded(key, /*metricId=*/1, *event); in TEST()
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp573 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/
Ddb_benchmark.cpp26 namespace dbutils { namespace
/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp859 if (hasFile(dbutils::getDbName(key).c_str())) { in enforceDbGuardrails()
860 dbutils::verifyIntegrityAndDeleteIfNecessary(key); in enforceDbGuardrails()
/packages/modules/StatsD/statsd/tests/utils/
DDbUtils_test.cpp32 namespace dbutils { namespace
/packages/modules/StatsD/statsd/tests/
DStatsLogProcessor_test.cpp2180 dbutils::deleteDb(mConfigKey); in TearDown()