├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── drawable │ │ │ │ ├── my_border.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── layout │ │ │ │ ├── fragment_main.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── fragment_treatment.xml │ │ │ │ └── fragment_pod.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ ├── com │ │ │ │ └── androidaps │ │ │ │ │ └── dashaps │ │ │ │ │ ├── data │ │ │ │ │ ├── PodUpdateType.java │ │ │ │ │ ├── PodCommandUIType.java │ │ │ │ │ ├── PodStateDto.java │ │ │ │ │ └── Pod.java │ │ │ │ │ ├── ui │ │ │ │ │ ├── command │ │ │ │ │ │ ├── UiStatusType.java │ │ │ │ │ │ ├── ChangeBasalProfileUiCommand.java │ │ │ │ │ │ ├── PodCommandUi.java │ │ │ │ │ │ ├── PodCommandQueueUi.java │ │ │ │ │ │ ├── DeactivatePodUiCommand.java │ │ │ │ │ │ ├── CancelBolusUiCommand.java │ │ │ │ │ │ ├── CancelTBRUiCommand.java │ │ │ │ │ │ ├── ActivatePodUiCommand.java │ │ │ │ │ │ ├── SetTBRUiCommand.java │ │ │ │ │ │ └── SetBolusUiCommand.java │ │ │ │ │ ├── main │ │ │ │ │ │ ├── PageViewModel.java │ │ │ │ │ │ ├── PlaceholderFragment.java │ │ │ │ │ │ └── SectionsPagerAdapter.java │ │ │ │ │ ├── util │ │ │ │ │ │ ├── DashUIUtil.java │ │ │ │ │ │ └── OmnipodConst.java │ │ │ │ │ └── fragments │ │ │ │ │ │ └── treatment │ │ │ │ │ │ └── MainTreatmentFragment.java │ │ │ │ │ ├── enums │ │ │ │ │ ├── PodLifeState.java │ │ │ │ │ ├── ProgramState.java │ │ │ │ │ └── PodState.java │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ ├── MainApp.java │ │ │ │ │ ├── DashAPSUiQueue.java │ │ │ │ │ └── DashAapsService.java │ │ │ └── info │ │ │ │ └── nightscout │ │ │ │ └── androidaps │ │ │ │ ├── plugins │ │ │ │ ├── pump │ │ │ │ │ ├── omnipod_dash │ │ │ │ │ │ ├── util │ │ │ │ │ │ │ └── DashUtil.java │ │ │ │ │ │ ├── ble │ │ │ │ │ │ │ └── BLESettings.java │ │ │ │ │ │ └── comm │ │ │ │ │ │ │ └── OmnipodDashCommunicationManager.java │ │ │ │ │ ├── omnipod │ │ │ │ │ │ └── defs │ │ │ │ │ │ │ ├── OmnipodPodType.java │ │ │ │ │ │ │ ├── PodInitReceiver.java │ │ │ │ │ │ │ ├── OmnipodCommunicationManagerInterface.java │ │ │ │ │ │ │ └── PodInitActionType.java │ │ │ │ │ └── common │ │ │ │ │ │ ├── defs │ │ │ │ │ │ ├── PumpTempBasalType.java │ │ │ │ │ │ ├── PumpStatusType.java │ │ │ │ │ │ ├── PumpCapability.java │ │ │ │ │ │ └── DoseStepSize.java │ │ │ │ │ │ ├── utils │ │ │ │ │ │ ├── ThreadUtil.java │ │ │ │ │ │ ├── StringUtil.java │ │ │ │ │ │ ├── LocationHelper.java │ │ │ │ │ │ ├── CRC.java │ │ │ │ │ │ └── HexDump.java │ │ │ │ │ │ ├── data │ │ │ │ │ │ ├── DoseSettings.java │ │ │ │ │ │ ├── TempBasalPair.java │ │ │ │ │ │ └── PumpStatus.java │ │ │ │ │ │ └── hw │ │ │ │ │ │ └── rileylink │ │ │ │ │ │ └── RileyLinkConst.java │ │ │ │ └── common │ │ │ │ │ └── ManufacturerType.java │ │ │ │ ├── db │ │ │ │ ├── Source.java │ │ │ │ └── CareportalEvent.java │ │ │ │ ├── utils │ │ │ │ ├── Round.java │ │ │ │ ├── SafeParse.java │ │ │ │ ├── MidnightTime.java │ │ │ │ ├── DecimalFormatter.java │ │ │ │ ├── OKDialog.java │ │ │ │ ├── SP.java │ │ │ │ └── FabricPrivacy.java │ │ │ │ ├── data │ │ │ │ └── DetailedBolusInfo.java │ │ │ │ ├── Constants.java │ │ │ │ ├── logging │ │ │ │ └── L.java │ │ │ │ └── interfaces │ │ │ │ └── PumpDescription.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── androidaps │ │ │ └── dashaps │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── androidaps │ │ └── dashaps │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── vcs.xml ├── misc.xml ├── saveactions_settings.xml ├── runConfigurations.xml ├── gradle.xml └── codeStyles │ └── Project.xml ├── .gitignore ├── gradle.properties ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyrozman/DashAAPS/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/java/com/androidaps/dashaps/data/PodUpdateType.java: -------------------------------------------------------------------------------- 1 | package com.androidaps.dashaps.data; 2 | 3 | public enum PodUpdateType { 4 | 5 | BOLUS, 6 | 7 | ; 8 | 9 | } 10 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod_dash/util/DashUtil.java: -------------------------------------------------------------------------------- 1 | package info.nightscout.androidaps.plugins.pump.omnipod_dash.util; 2 | 3 | public class DashUtil { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /app/src/main/java/com/androidaps/dashaps/ui/command/UiStatusType.java: -------------------------------------------------------------------------------- 1 | package com.androidaps.dashaps.ui.command; 2 | 3 | public enum UiStatusType { 4 | CancelEnabled, 5 | StartEnabled, 6 | AllDisabled 7 | } 8 | -------------------------------------------------------------------------------- /app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/defs/OmnipodPodType.java: -------------------------------------------------------------------------------- 1 | package info.nightscout.androidaps.plugins.pump.omnipod.defs; 2 | 3 | public enum OmnipodPodType { 4 | Eros, // 5 | Dash 6 | } 7 | -------------------------------------------------------------------------------- /app/src/main/java/com/androidaps/dashaps/enums/PodLifeState.java: -------------------------------------------------------------------------------- 1 | package com.androidaps.dashaps.enums; 2 | 3 | public enum PodLifeState { 4 | 5 | PodNotAttached, 6 | PodAttached, 7 | 8 | 9 | ; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri May 31 22:20:38 IST 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/java/info/nightscout/androidaps/plugins/pump/common/defs/PumpTempBasalType.java: -------------------------------------------------------------------------------- 1 | package info.nightscout.androidaps.plugins.pump.common.defs; 2 | 3 | /** 4 | * Created by andy on 02/05/2018. 5 | */ 6 | 7 | public enum PumpTempBasalType { 8 | Percent, // 9 | Absolute, 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/defs/PodInitReceiver.java: -------------------------------------------------------------------------------- 1 | package info.nightscout.androidaps.plugins.pump.omnipod.defs; 2 | 3 | public interface PodInitReceiver { 4 | 5 | void returnInitTaskStatus(PodInitActionType podInitActionType, boolean isSuccess, String errorMessage); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #1069C2 4 | #00574B 5 | #D81B60 6 | #62A7DD 7 | #111111 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/java/com/androidaps/dashaps/data/PodCommandUIType.java: -------------------------------------------------------------------------------- 1 | package com.androidaps.dashaps.data; 2 | 3 | public enum PodCommandUIType { 4 | 5 | ActivatePod, 6 | DeactivatePod, 7 | ChangeBasalProfile, 8 | SetTemporaryBasal, 9 | SetBolus, 10 | CancelBolus, 11 | CancelTemporaryBasal, 12 | 13 | 14 | ; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 16dp 7 | 8dp 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/java/com/androidaps/dashaps/ui/command/ChangeBasalProfileUiCommand.java: -------------------------------------------------------------------------------- 1 | package com.androidaps.dashaps.ui.command; 2 | 3 | import com.androidaps.dashaps.data.PodCommandUIType; 4 | 5 | public class ChangeBasalProfileUiCommand extends PodCommandUi { 6 | 7 | @Override 8 | public PodCommandUIType getCommandType() { 9 | return PodCommandUIType.ChangeBasalProfile; 10 | } 11 | 12 | @Override 13 | public void executeCommand() { 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/src/test/java/com/androidaps/dashaps/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.androidaps.dashaps; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.idea/saveactions_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 13 | 15 | -------------------------------------------------------------------------------- /app/src/main/java/info/nightscout/androidaps/plugins/pump/common/defs/PumpStatusType.java: -------------------------------------------------------------------------------- 1 | package info.nightscout.androidaps.plugins.pump.common.defs; 2 | 3 | /** 4 | * Created by andy on 5/12/18. 5 | */ 6 | 7 | public enum PumpStatusType { 8 | Running("normal"), // 9 | Suspended("suspended") // 10 | ; 11 | 12 | private String statusString; 13 | 14 | 15 | PumpStatusType(String statusString) { 16 | this.statusString = statusString; 17 | } 18 | 19 | 20 | public String getStatus() { 21 | return statusString; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/my_border.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/java/info/nightscout/androidaps/plugins/pump/common/utils/ThreadUtil.java: -------------------------------------------------------------------------------- 1 | package info.nightscout.androidaps.plugins.pump.common.utils; 2 | 3 | /** 4 | * Created by geoff on 5/27/16. 5 | */ 6 | public class ThreadUtil { 7 | 8 | public static long getThreadId() { 9 | return Thread.currentThread().getId(); 10 | } 11 | 12 | 13 | public static String getThreadName() { 14 | return Thread.currentThread().getName(); 15 | } 16 | 17 | 18 | public static String sig() { 19 | Thread t = Thread.currentThread(); 20 | return t.getName() + "[" + t.getId() + "]"; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/java/info/nightscout/androidaps/plugins/common/ManufacturerType.java: -------------------------------------------------------------------------------- 1 | package info.nightscout.androidaps.plugins.common; 2 | 3 | public enum ManufacturerType { 4 | 5 | AndroidAPS("AndroidAPS"), 6 | Medtronic("Medtronic"), 7 | Sooil("SOOIL"), 8 | 9 | Tandem("Tandem"), 10 | Insulet("Insulet"), 11 | Animas("Animas"), Cellnovo("Cellnovo"), Roche("Roche"); 12 | 13 | 14 | 15 | private String description; 16 | 17 | ManufacturerType(String description) { 18 | 19 | this.description = description; 20 | } 21 | 22 | public String getDescription() { 23 | return description; 24 | } 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/java/info/nightscout/androidaps/db/Source.java: -------------------------------------------------------------------------------- 1 | package info.nightscout.androidaps.db; 2 | 3 | /** 4 | * Created by mike on 21.05.2017. 5 | */ 6 | 7 | public class Source { 8 | public final static int NONE = 0; 9 | public final static int PUMP = 1; // Pump history 10 | public final static int NIGHTSCOUT = 2; // created in NS 11 | public final static int USER = 3; // created by user or driver not using history 12 | 13 | public static String getString(int source) { 14 | switch (source) { 15 | case PUMP: 16 | return "PUMP"; 17 | case NIGHTSCOUT: 18 | return "NIGHTSCOUT"; 19 | case USER: 20 | return "USER"; 21 | } 22 | return "NONE"; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |