Searched refs:QueriesContract (Results 1 – 7 of 7) sorted by relevance
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/ |
D | OnDevicePersonalizationDbHelperTest.java | 48 import com.android.ondevicepersonalization.services.data.events.QueriesContract; 81 "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," [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/events/ |
D | EventsDao.java | 140 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 …]
|
D | EventsContract.java | 66 + QueriesContract.QueriesEntry.TABLE_NAME + "(" 67 + QueriesContract.QueriesEntry.QUERY_ID + "))"; 80 + QueriesContract.QueriesEntry.TABLE_NAME + "(" 81 + QueriesContract.QueriesEntry.QUERY_ID + "))",
|
D | QueriesContract.java | 22 public class QueriesContract { class 23 private QueriesContract() { in QueriesContract() method in QueriesContract
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/ |
D | LogUtilsTest.java | 31 import com.android.ondevicepersonalization.services.data.events.QueriesContract; 68 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/ |
D | OnDevicePersonalizationDbHelper.java | 33 import com.android.ondevicepersonalization.services.data.events.QueriesContract; 89 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/ |
D | AppRequestFlowTest.java | 53 import com.android.ondevicepersonalization.services.data.events.QueriesContract; 128 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()
|