Home
last modified time | relevance | path

Searched refs:EventsEntry (Results 1 – 8 of 8) sorted by relevance

/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/events/
DEventsDao.java91 values.put(EventsContract.EventsEntry.QUERY_ID, event.getQueryId()); in insertEvent()
92 values.put(EventsContract.EventsEntry.ROW_INDEX, event.getRowIndex()); in insertEvent()
93 values.put(EventsContract.EventsEntry.TIME_MILLIS, event.getTimeMillis()); in insertEvent()
94 values.put(EventsContract.EventsEntry.SERVICE_NAME, in insertEvent()
96 values.put(EventsContract.EventsEntry.TYPE, event.getType()); in insertEvent()
97 values.put(EventsContract.EventsEntry.EVENT_DATA, event.getEventData()); in insertEvent()
98 return db.insert(EventsContract.EventsEntry.TABLE_NAME, null, in insertEvent()
251 String joinedSelection = EventsContract.EventsEntry.EVENT_ID + " > ?" in readAllNewRowsForPackage()
252 + " AND " + EventsContract.EventsEntry.TABLE_NAME + "." in readAllNewRowsForPackage()
253 + EventsContract.EventsEntry.SERVICE_NAME + " = ?"; in readAllNewRowsForPackage()
[all …]
DEventsContract.java32 public static class EventsEntry implements BaseColumns { class in EventsContract
91 private EventsEntry() {} in EventsEntry() method in EventsContract.EventsEntry
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/
DOnDevicePersonalizationDbHelperTest.java105 "CREATE TABLE IF NOT EXISTS " + EventsContract.EventsEntry.TABLE_NAME + " ("
106 + EventsContract.EventsEntry.EVENT_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
107 + EventsContract.EventsEntry.QUERY_ID + " INTEGER NOT NULL,"
108 + EventsContract.EventsEntry.ROW_INDEX + " INTEGER NOT NULL,"
109 + EventsContract.EventsEntry.SERVICE_NAME + " TEXT NOT NULL,"
110 + EventsContract.EventsEntry.TYPE + " INTEGER NOT NULL,"
111 + EventsContract.EventsEntry.TIME_MILLIS + " INTEGER NOT NULL,"
112 + EventsContract.EventsEntry.EVENT_DATA + " BLOB NOT NULL,"
113 + "FOREIGN KEY(" + EventsContract.EventsEntry.QUERY_ID + ") REFERENCES "
116 + "UNIQUE(" + EventsContract.EventsEntry.QUERY_ID + ","
[all …]
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/
DLogUtilsTest.java69 long eventsSizeBefore = getDbTableSize(EventsContract.EventsEntry.TABLE_NAME); in testWriteQuery()
81 long eventsSizeAfter = getDbTableSize(EventsContract.EventsEntry.TABLE_NAME); in testWriteQuery()
89 long eventsSizeBefore = getDbTableSize(EventsContract.EventsEntry.TABLE_NAME); in testWriteEmptyQuery()
99 long eventsSizeAfter = getDbTableSize(EventsContract.EventsEntry.TABLE_NAME); in testWriteEmptyQuery()
107 long eventsSizeBefore = getDbTableSize(EventsContract.EventsEntry.TABLE_NAME); in testWriteEventForExistingQuery()
153 long eventsSizeAfter = getDbTableSize(EventsContract.EventsEntry.TABLE_NAME); in testWriteEventForExistingQuery()
161 long eventsSizeBefore = getDbTableSize(EventsContract.EventsEntry.TABLE_NAME); in testWriteEventWithNewQuery()
179 long eventsSizeAfter = getDbTableSize(EventsContract.EventsEntry.TABLE_NAME); in testWriteEventWithNewQuery()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/display/
DOdpWebViewClientTests.java190 mDbHelper.getReadableDatabase().query(EventsContract.EventsEntry.TABLE_NAME, null, in testValidUrlOverride()
207 mDbHelper.getReadableDatabase().query(EventsContract.EventsEntry.TABLE_NAME, null, in testValidUrlWithNoContentIntercept()
227 mDbHelper.getReadableDatabase().query(EventsContract.EventsEntry.TABLE_NAME, null, in testValidUrlWithResponseDataIntercept()
245 mDbHelper.getReadableDatabase().query(EventsContract.EventsEntry.TABLE_NAME, null, in testValidUrlWithRedirect()
261 EventsContract.EventsEntry.TABLE_NAME, null, in testValidUrlWithEventMetrics()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/serviceflow/
DAppRequestFlowTest.java129 int originalEventsCount = getDbTableSize(EventsContract.EventsEntry.TABLE_NAME); in testAppRequestFlow_MeasurementControlRevoked()
140 assertEquals(originalEventsCount, getDbTableSize(EventsContract.EventsEntry.TABLE_NAME)); in testAppRequestFlow_MeasurementControlRevoked()
167 assertEquals(1, getDbTableSize(EventsContract.EventsEntry.TABLE_NAME)); in testAppRequestFlow_OutputDataBlocked()
186 assertEquals(1, getDbTableSize(EventsContract.EventsEntry.TABLE_NAME)); in testAppRequestFlow_OutputDataAllowed()
DWebViewFlowTest.java179 return mDbHelper.getReadableDatabase().query(EventsContract.EventsEntry.TABLE_NAME, in getDbEntryCount()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/
DOnDevicePersonalizationDbHelper.java90 db.execSQL(EventsContract.EventsEntry.CREATE_TABLE_STATEMENT); in onCreate()
112 execSqlIgnoreError(db, EventsContract.EventsEntry.UPGRADE_V4_TO_V5_STATEMENTS); in onUpgrade()