Searched refs:dynamicColorMap (Results 1 – 2 of 2) sorted by relevance
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/ |
D | DynamicRenderResourcesTest.java | 37 Map<String, Integer> dynamicColorMap = DynamicRenderResources.createDynamicColorMap( in createDynamicTheme() local 39 assertNotNull(dynamicColorMap); in createDynamicTheme() 40 assertEquals(-1, (int)dynamicColorMap.get("system_accent1_0")); in createDynamicTheme() 41 assertEquals(-4632, (int)dynamicColorMap.get("system_accent1_50")); in createDynamicTheme() 42 assertEquals(-1403268, (int)dynamicColorMap.get("system_accent1_300")); in createDynamicTheme() 43 assertEquals(-11198451, (int)dynamicColorMap.get("system_accent1_800")); in createDynamicTheme() 44 assertEquals(-1, (int)dynamicColorMap.get("system_accent2_0")); in createDynamicTheme() 45 assertEquals(-4632, (int)dynamicColorMap.get("system_accent2_50")); in createDynamicTheme() 46 assertEquals(-3497321, (int)dynamicColorMap.get("system_accent2_300")); in createDynamicTheme() 47 assertEquals(-12309982, (int)dynamicColorMap.get("system_accent2_800")); in createDynamicTheme() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | DynamicRenderResources.java | 169 Map<String, Integer> dynamicColorMap = new HashMap<>(); in createDynamicColorMap() local 170 extractPalette("accent1", dynamicColorMap, scheme.getAccent1()); in createDynamicColorMap() 171 extractPalette("accent2", dynamicColorMap, scheme.getAccent2()); in createDynamicColorMap() 172 extractPalette("accent3", dynamicColorMap, scheme.getAccent3()); in createDynamicColorMap() 173 extractPalette("neutral1", dynamicColorMap, scheme.getNeutral1()); in createDynamicColorMap() 174 extractPalette("neutral2", dynamicColorMap, scheme.getNeutral2()); in createDynamicColorMap() 175 return dynamicColorMap; in createDynamicColorMap()
|