Searched refs:QueriesEntry (Results 1 – 7 of 7) sorted by relevance
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,"92 + QueriesContract.QueriesEntry.SERVICE_NAME + " TEXT NOT NULL,"[all …]
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 …]
66 + QueriesContract.QueriesEntry.TABLE_NAME + "("67 + QueriesContract.QueriesEntry.QUERY_ID + "))";80 + QueriesContract.QueriesEntry.TABLE_NAME + "("81 + QueriesContract.QueriesEntry.QUERY_ID + "))",
29 public static class QueriesEntry implements BaseColumns { class in QueriesContract67 private QueriesEntry() {} in QueriesEntry() method in QueriesContract.QueriesEntry
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()
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()
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()