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()
291 public static Bundle makeBundle(Object... keysAndValues) { in makeBundle() argument292 assertTrue((keysAndValues.length % 2) == 0); in makeBundle()294 if (keysAndValues.length == 0) { in makeBundle()299 for (int i = keysAndValues.length - 2; i >= 0; i -= 2) { in makeBundle()300 final String key = keysAndValues[i].toString(); in makeBundle()301 final Object value = keysAndValues[i + 1]; in makeBundle()318 public static PersistableBundle makePersistableBundle(Object... keysAndValues) { in makePersistableBundle() argument319 assertTrue((keysAndValues.length % 2) == 0); in makePersistableBundle()321 if (keysAndValues.length == 0) { in makePersistableBundle()326 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);