Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageParserTest.java390 private void assertMetadata(Bundle b, String... keysAndValues) { in assertMetadata() argument
391 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()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java291 public static Bundle makeBundle(Object... keysAndValues) { in makeBundle() argument
292 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() argument
319 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 …]
/frameworks/base/core/tests/coretests/src/android/util/
DLruCacheTest.java495 private <T> void assertSnapshot(LruCache<T, T> cache, T... keysAndValues) {
503 assertEquals(Arrays.asList(keysAndValues), actualKeysAndValues);