-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: AmbientLightCollector Initialization Error
- Loading branch information
Showing
57 changed files
with
1,726 additions
and
1,458 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions
9
field-smartphone/src/main/java/kaist/iclab/field_tracker/DeviceInfo.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 4 additions & 21 deletions
25
field-smartphone/src/main/java/kaist/iclab/field_tracker/ui/AbstractMainViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,9 @@ | ||
package kaist.iclab.field_tracker.ui | ||
|
||
import androidx.lifecycle.ViewModel | ||
import kaist.iclab.tracker.collectors.AbstractCollector | ||
import kotlinx.coroutines.flow.MutableStateFlow | ||
import kaist.iclab.tracker.controller.CollectorConfig | ||
import kaist.iclab.tracker.controller.CollectorInterface | ||
import kaist.iclab.tracker.controller.CollectorState | ||
import kotlinx.coroutines.flow.StateFlow | ||
import kotlinx.coroutines.flow.asStateFlow | ||
|
||
abstract class AbstractMainViewModel: ViewModel() { | ||
abstract val _isRunningState: MutableStateFlow<Boolean> | ||
val isRunningState: StateFlow<Boolean> | ||
get() = _isRunningState.asStateFlow() | ||
|
||
abstract val collectorMap: Map<String, AbstractCollector> | ||
abstract val _enabledCollectors: MutableStateFlow<Map<String, Boolean>> | ||
val enabledCollectors: StateFlow<Map<String, Boolean>> | ||
get() = _enabledCollectors.asStateFlow() | ||
|
||
abstract fun start() | ||
abstract fun stop() | ||
abstract fun enable(name: String) | ||
abstract fun disable(name: String) | ||
|
||
abstract fun sync() | ||
abstract fun delete() | ||
} | ||
abstract class AbstractMainViewModel: ViewModel(), MainViewModelInterface |
Oops, something went wrong.