Home
last modified time | relevance | path

Searched refs:sparseArray (Results 1 – 3 of 3) sorted by relevance

/packages/apps/TV/tests/robotests/src/com/android/tv/util/
DMultiLongSparseArrayTest.java34 MultiLongSparseArray<String> sparseArray = new MultiLongSparseArray<>(); in testEmpty() local
35 assertThat(sparseArray.get(0)).isEmpty(); in testEmpty()
40 MultiLongSparseArray<String> sparseArray = new MultiLongSparseArray<>(); in testOneElement() local
41 sparseArray.put(0, "foo"); in testOneElement()
42 assertThat(sparseArray.get(0)).containsExactly("foo"); in testOneElement()
47 MultiLongSparseArray<String> sparseArray = new MultiLongSparseArray<>(); in testTwoElements() local
48 sparseArray.put(0, "foo"); in testTwoElements()
49 sparseArray.put(0, "bar"); in testTwoElements()
50 assertThat(sparseArray.get(0)).containsExactly("foo", "bar"); in testTwoElements()
55 MultiLongSparseArray<String> sparseArray = new MultiLongSparseArray<>(); in testClearEmptyCache() local
[all …]
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/util/
DBundleUtilTest.java269 SparseArray<Parcelable> sparseArray = new SparseArray<>(); in createThoroughBundle() local
270 sparseArray.put(24, toy1); in createThoroughBundle()
271 sparseArray.put(1025, toy2); in createThoroughBundle()
272 b.putSparseParcelableArray("sparceParcelableArray", sparseArray); in createThoroughBundle()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DActivityAllAppsContainerView.java757 protected void dispatchRestoreInstanceState(SparseArray<Parcelable> sparseArray) { in dispatchRestoreInstanceState() argument
763 super.dispatchRestoreInstanceState(sparseArray); in dispatchRestoreInstanceState()
768 Bundle state = (Bundle) sparseArray.get(R.id.work_tab_state_id, null); in dispatchRestoreInstanceState()