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.java292 public static Bundle makeBundle(Object... keysAndValues) { in makeBundle() argument
293 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() argument
320 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 …]
/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);