Searched refs:CardColumns (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | CardContentProviderTest.java | 134 values.put(CardDatabaseHelper.CardColumns.SCORE, updatingScore); in cardData_update() 135 final String strWhere = CardDatabaseHelper.CardColumns.NAME + "=?"; in cardData_update() 202 values.put(CardDatabaseHelper.CardColumns.NAME, "auto_rotate"); in generateOneRow() 203 values.put(CardDatabaseHelper.CardColumns.TYPE, 1); in generateOneRow() 204 values.put(CardDatabaseHelper.CardColumns.SCORE, 0.9); in generateOneRow() 205 values.put(CardDatabaseHelper.CardColumns.SLICE_URI, in generateOneRow() 207 values.put(CardDatabaseHelper.CardColumns.CATEGORY, 2); in generateOneRow() 208 values.put(CardDatabaseHelper.CardColumns.PACKAGE_NAME, "com.android.settings"); in generateOneRow() 209 values.put(CardDatabaseHelper.CardColumns.APP_VERSION, 10001); in generateOneRow() 219 values.put(CardDatabaseHelper.CardColumns.NAME, "toggle_airplane"); in generateTwoRows() [all …]
|
D | ContextualCardFeatureProviderImplTest.java | 111 value.put(CardDatabaseHelper.CardColumns.NAME, name); in insertFakeCard() 112 value.put(CardDatabaseHelper.CardColumns.SCORE, score); in insertFakeCard() 113 value.put(CardDatabaseHelper.CardColumns.SLICE_URI, uri); in insertFakeCard() 114 value.put(CardDatabaseHelper.CardColumns.TYPE, ContextualCard.CardType.SLICE); in insertFakeCard() 115 value.put(CardDatabaseHelper.CardColumns.CATEGORY, in insertFakeCard() 117 value.put(CardDatabaseHelper.CardColumns.PACKAGE_NAME, in insertFakeCard() 119 value.put(CardDatabaseHelper.CardColumns.APP_VERSION, 1); in insertFakeCard() 121 value.putNull(CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP); in insertFakeCard() 123 value.put(CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP, time); in insertFakeCard()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | CardDatabaseHelper.java | 36 public interface CardColumns { interface in CardDatabaseHelper 82 + CardColumns.NAME 84 + CardColumns.TYPE 86 + CardColumns.SCORE 88 + CardColumns.SLICE_URI 90 + CardColumns.CATEGORY 92 + CardColumns.PACKAGE_NAME 94 + CardColumns.APP_VERSION 96 + CardColumns.DISMISSED_TIMESTAMP
|
D | ContextualCardFeatureProviderImpl.java | 47 final String selection = CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP + " < ? OR " in getContextualCards() 48 + CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP + " IS NULL"; in getContextualCards() 52 CardDatabaseHelper.CardColumns.SCORE + " DESC" /* orderBy */); in getContextualCards() 61 values.put(CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP, System.currentTimeMillis()); in markCardAsDismissed() 62 final String selection = CardDatabaseHelper.CardColumns.NAME + "=?"; in markCardAsDismissed() 74 values.putNull(CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP); in resetDismissedTime() 75 final String selection = CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP + " < ? AND " in resetDismissedTime() 76 + CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP + " IS NOT NULL"; in resetDismissedTime()
|
D | CardContentProvider.java | 55 .appendPath(CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP) 98 final String[] columns = new String[]{CardDatabaseHelper.CardColumns.NAME, in bulkInsert() 99 CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP}; in bulkInsert() 101 CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP + " IS NOT NULL"; in bulkInsert() 108 CardDatabaseHelper.CardColumns.NAME)); in bulkInsert() 110 CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP)); in bulkInsert() 123 value.get(CardDatabaseHelper.CardColumns.NAME).toString(); in bulkInsert() 126 value.put(CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP, in bulkInsert() 136 Log.e(TAG, "The row " + value.getAsString(CardDatabaseHelper.CardColumns.NAME) in bulkInsert()
|
D | ContextualCard.java | 161 mName = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.NAME)); in ContextualCard() 163 mCardType = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.TYPE)); in ContextualCard() 165 mRankingScore = c.getDouble(c.getColumnIndex(CardDatabaseHelper.CardColumns.SCORE)); in ContextualCard() 167 mSliceUri = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.SLICE_URI)); in ContextualCard() 169 mCategory = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.CATEGORY)); in ContextualCard() 171 mPackageName = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.PACKAGE_NAME)); in ContextualCard() 173 mAppVersion = c.getLong(c.getColumnIndex(CardDatabaseHelper.CardColumns.APP_VERSION)); in ContextualCard()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/ |
D | CardDatabaseHelperTest.java | 60 CardDatabaseHelper.CardColumns.NAME, in testDatabaseSchema() 61 CardDatabaseHelper.CardColumns.TYPE, in testDatabaseSchema() 62 CardDatabaseHelper.CardColumns.SCORE, in testDatabaseSchema() 63 CardDatabaseHelper.CardColumns.SLICE_URI, in testDatabaseSchema() 64 CardDatabaseHelper.CardColumns.CATEGORY, in testDatabaseSchema() 65 CardDatabaseHelper.CardColumns.PACKAGE_NAME, in testDatabaseSchema() 66 CardDatabaseHelper.CardColumns.APP_VERSION, in testDatabaseSchema() 67 CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP, in testDatabaseSchema()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | SliceContextualCardControllerTest.java | 105 final String[] columns = {CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP}; in onDismissed_cardShouldBeMarkedAsDismissedWithTimestamp() 106 final String selection = CardDatabaseHelper.CardColumns.NAME + "=?"; in onDismissed_cardShouldBeMarkedAsDismissedWithTimestamp() 183 values.put(CardDatabaseHelper.CardColumns.NAME, TEST_CARD_NAME); in generateOneRow() 184 values.put(CardDatabaseHelper.CardColumns.TYPE, 1); in generateOneRow() 185 values.put(CardDatabaseHelper.CardColumns.SCORE, 0.9); in generateOneRow() 186 values.put(CardDatabaseHelper.CardColumns.SLICE_URI, TEST_SLICE_URI); in generateOneRow() 187 values.put(CardDatabaseHelper.CardColumns.CATEGORY, 2); in generateOneRow() 188 values.put(CardDatabaseHelper.CardColumns.PACKAGE_NAME, "com.android.settings"); in generateOneRow() 189 values.put(CardDatabaseHelper.CardColumns.APP_VERSION, 10001); in generateOneRow() 190 values.put(CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP, 0L); in generateOneRow()
|