diff --git a/examples/llama.android/app/build.gradle.kts b/examples/llama.android/app/build.gradle.kts index ec88cc93d6..03ec6e0b35 100644 --- a/examples/llama.android/app/build.gradle.kts +++ b/examples/llama.android/app/build.gradle.kts @@ -8,11 +8,11 @@ plugins { } android { - namespace = "com.example.llama" + namespace = "com.arm.aiplayground" compileSdk = 36 defaultConfig { - applicationId = "com.example.llama" + applicationId = "com.arm.aiplayground" minSdk = 33 targetSdk = 36 diff --git a/examples/llama.android/app/src/main/java/com/example/llama/KleidiLlamaApplication.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/KleidiLlamaApplication.kt similarity index 86% rename from examples/llama.android/app/src/main/java/com/example/llama/KleidiLlamaApplication.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/KleidiLlamaApplication.kt index 21c00f233f..4479d17772 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/KleidiLlamaApplication.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/KleidiLlamaApplication.kt @@ -1,4 +1,4 @@ -package com.example.llama +package com.arm.aiplayground import android.app.Application import dagger.hilt.android.HiltAndroidApp diff --git a/examples/llama.android/app/src/main/java/com/example/llama/MainActivity.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/MainActivity.kt similarity index 95% rename from examples/llama.android/app/src/main/java/com/example/llama/MainActivity.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/MainActivity.kt index 4c708ead01..0789eb4e84 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/MainActivity.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/MainActivity.kt @@ -1,4 +1,4 @@ -package com.example.llama +package com.arm.aiplayground import android.app.Activity import android.content.ActivityNotFoundException @@ -32,31 +32,31 @@ import androidx.navigation.compose.rememberNavController import androidx.navigation.navArgument import com.arm.aichat.InferenceEngine.State import com.arm.aichat.isUninterruptible -import com.example.llama.engine.ModelLoadingMetrics -import com.example.llama.navigation.AppDestinations -import com.example.llama.navigation.NavigationActions -import com.example.llama.ui.scaffold.AnimatedNavHost -import com.example.llama.ui.scaffold.AppNavigationDrawer -import com.example.llama.ui.scaffold.AppScaffold -import com.example.llama.ui.scaffold.ScaffoldConfig -import com.example.llama.ui.scaffold.ScaffoldEvent -import com.example.llama.ui.scaffold.bottombar.BottomBarConfig -import com.example.llama.ui.scaffold.topbar.NavigationIcon -import com.example.llama.ui.scaffold.topbar.TopBarConfig -import com.example.llama.ui.screens.BenchmarkScreen -import com.example.llama.ui.screens.ConversationScreen -import com.example.llama.ui.screens.ModelLoadingScreen -import com.example.llama.ui.screens.ModelsScreen -import com.example.llama.ui.screens.SettingsGeneralScreen -import com.example.llama.ui.theme.LlamaTheme -import com.example.llama.viewmodel.BenchmarkViewModel -import com.example.llama.viewmodel.ConversationViewModel -import com.example.llama.viewmodel.MainViewModel -import com.example.llama.viewmodel.ModelLoadingViewModel -import com.example.llama.viewmodel.ModelScreenUiMode -import com.example.llama.viewmodel.ModelsManagementViewModel -import com.example.llama.viewmodel.ModelsViewModel -import com.example.llama.viewmodel.SettingsViewModel +import com.arm.aiplayground.engine.ModelLoadingMetrics +import com.arm.aiplayground.navigation.AppDestinations +import com.arm.aiplayground.navigation.NavigationActions +import com.arm.aiplayground.ui.scaffold.AnimatedNavHost +import com.arm.aiplayground.ui.scaffold.AppNavigationDrawer +import com.arm.aiplayground.ui.scaffold.AppScaffold +import com.arm.aiplayground.ui.scaffold.ScaffoldConfig +import com.arm.aiplayground.ui.scaffold.ScaffoldEvent +import com.arm.aiplayground.ui.scaffold.bottombar.BottomBarConfig +import com.arm.aiplayground.ui.scaffold.topbar.NavigationIcon +import com.arm.aiplayground.ui.scaffold.topbar.TopBarConfig +import com.arm.aiplayground.ui.screens.BenchmarkScreen +import com.arm.aiplayground.ui.screens.ConversationScreen +import com.arm.aiplayground.ui.screens.ModelLoadingScreen +import com.arm.aiplayground.ui.screens.ModelsScreen +import com.arm.aiplayground.ui.screens.SettingsGeneralScreen +import com.arm.aiplayground.ui.theme.LlamaTheme +import com.arm.aiplayground.viewmodel.BenchmarkViewModel +import com.arm.aiplayground.viewmodel.ConversationViewModel +import com.arm.aiplayground.viewmodel.MainViewModel +import com.arm.aiplayground.viewmodel.ModelLoadingViewModel +import com.arm.aiplayground.viewmodel.ModelScreenUiMode +import com.arm.aiplayground.viewmodel.ModelsManagementViewModel +import com.arm.aiplayground.viewmodel.ModelsViewModel +import com.arm.aiplayground.viewmodel.SettingsViewModel import dagger.hilt.android.AndroidEntryPoint import kotlinx.coroutines.launch diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/db/AppDatabase.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/AppDatabase.kt similarity index 80% rename from examples/llama.android/app/src/main/java/com/example/llama/data/db/AppDatabase.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/AppDatabase.kt index bce0c6ad78..5c5f0bedbb 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/db/AppDatabase.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/AppDatabase.kt @@ -1,13 +1,13 @@ -package com.example.llama.data.db +package com.arm.aiplayground.data.db import android.content.Context import androidx.room.Database import androidx.room.Room import androidx.room.RoomDatabase -import com.example.llama.data.db.dao.ModelDao -import com.example.llama.data.db.dao.SystemPromptDao -import com.example.llama.data.db.entity.ModelEntity -import com.example.llama.data.db.entity.SystemPromptEntity +import com.arm.aiplayground.data.db.dao.ModelDao +import com.arm.aiplayground.data.db.dao.SystemPromptDao +import com.arm.aiplayground.data.db.entity.ModelEntity +import com.arm.aiplayground.data.db.entity.SystemPromptEntity import javax.inject.Singleton /** diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/db/converter/GgufMetadataConverters.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/converter/GgufMetadataConverters.kt similarity index 82% rename from examples/llama.android/app/src/main/java/com/example/llama/data/db/converter/GgufMetadataConverters.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/converter/GgufMetadataConverters.kt index 6ed15a1373..a3f9c71eaa 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/db/converter/GgufMetadataConverters.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/converter/GgufMetadataConverters.kt @@ -1,7 +1,7 @@ -package com.example.llama.data.db.converter +package com.arm.aiplayground.data.db.converter import androidx.room.TypeConverter -import com.example.llama.data.model.GgufMetadata +import com.arm.aiplayground.data.model.GgufMetadata import kotlinx.serialization.json.Json class GgufMetadataConverters { diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/db/dao/ModelDao.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/dao/ModelDao.kt similarity index 90% rename from examples/llama.android/app/src/main/java/com/example/llama/data/db/dao/ModelDao.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/dao/ModelDao.kt index 89150d1153..6d277cfcbb 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/db/dao/ModelDao.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/dao/ModelDao.kt @@ -1,11 +1,11 @@ -package com.example.llama.data.db.dao +package com.arm.aiplayground.data.db.dao import androidx.room.Dao import androidx.room.Delete import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query -import com.example.llama.data.db.entity.ModelEntity +import com.arm.aiplayground.data.db.entity.ModelEntity import kotlinx.coroutines.flow.Flow @Dao diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/db/dao/SystemPromptDao.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/dao/SystemPromptDao.kt similarity index 93% rename from examples/llama.android/app/src/main/java/com/example/llama/data/db/dao/SystemPromptDao.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/dao/SystemPromptDao.kt index 7c45e69fb4..3a121350bc 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/db/dao/SystemPromptDao.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/dao/SystemPromptDao.kt @@ -1,11 +1,11 @@ -package com.example.llama.data.db.dao +package com.arm.aiplayground.data.db.dao import androidx.room.Dao import androidx.room.Delete import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query -import com.example.llama.data.db.entity.SystemPromptEntity +import com.arm.aiplayground.data.db.entity.SystemPromptEntity import kotlinx.coroutines.flow.Flow /** diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/db/entity/ModelEntity.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/entity/ModelEntity.kt similarity index 75% rename from examples/llama.android/app/src/main/java/com/example/llama/data/db/entity/ModelEntity.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/entity/ModelEntity.kt index 340e95eeee..b9500d2a9f 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/db/entity/ModelEntity.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/entity/ModelEntity.kt @@ -1,11 +1,11 @@ -package com.example.llama.data.db.entity +package com.arm.aiplayground.data.db.entity import androidx.room.Entity import androidx.room.PrimaryKey import androidx.room.TypeConverters -import com.example.llama.data.db.converter.GgufMetadataConverters -import com.example.llama.data.model.ModelInfo -import com.example.llama.data.model.GgufMetadata +import com.arm.aiplayground.data.db.converter.GgufMetadataConverters +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.data.model.GgufMetadata @Entity(tableName = "models") diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/db/entity/SystemPromptEntity.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/entity/SystemPromptEntity.kt similarity index 94% rename from examples/llama.android/app/src/main/java/com/example/llama/data/db/entity/SystemPromptEntity.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/entity/SystemPromptEntity.kt index 253ad081ca..cc1c5343b6 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/db/entity/SystemPromptEntity.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/db/entity/SystemPromptEntity.kt @@ -1,8 +1,8 @@ -package com.example.llama.data.db.entity +package com.arm.aiplayground.data.db.entity import androidx.room.Entity import androidx.room.PrimaryKey -import com.example.llama.data.model.SystemPrompt +import com.arm.aiplayground.data.model.SystemPrompt /** * Database entity for storing system prompts. diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/model/GgufMetadata.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/model/GgufMetadata.kt similarity index 99% rename from examples/llama.android/app/src/main/java/com/example/llama/data/model/GgufMetadata.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/model/GgufMetadata.kt index ce89dc37f0..6091863108 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/model/GgufMetadata.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/model/GgufMetadata.kt @@ -1,4 +1,4 @@ -package com.example.llama.data.model +package com.arm.aiplayground.data.model import kotlinx.serialization.Serializable import com.arm.aichat.gguf.GgufMetadata as Domain diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/model/ModelInfo.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/model/ModelInfo.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/data/model/ModelInfo.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/model/ModelInfo.kt index 7e546ea326..336769e760 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/model/ModelInfo.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/model/ModelInfo.kt @@ -1,8 +1,8 @@ -package com.example.llama.data.model +package com.arm.aiplayground.data.model import com.arm.aichat.gguf.FileType -import com.example.llama.util.formatContextLength -import com.example.llama.util.formatFileByteSize +import com.arm.aiplayground.util.formatContextLength +import com.arm.aiplayground.util.formatFileByteSize /** diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/model/SystemPrompt.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/model/SystemPrompt.kt similarity index 99% rename from examples/llama.android/app/src/main/java/com/example/llama/data/model/SystemPrompt.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/model/SystemPrompt.kt index f6ae365bbb..fedfd10636 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/model/SystemPrompt.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/model/SystemPrompt.kt @@ -1,4 +1,4 @@ -package com.example.llama.data.model +package com.arm.aiplayground.data.model import java.text.SimpleDateFormat import java.util.Date diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/repo/ModelRepository.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/repo/ModelRepository.kt similarity index 93% rename from examples/llama.android/app/src/main/java/com/example/llama/data/repo/ModelRepository.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/repo/ModelRepository.kt index 71fa48a94c..a42bcff57b 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/repo/ModelRepository.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/repo/ModelRepository.kt @@ -1,4 +1,4 @@ -package com.example.llama.data.repo +package com.arm.aiplayground.data.repo import android.content.Context import android.net.Uri @@ -6,19 +6,19 @@ import android.os.StatFs import android.util.Log import com.arm.aichat.gguf.GgufMetadataReader import com.arm.aichat.gguf.InvalidFileFormatException -import com.example.llama.data.db.dao.ModelDao -import com.example.llama.data.db.entity.ModelEntity -import com.example.llama.data.model.GgufMetadata -import com.example.llama.data.model.ModelInfo -import com.example.llama.data.repo.ModelRepository.ImportProgressTracker -import com.example.llama.data.source.local.LocalFileDataSource -import com.example.llama.data.source.remote.HuggingFaceDownloadInfo -import com.example.llama.data.source.remote.HuggingFaceModel -import com.example.llama.data.source.remote.HuggingFaceModelDetails -import com.example.llama.data.source.remote.HuggingFaceRemoteDataSource -import com.example.llama.monitoring.MemoryMetrics -import com.example.llama.monitoring.StorageMetrics -import com.example.llama.util.formatFileByteSize +import com.arm.aiplayground.data.db.dao.ModelDao +import com.arm.aiplayground.data.db.entity.ModelEntity +import com.arm.aiplayground.data.model.GgufMetadata +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.data.repo.ModelRepository.ImportProgressTracker +import com.arm.aiplayground.data.source.local.LocalFileDataSource +import com.arm.aiplayground.data.source.remote.HuggingFaceDownloadInfo +import com.arm.aiplayground.data.source.remote.HuggingFaceModel +import com.arm.aiplayground.data.source.remote.HuggingFaceModelDetails +import com.arm.aiplayground.data.source.remote.HuggingFaceRemoteDataSource +import com.arm.aiplayground.monitoring.MemoryMetrics +import com.arm.aiplayground.monitoring.StorageMetrics +import com.arm.aiplayground.util.formatFileByteSize import dagger.hilt.android.qualifiers.ApplicationContext import kotlinx.coroutines.CancellationException import kotlinx.coroutines.Dispatchers diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/repo/SystemPromptRepository.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/repo/SystemPromptRepository.kt similarity index 94% rename from examples/llama.android/app/src/main/java/com/example/llama/data/repo/SystemPromptRepository.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/repo/SystemPromptRepository.kt index 925f55ec1f..b5ef6eebcd 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/repo/SystemPromptRepository.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/repo/SystemPromptRepository.kt @@ -1,8 +1,8 @@ -package com.example.llama.data.repo +package com.arm.aiplayground.data.repo -import com.example.llama.data.db.dao.SystemPromptDao -import com.example.llama.data.db.entity.SystemPromptEntity -import com.example.llama.data.model.SystemPrompt +import com.arm.aiplayground.data.db.dao.SystemPromptDao +import com.arm.aiplayground.data.db.entity.SystemPromptEntity +import com.arm.aiplayground.data.model.SystemPrompt import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.flowOf diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/source/local/LocalFileDataSource.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/local/LocalFileDataSource.kt similarity index 92% rename from examples/llama.android/app/src/main/java/com/example/llama/data/source/local/LocalFileDataSource.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/local/LocalFileDataSource.kt index 041f100dc0..8ef9a9d39e 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/source/local/LocalFileDataSource.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/local/LocalFileDataSource.kt @@ -1,13 +1,13 @@ -package com.example.llama.data.source.local +package com.arm.aiplayground.data.source.local import android.content.Context import android.net.Uri import android.util.Log -import com.example.llama.data.source.local.LocalFileDataSource.FileInfo -import com.example.llama.util.copyWithBuffer -import com.example.llama.util.copyWithChannels -import com.example.llama.util.getFileNameFromUri -import com.example.llama.util.getFileSizeFromUri +import com.arm.aiplayground.data.source.local.LocalFileDataSource.FileInfo +import com.arm.aiplayground.util.copyWithBuffer +import com.arm.aiplayground.util.copyWithChannels +import com.arm.aiplayground.util.getFileNameFromUri +import com.arm.aiplayground.util.getFileSizeFromUri import dagger.hilt.android.qualifiers.ApplicationContext import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/source/prefs/AppPreferences.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/prefs/AppPreferences.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/data/source/prefs/AppPreferences.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/prefs/AppPreferences.kt index b40c941fee..590f139ba3 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/source/prefs/AppPreferences.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/prefs/AppPreferences.kt @@ -1,4 +1,4 @@ -package com.example.llama.data.source.prefs +package com.arm.aiplayground.data.source.prefs import android.content.Context import androidx.datastore.core.DataStore diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/source/prefs/UserPreferences.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/prefs/UserPreferences.kt similarity index 99% rename from examples/llama.android/app/src/main/java/com/example/llama/data/source/prefs/UserPreferences.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/prefs/UserPreferences.kt index 40dec5f13c..e338c5b5ab 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/source/prefs/UserPreferences.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/prefs/UserPreferences.kt @@ -1,4 +1,4 @@ -package com.example.llama.data.source.prefs +package com.arm.aiplayground.data.source.prefs import android.content.Context import androidx.datastore.core.DataStore diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/GatedTypeAdapter.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/GatedTypeAdapter.kt similarity index 93% rename from examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/GatedTypeAdapter.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/GatedTypeAdapter.kt index a1366235c0..ad0d7fb0df 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/GatedTypeAdapter.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/GatedTypeAdapter.kt @@ -1,4 +1,4 @@ -package com.example.llama.data.source.remote +package com.arm.aiplayground.data.source.remote import com.google.gson.JsonDeserializationContext import com.google.gson.JsonDeserializer diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceApiService.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceApiService.kt similarity index 96% rename from examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceApiService.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceApiService.kt index 9853733609..a8ff426902 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceApiService.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceApiService.kt @@ -1,4 +1,4 @@ -package com.example.llama.data.source.remote +package com.arm.aiplayground.data.source.remote import okhttp3.ResponseBody import retrofit2.Response diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceModel.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceModel.kt similarity index 93% rename from examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceModel.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceModel.kt index 9dffb7da13..d05c97dd3c 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceModel.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceModel.kt @@ -1,8 +1,8 @@ -package com.example.llama.data.source.remote +package com.arm.aiplayground.data.source.remote import android.net.Uri import androidx.core.net.toUri -import com.example.llama.di.HUGGINGFACE_HOST +import com.arm.aiplayground.di.HUGGINGFACE_HOST import java.util.Date internal const val FILE_EXTENSION_GGUF = ".GGUF" diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceModelDetails.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceModelDetails.kt similarity index 97% rename from examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceModelDetails.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceModelDetails.kt index c30780cf89..b6d8f010c2 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceModelDetails.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceModelDetails.kt @@ -1,4 +1,4 @@ -package com.example.llama.data.source.remote +package com.arm.aiplayground.data.source.remote import java.util.Date import kotlin.String diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceRemoteDataSource.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceRemoteDataSource.kt similarity index 93% rename from examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceRemoteDataSource.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceRemoteDataSource.kt index 647a788682..4bc648896d 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceRemoteDataSource.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceRemoteDataSource.kt @@ -1,7 +1,7 @@ -package com.example.llama.data.source.remote +package com.arm.aiplayground.data.source.remote import android.content.Context -import com.example.llama.monitoring.MemoryMetrics +import com.arm.aiplayground.monitoring.MemoryMetrics /* diff --git a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceRemoteDataSourceImpl.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceRemoteDataSourceImpl.kt similarity index 99% rename from examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceRemoteDataSourceImpl.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceRemoteDataSourceImpl.kt index 0b0bfe7e50..60f22e9ff9 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/data/source/remote/HuggingFaceRemoteDataSourceImpl.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/data/source/remote/HuggingFaceRemoteDataSourceImpl.kt @@ -1,10 +1,10 @@ -package com.example.llama.data.source.remote +package com.arm.aiplayground.data.source.remote import android.app.DownloadManager import android.content.Context import android.os.Environment import android.util.Log -import com.example.llama.monitoring.MemoryMetrics +import com.arm.aiplayground.monitoring.MemoryMetrics import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.async import kotlinx.coroutines.awaitAll diff --git a/examples/llama.android/app/src/main/java/com/example/llama/di/AppModule.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/di/AppModule.kt similarity index 75% rename from examples/llama.android/app/src/main/java/com/example/llama/di/AppModule.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/di/AppModule.kt index ba30a779ce..f1d6551b33 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/di/AppModule.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/di/AppModule.kt @@ -1,29 +1,29 @@ -package com.example.llama.di +package com.arm.aiplayground.di import android.content.Context import com.arm.aichat.AiChat import com.arm.aichat.InferenceEngine import com.arm.aichat.TierDetection import com.arm.aichat.gguf.GgufMetadataReader -import com.example.llama.data.db.AppDatabase -import com.example.llama.data.repo.ModelRepository -import com.example.llama.data.repo.ModelRepositoryImpl -import com.example.llama.data.repo.SystemPromptRepository -import com.example.llama.data.repo.SystemPromptRepositoryImpl -import com.example.llama.data.source.local.LocalFileDataSource -import com.example.llama.data.source.local.LocalFileDataSourceImpl -import com.example.llama.data.source.remote.GatedTypeAdapter -import com.example.llama.data.source.remote.HuggingFaceApiService -import com.example.llama.data.source.remote.HuggingFaceRemoteDataSource -import com.example.llama.data.source.remote.HuggingFaceRemoteDataSourceImpl -import com.example.llama.engine.BenchmarkService -import com.example.llama.engine.ConversationService -import com.example.llama.engine.InferenceService -import com.example.llama.engine.InferenceServiceImpl -import com.example.llama.engine.ModelLoadingService -import com.example.llama.engine.StubInferenceEngine -import com.example.llama.engine.StubTierDetection -import com.example.llama.monitoring.PerformanceMonitor +import com.arm.aiplayground.data.db.AppDatabase +import com.arm.aiplayground.data.repo.ModelRepository +import com.arm.aiplayground.data.repo.ModelRepositoryImpl +import com.arm.aiplayground.data.repo.SystemPromptRepository +import com.arm.aiplayground.data.repo.SystemPromptRepositoryImpl +import com.arm.aiplayground.data.source.local.LocalFileDataSource +import com.arm.aiplayground.data.source.local.LocalFileDataSourceImpl +import com.arm.aiplayground.data.source.remote.GatedTypeAdapter +import com.arm.aiplayground.data.source.remote.HuggingFaceApiService +import com.arm.aiplayground.data.source.remote.HuggingFaceRemoteDataSource +import com.arm.aiplayground.data.source.remote.HuggingFaceRemoteDataSourceImpl +import com.arm.aiplayground.engine.BenchmarkService +import com.arm.aiplayground.engine.ConversationService +import com.arm.aiplayground.engine.InferenceService +import com.arm.aiplayground.engine.InferenceServiceImpl +import com.arm.aiplayground.engine.ModelLoadingService +import com.arm.aiplayground.engine.StubInferenceEngine +import com.arm.aiplayground.engine.StubTierDetection +import com.arm.aiplayground.monitoring.PerformanceMonitor import com.google.gson.Gson import com.google.gson.GsonBuilder import dagger.Binds diff --git a/examples/llama.android/app/src/main/java/com/example/llama/engine/InferenceServices.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/engine/InferenceServices.kt similarity index 99% rename from examples/llama.android/app/src/main/java/com/example/llama/engine/InferenceServices.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/engine/InferenceServices.kt index 2e287c13bf..0436a5c454 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/engine/InferenceServices.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/engine/InferenceServices.kt @@ -1,9 +1,9 @@ -package com.example.llama.engine +package com.arm.aiplayground.engine import android.util.Log import com.arm.aichat.InferenceEngine import com.arm.aichat.InferenceEngine.State -import com.example.llama.data.model.ModelInfo +import com.arm.aiplayground.data.model.ModelInfo import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow diff --git a/examples/llama.android/app/src/main/java/com/example/llama/engine/StubInferenceEngine.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/engine/StubInferenceEngine.kt similarity index 99% rename from examples/llama.android/app/src/main/java/com/example/llama/engine/StubInferenceEngine.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/engine/StubInferenceEngine.kt index 8a5615dc0e..6d163015f5 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/engine/StubInferenceEngine.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/engine/StubInferenceEngine.kt @@ -1,9 +1,9 @@ -package com.example.llama.engine +package com.arm.aiplayground.engine import android.util.Log import com.arm.aichat.InferenceEngine import com.arm.aichat.InferenceEngine.State -import com.example.llama.APP_NAME +import com.arm.aiplayground.APP_NAME import kotlinx.coroutines.CancellationException import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers diff --git a/examples/llama.android/app/src/main/java/com/example/llama/engine/StubTierDetection.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/engine/StubTierDetection.kt similarity index 91% rename from examples/llama.android/app/src/main/java/com/example/llama/engine/StubTierDetection.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/engine/StubTierDetection.kt index 27fcc19e49..ca646f41c6 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/engine/StubTierDetection.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/engine/StubTierDetection.kt @@ -1,4 +1,4 @@ -package com.example.llama.engine +package com.arm.aiplayground.engine import com.arm.aichat.LLamaTier import com.arm.aichat.TierDetection diff --git a/examples/llama.android/app/src/main/java/com/example/llama/monitoring/PerformanceMonitor.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/monitoring/PerformanceMonitor.kt similarity index 99% rename from examples/llama.android/app/src/main/java/com/example/llama/monitoring/PerformanceMonitor.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/monitoring/PerformanceMonitor.kt index 8ef2e7f265..3faab9b55a 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/monitoring/PerformanceMonitor.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/monitoring/PerformanceMonitor.kt @@ -1,4 +1,4 @@ -package com.example.llama.monitoring +package com.arm.aiplayground.monitoring import android.app.ActivityManager import android.content.Context diff --git a/examples/llama.android/app/src/main/java/com/example/llama/monitoring/SystemMetrics.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/monitoring/SystemMetrics.kt similarity index 96% rename from examples/llama.android/app/src/main/java/com/example/llama/monitoring/SystemMetrics.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/monitoring/SystemMetrics.kt index 114c708f2a..affaae53de 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/monitoring/SystemMetrics.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/monitoring/SystemMetrics.kt @@ -1,4 +1,4 @@ -package com.example.llama.monitoring +package com.arm.aiplayground.monitoring /** * Data class containing battery information. diff --git a/examples/llama.android/app/src/main/java/com/example/llama/navigation/AppDestinations.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/navigation/AppDestinations.kt similarity index 95% rename from examples/llama.android/app/src/main/java/com/example/llama/navigation/AppDestinations.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/navigation/AppDestinations.kt index 78d5a4dde8..5a2220dc98 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/navigation/AppDestinations.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/navigation/AppDestinations.kt @@ -1,7 +1,7 @@ -package com.example.llama.navigation +package com.arm.aiplayground.navigation import androidx.navigation.NavController -import com.example.llama.engine.ModelLoadingMetrics +import com.arm.aiplayground.engine.ModelLoadingMetrics /** * Navigation destinations for the app diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/components/ArmFeaturesVisualizer.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/ArmFeaturesVisualizer.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/components/ArmFeaturesVisualizer.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/ArmFeaturesVisualizer.kt index 641447be7f..ed3ae6215e 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/components/ArmFeaturesVisualizer.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/ArmFeaturesVisualizer.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.components +package com.arm.aiplayground.ui.components import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.text.TextAutoSize diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/components/InfoView.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/InfoView.kt similarity index 99% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/components/InfoView.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/InfoView.kt index 1558bfb9b9..886268b45c 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/components/InfoView.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/InfoView.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.components +package com.arm.aiplayground.ui.components import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/components/ModelCards.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/ModelCards.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/components/ModelCards.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/ModelCards.kt index 9f5289feb2..f27ff43a3d 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/components/ModelCards.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/ModelCards.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.components +package com.arm.aiplayground.ui.components import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.expandVertically @@ -40,8 +40,8 @@ import androidx.compose.ui.text.font.FontStyle import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp -import com.example.llama.data.model.ModelInfo -import com.example.llama.util.languageCodeToFlagEmoji +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.util.languageCodeToFlagEmoji import java.text.SimpleDateFormat import java.util.Date import java.util.Locale diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/components/ModelUnloadDialogHandler.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/ModelUnloadDialogHandler.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/components/ModelUnloadDialogHandler.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/ModelUnloadDialogHandler.kt index b203c442ed..c5e6fa3afd 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/components/ModelUnloadDialogHandler.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/components/ModelUnloadDialogHandler.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.components +package com.arm.aiplayground.ui.components import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column @@ -17,7 +17,7 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp -import com.example.llama.viewmodel.UnloadModelState +import com.arm.aiplayground.viewmodel.UnloadModelState /** * Reusable component for handling model unloading dialogs diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/AnimatedNavHost.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/AnimatedNavHost.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/AnimatedNavHost.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/AnimatedNavHost.kt index 209bf6047b..68a4126191 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/AnimatedNavHost.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/AnimatedNavHost.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold +package com.arm.aiplayground.ui.scaffold import androidx.compose.animation.AnimatedContentTransitionScope import androidx.compose.animation.core.LinearOutSlowInEasing diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/AppScaffold.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/AppScaffold.kt similarity index 87% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/AppScaffold.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/AppScaffold.kt index d2f067bca4..f6016e37d9 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/AppScaffold.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/AppScaffold.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold +package com.arm.aiplayground.ui.scaffold import androidx.compose.foundation.layout.PaddingValues import androidx.compose.material3.MaterialTheme @@ -8,19 +8,19 @@ import androidx.compose.material3.SnackbarHost import androidx.compose.material3.SnackbarHostState import androidx.compose.runtime.Composable import androidx.compose.runtime.remember -import com.example.llama.ui.scaffold.bottombar.BenchmarkBottomBar -import com.example.llama.ui.scaffold.bottombar.BottomBarConfig -import com.example.llama.ui.scaffold.bottombar.ConversationBottomBar -import com.example.llama.ui.scaffold.bottombar.ModelsBrowsingBottomBar -import com.example.llama.ui.scaffold.bottombar.ModelsDeletingBottomBar -import com.example.llama.ui.scaffold.bottombar.ModelsManagementBottomBar -import com.example.llama.ui.scaffold.bottombar.ModelsSearchingBottomBar -import com.example.llama.ui.scaffold.topbar.DefaultTopBar -import com.example.llama.ui.scaffold.topbar.ModelsBrowsingTopBar -import com.example.llama.ui.scaffold.topbar.NavigationIcon -import com.example.llama.ui.scaffold.topbar.PerformanceTopBar -import com.example.llama.ui.scaffold.topbar.ModelsManagementTopBar -import com.example.llama.ui.scaffold.topbar.TopBarConfig +import com.arm.aiplayground.ui.scaffold.bottombar.BenchmarkBottomBar +import com.arm.aiplayground.ui.scaffold.bottombar.BottomBarConfig +import com.arm.aiplayground.ui.scaffold.bottombar.ConversationBottomBar +import com.arm.aiplayground.ui.scaffold.bottombar.ModelsBrowsingBottomBar +import com.arm.aiplayground.ui.scaffold.bottombar.ModelsDeletingBottomBar +import com.arm.aiplayground.ui.scaffold.bottombar.ModelsManagementBottomBar +import com.arm.aiplayground.ui.scaffold.bottombar.ModelsSearchingBottomBar +import com.arm.aiplayground.ui.scaffold.topbar.DefaultTopBar +import com.arm.aiplayground.ui.scaffold.topbar.ModelsBrowsingTopBar +import com.arm.aiplayground.ui.scaffold.topbar.NavigationIcon +import com.arm.aiplayground.ui.scaffold.topbar.PerformanceTopBar +import com.arm.aiplayground.ui.scaffold.topbar.ModelsManagementTopBar +import com.arm.aiplayground.ui.scaffold.topbar.TopBarConfig /** * Configuration of both [TopBarConfig] and [BottomBarConfig] diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/NavigationDrawer.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/NavigationDrawer.kt similarity index 96% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/NavigationDrawer.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/NavigationDrawer.kt index 2a7de1308a..d95a5d61f8 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/NavigationDrawer.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/NavigationDrawer.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold +package com.arm.aiplayground.ui.scaffold import androidx.activity.compose.BackHandler import androidx.compose.foundation.clickable @@ -12,7 +12,6 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.filled.Folder import androidx.compose.material.icons.filled.Home import androidx.compose.material.icons.filled.Settings import androidx.compose.material3.HorizontalDivider @@ -32,10 +31,10 @@ import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.platform.LocalConfiguration import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp -import com.example.llama.APP_NAME -import com.example.llama.BuildConfig -import com.example.llama.navigation.AppDestinations -import com.example.llama.navigation.NavigationActions +import com.arm.aiplayground.APP_NAME +import com.arm.aiplayground.BuildConfig +import com.arm.aiplayground.navigation.AppDestinations +import com.arm.aiplayground.navigation.NavigationActions import kotlinx.coroutines.launch /** diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/BenchmarkBottomBar.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/BenchmarkBottomBar.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/BenchmarkBottomBar.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/BenchmarkBottomBar.kt index f7c0e5e0b8..ab03accd42 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/BenchmarkBottomBar.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/BenchmarkBottomBar.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold.bottombar +package com.arm.aiplayground.ui.scaffold.bottombar import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.fadeIn diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/BottomBarConfig.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/BottomBarConfig.kt similarity index 93% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/BottomBarConfig.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/BottomBarConfig.kt index 535dfacf46..cd090a021c 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/BottomBarConfig.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/BottomBarConfig.kt @@ -1,10 +1,10 @@ -package com.example.llama.ui.scaffold.bottombar +package com.arm.aiplayground.ui.scaffold.bottombar import androidx.compose.foundation.text.input.TextFieldState -import com.example.llama.data.model.ModelFilter -import com.example.llama.data.model.ModelInfo -import com.example.llama.data.model.ModelSortOrder -import com.example.llama.viewmodel.PreselectedModelToRun +import com.arm.aiplayground.data.model.ModelFilter +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.data.model.ModelSortOrder +import com.arm.aiplayground.viewmodel.PreselectedModelToRun /** * [BottomAppBar] configurations diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ConversationBottomBar.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ConversationBottomBar.kt similarity index 99% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ConversationBottomBar.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ConversationBottomBar.kt index c3d5d7439b..9beb8816c0 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ConversationBottomBar.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ConversationBottomBar.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold.bottombar +package com.arm.aiplayground.ui.scaffold.bottombar import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsBrowsingBottomBar.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsBrowsingBottomBar.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsBrowsingBottomBar.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsBrowsingBottomBar.kt index d55c1a45a2..b750908c36 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsBrowsingBottomBar.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsBrowsingBottomBar.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold.bottombar +package com.arm.aiplayground.ui.scaffold.bottombar import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.fadeIn @@ -35,7 +35,7 @@ import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp -import com.example.llama.data.model.ModelSortOrder +import com.arm.aiplayground.data.model.ModelSortOrder @OptIn(ExperimentalMaterial3Api::class) @Composable diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsDeletingBottomBar.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsDeletingBottomBar.kt similarity index 97% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsDeletingBottomBar.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsDeletingBottomBar.kt index f70414f4f0..e256e831d2 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsDeletingBottomBar.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsDeletingBottomBar.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold.bottombar +package com.arm.aiplayground.ui.scaffold.bottombar import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.fadeIn diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsManagementBottomBar.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsManagementBottomBar.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsManagementBottomBar.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsManagementBottomBar.kt index f00793d343..9e348286c0 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsManagementBottomBar.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsManagementBottomBar.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold.bottombar +package com.arm.aiplayground.ui.scaffold.bottombar import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size @@ -34,8 +34,8 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.res.painterResource import androidx.compose.ui.unit.dp -import com.example.llama.R -import com.example.llama.data.model.ModelSortOrder +import com.arm.aiplayground.R +import com.arm.aiplayground.data.model.ModelSortOrder @OptIn(ExperimentalMaterial3Api::class) @Composable diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsSearchingBottomBar.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsSearchingBottomBar.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsSearchingBottomBar.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsSearchingBottomBar.kt index 149fd76984..8b1cf124b2 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/bottombar/ModelsSearchingBottomBar.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/bottombar/ModelsSearchingBottomBar.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold.bottombar +package com.arm.aiplayground.ui.scaffold.bottombar import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.fadeIn diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/DefaultTopBar.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/DefaultTopBar.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/DefaultTopBar.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/DefaultTopBar.kt index efe17cfa19..c573317e64 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/DefaultTopBar.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/DefaultTopBar.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold.topbar +package com.arm.aiplayground.ui.scaffold.topbar import androidx.compose.material.icons.Icons import androidx.compose.material.icons.automirrored.filled.ArrowBack diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/ModelsBrowsingTopBar.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/ModelsBrowsingTopBar.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/ModelsBrowsingTopBar.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/ModelsBrowsingTopBar.kt index df1931e7c0..c784464004 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/ModelsBrowsingTopBar.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/ModelsBrowsingTopBar.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold.topbar +package com.arm.aiplayground.ui.scaffold.topbar import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/ModelsManagementTopBar.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/ModelsManagementTopBar.kt similarity index 95% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/ModelsManagementTopBar.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/ModelsManagementTopBar.kt index 3db20d48bb..234af896ff 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/ModelsManagementTopBar.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/ModelsManagementTopBar.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold.topbar +package com.arm.aiplayground.ui.scaffold.topbar import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row @@ -18,8 +18,8 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp -import com.example.llama.monitoring.StorageMetrics -import com.example.llama.ui.scaffold.ScaffoldEvent +import com.arm.aiplayground.monitoring.StorageMetrics +import com.arm.aiplayground.ui.scaffold.ScaffoldEvent import java.util.Locale @OptIn(ExperimentalMaterial3Api::class) diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/PerformanceTopBar.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/PerformanceTopBar.kt similarity index 95% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/PerformanceTopBar.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/PerformanceTopBar.kt index 315d78e04a..89e867995e 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/PerformanceTopBar.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/PerformanceTopBar.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.scaffold.topbar +package com.arm.aiplayground.ui.scaffold.topbar import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row @@ -21,10 +21,10 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp -import com.example.llama.monitoring.MemoryMetrics -import com.example.llama.monitoring.TemperatureMetrics -import com.example.llama.monitoring.TemperatureWarningLevel -import com.example.llama.ui.scaffold.ScaffoldEvent +import com.arm.aiplayground.monitoring.MemoryMetrics +import com.arm.aiplayground.monitoring.TemperatureMetrics +import com.arm.aiplayground.monitoring.TemperatureWarningLevel +import com.arm.aiplayground.ui.scaffold.ScaffoldEvent import java.util.Locale @OptIn(ExperimentalMaterial3Api::class) diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/TopBarConfig.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/TopBarConfig.kt similarity index 88% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/TopBarConfig.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/TopBarConfig.kt index 1279efc49a..9586d6b196 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/TopBarConfig.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/scaffold/topbar/TopBarConfig.kt @@ -1,9 +1,8 @@ -package com.example.llama.ui.scaffold.topbar +package com.arm.aiplayground.ui.scaffold.topbar -import com.example.llama.monitoring.MemoryMetrics -import com.example.llama.monitoring.StorageMetrics -import com.example.llama.monitoring.TemperatureMetrics -import com.example.llama.viewmodel.ModelScreenUiMode +import com.arm.aiplayground.monitoring.MemoryMetrics +import com.arm.aiplayground.monitoring.StorageMetrics +import com.arm.aiplayground.monitoring.TemperatureMetrics /** * [TopAppBar] configurations diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/BenchmarkScreen.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/BenchmarkScreen.kt similarity index 93% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/screens/BenchmarkScreen.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/BenchmarkScreen.kt index bf1335e638..af55d28ac1 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/BenchmarkScreen.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/BenchmarkScreen.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.screens +package com.arm.aiplayground.ui.screens import android.content.Intent import android.widget.Toast @@ -50,19 +50,19 @@ import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp import androidx.core.net.toUri import com.arm.aichat.InferenceEngine.State -import com.example.llama.data.model.ModelInfo -import com.example.llama.engine.ModelLoadingMetrics -import com.example.llama.ui.components.ModelCardContentArchitectureRow -import com.example.llama.ui.components.ModelCardContentContextRow -import com.example.llama.ui.components.ModelCardContentField -import com.example.llama.ui.components.ModelCardCoreExpandable -import com.example.llama.ui.components.ModelUnloadDialogHandler -import com.example.llama.ui.scaffold.ScaffoldEvent -import com.example.llama.util.TableData -import com.example.llama.util.formatMilliSeconds -import com.example.llama.util.parseMarkdownTable -import com.example.llama.viewmodel.BenchmarkResult -import com.example.llama.viewmodel.BenchmarkViewModel +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.engine.ModelLoadingMetrics +import com.arm.aiplayground.ui.components.ModelCardContentArchitectureRow +import com.arm.aiplayground.ui.components.ModelCardContentContextRow +import com.arm.aiplayground.ui.components.ModelCardContentField +import com.arm.aiplayground.ui.components.ModelCardCoreExpandable +import com.arm.aiplayground.ui.components.ModelUnloadDialogHandler +import com.arm.aiplayground.ui.scaffold.ScaffoldEvent +import com.arm.aiplayground.util.TableData +import com.arm.aiplayground.util.formatMilliSeconds +import com.arm.aiplayground.util.parseMarkdownTable +import com.arm.aiplayground.viewmodel.BenchmarkResult +import com.arm.aiplayground.viewmodel.BenchmarkViewModel @Composable diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ConversationScreen.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ConversationScreen.kt similarity index 96% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ConversationScreen.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ConversationScreen.kt index e976194dd0..8483899cd3 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ConversationScreen.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ConversationScreen.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.screens +package com.arm.aiplayground.ui.screens import android.content.Intent import android.widget.Toast @@ -63,19 +63,19 @@ import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleEventObserver import androidx.lifecycle.compose.LocalLifecycleOwner import com.arm.aichat.InferenceEngine.State -import com.example.llama.data.model.ModelInfo -import com.example.llama.engine.ModelLoadingMetrics -import com.example.llama.engine.TokenMetrics -import com.example.llama.ui.components.ModelCardContentArchitectureRow -import com.example.llama.ui.components.ModelCardContentContextRow -import com.example.llama.ui.components.ModelCardContentField -import com.example.llama.ui.components.ModelCardCoreExpandable -import com.example.llama.ui.components.ModelUnloadDialogHandler -import com.example.llama.util.formatMilliSeconds -import com.example.llama.util.formatMilliSecondstructured -import com.example.llama.util.toEnglishName -import com.example.llama.viewmodel.ConversationViewModel -import com.example.llama.viewmodel.Message +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.engine.ModelLoadingMetrics +import com.arm.aiplayground.engine.TokenMetrics +import com.arm.aiplayground.ui.components.ModelCardContentArchitectureRow +import com.arm.aiplayground.ui.components.ModelCardContentContextRow +import com.arm.aiplayground.ui.components.ModelCardContentField +import com.arm.aiplayground.ui.components.ModelCardCoreExpandable +import com.arm.aiplayground.ui.components.ModelUnloadDialogHandler +import com.arm.aiplayground.util.formatMilliSeconds +import com.arm.aiplayground.util.formatMilliSecondstructured +import com.arm.aiplayground.util.toEnglishName +import com.arm.aiplayground.viewmodel.ConversationViewModel +import com.arm.aiplayground.viewmodel.Message import kotlinx.coroutines.FlowPreview import kotlinx.coroutines.flow.distinctUntilChanged import kotlinx.coroutines.flow.filter diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelDetailsScreen.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelDetailsScreen.kt similarity index 97% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelDetailsScreen.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelDetailsScreen.kt index 24a3d6370e..992447a0af 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelDetailsScreen.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelDetailsScreen.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.screens +package com.arm.aiplayground.ui.screens import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column @@ -22,10 +22,10 @@ import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import com.arm.aichat.gguf.FileType -import com.example.llama.data.model.ModelInfo -import com.example.llama.ui.components.ModelCardContentArchitectureRow -import com.example.llama.ui.components.ModelCardContentContextRow -import com.example.llama.ui.components.ModelCardContentTitleRow +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.ui.components.ModelCardContentArchitectureRow +import com.arm.aiplayground.ui.components.ModelCardContentContextRow +import com.arm.aiplayground.ui.components.ModelCardContentTitleRow import java.text.SimpleDateFormat import java.util.Date import java.util.Locale diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelLoadingScreen.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelLoadingScreen.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelLoadingScreen.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelLoadingScreen.kt index eab2eb9f5b..974590eea4 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelLoadingScreen.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelLoadingScreen.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.screens +package com.arm.aiplayground.ui.screens import android.content.Intent import android.widget.Toast @@ -60,11 +60,11 @@ import androidx.compose.ui.unit.dp import androidx.core.net.toUri import com.arm.aichat.InferenceEngine.State import com.arm.aichat.UnsupportedArchitectureException -import com.example.llama.data.model.SystemPrompt -import com.example.llama.engine.ModelLoadingMetrics -import com.example.llama.ui.components.ModelCardCoreExpandable -import com.example.llama.ui.scaffold.ScaffoldEvent -import com.example.llama.viewmodel.ModelLoadingViewModel +import com.arm.aiplayground.data.model.SystemPrompt +import com.arm.aiplayground.engine.ModelLoadingMetrics +import com.arm.aiplayground.ui.components.ModelCardCoreExpandable +import com.arm.aiplayground.ui.scaffold.ScaffoldEvent +import com.arm.aiplayground.viewmodel.ModelLoadingViewModel enum class Mode { diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsBrowsingScreen.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsBrowsingScreen.kt similarity index 88% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsBrowsingScreen.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsBrowsingScreen.kt index 680df3ebdd..9cc22529df 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsBrowsingScreen.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsBrowsingScreen.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.screens +package com.arm.aiplayground.ui.screens import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box @@ -13,12 +13,12 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp -import com.example.llama.data.model.ModelInfo -import com.example.llama.ui.components.InfoAction -import com.example.llama.ui.components.InfoView -import com.example.llama.ui.components.ModelCardFullExpandable -import com.example.llama.viewmodel.ModelsViewModel -import com.example.llama.viewmodel.PreselectedModelToRun +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.ui.components.InfoAction +import com.arm.aiplayground.ui.components.InfoView +import com.arm.aiplayground.ui.components.ModelCardFullExpandable +import com.arm.aiplayground.viewmodel.ModelsViewModel +import com.arm.aiplayground.viewmodel.PreselectedModelToRun @Composable fun ModelsBrowsingScreen( diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsManagementAndDeletingScreen.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsManagementAndDeletingScreen.kt similarity index 96% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsManagementAndDeletingScreen.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsManagementAndDeletingScreen.kt index 9f01ce2c91..410c6dfaee 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsManagementAndDeletingScreen.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsManagementAndDeletingScreen.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.screens +package com.arm.aiplayground.ui.screens import android.content.Context import android.content.Intent @@ -60,22 +60,22 @@ import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import androidx.compose.ui.window.DialogProperties import androidx.core.net.toUri -import com.example.llama.data.model.ModelInfo -import com.example.llama.data.source.remote.HuggingFaceModel -import com.example.llama.ui.components.InfoAction -import com.example.llama.ui.components.InfoAlertDialog -import com.example.llama.ui.components.InfoView -import com.example.llama.ui.components.ModelCardFullExpandable -import com.example.llama.ui.scaffold.ScaffoldEvent -import com.example.llama.util.formatContextLength -import com.example.llama.util.formatFileByteSize -import com.example.llama.viewmodel.ModelManagementState -import com.example.llama.viewmodel.ModelManagementState.Deletion -import com.example.llama.viewmodel.ModelManagementState.Download -import com.example.llama.viewmodel.ModelManagementState.Importation -import com.example.llama.viewmodel.ModelScreenUiMode -import com.example.llama.viewmodel.ModelsManagementViewModel -import com.example.llama.viewmodel.ModelsViewModel +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.data.source.remote.HuggingFaceModel +import com.arm.aiplayground.ui.components.InfoAction +import com.arm.aiplayground.ui.components.InfoAlertDialog +import com.arm.aiplayground.ui.components.InfoView +import com.arm.aiplayground.ui.components.ModelCardFullExpandable +import com.arm.aiplayground.ui.scaffold.ScaffoldEvent +import com.arm.aiplayground.util.formatContextLength +import com.arm.aiplayground.util.formatFileByteSize +import com.arm.aiplayground.viewmodel.ModelManagementState +import com.arm.aiplayground.viewmodel.ModelManagementState.Deletion +import com.arm.aiplayground.viewmodel.ModelManagementState.Download +import com.arm.aiplayground.viewmodel.ModelManagementState.Importation +import com.arm.aiplayground.viewmodel.ModelScreenUiMode +import com.arm.aiplayground.viewmodel.ModelsManagementViewModel +import com.arm.aiplayground.viewmodel.ModelsViewModel import java.text.SimpleDateFormat import java.util.Locale diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsScreen.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsScreen.kt similarity index 93% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsScreen.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsScreen.kt index f93ec02937..7addc34cad 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsScreen.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsScreen.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.screens +package com.arm.aiplayground.ui.screens import androidx.activity.compose.BackHandler import androidx.compose.foundation.layout.Box @@ -26,14 +26,14 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp -import com.example.llama.data.model.ModelInfo -import com.example.llama.ui.components.InfoView -import com.example.llama.ui.scaffold.ScaffoldEvent -import com.example.llama.util.formatFileByteSize -import com.example.llama.viewmodel.ModelScreenUiMode -import com.example.llama.viewmodel.ModelsManagementViewModel -import com.example.llama.viewmodel.ModelsViewModel -import com.example.llama.viewmodel.PreselectedModelToRun.RamWarning +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.ui.components.InfoView +import com.arm.aiplayground.ui.scaffold.ScaffoldEvent +import com.arm.aiplayground.util.formatFileByteSize +import com.arm.aiplayground.viewmodel.ModelScreenUiMode +import com.arm.aiplayground.viewmodel.ModelsManagementViewModel +import com.arm.aiplayground.viewmodel.ModelsViewModel +import com.arm.aiplayground.viewmodel.PreselectedModelToRun.RamWarning @OptIn(ExperimentalMaterial3Api::class) @Composable diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsSearchingScreen.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsSearchingScreen.kt similarity index 96% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsSearchingScreen.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsSearchingScreen.kt index ab1311795b..1a505248c9 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/ModelsSearchingScreen.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/ModelsSearchingScreen.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.screens +package com.arm.aiplayground.ui.screens import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box @@ -36,10 +36,10 @@ import androidx.compose.ui.focus.focusRequester import androidx.compose.ui.platform.LocalSoftwareKeyboardController import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp -import com.example.llama.ui.components.ModelCardFullExpandable -import com.example.llama.viewmodel.ModelScreenUiMode -import com.example.llama.viewmodel.ModelsViewModel -import com.example.llama.viewmodel.PreselectedModelToRun +import com.arm.aiplayground.ui.components.ModelCardFullExpandable +import com.arm.aiplayground.viewmodel.ModelScreenUiMode +import com.arm.aiplayground.viewmodel.ModelsViewModel +import com.arm.aiplayground.viewmodel.PreselectedModelToRun @ExperimentalMaterial3Api @Composable diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/SettingsGeneralScreen.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/SettingsGeneralScreen.kt similarity index 96% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/screens/SettingsGeneralScreen.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/SettingsGeneralScreen.kt index b645c9249e..521b3dded2 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/SettingsGeneralScreen.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/screens/SettingsGeneralScreen.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.screens +package com.arm.aiplayground.ui.screens import android.content.Intent import androidx.compose.foundation.layout.Column @@ -30,12 +30,12 @@ import androidx.compose.ui.unit.dp import androidx.core.net.toUri import com.arm.aichat.ArmFeaturesMapper import com.arm.aichat.ArmFeaturesMapper.DisplayItem -import com.example.llama.APP_NAME -import com.example.llama.BuildConfig -import com.example.llama.data.source.prefs.ColorThemeMode -import com.example.llama.data.source.prefs.DarkThemeMode -import com.example.llama.ui.components.ArmFeaturesVisualizer -import com.example.llama.viewmodel.SettingsViewModel +import com.arm.aiplayground.APP_NAME +import com.arm.aiplayground.BuildConfig +import com.arm.aiplayground.data.source.prefs.ColorThemeMode +import com.arm.aiplayground.data.source.prefs.DarkThemeMode +import com.arm.aiplayground.ui.components.ArmFeaturesVisualizer +import com.arm.aiplayground.viewmodel.SettingsViewModel import kotlin.math.sqrt /** diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Color.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Color.kt similarity index 99% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Color.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Color.kt index 0d3ff42b75..0a5b43521d 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Color.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Color.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.theme +package com.arm.aiplayground.ui.theme import androidx.compose.ui.graphics.Color diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Shape.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Shape.kt similarity index 92% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Shape.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Shape.kt index 94d7421ae4..f33a8486ed 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Shape.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Shape.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.theme +package com.arm.aiplayground.ui.theme import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.Shapes diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Theme.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Theme.kt similarity index 97% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Theme.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Theme.kt index adc0e25baf..a7443b85b3 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Theme.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Theme.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.theme +package com.arm.aiplayground.ui.theme import android.app.Activity import androidx.compose.foundation.isSystemInDarkTheme @@ -14,8 +14,8 @@ import androidx.compose.ui.graphics.toArgb import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalView import androidx.core.view.WindowCompat -import com.example.llama.data.source.prefs.ColorThemeMode -import com.example.llama.data.source.prefs.DarkThemeMode +import com.arm.aiplayground.data.source.prefs.ColorThemeMode +import com.arm.aiplayground.data.source.prefs.DarkThemeMode import com.google.accompanist.systemuicontroller.rememberSystemUiController // -------------------- ColorScheme -------------------- diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Type.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Type.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Type.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Type.kt index b7453076bb..a15959c6a3 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/theme/Type.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/ui/theme/Type.kt @@ -1,4 +1,4 @@ -package com.example.llama.ui.theme +package com.arm.aiplayground.ui.theme import androidx.compose.material3.Typography import androidx.compose.ui.text.TextStyle diff --git a/examples/llama.android/app/src/main/java/com/example/llama/util/FileUtils.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/util/FileUtils.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/util/FileUtils.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/util/FileUtils.kt index 8befc3f847..75d0c1d4c7 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/util/FileUtils.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/util/FileUtils.kt @@ -1,4 +1,4 @@ -package com.example.llama.util +package com.arm.aiplayground.util import android.content.Context import android.net.Uri diff --git a/examples/llama.android/app/src/main/java/com/example/llama/util/FormatUtils.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/util/FormatUtils.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/util/FormatUtils.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/util/FormatUtils.kt index 696203fbe6..840bdf9adc 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/util/FormatUtils.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/util/FormatUtils.kt @@ -1,4 +1,4 @@ -package com.example.llama.util +package com.arm.aiplayground.util import java.util.concurrent.TimeUnit import java.util.Locale diff --git a/examples/llama.android/app/src/main/java/com/example/llama/util/LocaleUtils.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/util/LocaleUtils.kt similarity index 98% rename from examples/llama.android/app/src/main/java/com/example/llama/util/LocaleUtils.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/util/LocaleUtils.kt index fdcec9cec7..2bbffacd08 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/util/LocaleUtils.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/util/LocaleUtils.kt @@ -1,4 +1,4 @@ -package com.example.llama.util +package com.arm.aiplayground.util /** diff --git a/examples/llama.android/app/src/main/java/com/example/llama/util/NaiveMetadataExtractor.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/util/NaiveMetadataExtractor.kt similarity index 97% rename from examples/llama.android/app/src/main/java/com/example/llama/util/NaiveMetadataExtractor.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/util/NaiveMetadataExtractor.kt index ff20bff505..11546f563a 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/util/NaiveMetadataExtractor.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/util/NaiveMetadataExtractor.kt @@ -1,4 +1,4 @@ -package com.example.llama.util +package com.arm.aiplayground.util import java.util.Locale diff --git a/examples/llama.android/app/src/main/java/com/example/llama/util/TableUtils.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/util/TableUtils.kt similarity index 97% rename from examples/llama.android/app/src/main/java/com/example/llama/util/TableUtils.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/util/TableUtils.kt index 34b4baa1b0..80e49a11d3 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/util/TableUtils.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/util/TableUtils.kt @@ -1,4 +1,4 @@ -package com.example.llama.util +package com.arm.aiplayground.util /** diff --git a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/BenchmarkViewModel.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/BenchmarkViewModel.kt similarity index 94% rename from examples/llama.android/app/src/main/java/com/example/llama/viewmodel/BenchmarkViewModel.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/BenchmarkViewModel.kt index 5ada670909..56fd87d6de 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/BenchmarkViewModel.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/BenchmarkViewModel.kt @@ -1,10 +1,10 @@ -package com.example.llama.viewmodel +package com.arm.aiplayground.viewmodel import androidx.lifecycle.viewModelScope import com.arm.aichat.isUninterruptible -import com.example.llama.data.model.ModelInfo -import com.example.llama.engine.BenchmarkService -import com.example.llama.ui.scaffold.ScaffoldEvent +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.engine.BenchmarkService +import com.arm.aiplayground.ui.scaffold.ScaffoldEvent import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.flow.MutableStateFlow diff --git a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ConversationViewModel.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ConversationViewModel.kt similarity index 97% rename from examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ConversationViewModel.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ConversationViewModel.kt index 833f035acb..b9d4794d17 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ConversationViewModel.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ConversationViewModel.kt @@ -1,11 +1,11 @@ -package com.example.llama.viewmodel +package com.arm.aiplayground.viewmodel import androidx.compose.foundation.text.input.TextFieldState import androidx.compose.foundation.text.input.clearText import androidx.lifecycle.viewModelScope -import com.example.llama.engine.ConversationService -import com.example.llama.engine.GenerationUpdate -import com.example.llama.engine.TokenMetrics +import com.arm.aiplayground.engine.ConversationService +import com.arm.aiplayground.engine.GenerationUpdate +import com.arm.aiplayground.engine.TokenMetrics import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.CancellationException import kotlinx.coroutines.Job diff --git a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/MainViewModel.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/MainViewModel.kt similarity index 93% rename from examples/llama.android/app/src/main/java/com/example/llama/viewmodel/MainViewModel.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/MainViewModel.kt index 3e87233935..ab59483703 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/MainViewModel.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/MainViewModel.kt @@ -1,9 +1,9 @@ -package com.example.llama.viewmodel +package com.arm.aiplayground.viewmodel import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope -import com.example.llama.data.source.prefs.AppPreferences -import com.example.llama.engine.InferenceService +import com.arm.aiplayground.data.source.prefs.AppPreferences +import com.arm.aiplayground.engine.InferenceService import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow diff --git a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelLoadingViewModel.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelLoadingViewModel.kt similarity index 91% rename from examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelLoadingViewModel.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelLoadingViewModel.kt index 689fee13c0..536f9dbd40 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelLoadingViewModel.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelLoadingViewModel.kt @@ -1,11 +1,11 @@ -package com.example.llama.viewmodel +package com.arm.aiplayground.viewmodel import androidx.lifecycle.viewModelScope -import com.example.llama.data.model.SystemPrompt -import com.example.llama.data.repo.ModelRepository -import com.example.llama.data.repo.SystemPromptRepository -import com.example.llama.engine.ModelLoadingMetrics -import com.example.llama.engine.ModelLoadingService +import com.arm.aiplayground.data.model.SystemPrompt +import com.arm.aiplayground.data.repo.ModelRepository +import com.arm.aiplayground.data.repo.SystemPromptRepository +import com.arm.aiplayground.engine.ModelLoadingMetrics +import com.arm.aiplayground.engine.ModelLoadingService import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.SharingStarted import kotlinx.coroutines.flow.StateFlow diff --git a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelUnloadingViewModel.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelUnloadingViewModel.kt similarity index 97% rename from examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelUnloadingViewModel.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelUnloadingViewModel.kt index e629f2759e..1ac219ef11 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelUnloadingViewModel.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelUnloadingViewModel.kt @@ -1,4 +1,4 @@ -package com.example.llama.viewmodel +package com.arm.aiplayground.viewmodel import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope @@ -6,7 +6,7 @@ import com.arm.aichat.InferenceEngine import com.arm.aichat.InferenceEngine.State import com.arm.aichat.isModelLoaded import com.arm.aichat.isUninterruptible -import com.example.llama.engine.InferenceService +import com.arm.aiplayground.engine.InferenceService import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asStateFlow diff --git a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelsManagementViewModel.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelsManagementViewModel.kt similarity index 94% rename from examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelsManagementViewModel.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelsManagementViewModel.kt index 06e66e04c4..87fa570262 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelsManagementViewModel.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelsManagementViewModel.kt @@ -1,4 +1,4 @@ -package com.example.llama.viewmodel +package com.arm.aiplayground.viewmodel import android.app.DownloadManager import android.content.BroadcastReceiver @@ -11,19 +11,19 @@ import android.util.Log import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.arm.aichat.gguf.InvalidFileFormatException -import com.example.llama.data.model.ModelInfo -import com.example.llama.data.repo.InsufficientStorageException -import com.example.llama.data.repo.ModelRepository -import com.example.llama.data.source.remote.HuggingFaceDownloadInfo -import com.example.llama.data.source.remote.HuggingFaceModel -import com.example.llama.data.source.remote.HuggingFaceModelDetails -import com.example.llama.monitoring.MemoryMetrics -import com.example.llama.util.formatFileByteSize -import com.example.llama.util.getFileNameFromUri -import com.example.llama.util.getFileSizeFromUri -import com.example.llama.viewmodel.ModelManagementState.Deletion -import com.example.llama.viewmodel.ModelManagementState.Download -import com.example.llama.viewmodel.ModelManagementState.Importation +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.data.repo.InsufficientStorageException +import com.arm.aiplayground.data.repo.ModelRepository +import com.arm.aiplayground.data.source.remote.HuggingFaceDownloadInfo +import com.arm.aiplayground.data.source.remote.HuggingFaceModel +import com.arm.aiplayground.data.source.remote.HuggingFaceModelDetails +import com.arm.aiplayground.monitoring.MemoryMetrics +import com.arm.aiplayground.util.formatFileByteSize +import com.arm.aiplayground.util.getFileNameFromUri +import com.arm.aiplayground.util.getFileSizeFromUri +import com.arm.aiplayground.viewmodel.ModelManagementState.Deletion +import com.arm.aiplayground.viewmodel.ModelManagementState.Download +import com.arm.aiplayground.viewmodel.ModelManagementState.Importation import dagger.hilt.android.lifecycle.HiltViewModel import dagger.hilt.android.qualifiers.ApplicationContext import kotlinx.coroutines.Job diff --git a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelsViewModel.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelsViewModel.kt similarity index 93% rename from examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelsViewModel.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelsViewModel.kt index 122e6e4a27..38a1b9c6c0 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/ModelsViewModel.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/ModelsViewModel.kt @@ -1,20 +1,20 @@ -package com.example.llama.viewmodel +package com.arm.aiplayground.viewmodel import androidx.compose.foundation.text.input.TextFieldState import androidx.compose.foundation.text.input.clearText import androidx.compose.runtime.snapshotFlow import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope -import com.example.llama.data.model.ModelFilter -import com.example.llama.data.model.ModelInfo -import com.example.llama.data.model.ModelSortOrder -import com.example.llama.data.model.filterBy -import com.example.llama.data.model.queryBy -import com.example.llama.data.model.sortByOrder -import com.example.llama.data.repo.ModelRepository -import com.example.llama.engine.InferenceService -import com.example.llama.monitoring.PerformanceMonitor -import com.example.llama.viewmodel.PreselectedModelToRun.RamWarning +import com.arm.aiplayground.data.model.ModelFilter +import com.arm.aiplayground.data.model.ModelInfo +import com.arm.aiplayground.data.model.ModelSortOrder +import com.arm.aiplayground.data.model.filterBy +import com.arm.aiplayground.data.model.queryBy +import com.arm.aiplayground.data.model.sortByOrder +import com.arm.aiplayground.data.repo.ModelRepository +import com.arm.aiplayground.engine.InferenceService +import com.arm.aiplayground.monitoring.PerformanceMonitor +import com.arm.aiplayground.viewmodel.PreselectedModelToRun.RamWarning import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.FlowPreview import kotlinx.coroutines.flow.MutableStateFlow diff --git a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/SettingsViewModel.kt b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/SettingsViewModel.kt similarity index 90% rename from examples/llama.android/app/src/main/java/com/example/llama/viewmodel/SettingsViewModel.kt rename to examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/SettingsViewModel.kt index 4cea012328..35ebfd8341 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/viewmodel/SettingsViewModel.kt +++ b/examples/llama.android/app/src/main/java/com/arm/aiplayground/viewmodel/SettingsViewModel.kt @@ -1,19 +1,19 @@ -package com.example.llama.viewmodel +package com.arm.aiplayground.viewmodel import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.arm.aichat.LLamaTier import com.arm.aichat.TierDetection -import com.example.llama.data.repo.ModelRepository -import com.example.llama.data.source.prefs.ColorThemeMode -import com.example.llama.data.source.prefs.DarkThemeMode -import com.example.llama.data.source.prefs.UserPreferences -import com.example.llama.monitoring.BatteryMetrics -import com.example.llama.monitoring.MemoryMetrics -import com.example.llama.monitoring.PerformanceMonitor -import com.example.llama.monitoring.StorageMetrics -import com.example.llama.monitoring.TemperatureMetrics -import com.example.llama.monitoring.TemperatureWarningLevel +import com.arm.aiplayground.data.repo.ModelRepository +import com.arm.aiplayground.data.source.prefs.ColorThemeMode +import com.arm.aiplayground.data.source.prefs.DarkThemeMode +import com.arm.aiplayground.data.source.prefs.UserPreferences +import com.arm.aiplayground.monitoring.BatteryMetrics +import com.arm.aiplayground.monitoring.MemoryMetrics +import com.arm.aiplayground.monitoring.PerformanceMonitor +import com.arm.aiplayground.monitoring.StorageMetrics +import com.arm.aiplayground.monitoring.TemperatureMetrics +import com.arm.aiplayground.monitoring.TemperatureWarningLevel import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.Job import kotlinx.coroutines.flow.MutableStateFlow