Home
last modified time | relevance | path

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

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBundleUtils.java24 public static Bundle makeBundle(Object... keysAndValues) { in makeBundle() argument
25 if ((keysAndValues.length % 2) != 0) { in makeBundle()
29 if (keysAndValues.length == 0) { in makeBundle()
34 for (int i = keysAndValues.length - 2; i >= 0; i -= 2) { in makeBundle()
35 final String key = keysAndValues[i].toString(); in makeBundle()
36 final Object value = keysAndValues[i + 1]; in makeBundle()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerCtsTestsBase.java334 public static Bundle makeBundle(Object... keysAndValues) { in makeBundle() argument
335 assertTrue((keysAndValues.length % 2) == 0); in makeBundle()
337 if (keysAndValues.length == 0) { in makeBundle()
342 for (int i = keysAndValues.length - 2; i >= 0; i -= 2) { in makeBundle()
343 final String key = keysAndValues[i].toString(); in makeBundle()
344 final Object value = keysAndValues[i + 1]; in makeBundle()
361 public static PersistableBundle makePersistableBundle(Object... keysAndValues) { in makePersistableBundle() argument
362 assertTrue((keysAndValues.length % 2) == 0); in makePersistableBundle()
364 if (keysAndValues.length == 0) { in makePersistableBundle()
369 for (int i = keysAndValues.length - 2; i >= 0; i -= 2) { in makePersistableBundle()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DLruCacheTest.java516 private <T> void assertSnapshot(LruCache<T, T> cache, T... keysAndValues) {
524 assertEquals(Arrays.asList(keysAndValues), actualKeysAndValues);