Searched refs:configKey (Results 1 – 2 of 2) sorted by relevance
/development/samples/browseable/WatchFace/Application/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceCompanionConfigActivity.java | 170 private void setUpColorPickerSelection(int spinnerId, final String configKey, DataMap config, in setUpColorPickerSelection() argument 176 color = config.getInt(configKey, defaultColor); in setUpColorPickerSelection() 190 private void setUpColorPickerListener(int spinnerId, final String configKey) { in setUpColorPickerListener() argument 196 sendConfigUpdateMessage(configKey, Color.parseColor(colorName)); in setUpColorPickerListener() 204 private void sendConfigUpdateMessage(String configKey, int color) { in sendConfigUpdateMessage() argument 207 config.putInt(configKey, color); in sendConfigUpdateMessage() 212 Log.d(TAG, "Sent watch face config message: " + configKey + " -> " in sendConfigUpdateMessage()
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceService.java | 598 for (String configKey : config.keySet()) { 599 if (!config.containsKey(configKey)) { 602 int color = config.getInt(configKey); 604 Log.d(TAG, "Found watch face config key: " + configKey + " -> " 607 if (updateUiForKey(configKey, color)) { 622 private boolean updateUiForKey(String configKey, int color) { 623 if (configKey.equals(DigitalWatchFaceUtil.KEY_BACKGROUND_COLOR)) { 625 } else if (configKey.equals(DigitalWatchFaceUtil.KEY_HOURS_COLOR)) { 627 } else if (configKey.equals(DigitalWatchFaceUtil.KEY_MINUTES_COLOR)) { 629 } else if (configKey.equals(DigitalWatchFaceUtil.KEY_SECONDS_COLOR)) { [all …]
|