:implementation cleanup

This commit is contained in:
Milos Kozak 2023-09-25 23:14:05 +02:00
parent dc4cc6c837
commit aa010a03b2
86 changed files with 197 additions and 197 deletions

View file

@ -31,6 +31,10 @@ import app.aaps.core.ui.locale.LocaleHelper
import app.aaps.database.entities.TherapyEvent
import app.aaps.database.entities.UserEntry
import app.aaps.di.DaggerAppComponent
import app.aaps.implementation.db.CompatDBHelper
import app.aaps.implementation.lifecycle.ProcessLifecycleListener
import app.aaps.implementation.plugin.PluginStore
import app.aaps.implementation.receivers.NetworkChangeReceiver
import app.aaps.receivers.BTReceiver
import app.aaps.receivers.ChargingStateReceiver
import app.aaps.receivers.KeepAliveWorker
@ -42,10 +46,6 @@ import info.nightscout.androidaps.R
import info.nightscout.database.impl.AppRepository
import info.nightscout.database.impl.transactions.InsertIfNewByTimestampTherapyEventTransaction
import info.nightscout.database.impl.transactions.VersionChangeTransaction
import info.nightscout.implementation.db.CompatDBHelper
import info.nightscout.implementation.lifecycle.ProcessLifecycleListener
import info.nightscout.implementation.plugin.PluginStore
import info.nightscout.implementation.receivers.NetworkChangeReceiver
import info.nightscout.plugins.aps.utils.StaticInjector
import info.nightscout.plugins.general.overview.notifications.NotificationStore
import info.nightscout.plugins.general.themes.ThemeSwitcherPlugin

View file

@ -1,8 +1,5 @@
package app.aaps.activities
import app.aaps.core.main.graph.OverviewData
import app.aaps.core.main.utils.fabric.FabricPrivacy
import app.aaps.core.main.workflow.CalculationWorkflow
import app.aaps.core.interfaces.logging.AAPSLogger
import app.aaps.core.interfaces.plugin.ActivePlugin
import app.aaps.core.interfaces.profile.DefaultValueHelper
@ -13,9 +10,12 @@ import app.aaps.core.interfaces.rx.bus.RxBus
import app.aaps.core.interfaces.sharedPreferences.SP
import app.aaps.core.interfaces.utils.DateUtil
import app.aaps.core.interfaces.utils.DecimalFormatter
import app.aaps.core.main.graph.OverviewData
import app.aaps.core.main.utils.fabric.FabricPrivacy
import app.aaps.core.main.workflow.CalculationWorkflow
import app.aaps.implementation.overview.OverviewDataImpl
import dagger.android.HasAndroidInjector
import info.nightscout.database.impl.AppRepository
import info.nightscout.implementation.overview.OverviewDataImpl
import info.nightscout.plugins.iob.iobCobCalculator.IobCobCalculatorPlugin
import javax.inject.Inject
import javax.inject.Singleton

View file

@ -31,6 +31,8 @@ import app.aaps.core.interfaces.rx.events.EventPreferenceChange
import app.aaps.core.interfaces.rx.events.EventRebuildTabs
import app.aaps.core.interfaces.sharedPreferences.SP
import app.aaps.core.interfaces.utils.SafeParse
import app.aaps.core.ui.dialogs.OKDialog
import app.aaps.implementation.plugin.PluginStore
import dagger.android.support.AndroidSupportInjection
import info.nightscout.androidaps.R
import info.nightscout.androidaps.danaRKorean.DanaRKoreanPlugin
@ -40,8 +42,6 @@ import info.nightscout.androidaps.plugins.pump.eopatch.EopatchPumpPlugin
import info.nightscout.androidaps.plugins.pump.insight.LocalInsightPlugin
import info.nightscout.androidaps.plugins.pump.medtronic.MedtronicPumpPlugin
import info.nightscout.automation.AutomationPlugin
import app.aaps.core.ui.dialogs.OKDialog
import info.nightscout.implementation.plugin.PluginStore
import info.nightscout.insulin.InsulinOrefFreePeakPlugin
import info.nightscout.plugins.aps.loop.LoopPlugin
import info.nightscout.plugins.aps.openAPSAMA.OpenAPSAMAPlugin

View file

@ -3,6 +3,8 @@ package app.aaps.di
import app.aaps.MainApp
import app.aaps.configuration.di.ConfigurationModule
import app.aaps.core.main.di.CoreModule
import app.aaps.core.validators.di.ValidatorsModule
import app.aaps.implementation.di.ImplementationModule
import app.aaps.shared.impl.di.SharedImplModule
import dagger.BindsInstance
import dagger.Component
@ -17,9 +19,7 @@ import info.nightscout.androidaps.plugins.pump.medtronic.di.MedtronicModule
import info.nightscout.androidaps.plugins.pump.omnipod.dash.di.OmnipodDashModule
import info.nightscout.androidaps.plugins.pump.omnipod.eros.di.OmnipodErosModule
import info.nightscout.automation.di.AutomationModule
import app.aaps.core.validators.di.ValidatorsModule
import info.nightscout.database.impl.DatabaseModule
import info.nightscout.implementation.di.ImplementationModule
import info.nightscout.insulin.di.InsulinModule
import info.nightscout.plugins.aps.di.ApsModule
import info.nightscout.plugins.constraints.di.PluginsConstraintsModule

