Home
last modified time | relevance | path

Searched refs:ClockSettings (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/
DClockRegistryTest.kt32 import com.android.systemui.plugins.clocks.ClockSettings
129 override fun createClock(settings: ClockSettings): ClockController = in getClocks()
171 override fun applySettings(value: ClockSettings?) { in setUp()
259 registry.applySettings(ClockSettings("clock_3", null)) in createCurrentClock_pluginConnected()
279 registry.applySettings(ClockSettings("clock_3", null)) in activeClockId_changeAfterPluginConnected()
300 registry.applySettings(ClockSettings("clock_3", null)) in createDefaultClock_pluginDisconnected()
328 registry.applySettings(ClockSettings("clock_3", null)) in pluginRemoved_clockAndListChanged()
402 registry.applySettings(ClockSettings("DIGITAL_CLOCK_CALLIGRAPHY", null)) in knownPluginAttached_clockAndListChanged_loadedCurrent()
436 registry.applySettings(ClockSettings("clock_4", null)) in pluginAddRemove_concurrentModification()
470 val expected = ClockSettings("ID", null).apply { in jsonDeserialization_gotExpectedObject()
[all …]
DDefaultClockProviderTest.kt30 import com.android.systemui.plugins.clocks.ClockSettings
54 createClock(ClockSettings(id, null)) as DefaultClockController in createClock()
183 val clock = provider.createClock(ClockSettings(DEFAULT_CLOCK_ID, initSeedColor)) in createClock()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/clocks/
DClockProviderPlugin.kt51 fun createClock(settings: ClockSettings): ClockController in initialize()
311 data class ClockSettings( dataClass
323 fun serialize(setting: ClockSettings?): String { in serialize()
335 fun deserialize(jsonStr: String?): ClockSettings? { in deserialize()
342 ClockSettings( in deserialize()
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/
DClockRegistry.kt38 import com.android.systemui.plugins.clocks.ClockSettings in <lambda>()
275 var settings: ClockSettings? = null
307 ClockSettings.deserialize(json) in querySettings()
316 open fun applySettings(value: ClockSettings?) { in applySettings()
322 val json = ClockSettings.serialize(value) in applySettings()
371 public suspend fun mutateSetting(mutator: (ClockSettings) -> ClockSettings) { in mutateSetting()
372 withContext(bgDispatcher) { applySettings(mutator(settings ?: ClockSettings())) } in mutateSetting()
612 var settings = this.settings ?: ClockSettings() in createClock()
DDefaultClockProvider.kt26 import com.android.systemui.plugins.clocks.ClockSettings
47 override fun createClock(settings: ClockSettings): ClockController { in getClocks()
DDefaultClockController.kt37 import com.android.systemui.plugins.clocks.ClockSettings
55 private val settings: ClockSettings?,