Searched refs:sparseArray (Results 1 – 3 of 3) sorted by relevance
34 MultiLongSparseArray<String> sparseArray = new MultiLongSparseArray<>(); in testEmpty() local35 assertThat(sparseArray.get(0)).isEmpty(); in testEmpty()40 MultiLongSparseArray<String> sparseArray = new MultiLongSparseArray<>(); in testOneElement() local41 sparseArray.put(0, "foo"); in testOneElement()42 assertThat(sparseArray.get(0)).containsExactly("foo"); in testOneElement()47 MultiLongSparseArray<String> sparseArray = new MultiLongSparseArray<>(); in testTwoElements() local48 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 …]
269 SparseArray<Parcelable> sparseArray = new SparseArray<>(); in createThoroughBundle() local270 sparseArray.put(24, toy1); in createThoroughBundle()271 sparseArray.put(1025, toy2); in createThoroughBundle()272 b.putSparseParcelableArray("sparceParcelableArray", sparseArray); in createThoroughBundle()
757 protected void dispatchRestoreInstanceState(SparseArray<Parcelable> sparseArray) { in dispatchRestoreInstanceState() argument763 super.dispatchRestoreInstanceState(sparseArray); in dispatchRestoreInstanceState()768 Bundle state = (Bundle) sparseArray.get(R.id.work_tab_state_id, null); in dispatchRestoreInstanceState()