View file

@ -5,9 +5,9 @@ import app.aaps.core.interfaces.aps.AutosensData
import app.aaps.core.interfaces.objects.Instantiator
import app.aaps.core.interfaces.profile.ProfileStore
import app.aaps.core.interfaces.utils.DateUtil
import app.aaps.implementation.profile.ProfileStoreObject
import dagger.Reusable
import dagger.android.HasAndroidInjector
import info.nightscout.implementation.profile.ProfileStoreObject
import info.nightscout.plugins.aps.APSResultObject
import info.nightscout.plugins.iob.iobCobCalculator.data.AutosensDataObject
import org.json.JSONObject

View file

@ -11,7 +11,7 @@ apply from: "${project.rootDir}/core/main/test_dependencies.gradle"
apply from: "${project.rootDir}/core/main/allopen_dependencies.gradle"
apply from: "${project.rootDir}/core/main/jacoco_global.gradle"
android {
namespace 'info.nightscout.implementation'
namespace 'app.aaps.implementation'
}
dependencies {

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation
package app.aaps.implementation.alerts
import app.aaps.core.interfaces.alerts.LocalAlertUtils
import app.aaps.core.interfaces.configuration.Config

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.androidNotification
package app.aaps.implementation.androidNotification
import android.app.Notification
import android.app.NotificationChannel

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.db
package app.aaps.implementation.db
import android.content.Context
import app.aaps.core.interfaces.logging.AAPSLogger

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.db
package app.aaps.implementation.db
import app.aaps.core.interfaces.db.PersistenceLayer
import app.aaps.core.interfaces.logging.AAPSLogger

View file

@ -1,28 +1,28 @@
package info.nightscout.implementation.di
package app.aaps.implementation.di
import app.aaps.implementation.queue.CommandQueueImplementation
import app.aaps.implementation.queue.commands.CommandBolus
import app.aaps.implementation.queue.commands.CommandCancelExtendedBolus
import app.aaps.implementation.queue.commands.CommandCancelTempBasal
import app.aaps.implementation.queue.commands.CommandClearAlarms
import app.aaps.implementation.queue.commands.CommandCustomCommand
import app.aaps.implementation.queue.commands.CommandDeactivate
import app.aaps.implementation.queue.commands.CommandExtendedBolus
import app.aaps.implementation.queue.commands.CommandInsightSetTBROverNotification
import app.aaps.implementation.queue.commands.CommandLoadEvents
import app.aaps.implementation.queue.commands.CommandLoadHistory
import app.aaps.implementation.queue.commands.CommandLoadTDDs
import app.aaps.implementation.queue.commands.CommandReadStatus
import app.aaps.implementation.queue.commands.CommandSMBBolus
import app.aaps.implementation.queue.commands.CommandSetProfile
import app.aaps.implementation.queue.commands.CommandSetUserSettings
import app.aaps.implementation.queue.commands.CommandStartPump
import app.aaps.implementation.queue.commands.CommandStopPump
import app.aaps.implementation.queue.commands.CommandTempBasalAbsolute
import app.aaps.implementation.queue.commands.CommandTempBasalPercent
import app.aaps.implementation.queue.commands.CommandUpdateTime
import dagger.Module
import dagger.android.ContributesAndroidInjector
import info.nightscout.implementation.queue.CommandQueueImplementation
import info.nightscout.implementation.queue.commands.CommandReadStatus
import info.nightscout.implementation.queue.commands.CommandSMBBolus
import info.nightscout.implementation.queue.commands.CommandSetProfile
import info.nightscout.implementation.queue.commands.CommandSetUserSettings
import info.nightscout.implementation.queue.commands.CommandStartPump
import info.nightscout.implementation.queue.commands.CommandStopPump
import info.nightscout.implementation.queue.commands.CommandTempBasalAbsolute
import info.nightscout.implementation.queue.commands.CommandTempBasalPercent
import info.nightscout.implementation.queue.commands.CommandBolus
import info.nightscout.implementation.queue.commands.CommandCancelExtendedBolus
import info.nightscout.implementation.queue.commands.CommandCancelTempBasal
import info.nightscout.implementation.queue.commands.CommandClearAlarms
import info.nightscout.implementation.queue.commands.CommandCustomCommand
import info.nightscout.implementation.queue.commands.CommandDeactivate
import info.nightscout.implementation.queue.commands.CommandExtendedBolus
import info.nightscout.implementation.queue.commands.CommandInsightSetTBROverNotification
import info.nightscout.implementation.queue.commands.CommandLoadEvents
import info.nightscout.implementation.queue.commands.CommandLoadHistory
import info.nightscout.implementation.queue.commands.CommandLoadTDDs
import info.nightscout.implementation.queue.commands.CommandUpdateTime
@Module
@Suppress("unused")

View file

@ -1,6 +1,5 @@
package info.nightscout.implementation.di
package app.aaps.implementation.di
import app.aaps.core.main.graph.OverviewData
import app.aaps.core.interfaces.alerts.LocalAlertUtils
import app.aaps.core.interfaces.db.PersistenceLayer
import app.aaps.core.interfaces.iob.GlucoseStatusProvider
@ -32,43 +31,44 @@ import app.aaps.core.interfaces.utils.DecimalFormatter
import app.aaps.core.interfaces.utils.HardLimits
import app.aaps.core.interfaces.utils.Translator
import app.aaps.core.interfaces.utils.TrendCalculator
import app.aaps.core.main.graph.OverviewData
import app.aaps.implementation.alerts.LocalAlertUtilsImpl
import app.aaps.implementation.androidNotification.NotificationHolderImpl
import app.aaps.implementation.db.PersistenceLayerImpl
import app.aaps.implementation.iob.GlucoseStatusProviderImpl
import app.aaps.implementation.logging.LoggerUtilsImpl
import app.aaps.implementation.logging.UserEntryLoggerImpl
import app.aaps.implementation.overview.OverviewDataImpl
import app.aaps.implementation.plugin.PluginStore
import app.aaps.implementation.profile.DefaultValueHelperImpl
import app.aaps.implementation.profile.ProfileFunctionImpl
import app.aaps.implementation.profile.ProfileStoreObject
import app.aaps.implementation.profile.ProfileUtilImpl
import app.aaps.implementation.profiling.ProfilerImpl
import app.aaps.implementation.protection.PasswordCheckImpl
import app.aaps.implementation.protection.ProtectionCheckImpl
import app.aaps.implementation.pump.BlePreCheckImpl
import app.aaps.implementation.pump.DetailedBolusInfoStorageImpl
import app.aaps.implementation.pump.PumpSyncImplementation
import app.aaps.implementation.pump.TemporaryBasalStorageImpl
import app.aaps.implementation.pump.WarnColorsImpl
import app.aaps.implementation.queue.CommandQueueImplementation
import app.aaps.implementation.receivers.NetworkChangeReceiver
import app.aaps.implementation.receivers.ReceiverStatusStoreImpl
import app.aaps.implementation.resources.IconsProviderImplementation
import app.aaps.implementation.resources.ResourceHelperImpl
import app.aaps.implementation.stats.DexcomTirCalculatorImpl
import app.aaps.implementation.stats.TddCalculatorImpl
import app.aaps.implementation.stats.TirCalculatorImpl
import app.aaps.implementation.storage.FileStorage
import app.aaps.implementation.userEntry.UserEntryPresentationHelperImpl
import app.aaps.implementation.utils.DecimalFormatterImpl
import app.aaps.implementation.utils.HardLimitsImpl
import app.aaps.implementation.utils.TranslatorImpl
import app.aaps.implementation.utils.TrendCalculatorImpl
import dagger.Binds
import dagger.Module
import dagger.android.ContributesAndroidInjector
import info.nightscout.implementation.DefaultValueHelperImpl
import info.nightscout.implementation.HardLimitsImpl
import info.nightscout.implementation.LocalAlertUtilsImpl
import info.nightscout.implementation.TranslatorImpl
import info.nightscout.implementation.TrendCalculatorImpl
import info.nightscout.implementation.UserEntryLoggerImpl
import info.nightscout.implementation.androidNotification.NotificationHolderImpl
import info.nightscout.implementation.db.PersistenceLayerImpl
import info.nightscout.implementation.iob.GlucoseStatusProviderImpl
import info.nightscout.implementation.logging.LoggerUtilsImpl
import info.nightscout.implementation.overview.OverviewDataImpl
import info.nightscout.implementation.plugin.PluginStore
import info.nightscout.implementation.profile.ProfileFunctionImpl
import info.nightscout.implementation.profile.ProfileStoreObject
import info.nightscout.implementation.profile.ProfileUtilImpl
import info.nightscout.implementation.profiling.ProfilerImpl
import info.nightscout.implementation.protection.PasswordCheckImpl
import info.nightscout.implementation.protection.ProtectionCheckImpl
import info.nightscout.implementation.pump.BlePreCheckImpl
import info.nightscout.implementation.pump.DetailedBolusInfoStorageImpl
import info.nightscout.implementation.pump.PumpSyncImplementation
import info.nightscout.implementation.pump.TemporaryBasalStorageImpl
import info.nightscout.implementation.pump.WarnColorsImpl
import info.nightscout.implementation.queue.CommandQueueImplementation
import info.nightscout.implementation.receivers.NetworkChangeReceiver
import info.nightscout.implementation.receivers.ReceiverStatusStoreImpl
import info.nightscout.implementation.resources.IconsProviderImplementation
import info.nightscout.implementation.resources.ResourceHelperImpl
import info.nightscout.implementation.stats.DexcomTirCalculatorImpl
import info.nightscout.implementation.stats.TddCalculatorImpl
import info.nightscout.implementation.stats.TirCalculatorImpl
import info.nightscout.implementation.storage.FileStorage
import info.nightscout.implementation.userEntry.UserEntryPresentationHelperImpl
import info.nightscout.implementation.utils.DecimalFormatterImpl
@Module(
includes = [

View file

@ -1,8 +1,6 @@
package info.nightscout.implementation.iob
package app.aaps.implementation.iob
import app.aaps.annotations.OpenForTesting
import app.aaps.core.main.iob.asRounded
import app.aaps.core.main.iob.log
import app.aaps.core.interfaces.iob.GlucoseStatus
import app.aaps.core.interfaces.iob.GlucoseStatusProvider
import app.aaps.core.interfaces.iob.IobCobCalculator
@ -10,6 +8,8 @@ import app.aaps.core.interfaces.logging.AAPSLogger
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.utils.DateUtil
import app.aaps.core.interfaces.utils.DecimalFormatter
import app.aaps.core.main.iob.asRounded
import app.aaps.core.main.iob.log
import dagger.Reusable
import javax.inject.Inject
import kotlin.math.roundToLong

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.lifecycle
package app.aaps.implementation.lifecycle
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.logging
package app.aaps.implementation.logging
import app.aaps.annotations.OpenForTesting
import app.aaps.core.interfaces.logging.LoggerUtils

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation
package app.aaps.implementation.logging
import app.aaps.annotations.OpenForTesting
import app.aaps.core.interfaces.logging.AAPSLogger

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.overview
package app.aaps.implementation.overview
import android.content.Context
import androidx.annotation.AttrRes

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.plugin
package app.aaps.implementation.plugin
import app.aaps.core.interfaces.aps.APS
import app.aaps.core.interfaces.aps.Sensitivity

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation
package app.aaps.implementation.profile
import app.aaps.annotations.OpenForTesting
import app.aaps.core.interfaces.configuration.Constants

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.profile
package app.aaps.implementation.profile
import app.aaps.core.interfaces.configuration.Config
import app.aaps.core.interfaces.db.GlucoseUnit

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.profile
package app.aaps.implementation.profile
import androidx.collection.ArrayMap
import app.aaps.core.interfaces.configuration.Config

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.profile
package app.aaps.implementation.profile
import app.aaps.core.interfaces.db.GlucoseUnit
import app.aaps.core.interfaces.profile.ProfileUtil

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.profiling
package app.aaps.implementation.profiling
import app.aaps.annotations.OpenForTesting
import app.aaps.core.interfaces.logging.AAPSLogger

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.protection
package app.aaps.implementation.protection
import androidx.biometric.BiometricPrompt
import androidx.biometric.BiometricPrompt.AuthenticationResult

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.protection
package app.aaps.implementation.protection
import android.annotation.SuppressLint
import android.content.Context
@ -11,13 +11,13 @@ import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import android.widget.TextView
import androidx.annotation.StringRes
import app.aaps.core.main.R
import app.aaps.core.main.utils.CryptoUtil
import app.aaps.core.interfaces.protection.PasswordCheck
import app.aaps.core.interfaces.sharedPreferences.SP
import app.aaps.core.main.R
import app.aaps.core.main.utils.CryptoUtil
import app.aaps.core.ui.toast.ToastUtils
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import dagger.Reusable
import app.aaps.core.ui.toast.ToastUtils
import javax.inject.Inject
@Reusable

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.protection
package app.aaps.implementation.protection
import androidx.fragment.app.FragmentActivity
import app.aaps.core.interfaces.protection.PasswordCheck

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.pump
package app.aaps.implementation.pump
import android.Manifest
import android.bluetooth.BluetoothManager

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.pump
package app.aaps.implementation.pump
import app.aaps.annotations.OpenForTesting
import app.aaps.core.interfaces.logging.AAPSLogger
@ -8,9 +8,9 @@ import app.aaps.core.interfaces.pump.DetailedBolusInfoStorage
import app.aaps.core.interfaces.resources.ResourceHelper
import app.aaps.core.interfaces.sharedPreferences.SP
import app.aaps.core.interfaces.utils.T
import app.aaps.implementation.R
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import info.nightscout.implementation.R
import javax.inject.Inject
import javax.inject.Singleton
import kotlin.math.abs

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.pump
package app.aaps.implementation.pump
import app.aaps.core.interfaces.logging.AAPSLogger
import app.aaps.core.interfaces.logging.LTag

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.pump
package app.aaps.implementation.pump
import app.aaps.annotations.OpenForTesting
import app.aaps.core.interfaces.logging.AAPSLogger

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.pump
package app.aaps.implementation.pump
import android.widget.TextView
import app.aaps.core.interfaces.pump.WarnColors

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue
package app.aaps.implementation.queue
import android.content.Context
import android.content.Intent
@ -48,29 +48,29 @@ import app.aaps.database.ValueWrapper
import app.aaps.database.entities.EffectiveProfileSwitch
import app.aaps.database.entities.ProfileSwitch
import app.aaps.database.entities.interfaces.end
import app.aaps.implementation.R
import app.aaps.implementation.queue.commands.CommandBolus
import app.aaps.implementation.queue.commands.CommandCancelExtendedBolus
import app.aaps.implementation.queue.commands.CommandCancelTempBasal
import app.aaps.implementation.queue.commands.CommandClearAlarms
import app.aaps.implementation.queue.commands.CommandCustomCommand
import app.aaps.implementation.queue.commands.CommandDeactivate
import app.aaps.implementation.queue.commands.CommandExtendedBolus
import app.aaps.implementation.queue.commands.CommandInsightSetTBROverNotification
import app.aaps.implementation.queue.commands.CommandLoadEvents
import app.aaps.implementation.queue.commands.CommandLoadHistory
import app.aaps.implementation.queue.commands.CommandLoadTDDs
import app.aaps.implementation.queue.commands.CommandReadStatus
import app.aaps.implementation.queue.commands.CommandSMBBolus
import app.aaps.implementation.queue.commands.CommandSetProfile
import app.aaps.implementation.queue.commands.CommandSetUserSettings
import app.aaps.implementation.queue.commands.CommandStartPump
import app.aaps.implementation.queue.commands.CommandStopPump
import app.aaps.implementation.queue.commands.CommandTempBasalAbsolute
import app.aaps.implementation.queue.commands.CommandTempBasalPercent
import app.aaps.implementation.queue.commands.CommandUpdateTime
import dagger.android.HasAndroidInjector
import info.nightscout.database.impl.AppRepository
import info.nightscout.implementation.R
import info.nightscout.implementation.queue.commands.CommandBolus
import info.nightscout.implementation.queue.commands.CommandCancelExtendedBolus
import info.nightscout.implementation.queue.commands.CommandCancelTempBasal
import info.nightscout.implementation.queue.commands.CommandClearAlarms
import info.nightscout.implementation.queue.commands.CommandCustomCommand
import info.nightscout.implementation.queue.commands.CommandDeactivate
import info.nightscout.implementation.queue.commands.CommandExtendedBolus
import info.nightscout.implementation.queue.commands.CommandInsightSetTBROverNotification
import info.nightscout.implementation.queue.commands.CommandLoadEvents
import info.nightscout.implementation.queue.commands.CommandLoadHistory
import info.nightscout.implementation.queue.commands.CommandLoadTDDs
import info.nightscout.implementation.queue.commands.CommandReadStatus
import info.nightscout.implementation.queue.commands.CommandSMBBolus
import info.nightscout.implementation.queue.commands.CommandSetProfile
import info.nightscout.implementation.queue.commands.CommandSetUserSettings
import info.nightscout.implementation.queue.commands.CommandStartPump
import info.nightscout.implementation.queue.commands.CommandStopPump
import info.nightscout.implementation.queue.commands.CommandTempBasalAbsolute
import info.nightscout.implementation.queue.commands.CommandTempBasalPercent
import info.nightscout.implementation.queue.commands.CommandUpdateTime
import io.reactivex.rxjava3.disposables.CompositeDisposable
import io.reactivex.rxjava3.kotlin.plusAssign
import java.util.LinkedList

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue
package app.aaps.implementation.queue
import android.bluetooth.BluetoothManager
import android.content.Context

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.alerts.LocalAlertUtils
import app.aaps.core.interfaces.logging.LTag

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.configuration.Config
import app.aaps.core.interfaces.logging.LTag

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue.commands
package app.aaps.implementation.queue.commands
import app.aaps.core.interfaces.logging.LTag
import app.aaps.core.interfaces.plugin.ActivePlugin

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.receivers
package app.aaps.implementation.receivers
import android.content.Context
import android.content.Intent

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.receivers
package app.aaps.implementation.receivers
import android.content.Context
import android.content.Intent

View file

@ -1,8 +1,8 @@
package info.nightscout.implementation.resources
package app.aaps.implementation.resources
import app.aaps.core.interfaces.configuration.Config
import app.aaps.core.interfaces.ui.IconsProvider
import info.nightscout.implementation.R
import app.aaps.implementation.R
import javax.inject.Inject
import javax.inject.Singleton

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.resources
package app.aaps.implementation.resources
import android.annotation.SuppressLint
import android.content.Context
@ -18,8 +18,8 @@ import androidx.annotation.StringRes
import androidx.appcompat.app.AppCompatDelegate
import androidx.appcompat.view.ContextThemeWrapper
import androidx.core.content.ContextCompat
import app.aaps.core.main.utils.fabric.FabricPrivacy
import app.aaps.core.interfaces.resources.ResourceHelper
import app.aaps.core.main.utils.fabric.FabricPrivacy
import app.aaps.core.ui.getThemeColor
import app.aaps.core.ui.locale.LocaleHelper
import java.util.Locale

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.stats
package app.aaps.implementation.stats
import android.annotation.SuppressLint
import android.content.Context

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.stats
package app.aaps.implementation.stats
import android.annotation.SuppressLint
import android.content.Context
@ -9,7 +9,7 @@ import android.widget.TextView
import app.aaps.core.interfaces.configuration.Constants
import app.aaps.core.interfaces.profile.ProfileUtil
import app.aaps.core.interfaces.stats.DexcomTIR
import info.nightscout.implementation.R
import app.aaps.implementation.R
import java.util.Calendar
import kotlin.math.pow
import kotlin.math.roundToInt

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.stats
package app.aaps.implementation.stats
import android.content.Context
import android.graphics.Typeface

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.stats
package app.aaps.implementation.stats
import android.annotation.SuppressLint
import android.content.Context

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.stats
package app.aaps.implementation.stats
import android.annotation.SuppressLint
import android.content.Context
@ -8,7 +8,7 @@ import android.widget.TextView
import app.aaps.core.interfaces.resources.ResourceHelper
import app.aaps.core.interfaces.stats.TIR
import app.aaps.core.interfaces.utils.DateUtil
import info.nightscout.implementation.R
import app.aaps.implementation.R
class TirImpl(override val date: Long, override val lowThreshold: Double, override val highThreshold: Double) : TIR {

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.stats
package app.aaps.implementation.stats
import android.annotation.SuppressLint
import android.content.Context
@ -8,7 +8,7 @@ import android.widget.TextView
import app.aaps.core.interfaces.resources.ResourceHelper
import app.aaps.core.interfaces.utils.DateUtil
import app.aaps.database.entities.TotalDailyDose
import info.nightscout.implementation.R
import app.aaps.implementation.R
val TotalDailyDose.total
get() = if (totalAmount > 0) totalAmount else basalAmount + bolusAmount

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.storage
package app.aaps.implementation.storage
import app.aaps.core.interfaces.storage.Storage
import java.io.File

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.userEntry
package app.aaps.implementation.userEntry
import android.text.Spanned
import app.aaps.core.interfaces.configuration.Constants

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.utils
package app.aaps.implementation.utils
import app.aaps.core.interfaces.resources.ResourceHelper
import app.aaps.core.interfaces.utils.DecimalFormatter

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation
package app.aaps.implementation.utils
import android.content.Context
import app.aaps.annotations.OpenForTesting

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation
package app.aaps.implementation.utils
import app.aaps.core.interfaces.resources.ResourceHelper
import app.aaps.core.interfaces.utils.Translator

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation
package app.aaps.implementation.utils
import app.aaps.core.interfaces.aps.AutosensDataStore
import app.aaps.core.interfaces.iob.InMemoryGlucoseValue

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.iob
package app.aaps.implementation.iob
import app.aaps.core.interfaces.aps.AutosensDataStore
import app.aaps.core.interfaces.iob.GlucoseStatus

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.overview
package app.aaps.implementation.overview
import app.aaps.core.interfaces.aps.AutosensDataStore
import app.aaps.core.interfaces.db.GlucoseUnit

View file

@ -1,10 +1,10 @@
package info.nightscout.implementation.profile
package app.aaps.implementation.profile
import app.aaps.core.interfaces.profile.PureProfile
import app.aaps.shared.tests.TestBaseWithProfile
import com.google.common.truth.Truth.assertThat
import kotlin.test.assertIs
import org.junit.jupiter.api.Test
import kotlin.test.assertIs
internal class ProfileStoreTest : TestBaseWithProfile() {

View file

@ -1,12 +1,12 @@
package info.nightscout.implementation.profile
package app.aaps.implementation.profile
import app.aaps.core.interfaces.db.GlucoseUnit
import app.aaps.core.interfaces.resources.ResourceHelper
import app.aaps.core.interfaces.sharedPreferences.SP
import app.aaps.database.entities.GlucoseValue
import app.aaps.implementation.utils.DecimalFormatterImpl
import app.aaps.shared.tests.TestBase
import com.google.common.truth.Truth.assertThat
import info.nightscout.implementation.utils.DecimalFormatterImpl
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.mockito.Mock

View file

@ -1,11 +1,11 @@
package info.nightscout.implementation.pump
package app.aaps.implementation.pump
import app.aaps.core.interfaces.pump.DetailedBolusInfo
import app.aaps.core.interfaces.resources.ResourceHelper
import app.aaps.core.interfaces.sharedPreferences.SP
import app.aaps.implementation.R
import app.aaps.shared.tests.TestBase
import com.google.common.truth.Truth.assertThat
import info.nightscout.implementation.R
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.mockito.Mock

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.pump
package app.aaps.implementation.pump
import app.aaps.core.interfaces.pump.PumpSync
import app.aaps.shared.tests.TestBase

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.queue
package app.aaps.implementation.queue
import android.content.Context
import android.os.Handler
@ -27,17 +27,17 @@ import app.aaps.core.main.constraints.ConstraintObject
import app.aaps.core.main.utils.fabric.FabricPrivacy
import app.aaps.database.ValueWrapper
import app.aaps.database.entities.Bolus
import app.aaps.implementation.queue.commands.CommandBolus
import app.aaps.implementation.queue.commands.CommandCustomCommand
import app.aaps.implementation.queue.commands.CommandExtendedBolus
import app.aaps.implementation.queue.commands.CommandLoadHistory
import app.aaps.implementation.queue.commands.CommandTempBasalPercent
import app.aaps.shared.tests.TestBaseWithProfile
import app.aaps.shared.tests.TestPumpPlugin
import com.google.common.truth.Truth.assertThat
import dagger.android.AndroidInjector
import dagger.android.HasAndroidInjector
import info.nightscout.database.impl.AppRepository
import info.nightscout.implementation.queue.commands.CommandBolus
import info.nightscout.implementation.queue.commands.CommandCustomCommand
import info.nightscout.implementation.queue.commands.CommandExtendedBolus
import info.nightscout.implementation.queue.commands.CommandLoadHistory
import info.nightscout.implementation.queue.commands.CommandTempBasalPercent
import io.reactivex.rxjava3.core.Single
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test

View file

@ -1,8 +1,7 @@
package info.nightscout.implementation.queue
package app.aaps.implementation.queue
import android.content.Context
import android.os.PowerManager
import app.aaps.core.main.constraints.ConstraintObject
import app.aaps.core.interfaces.androidPermissions.AndroidPermission
import app.aaps.core.interfaces.constraints.ConstraintsChecker
import app.aaps.core.interfaces.db.PersistenceLayer
@ -10,13 +9,14 @@ import app.aaps.core.interfaces.pump.PumpSync
import app.aaps.core.interfaces.pump.defs.PumpDescription
import app.aaps.core.interfaces.queue.Command
import app.aaps.core.interfaces.ui.UiInteraction
import app.aaps.core.main.constraints.ConstraintObject
import app.aaps.implementation.queue.commands.CommandTempBasalAbsolute
import app.aaps.shared.tests.TestBaseWithProfile
import app.aaps.shared.tests.TestPumpPlugin
import com.google.common.truth.Truth.assertThat
import dagger.android.AndroidInjector
import dagger.android.HasAndroidInjector
import info.nightscout.database.impl.AppRepository
import info.nightscout.implementation.queue.commands.CommandTempBasalAbsolute
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.mockito.ArgumentMatchers

View file

@ -1,4 +1,4 @@
package info.nightscout.implementation.utils
package app.aaps.implementation.utils
import app.aaps.core.interfaces.resources.ResourceHelper
import app.aaps.core.interfaces.utils.DecimalFormatter

View file

@ -1,6 +1,5 @@
package info.nightscout.implementation.wizard
package app.aaps.implementation.wizard
import app.aaps.core.main.wizard.BolusWizard
import app.aaps.core.interfaces.aps.AutosensDataStore
import app.aaps.core.interfaces.aps.Loop
import app.aaps.core.interfaces.constraints.Constraint
@ -9,11 +8,12 @@ import app.aaps.core.interfaces.iob.IobTotal
import app.aaps.core.interfaces.profile.Profile
import app.aaps.core.interfaces.pump.defs.PumpDescription
import app.aaps.core.interfaces.queue.CommandQueue
import app.aaps.core.main.wizard.BolusWizard
import app.aaps.implementation.iob.GlucoseStatusProviderImpl
import app.aaps.shared.tests.TestBaseWithProfile
import com.google.common.truth.Truth.assertThat
import dagger.android.AndroidInjector
import dagger.android.HasAndroidInjector
import info.nightscout.implementation.iob.GlucoseStatusProviderImpl
import org.junit.jupiter.api.Test
import org.mockito.Mock
import org.mockito.Mockito

View file

@ -1,7 +1,7 @@
package info.nightscout.interfaces.pump
package app.aaps.interfaces.pump
import app.aaps.core.main.pump.toHtml
import app.aaps.core.interfaces.pump.PumpEnactResult
import app.aaps.core.main.pump.toHtml
import app.aaps.shared.tests.TestBaseWithProfile
import com.google.common.truth.Truth.assertThat
import dagger.android.AndroidInjector

View file

@ -2,13 +2,13 @@ package info.nightscout.automation.triggers
import app.aaps.core.interfaces.aps.AutosensDataStore
import app.aaps.core.interfaces.receivers.ReceiverStatusStore
import app.aaps.implementation.iob.GlucoseStatusProviderImpl
import app.aaps.shared.tests.TestBaseWithProfile
import dagger.android.AndroidInjector
import dagger.android.HasAndroidInjector
import info.nightscout.automation.AutomationPlugin
import info.nightscout.automation.services.LastLocationDataContainer
import info.nightscout.database.impl.AppRepository
import info.nightscout.implementation.iob.GlucoseStatusProviderImpl
import org.junit.jupiter.api.BeforeEach
import org.mockito.Mock
import org.mockito.Mockito.`when`

View file

@ -17,6 +17,7 @@ import app.aaps.core.interfaces.pump.defs.PumpDescription
import app.aaps.core.interfaces.queue.CommandQueue
import app.aaps.core.interfaces.stats.TddCalculator
import app.aaps.core.interfaces.ui.UiInteraction
import app.aaps.implementation.iob.GlucoseStatusProviderImpl
import app.aaps.shared.tests.TestBaseWithProfile
import com.google.common.truth.Truth.assertThat
import dagger.android.AndroidInjector
@ -27,7 +28,6 @@ import info.nightscout.androidaps.insight.database.InsightDatabaseDao
import info.nightscout.androidaps.insight.database.InsightDbHelper
import info.nightscout.androidaps.plugins.pump.insight.LocalInsightPlugin
import info.nightscout.database.impl.AppRepository
import info.nightscout.implementation.iob.GlucoseStatusProviderImpl
import info.nightscout.plugins.aps.openAPSAMA.OpenAPSAMAPlugin
import info.nightscout.plugins.aps.openAPSSMB.OpenAPSSMBPlugin
import info.nightscout.plugins.aps.openAPSSMBDynamicISF.OpenAPSSMBDynamicISFPlugin

View file

@ -21,6 +21,7 @@ import app.aaps.core.interfaces.utils.DateUtil
import app.aaps.core.interfaces.utils.T
import app.aaps.core.main.constraints.ConstraintObject
import app.aaps.database.entities.GlucoseValue
import app.aaps.implementation.iob.GlucoseStatusProviderImpl
import app.aaps.shared.tests.TestBaseWithProfile
import com.google.common.truth.Truth.assertThat
import dagger.android.AndroidInjector
@ -30,7 +31,6 @@ import info.nightscout.database.impl.transactions.CancelCurrentOfflineEventIfAny
import info.nightscout.database.impl.transactions.InsertAndCancelCurrentOfflineEventTransaction
import info.nightscout.database.impl.transactions.InsertAndCancelCurrentTemporaryTargetTransaction
import info.nightscout.database.impl.transactions.Transaction
import info.nightscout.implementation.iob.GlucoseStatusProviderImpl
import info.nightscout.plugins.R
import info.nightscout.plugins.general.smsCommunicator.otp.OneTimePassword
import info.nightscout.plugins.general.smsCommunicator.otp.OneTimePasswordValidationResult

View file

@ -21,12 +21,12 @@ import app.aaps.core.nssdk.remotemodel.LastModified
import app.aaps.core.utils.receivers.DataWorkerStorage
import app.aaps.database.entities.GlucoseValue
import app.aaps.database.entities.embedments.InterfaceIDs
import app.aaps.implementation.utils.DecimalFormatterImpl
import app.aaps.shared.tests.TestBase
import com.google.common.truth.Truth.assertThat
import dagger.android.AndroidInjector
import dagger.android.HasAndroidInjector
import info.nightscout.database.impl.AppRepository
import info.nightscout.implementation.utils.DecimalFormatterImpl
import info.nightscout.plugins.sync.nsShared.NsIncomingDataProcessor
import info.nightscout.plugins.sync.nsclient.ReceiverDelegate
import info.nightscout.plugins.sync.nsclient.data.NSDeviceStatusHandler

View file

@ -8,6 +8,7 @@ import app.aaps.core.interfaces.queue.CommandQueue
import app.aaps.core.interfaces.resources.ResourceHelper
import app.aaps.core.interfaces.ui.UiInteraction
import app.aaps.core.interfaces.utils.DecimalFormatter
import app.aaps.implementation.utils.DecimalFormatterImpl
import app.aaps.shared.tests.TestBase
import app.aaps.shared.tests.rx.TestAapsSchedulers
import dagger.android.AndroidInjector
@ -15,7 +16,6 @@ import dagger.android.HasAndroidInjector
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.RileyLinkUtil
import info.nightscout.androidaps.plugins.pump.omnipod.eros.history.database.ErosHistoryDatabase
import info.nightscout.androidaps.plugins.pump.omnipod.eros.manager.AapsOmnipodErosManager
import info.nightscout.implementation.utils.DecimalFormatterImpl
import info.nightscout.pump.common.defs.TempBasalPair
import org.joda.time.DateTimeZone
import org.joda.time.tz.UTCProvider

View file

@ -18,12 +18,12 @@ import app.aaps.core.main.profile.ProfileSealed
import app.aaps.core.main.utils.fabric.FabricPrivacy
import app.aaps.database.entities.EffectiveProfileSwitch
import app.aaps.database.entities.embedments.InsulinConfiguration
import app.aaps.implementation.profile.ProfileStoreObject
import app.aaps.implementation.profile.ProfileUtilImpl
import app.aaps.implementation.utils.DecimalFormatterImpl
import app.aaps.shared.impl.utils.DateUtilImpl
import dagger.android.AndroidInjector
import dagger.android.HasAndroidInjector
import info.nightscout.implementation.profile.ProfileStoreObject
import info.nightscout.implementation.profile.ProfileUtilImpl
import info.nightscout.implementation.utils.DecimalFormatterImpl
import org.json.JSONObject
import org.junit.jupiter.api.BeforeEach
import org.mockito.ArgumentMatchers.anyDouble