Home
last modified time | relevance | path

Searched refs:QueriesEntry (Results 1 – 7 of 7) sorted by relevance

/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/
DOnDevicePersonalizationDbHelperTest.java81 "CREATE TABLE IF NOT EXISTS " + QueriesContract.QueriesEntry.TABLE_NAME + " ("
82 + QueriesContract.QueriesEntry.QUERY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
83 + QueriesContract.QueriesEntry.TIME_MILLIS + " INTEGER NOT NULL,"
84 + QueriesContract.QueriesEntry.SERVICE_NAME + " TEXT NOT NULL,"
85 + QueriesContract.QueriesEntry.QUERY_DATA + " BLOB NOT NULL)";
88 "CREATE TABLE IF NOT EXISTS " + QueriesContract.QueriesEntry.TABLE_NAME + " ("
89 + QueriesContract.QueriesEntry.QUERY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
90 + QueriesContract.QueriesEntry.TIME_MILLIS + " INTEGER NOT NULL,"
91 + QueriesContract.QueriesEntry.APP_PACKAGE_NAME + " TEXT NOT NULL,"
92 + QueriesContract.QueriesEntry.SERVICE_NAME + " TEXT NOT NULL,"
[all …]
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/events/
DEventsDao.java140 values.put(QueriesContract.QueriesEntry.TIME_MILLIS, query.getTimeMillis()); in insertQuery()
141 values.put(QueriesContract.QueriesEntry.SERVICE_NAME, in insertQuery()
143 values.put(QueriesContract.QueriesEntry.QUERY_DATA, query.getQueryData()); in insertQuery()
144 values.put(QueriesContract.QueriesEntry.APP_PACKAGE_NAME, query.getAppPackageName()); in insertQuery()
145 values.put(QueriesContract.QueriesEntry.SERVICE_CERT_DIGEST, in insertQuery()
147 return db.insert(QueriesContract.QueriesEntry.TABLE_NAME, null, in insertQuery()
259 String queriesSelection = QueriesContract.QueriesEntry.QUERY_ID + " > ?" in readAllNewRowsForPackage()
260 + " AND " + QueriesContract.QueriesEntry.SERVICE_NAME + " = ?"; in readAllNewRowsForPackage()
289 String queriesSelection = QueriesContract.QueriesEntry.QUERY_ID + " > ?"; in readAllNewRows()
306 String orderBy = QueriesContract.QueriesEntry.QUERY_ID; in readQueryRows()
[all …]
DEventsContract.java66 + QueriesContract.QueriesEntry.TABLE_NAME + "("
67 + QueriesContract.QueriesEntry.QUERY_ID + "))";
80 + QueriesContract.QueriesEntry.TABLE_NAME + "("
81 + QueriesContract.QueriesEntry.QUERY_ID + "))",
DQueriesContract.java29 public static class QueriesEntry implements BaseColumns { class in QueriesContract
67 private QueriesEntry() {} in QueriesEntry() method in QueriesContract.QueriesEntry
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/
DLogUtilsTest.java68 long queriesSizeBefore = getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME); in testWriteQuery()
80 long queriesSizeAfter = getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME); in testWriteQuery()
88 long queriesSizeBefore = getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME); in testWriteEmptyQuery()
98 long queriesSizeAfter = getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME); in testWriteEmptyQuery()
106 long queriesSizeBefore = getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME); in testWriteEventForExistingQuery()
152 long queriesSizeAfter = getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME); in testWriteEventForExistingQuery()
160 long queriesSizeBefore = getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME); in testWriteEventWithNewQuery()
178 long queriesSizeAfter = getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME); in testWriteEventWithNewQuery()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/
DOnDevicePersonalizationDbHelper.java89 db.execSQL(QueriesContract.QueriesEntry.CREATE_TABLE_STATEMENT); in onCreate()
100 execSqlIgnoreError(db, QueriesContract.QueriesEntry.UPGRADE_V1_TO_V2_STATEMENT); in onUpgrade()
104 execSqlIgnoreError(db, QueriesContract.QueriesEntry.UPGRADE_V2_TO_V3_STATEMENT); in onUpgrade()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/serviceflow/
DAppRequestFlowTest.java128 int originalQueriesCount = getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME); in testAppRequestFlow_MeasurementControlRevoked()
139 assertEquals(originalQueriesCount, getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME)); in testAppRequestFlow_MeasurementControlRevoked()
166 assertEquals(2, getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME)); in testAppRequestFlow_OutputDataBlocked()
185 assertEquals(2, getDbTableSize(QueriesContract.QueriesEntry.TABLE_NAME)); in testAppRequestFlow_OutputDataAllowed()