Home
last modified time | relevance | path

Searched refs:SlicesDatabaseHelper (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceTestUtils.java55 final SQLiteDatabase db = SlicesDatabaseHelper.getInstance(context).getWritableDatabase(); in insertSliceToDb()
57 values.put(SlicesDatabaseHelper.IndexColumns.KEY, key); in insertSliceToDb()
58 values.put(SlicesDatabaseHelper.IndexColumns.SLICE_URI, in insertSliceToDb()
67 values.put(SlicesDatabaseHelper.IndexColumns.TITLE, FAKE_TITLE); in insertSliceToDb()
68 values.put(SlicesDatabaseHelper.IndexColumns.SUMMARY, FAKE_SUMMARY); in insertSliceToDb()
69 values.put(SlicesDatabaseHelper.IndexColumns.SCREENTITLE, FAKE_SCREEN_TITLE); in insertSliceToDb()
70 values.put(SlicesDatabaseHelper.IndexColumns.KEYWORDS, FAKE_KEYWORDS); in insertSliceToDb()
71 values.put(SlicesDatabaseHelper.IndexColumns.ICON_RESOURCE, FAKE_ICON); in insertSliceToDb()
72 values.put(SlicesDatabaseHelper.IndexColumns.FRAGMENT, FAKE_FRAGMENT_NAME); in insertSliceToDb()
73 values.put(SlicesDatabaseHelper.IndexColumns.CONTROLLER, FAKE_CONTROLLER_NAME); in insertSliceToDb()
[all …]
DSliceBroadcastReceiverTest.java68 mDb = SlicesDatabaseHelper.getInstance(mContext).getWritableDatabase(); in setUp()
70 SlicesDatabaseHelper helper = SlicesDatabaseHelper.getInstance(mContext); in setUp()
317 values.put(SlicesDatabaseHelper.IndexColumns.KEY, key); in insertSpecialCase()
318 values.put(SlicesDatabaseHelper.IndexColumns.TITLE, SliceTestUtils.FAKE_TITLE); in insertSpecialCase()
319 values.put(SlicesDatabaseHelper.IndexColumns.SUMMARY, SliceTestUtils.FAKE_SUMMARY); in insertSpecialCase()
320 values.put(SlicesDatabaseHelper.IndexColumns.SCREENTITLE, SliceTestUtils.FAKE_SCREEN_TITLE); in insertSpecialCase()
321 values.put(SlicesDatabaseHelper.IndexColumns.ICON_RESOURCE, SliceTestUtils.FAKE_ICON); in insertSpecialCase()
322 values.put(SlicesDatabaseHelper.IndexColumns.FRAGMENT, SliceTestUtils.FAKE_FRAGMENT_NAME); in insertSpecialCase()
323 values.put(SlicesDatabaseHelper.IndexColumns.CONTROLLER, controllerClass); in insertSpecialCase()
324 values.put(SlicesDatabaseHelper.IndexColumns.SLICE_URI, buildUri(key).toSafeString()); in insertSpecialCase()
[all …]
DSlicesIndexerTest.java30 import com.android.settings.slices.SlicesDatabaseHelper.IndexColumns;
78 SlicesDatabaseHelper.getInstance(mContext).setIndexedState(); in testAlreadyIndexed_doesNotIndexAgain()
84 final SQLiteDatabase db = SlicesDatabaseHelper.getInstance(mContext).getWritableDatabase(); in testAlreadyIndexed_doesNotIndexAgain()
98 final SlicesDatabaseHelper helper = SlicesDatabaseHelper.getInstance(mContext); in testInsertSliceData_indexedStateSet()
114 final SQLiteDatabase db = SlicesDatabaseHelper.getInstance(mContext).getWritableDatabase(); in testInsertSliceData_nonPublicSlice_mockDataInserted()
159 final SQLiteDatabase db = SlicesDatabaseHelper.getInstance(mContext).getWritableDatabase(); in insertSliceData_publicSlice_mockDataInserted()
201 final SQLiteDatabase db = SlicesDatabaseHelper.getInstance(mContext).getWritableDatabase(); in insertSpecialCase()
204 db.replaceOrThrow(SlicesDatabaseHelper.Tables.TABLE_SLICES_INDEX, null, values); in insertSpecialCase()
DSlicesDatabaseHelperTest.java29 import com.android.settings.slices.SlicesDatabaseHelper.IndexColumns;
45 private SlicesDatabaseHelper mSlicesDatabaseHelper;
51 mSlicesDatabaseHelper = spy(SlicesDatabaseHelper.getInstance(mContext)); in setUp()
88 mDatabase.replaceOrThrow(SlicesDatabaseHelper.Tables.TABLE_SLICES_INDEX, null, mockValues); in testUpgrade_dropsOldData()
DSlicesDatabaseAccessorTest.java76 SlicesDatabaseHelper.getInstance(mContext).setIndexedState(); in setUp()
DSettingsSliceProviderTest.java156 SlicesDatabaseHelper.getInstance(mContext).setIndexedState(); in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/slices/
DSliceTestUtils.java55 final SQLiteDatabase db = SlicesDatabaseHelper.getInstance(context).getWritableDatabase(); in insertSliceToDb()
57 values.put(SlicesDatabaseHelper.IndexColumns.KEY, key); in insertSliceToDb()
58 values.put(SlicesDatabaseHelper.IndexColumns.SLICE_URI, in insertSliceToDb()
67 values.put(SlicesDatabaseHelper.IndexColumns.TITLE, FAKE_TITLE); in insertSliceToDb()
68 values.put(SlicesDatabaseHelper.IndexColumns.SUMMARY, FAKE_SUMMARY); in insertSliceToDb()
69 values.put(SlicesDatabaseHelper.IndexColumns.SCREENTITLE, FAKE_SCREEN_TITLE); in insertSliceToDb()
70 values.put(SlicesDatabaseHelper.IndexColumns.KEYWORDS, FAKE_KEYWORDS); in insertSliceToDb()
71 values.put(SlicesDatabaseHelper.IndexColumns.ICON_RESOURCE, FAKE_ICON); in insertSliceToDb()
72 values.put(SlicesDatabaseHelper.IndexColumns.FRAGMENT, FAKE_FRAGMENT_NAME); in insertSliceToDb()
73 values.put(SlicesDatabaseHelper.IndexColumns.CONTROLLER, FAKE_CONTROLLER_NAME); in insertSliceToDb()
[all …]
/packages/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseHelper.java32 public class SlicesDatabaseHelper extends SQLiteOpenHelper { class
142 private static SlicesDatabaseHelper sSingleton;
144 public static synchronized SlicesDatabaseHelper getInstance(Context context) { in getInstance()
146 sSingleton = new SlicesDatabaseHelper(context.getApplicationContext()); in getInstance()
151 private SlicesDatabaseHelper(Context context) { in SlicesDatabaseHelper() method in SlicesDatabaseHelper
DSlicesIndexer.java29 import com.android.settings.slices.SlicesDatabaseHelper.IndexColumns;
30 import com.android.settings.slices.SlicesDatabaseHelper.Tables;
44 private SlicesDatabaseHelper mHelper;
48 mHelper = SlicesDatabaseHelper.getInstance(mContext); in SlicesIndexer()
DSlicesDatabaseAccessor.java19 import static com.android.settings.slices.SlicesDatabaseHelper.Tables.TABLE_SLICES_INDEX;
32 import com.android.settings.slices.SlicesDatabaseHelper.IndexColumns;
56 private final SlicesDatabaseHelper mHelper;
60 mHelper = SlicesDatabaseHelper.getInstance(mContext); in SlicesDatabaseAccessor()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DDatabaseTestUtils.java23 import com.android.settings.slices.SlicesDatabaseHelper;
36 SlicesDatabaseHelper helper = SlicesDatabaseHelper.getInstance(context); in clearSlicesDb()
39 ReflectionHelpers.setStaticField(SlicesDatabaseHelper.class, "sSingleton", null); in clearSlicesDb()