Package-level declarations

Types

Link copied to clipboard
abstract class AppDatabase : RoomDatabase

The Room database provider for the application. It provides access to the models and offloading services stored in the local database.

Link copied to clipboard
data class Classification(val label: String, val confidence: Double)
Link copied to clipboard
class ImageAnalyzer(classifier: MobilenetClassifier, frameSkipRate: Int = 30, shouldAnalyze: (ImageProxy, Int) -> Boolean = { _, frameCount -> frameCount % frameSkipRate == 0 }) : ImageAnalysis.Analyzer
Link copied to clipboard
data class Model(val uid: Int = 0, val name: String)

The entity class for the models table.

Link copied to clipboard
interface ModelDao

A Data Access Object (DAO) interface for the Model class.

Link copied to clipboard
interface ModelRepository

The repository interface for accessing the model data.

Link copied to clipboard
@Singleton
class ModelRepositoryImpl @Inject constructor(modelDao: ModelDao) : ModelRepository

The class that implements the ModelRepository interface.

Link copied to clipboard
data class OffloadingService(val serviceId: Int = 0, val modelId: Int, val port: Int, val state: Pipeline.State, val framerate: Int)

Represents an offloading service associated with a specific model.

Link copied to clipboard

A Data Access Object (DAO) interface for interacting with the OffloadingService table.

Link copied to clipboard

The repository interface for accessing the OffloadingService data.

Link copied to clipboard
@Singleton
class OffloadingServiceRepositoryImpl @Inject constructor(offloadingServiceDao: OffloadingServiceDao) : OffloadingServiceRepository

The class that implements the OffloadingServiceRepository interface.

Link copied to clipboard

Preferences Data Store interface. This is used to store and retrieve data from the preferences file.

Link copied to clipboard
class PreferencesDataStoreImpl @Inject constructor(dataStore: DataStore<Preferences>) : PreferencesDataStore

Implementation of PreferencesDataStore using DataStore<Preferences>. This class is responsible for implementing the abstract methods defined in PreferencesDataStore.

Link copied to clipboard

A class that provides type conversion for maps of strings to strings and maps of string lists to strings in Room database. This is used to store and retrieve such maps as strings in the database.

Functions

Link copied to clipboard
inline fun <T> Gson.fromJson(json: String): T

An extension function that converts a JSON string to an object of type T.