Searched refs:keysAndValues (Results 1 – 3 of 3) sorted by relevance
390 private void assertMetadata(Bundle b, String... keysAndValues) { in assertMetadata() argument391 assertTrue("Odd number of elements in keysAndValues", (keysAndValues.length % 2) == 0); in assertMetadata()394 assertEquals(keysAndValues.length / 2, b.size()); in assertMetadata()396 for (int i = 0; i < keysAndValues.length; i += 2) { in assertMetadata()397 final String key = keysAndValues[i]; in assertMetadata()398 final String value = keysAndValues[i + 1]; in assertMetadata()
292 public static Bundle makeBundle(Object... keysAndValues) { in makeBundle() argument293 assertTrue((keysAndValues.length % 2) == 0); in makeBundle()295 if (keysAndValues.length == 0) { in makeBundle()300 for (int i = keysAndValues.length - 2; i >= 0; i -= 2) { in makeBundle()301 final String key = keysAndValues[i].toString(); in makeBundle()302 final Object value = keysAndValues[i + 1]; in makeBundle()319 public static PersistableBundle makePersistableBundle(Object... keysAndValues) { in makePersistableBundle() argument320 assertTrue((keysAndValues.length % 2) == 0); in makePersistableBundle()322 if (keysAndValues.length == 0) { in makePersistableBundle()327 for (int i = keysAndValues.length - 2; i >= 0; i -= 2) { in makePersistableBundle()[all …]
495 private <T> void assertSnapshot(LruCache<T, T> cache, T... keysAndValues) {503 assertEquals(Arrays.asList(keysAndValues), actualKeysAndValues);