/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/ |
D | CardDatabaseHelper.java | 38 public interface CardColumns { interface in CardDatabaseHelper 133 CardColumns.NAME + 135 CardColumns.TYPE + 137 CardColumns.SCORE + 139 CardColumns.SLICE_URI + 141 CardColumns.CATEGORY + 143 CardColumns.LOCALIZED_TO_LOCALE + 145 CardColumns.PACKAGE_NAME + 147 CardColumns.APP_VERSION + 149 CardColumns.TITLE_RES_NAME + [all …]
|
D | ContextualCard.java | 194 mName = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.NAME)); in ContextualCard() 196 mCardType = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.TYPE)); in ContextualCard() 198 mRankingScore = c.getDouble(c.getColumnIndex(CardDatabaseHelper.CardColumns.SCORE)); in ContextualCard() 200 mSliceUri = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.SLICE_URI)); in ContextualCard() 202 mCategory = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.CATEGORY)); in ContextualCard() 205 c.getColumnIndex(CardDatabaseHelper.CardColumns.LOCALIZED_TO_LOCALE)); in ContextualCard() 207 mPackageName = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.PACKAGE_NAME)); in ContextualCard() 209 mAppVersion = c.getLong(c.getColumnIndex(CardDatabaseHelper.CardColumns.APP_VERSION)); in ContextualCard() 212 c.getColumnIndex(CardDatabaseHelper.CardColumns.TITLE_RES_NAME)); in ContextualCard() 214 mTitleText = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.TITLE_TEXT)); in ContextualCard() [all …]
|
D | CardContentProvider.java | 51 .appendPath(CardDatabaseHelper.CardColumns.CARD_DISMISSED) 98 Log.e(TAG, "The row " + value.getAsString(CardDatabaseHelper.CardColumns.NAME) in bulkInsert()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | CardContentProviderTest.java | 127 values.put(CardDatabaseHelper.CardColumns.SCORE, updatingScore); in cardData_update() 128 final String strWhere = CardDatabaseHelper.CardColumns.NAME + "=?"; in cardData_update() 191 values.put(CardDatabaseHelper.CardColumns.NAME, "auto_rotate"); in generateOneRow() 192 values.put(CardDatabaseHelper.CardColumns.TYPE, 1); in generateOneRow() 193 values.put(CardDatabaseHelper.CardColumns.SCORE, 0.9); in generateOneRow() 194 values.put(CardDatabaseHelper.CardColumns.SLICE_URI, in generateOneRow() 196 values.put(CardDatabaseHelper.CardColumns.CATEGORY, 2); in generateOneRow() 197 values.put(CardDatabaseHelper.CardColumns.PACKAGE_NAME, "com.android.settings"); in generateOneRow() 198 values.put(CardDatabaseHelper.CardColumns.APP_VERSION, 10001); in generateOneRow() 208 values.put(CardDatabaseHelper.CardColumns.NAME, "toggle_airplane"); in generateTwoRows() [all …]
|
D | CardDatabaseHelperTest.java | 59 CardDatabaseHelper.CardColumns.NAME, in testDatabaseSchema() 60 CardDatabaseHelper.CardColumns.TYPE, in testDatabaseSchema() 61 CardDatabaseHelper.CardColumns.SCORE, in testDatabaseSchema() 62 CardDatabaseHelper.CardColumns.SLICE_URI, in testDatabaseSchema() 63 CardDatabaseHelper.CardColumns.CATEGORY, in testDatabaseSchema() 64 CardDatabaseHelper.CardColumns.PACKAGE_NAME, in testDatabaseSchema() 65 CardDatabaseHelper.CardColumns.APP_VERSION, in testDatabaseSchema() 66 CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP, in testDatabaseSchema()
|
D | ContextualCardFeatureProviderImplTest.java | 107 value.put(CardDatabaseHelper.CardColumns.NAME, name); in insertFakeCard() 108 value.put(CardDatabaseHelper.CardColumns.SCORE, score); in insertFakeCard() 109 value.put(CardDatabaseHelper.CardColumns.SLICE_URI, uri); in insertFakeCard() 110 value.put(CardDatabaseHelper.CardColumns.TYPE, ContextualCard.CardType.SLICE); in insertFakeCard() 111 value.put(CardDatabaseHelper.CardColumns.CATEGORY, in insertFakeCard() 113 value.put(CardDatabaseHelper.CardColumns.PACKAGE_NAME, in insertFakeCard() 115 value.put(CardDatabaseHelper.CardColumns.APP_VERSION, 1); in insertFakeCard() 117 value.putNull(CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP); in insertFakeCard() 119 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) 100 final String[] columns = new String[]{CardDatabaseHelper.CardColumns.NAME, in bulkInsert() 101 CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP}; in bulkInsert() 103 CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP + " IS NOT NULL"; in bulkInsert() 110 CardDatabaseHelper.CardColumns.NAME)); in bulkInsert() 112 CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP)); in bulkInsert() 125 value.get(CardDatabaseHelper.CardColumns.NAME).toString(); in bulkInsert() 128 value.put(CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP, in bulkInsert() 138 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/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | SliceContextualCardControllerTest.java | 103 final String[] columns = {CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP}; in onDismissed_cardShouldBeMarkedAsDismissedWithTimestamp() 104 final String selection = CardDatabaseHelper.CardColumns.NAME + "=?"; in onDismissed_cardShouldBeMarkedAsDismissedWithTimestamp() 179 values.put(CardDatabaseHelper.CardColumns.NAME, TEST_CARD_NAME); in generateOneRow() 180 values.put(CardDatabaseHelper.CardColumns.TYPE, 1); in generateOneRow() 181 values.put(CardDatabaseHelper.CardColumns.SCORE, 0.9); in generateOneRow() 182 values.put(CardDatabaseHelper.CardColumns.SLICE_URI, TEST_SLICE_URI); in generateOneRow() 183 values.put(CardDatabaseHelper.CardColumns.CATEGORY, 2); in generateOneRow() 184 values.put(CardDatabaseHelper.CardColumns.PACKAGE_NAME, "com.android.settings"); in generateOneRow() 185 values.put(CardDatabaseHelper.CardColumns.APP_VERSION, 10001); in generateOneRow() 186 values.put(CardDatabaseHelper.CardColumns.DISMISSED_TIMESTAMP, 0L); in generateOneRow()
|