Home | History | Annotate | Download | only in com.example.android.wearable.watchface

Lines Matching defs:config

43  * The phone-side config activity for {@code DigitalWatchFaceService}. Like the watch-side config
114 DataMap config = dataMapItem.getDataMap();
115 setUpAllPickers(config);
117 // If DataItem with the current config can't be retrieved, select the default items on
151 * Sets up selected items for all pickers according to given {@code config} and sets up their
154 * @param config the {@code DigitalWatchFaceService} config {@link DataMap}. If null, the
157 private void setUpAllPickers(DataMap config) {
158 setUpColorPickerSelection(R.id.background, KEY_BACKGROUND_COLOR, config,
160 setUpColorPickerSelection(R.id.hours, KEY_HOURS_COLOR, config, R.string.color_white);
161 setUpColorPickerSelection(R.id.minutes, KEY_MINUTES_COLOR, config, R.string.color_white);
162 setUpColorPickerSelection(R.id.seconds, KEY_SECONDS_COLOR, config, R.string.color_gray);
170 private void setUpColorPickerSelection(int spinnerId, final String configKey, DataMap config,
175 if (config != null) {
176 color = config.getInt(configKey, defaultColor);
206 DataMap config = new DataMap();
207 config.putInt(configKey, color);
208 byte[] rawData = config.toByteArray();
212 Log.d(TAG, "Sent watch face config message: " + configKey + " -> "