Merge branch 'led-gains-data' into preprod
This commit is contained in:
@@ -16,11 +16,11 @@ android {
|
|||||||
|
|
||||||
// prod - production, preprod - preproduction, quality - qc
|
// prod - production, preprod - preproduction, quality - qc
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "in.sminnovations.hpostesting"
|
applicationId "in.sminnovations.hpostesting.quality"
|
||||||
minSdk 21
|
minSdk 21
|
||||||
targetSdk 34
|
targetSdk 34
|
||||||
versionCode 56
|
versionCode 68
|
||||||
versionName "2.1.56"
|
versionName "2.1.68"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,17 @@ object Constants {
|
|||||||
"HCV-000-3007",
|
"HCV-000-3007",
|
||||||
"HCV-000-3008",
|
"HCV-000-3008",
|
||||||
"HCV-000-3009",
|
"HCV-000-3009",
|
||||||
"HCV-000-3010"
|
"HCV-000-3010",
|
||||||
|
"HCV-000-3011",
|
||||||
|
"HCV-000-3012",
|
||||||
|
"HCV-000-3013",
|
||||||
|
"HCV-000-3014",
|
||||||
|
"HCV-000-3015",
|
||||||
|
"HCV-000-3016",
|
||||||
|
"HCV-000-3017",
|
||||||
|
"HCV-000-3018",
|
||||||
|
"HCV-000-3019",
|
||||||
|
"HCV-000-3020"
|
||||||
)
|
)
|
||||||
|
|
||||||
const val password = "SMI@12345"
|
const val password = "SMI@12345"
|
||||||
@@ -100,7 +110,23 @@ object Constants {
|
|||||||
const val TEST_STATUS_CODE_SAMPLE_COMPLETED = 9.0
|
const val TEST_STATUS_CODE_SAMPLE_COMPLETED = 9.0
|
||||||
const val TEST_STATUS_CODE_SAMPLE_PRINT_STARTED = 10.0
|
const val TEST_STATUS_CODE_SAMPLE_PRINT_STARTED = 10.0
|
||||||
const val TEST_STATUS_CODE_SAMPLE_PRINT_COMPLETED = 11.0
|
const val TEST_STATUS_CODE_SAMPLE_PRINT_COMPLETED = 11.0
|
||||||
const val TEST_STATUS_CODE_TEST_COMPLETED = 12.0
|
const val TEST_STATUS_CODE_FIRST_GAIN_STARTED = 12.0
|
||||||
|
const val TEST_STATUS_CODE_FIRST_GAIN_COMPLETED = 13.0
|
||||||
|
const val TEST_STATUS_CODE_FIRST_GAIN_PRINT_STARTED = 14.0
|
||||||
|
const val TEST_STATUS_CODE_FIRST_GAIN_PRINT_COMPLETED = 15.0
|
||||||
|
const val TEST_STATUS_CODE_SECOND_GAIN_STARTED = 16.0
|
||||||
|
const val TEST_STATUS_CODE_SECOND_GAIN_COMPLETED = 17.0
|
||||||
|
const val TEST_STATUS_CODE_SECOND_GAIN_PRINT_STARTED = 18.0
|
||||||
|
const val TEST_STATUS_CODE_SECOND_GAIN_PRINT_COMPLETED = 19.0
|
||||||
|
const val TEST_STATUS_CODE_THIRD_GAIN_STARTED = 20.0
|
||||||
|
const val TEST_STATUS_CODE_THIRD_GAIN_COMPLETED = 21.0
|
||||||
|
const val TEST_STATUS_CODE_THIRD_GAIN_PRINT_STARTED = 22.0
|
||||||
|
const val TEST_STATUS_CODE_THIRD_GAIN_PRINT_COMPLETED = 23.0
|
||||||
|
const val TEST_STATUS_CODE_FORTH_GAIN_STARTED = 24.0
|
||||||
|
const val TEST_STATUS_CODE_FORTH_GAIN_COMPLETED = 25.0
|
||||||
|
const val TEST_STATUS_CODE_FORTH_GAIN_PRINT_STARTED = 26.0
|
||||||
|
const val TEST_STATUS_CODE_FORTH_GAIN_PRINT_COMPLETED = 27.0
|
||||||
|
const val TEST_STATUS_CODE_TEST_COMPLETED = 30.0
|
||||||
|
|
||||||
val DEVICE_CONFIGURATION: Map<String, List<List<Double>>> = mapOf<String, List<List<Double>>>(
|
val DEVICE_CONFIGURATION: Map<String, List<List<Double>>> = mapOf<String, List<List<Double>>>(
|
||||||
"HCV-000-3001" to listOf(
|
"HCV-000-3001" to listOf(
|
||||||
@@ -128,21 +154,21 @@ object Constants {
|
|||||||
listOf(1.0, 0.0) // LED4
|
listOf(1.0, 0.0) // LED4
|
||||||
),
|
),
|
||||||
"HCV-000-3005" to listOf(
|
"HCV-000-3005" to listOf(
|
||||||
listOf(1.7272, -1.1977), // LED1, 435nm
|
listOf(1.3801, -0.372), // LED1, 435nm
|
||||||
listOf(0.581462456, -0.58502), // LED2, 415nm
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
listOf(0.2304, -0.0145), // LED3, 555nm
|
listOf(0.4565, -0.0371), // LED3, 555nm
|
||||||
listOf(1.0, 0.0) // LED4
|
listOf(1.0, 0.0) // LED4
|
||||||
),
|
),
|
||||||
"HCV-000-3006" to listOf(
|
"HCV-000-3006" to listOf(
|
||||||
listOf(1.7272, -1.1977), // LED1, 435nm
|
listOf(1.3801, -0.372), // LED1, 435nm
|
||||||
listOf(0.581462456, -0.58502), // LED2, 415nm
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
listOf(0.2304, -0.0145), // LED3, 555nm
|
listOf(0.4565, -0.0371), // LED3, 555nm
|
||||||
listOf(1.0, 0.0) // LED4
|
listOf(1.0, 0.0) // LED4
|
||||||
),
|
),
|
||||||
"HCV-000-3007" to listOf(
|
"HCV-000-3007" to listOf(
|
||||||
listOf(1.7272, -1.1977), // LED1, 435nm
|
listOf(1.8445, -0.8213), // LED1, 435nm
|
||||||
listOf(0.581462456, -0.58502), // LED2, 415nm
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
listOf(0.2304, -0.0145), // LED3, 555nm
|
listOf(0.4613, -0.0831), // LED3, 555nm
|
||||||
listOf(1.0, 0.0) // LED4
|
listOf(1.0, 0.0) // LED4
|
||||||
),
|
),
|
||||||
"HCV-000-3008" to listOf(
|
"HCV-000-3008" to listOf(
|
||||||
@@ -163,6 +189,66 @@ object Constants {
|
|||||||
listOf(0.2304, -0.0145), // LED3, 555nm
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
listOf(1.0, 0.0) // LED4
|
listOf(1.0, 0.0) // LED4
|
||||||
),
|
),
|
||||||
|
"HCV-000-3011" to listOf(
|
||||||
|
listOf(1.7272, -1.1977), // LED1, 435nm
|
||||||
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
|
listOf(1.0, 0.0) // LED4
|
||||||
|
),
|
||||||
|
"HCV-000-3012" to listOf(
|
||||||
|
listOf(1.7272, -1.1977), // LED1, 435nm
|
||||||
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
|
listOf(1.0, 0.0) // LED4
|
||||||
|
),
|
||||||
|
"HCV-000-3013" to listOf(
|
||||||
|
listOf(1.7272, -1.1977), // LED1, 435nm
|
||||||
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
|
listOf(1.0, 0.0) // LED4
|
||||||
|
),
|
||||||
|
"HCV-000-3014" to listOf(
|
||||||
|
listOf(1.7272, -1.1977), // LED1, 435nm
|
||||||
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
|
listOf(1.0, 0.0) // LED4
|
||||||
|
),
|
||||||
|
"HCV-000-3015" to listOf(
|
||||||
|
listOf(1.7272, -1.1977), // LED1, 435nm
|
||||||
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
|
listOf(1.0, 0.0) // LED4
|
||||||
|
),
|
||||||
|
"HCV-000-3016" to listOf(
|
||||||
|
listOf(1.7272, -1.1977), // LED1, 435nm
|
||||||
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
|
listOf(1.0, 0.0) // LED4
|
||||||
|
),
|
||||||
|
"HCV-000-3017" to listOf(
|
||||||
|
listOf(1.7272, -1.1977), // LED1, 435nm
|
||||||
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
|
listOf(1.0, 0.0) // LED4
|
||||||
|
),
|
||||||
|
"HCV-000-3018" to listOf(
|
||||||
|
listOf(1.7272, -1.1977), // LED1, 435nm
|
||||||
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
|
listOf(1.0, 0.0) // LED4
|
||||||
|
),
|
||||||
|
"HCV-000-3019" to listOf(
|
||||||
|
listOf(1.7272, -1.1977), // LED1, 435nm
|
||||||
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
|
listOf(1.0, 0.0) // LED4
|
||||||
|
),
|
||||||
|
"HCV-000-3020" to listOf(
|
||||||
|
listOf(1.7272, -1.1977), // LED1, 435nm
|
||||||
|
listOf(0.581462456, -0.58502), // LED2, 415nm
|
||||||
|
listOf(0.2304, -0.0145), // LED3, 555nm
|
||||||
|
listOf(1.0, 0.0) // LED4
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
const val INCUBATION_TIME_MIN = 0
|
const val INCUBATION_TIME_MIN = 0
|
||||||
@@ -229,6 +315,66 @@ object Constants {
|
|||||||
listOf(24500, 26250),
|
listOf(24500, 26250),
|
||||||
listOf(24500, 26250),
|
listOf(24500, 26250),
|
||||||
listOf(24500, 26250),
|
listOf(24500, 26250),
|
||||||
)
|
),
|
||||||
|
"HCV-000-3011" to listOf(
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
),
|
||||||
|
"HCV-000-3012" to listOf(
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
),
|
||||||
|
"HCV-000-3013" to listOf(
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
),
|
||||||
|
"HCV-000-3014" to listOf(
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
),
|
||||||
|
"HCV-000-3015" to listOf(
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
),
|
||||||
|
"HCV-000-3016" to listOf(
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
),
|
||||||
|
"HCV-000-3017" to listOf(
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
),
|
||||||
|
"HCV-000-3018" to listOf(
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
),
|
||||||
|
"HCV-000-3019" to listOf(
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
),
|
||||||
|
"HCV-000-3020" to listOf(
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
listOf(24500, 26250),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -4,6 +4,10 @@ enum class HemoCubeCommands(val command: String) {
|
|||||||
startBuffer("B\r"),
|
startBuffer("B\r"),
|
||||||
runDiagnostics("D\r"),
|
runDiagnostics("D\r"),
|
||||||
startSample("S\r"),
|
startSample("S\r"),
|
||||||
getSample("P\r"),
|
PRINT_COMMAND("P\r"),
|
||||||
getDeviceId("I\r"),
|
getDeviceId("I\r"),
|
||||||
|
FIRST_GAIN_COMMAND("T\r"),
|
||||||
|
SECOND_GAIN_COMMAND("U\r"),
|
||||||
|
THIRD_GAIN_COMMAND("V\r"),
|
||||||
|
FORTH_GAIN_COMMAND("W\r"),
|
||||||
}
|
}
|
||||||
@@ -8,7 +8,7 @@ import com.example.hpostesting.data.model.patient.DeviceData
|
|||||||
import com.example.hpostesting.data.model.patient.HemoCubeTestData
|
import com.example.hpostesting.data.model.patient.HemoCubeTestData
|
||||||
import com.example.hpostesting.data.model.patient.UserData
|
import com.example.hpostesting.data.model.patient.UserData
|
||||||
|
|
||||||
@Database(entities = [UserData::class, HemoCubeTestData::class, DeviceData::class], version = 13, exportSchema = false)
|
@Database(entities = [UserData::class, HemoCubeTestData::class, DeviceData::class], version = 17, exportSchema = false)
|
||||||
@TypeConverters(Converters::class)
|
@TypeConverters(Converters::class)
|
||||||
abstract class MyDatabase : RoomDatabase() {
|
abstract class MyDatabase : RoomDatabase() {
|
||||||
abstract fun userDao(): UserDao
|
abstract fun userDao(): UserDao
|
||||||
|
|||||||
@@ -43,12 +43,31 @@ data class HemoCubeTestData(
|
|||||||
var abs2: Double? = null,
|
var abs2: Double? = null,
|
||||||
var abs3: Double? = null,
|
var abs3: Double? = null,
|
||||||
var abs4: Double? = null,
|
var abs4: Double? = null,
|
||||||
|
var led1Gain1: Double? = null,
|
||||||
|
var led2Gain1: Double? = null,
|
||||||
|
var led3Gain1: Double? = null,
|
||||||
|
var led4Gain1: Double? = null,
|
||||||
|
var led1Gain2: Double? = null,
|
||||||
|
var led2Gain2: Double? = null,
|
||||||
|
var led3Gain2: Double? = null,
|
||||||
|
var led4Gain2: Double? = null,
|
||||||
|
var led1Gain3: Double? = null,
|
||||||
|
var led2Gain3: Double? = null,
|
||||||
|
var led3Gain3: Double? = null,
|
||||||
|
var led4Gain3: Double? = null,
|
||||||
|
var led1Gain4: Double? = null,
|
||||||
|
var led2Gain4: Double? = null,
|
||||||
|
var led3Gain4: Double? = null,
|
||||||
|
var led4Gain4: Double? = null,
|
||||||
var deviceRatio: Double? = null,
|
var deviceRatio: Double? = null,
|
||||||
var calculatedRatio: Double? = null,
|
var calculatedRatio: Double? = null,
|
||||||
var predictedDenovixRatio: Double? = null,
|
var predictedDenovixRatio: Double? = null,
|
||||||
|
var slopeRatio: Double? = null,
|
||||||
var coefficients: String? = "",
|
var coefficients: String? = "",
|
||||||
var classificationResult: String = "",
|
var classificationResult: String = "",
|
||||||
var prdClassification: String = "",
|
var prdClassification: String = "",
|
||||||
|
var deviceRatioClass: String = "",
|
||||||
|
var slopeRatioClass: String = "",
|
||||||
var errorMessages: String = "",
|
var errorMessages: String = "",
|
||||||
var batteryLevel: String = "",
|
var batteryLevel: String = "",
|
||||||
var batteryCapacity: String = "",
|
var batteryCapacity: String = "",
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package com.example.hpostesting.presentation.buffercheck
|
package com.example.hpostesting.presentation.buffercheck
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
@@ -478,7 +477,7 @@ class HemoCubeBufferCheckFragment : Fragment() {
|
|||||||
|
|
||||||
private fun fetchResult() {
|
private fun fetchResult() {
|
||||||
|
|
||||||
(activity as HemocubeBufferCheckActivity).mService.sendAndListenToHemoCube(HemoCubeCommands.getSample,
|
(activity as HemocubeBufferCheckActivity).mService.sendAndListenToHemoCube(HemoCubeCommands.PRINT_COMMAND,
|
||||||
object : UsbServiceListener {
|
object : UsbServiceListener {
|
||||||
override fun onUsbRead(data: ByteArray?) {}
|
override fun onUsbRead(data: ByteArray?) {}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ import com.google.firebase.ktx.Firebase
|
|||||||
import com.google.firebase.perf.ktx.performance
|
import com.google.firebase.perf.ktx.performance
|
||||||
import `in`.sminnovations.hpostesting.R
|
import `in`.sminnovations.hpostesting.R
|
||||||
import `in`.sminnovations.hpostesting.databinding.FragmentHemoCubeReferenceBinding
|
import `in`.sminnovations.hpostesting.databinding.FragmentHemoCubeReferenceBinding
|
||||||
|
import kotlin.math.abs
|
||||||
import kotlin.math.log10
|
import kotlin.math.log10
|
||||||
|
import kotlin.math.round
|
||||||
|
|
||||||
class HemoCubeFragment : Fragment() {
|
class HemoCubeFragment : Fragment() {
|
||||||
|
|
||||||
@@ -37,6 +39,7 @@ class HemoCubeFragment : Fragment() {
|
|||||||
private var isOnline = false
|
private var isOnline = false
|
||||||
private var currentDeviceData: DeviceData? = null
|
private var currentDeviceData: DeviceData? = null
|
||||||
private var resultData: String = ""
|
private var resultData: String = ""
|
||||||
|
private var currentResultData: String = ""
|
||||||
private var isUsingExistingBuffer = false
|
private var isUsingExistingBuffer = false
|
||||||
private var isTestOngoing = false
|
private var isTestOngoing = false
|
||||||
private var startListening = MutableLiveData<Boolean>(false)
|
private var startListening = MutableLiveData<Boolean>(false)
|
||||||
@@ -257,6 +260,7 @@ class HemoCubeFragment : Fragment() {
|
|||||||
override fun onUsbRead(data: ByteArray?) {
|
override fun onUsbRead(data: ByteArray?) {
|
||||||
data?.let {
|
data?.let {
|
||||||
val stringData = String(it)
|
val stringData = String(it)
|
||||||
|
fullReadOutput.append(stringData)
|
||||||
handleUsbData(stringData)
|
handleUsbData(stringData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -296,7 +300,8 @@ class HemoCubeFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resultData += stringData
|
resultData += stringData
|
||||||
hemoCubeViewModel.deviceMessages.postValue(resultData)
|
currentResultData += stringData
|
||||||
|
hemoCubeViewModel.deviceMessages.postValue(currentResultData)
|
||||||
|
|
||||||
when {
|
when {
|
||||||
resultData.contains("SNE") && this.testStatusCode < Constants.TEST_STATUS_CODE_CONFIG_COMPLETED -> {
|
resultData.contains("SNE") && this.testStatusCode < Constants.TEST_STATUS_CODE_CONFIG_COMPLETED -> {
|
||||||
@@ -333,7 +338,7 @@ class HemoCubeFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resultData.contains("#SS") && this.testStatusCode < Constants.TEST_STATUS_CODE_SAMPLE_STARTED -> {
|
resultData.contains("#SS1") && this.testStatusCode < Constants.TEST_STATUS_CODE_SAMPLE_STARTED -> {
|
||||||
this.testStatusCode = Constants.TEST_STATUS_CODE_SAMPLE_STARTED
|
this.testStatusCode = Constants.TEST_STATUS_CODE_SAMPLE_STARTED
|
||||||
activity?.runOnUiThread {
|
activity?.runOnUiThread {
|
||||||
binding.tvSubtitle4.text = getString(R.string.sample_started)
|
binding.tvSubtitle4.text = getString(R.string.sample_started)
|
||||||
@@ -341,11 +346,12 @@ class HemoCubeFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resultData.contains("#SC") && this.testStatusCode < Constants.TEST_STATUS_CODE_SAMPLE_COMPLETED -> {
|
resultData.contains("#SC1") && this.testStatusCode < Constants.TEST_STATUS_CODE_SAMPLE_COMPLETED -> {
|
||||||
this.testStatusCode = Constants.TEST_STATUS_CODE_SAMPLE_COMPLETED
|
this.testStatusCode = Constants.TEST_STATUS_CODE_SAMPLE_COMPLETED
|
||||||
hemoCubeViewModel.messages.postValue(
|
hemoCubeViewModel.messages.postValue(
|
||||||
getString(R.string.sample_completed) + "\n" + getString(R.string.gathering_data))
|
getString(R.string.sample_completed) + "\n" + getString(R.string.gathering_data))
|
||||||
fetchResult()
|
fetchResult()
|
||||||
|
currentResultData = ""
|
||||||
testingTrace.stop()
|
testingTrace.stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -355,6 +361,39 @@ class HemoCubeFragment : Fragment() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currentResultData.contains("#SS2") && this.testStatusCode < Constants.TEST_STATUS_CODE_FIRST_GAIN_STARTED -> {
|
||||||
|
this.testStatusCode = Constants.TEST_STATUS_CODE_FIRST_GAIN_STARTED
|
||||||
|
hemoCubeViewModel.messages.postValue("1.3X Gain Started")
|
||||||
|
}
|
||||||
|
|
||||||
|
currentResultData.contains("#SC2") && this.testStatusCode < Constants.TEST_STATUS_CODE_FIRST_GAIN_COMPLETED -> {
|
||||||
|
this.testStatusCode = Constants.TEST_STATUS_CODE_FIRST_GAIN_COMPLETED
|
||||||
|
hemoCubeViewModel.messages.postValue("1.3X Gain Completed")
|
||||||
|
fetchResult()
|
||||||
|
}
|
||||||
|
|
||||||
|
currentResultData.contains("#SS3") && this.testStatusCode < Constants.TEST_STATUS_CODE_SECOND_GAIN_STARTED -> {
|
||||||
|
this.testStatusCode = Constants.TEST_STATUS_CODE_SECOND_GAIN_STARTED
|
||||||
|
hemoCubeViewModel.messages.postValue("2X Gain Started")
|
||||||
|
}
|
||||||
|
|
||||||
|
currentResultData.contains("#SC3") && this.testStatusCode < Constants.TEST_STATUS_CODE_SECOND_GAIN_COMPLETED -> {
|
||||||
|
this.testStatusCode = Constants.TEST_STATUS_CODE_SECOND_GAIN_COMPLETED
|
||||||
|
hemoCubeViewModel.messages.postValue("2X Gain Completed")
|
||||||
|
fetchResult()
|
||||||
|
}
|
||||||
|
|
||||||
|
currentResultData.contains("#SS5") && this.testStatusCode < Constants.TEST_STATUS_CODE_FORTH_GAIN_STARTED -> {
|
||||||
|
this.testStatusCode = Constants.TEST_STATUS_CODE_FORTH_GAIN_STARTED
|
||||||
|
hemoCubeViewModel.messages.postValue("7.6X Gain Started")
|
||||||
|
}
|
||||||
|
|
||||||
|
currentResultData.contains("#SC5") && this.testStatusCode < Constants.TEST_STATUS_CODE_FORTH_GAIN_COMPLETED -> {
|
||||||
|
this.testStatusCode = Constants.TEST_STATUS_CODE_FORTH_GAIN_COMPLETED
|
||||||
|
hemoCubeViewModel.messages.postValue("7.6X Gain Completed")
|
||||||
|
fetchResult()
|
||||||
|
}
|
||||||
|
|
||||||
resultData.contains("REND") && this.testStatusCode < Constants.TEST_STATUS_CODE_SAMPLE_PRINT_COMPLETED -> {
|
resultData.contains("REND") && this.testStatusCode < Constants.TEST_STATUS_CODE_SAMPLE_PRINT_COMPLETED -> {
|
||||||
this.testStatusCode = Constants.TEST_STATUS_CODE_SAMPLE_PRINT_COMPLETED
|
this.testStatusCode = Constants.TEST_STATUS_CODE_SAMPLE_PRINT_COMPLETED
|
||||||
hemoCubeViewModel.messages.postValue(
|
hemoCubeViewModel.messages.postValue(
|
||||||
@@ -397,6 +436,60 @@ class HemoCubeFragment : Fragment() {
|
|||||||
led4SampleForDevice =
|
led4SampleForDevice =
|
||||||
resultLines[8].split(' ')[1].split('\r')[0].trim().toDoubleOrNull()!!
|
resultLines[8].split(' ')[1].split('\r')[0].trim().toDoubleOrNull()!!
|
||||||
processResult()
|
processResult()
|
||||||
|
sendFirstGainCommand()
|
||||||
|
currentResultData = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
currentResultData.contains("REND") && this.testStatusCode >= Constants.TEST_STATUS_CODE_FIRST_GAIN_COMPLETED && this.testStatusCode < Constants.TEST_STATUS_CODE_FIRST_GAIN_PRINT_COMPLETED -> {
|
||||||
|
this.testStatusCode = Constants.TEST_STATUS_CODE_FIRST_GAIN_PRINT_COMPLETED
|
||||||
|
hemoCubeViewModel.messages.postValue("1.3X gain data gathered")
|
||||||
|
|
||||||
|
val resultLines = currentResultData.split("\\s+(?=LB|LS)".toRegex())
|
||||||
|
DataHolder.hemoCubeTestData?.apply {
|
||||||
|
led1Gain1 = resultLines[5].split(' ')[1].trim().toDoubleOrNull()!!
|
||||||
|
led2Gain1 = resultLines[6].split(' ')[1].trim().toDoubleOrNull()!!
|
||||||
|
led3Gain1 = resultLines[7].split(' ')[1].trim().toDoubleOrNull()!!
|
||||||
|
led4Gain1 = resultLines[8].split(' ')[1].split('\r')[0].trim().toDoubleOrNull()!!
|
||||||
|
}
|
||||||
|
|
||||||
|
sendSecondGainCommand()
|
||||||
|
currentResultData = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
currentResultData.contains("REND") && this.testStatusCode >= Constants.TEST_STATUS_CODE_FIRST_GAIN_PRINT_COMPLETED && this.testStatusCode < Constants.TEST_STATUS_CODE_SECOND_GAIN_PRINT_COMPLETED -> {
|
||||||
|
this.testStatusCode = Constants.TEST_STATUS_CODE_SECOND_GAIN_PRINT_COMPLETED
|
||||||
|
hemoCubeViewModel.messages.postValue("2X gain data gathered")
|
||||||
|
|
||||||
|
val resultLines = currentResultData.split("\\s+(?=LB|LS)".toRegex())
|
||||||
|
DataHolder.hemoCubeTestData?.apply {
|
||||||
|
led1Gain2 = resultLines[5].split(' ')[1].trim().toDoubleOrNull()!!
|
||||||
|
led2Gain2 = resultLines[6].split(' ')[1].trim().toDoubleOrNull()!!
|
||||||
|
led3Gain2 = resultLines[7].split(' ')[1].trim().toDoubleOrNull()!!
|
||||||
|
led4Gain2 = resultLines[8].split(' ')[1].split('\r')[0].trim().toDoubleOrNull()!!
|
||||||
|
}
|
||||||
|
|
||||||
|
sendForthGainCommand()
|
||||||
|
currentResultData = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
currentResultData.contains("REND") && this.testStatusCode >= Constants.TEST_STATUS_CODE_SECOND_GAIN_PRINT_COMPLETED && this.testStatusCode < Constants.TEST_STATUS_CODE_FORTH_GAIN_PRINT_COMPLETED -> {
|
||||||
|
this.testStatusCode = Constants.TEST_STATUS_CODE_FORTH_GAIN_PRINT_COMPLETED
|
||||||
|
hemoCubeViewModel.messages.postValue("7.6X gain data gathered")
|
||||||
|
|
||||||
|
val resultLines = currentResultData.split("\\s+(?=LB|LS)".toRegex())
|
||||||
|
DataHolder.hemoCubeTestData?.apply {
|
||||||
|
led1Gain4 = resultLines[5].split(' ')[1].trim().toDoubleOrNull()!!
|
||||||
|
led2Gain4 = resultLines[6].split(' ')[1].trim().toDoubleOrNull()!!
|
||||||
|
led3Gain4 = resultLines[7].split(' ')[1].trim().toDoubleOrNull()!!
|
||||||
|
led4Gain4 = resultLines[8].split(' ')[1].split('\r')[0].trim().toDoubleOrNull()!!
|
||||||
|
}
|
||||||
|
|
||||||
|
activity?.runOnUiThread {
|
||||||
|
binding.btnSubmit.visibility = View.VISIBLE
|
||||||
|
binding.btnSubmit.isEnabled = true
|
||||||
|
binding.btnSubmit.isClickable = true
|
||||||
|
binding.clParent.setBackgroundColor(Color.parseColor("#edfffd"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -484,8 +577,6 @@ class HemoCubeFragment : Fragment() {
|
|||||||
binding.errorMessage.text =
|
binding.errorMessage.text =
|
||||||
getString(R.string.error_improper_buffer_high)
|
getString(R.string.error_improper_buffer_high)
|
||||||
binding.errorMessage.visibility = View.VISIBLE
|
binding.errorMessage.visibility = View.VISIBLE
|
||||||
binding.btnSubmit.isEnabled = true
|
|
||||||
binding.btnSubmit.isClickable = true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -507,6 +598,10 @@ class HemoCubeFragment : Fragment() {
|
|||||||
|
|
||||||
_predictedDenovixRatio = fittedAbs3.div(fittedAbs1)
|
_predictedDenovixRatio = fittedAbs3.div(fittedAbs1)
|
||||||
|
|
||||||
|
val slope = (led1Average - led2Average) / (435 - 415)
|
||||||
|
val _slopeRatio = abs(led3Average / slope)
|
||||||
|
val slopeClass = slopeRatioClassification(_slopeRatio)
|
||||||
|
|
||||||
if (fittedAbs1 <= fittedAbs2) {
|
if (fittedAbs1 <= fittedAbs2) {
|
||||||
validationError = true
|
validationError = true
|
||||||
allErrorMessages += "Error: Invalid Test. Problem with de-oxygenation" + "\n"
|
allErrorMessages += "Error: Invalid Test. Problem with de-oxygenation" + "\n"
|
||||||
@@ -524,6 +619,14 @@ class HemoCubeFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((led1Average < 0.7 || led2Average < 0.7 || led3Average < 0.7 || led4Average < 0.7) && _slopeRatio > 35.0) {
|
||||||
|
validationError = true
|
||||||
|
activity?.runOnUiThread {
|
||||||
|
binding.errorMessage.text = "Severely Low Hb. Repeat test with 12 ul in 2 ml Buffer"
|
||||||
|
binding.errorMessage.visibility = View.VISIBLE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (fittedAbs3 < 0.1) {
|
if (fittedAbs3 < 0.1) {
|
||||||
validationError = true
|
validationError = true
|
||||||
allErrorMessages += "Error: Low Hb. Repeat test" + "\n"
|
allErrorMessages += "Error: Low Hb. Repeat test" + "\n"
|
||||||
@@ -555,11 +658,14 @@ class HemoCubeFragment : Fragment() {
|
|||||||
this.deviceRatio = deviceRatio
|
this.deviceRatio = deviceRatio
|
||||||
this.calculatedRatio = calculateRatio(deviceRatio)
|
this.calculatedRatio = calculateRatio(deviceRatio)
|
||||||
this.predictedDenovixRatio = _predictedDenovixRatio
|
this.predictedDenovixRatio = _predictedDenovixRatio
|
||||||
|
this.slopeRatio = _slopeRatio
|
||||||
this.coefficients = currentDeviceData?.coefficients?.get(0)
|
this.coefficients = currentDeviceData?.coefficients?.get(0)
|
||||||
.toString() + ", " + currentDeviceData?.coefficients?.get(1).toString()
|
.toString() + ", " + currentDeviceData?.coefficients?.get(1).toString()
|
||||||
this.classificationResult = findResult(calculatedRatio)
|
this.classificationResult = findResult(calculatedRatio)
|
||||||
this.prdClassification = absorbanceBasedClassification(predictedDenovixRatio)
|
this.prdClassification = absorbanceBasedClassification(predictedDenovixRatio)
|
||||||
hemoCubeViewModel.messages.postValue(this.prdClassification)
|
this.deviceRatioClass = deviceRatioClassification(deviceRatio)
|
||||||
|
this.slopeRatioClass = slopeClass
|
||||||
|
hemoCubeViewModel.messages.postValue("Slope Ratio: ${round(slopeRatio!!)},\n Slope Class: ${this.slopeRatioClass}\n")
|
||||||
this.errorMessages = allErrorMessages
|
this.errorMessages = allErrorMessages
|
||||||
this.resultData = deviceLog
|
this.resultData = deviceLog
|
||||||
this.batteryLevel = hemoCubeViewModel.getBatteryLevel().toString()
|
this.batteryLevel = hemoCubeViewModel.getBatteryLevel().toString()
|
||||||
@@ -583,12 +689,12 @@ class HemoCubeFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if (!validationError) {
|
// if (!validationError) {
|
||||||
activity?.runOnUiThread {
|
// activity?.runOnUiThread {
|
||||||
binding.btnSubmit.visibility = View.VISIBLE
|
// binding.btnSubmit.visibility = View.VISIBLE
|
||||||
binding.btnSubmit.isEnabled = true
|
// binding.btnSubmit.isEnabled = true
|
||||||
binding.btnSubmit.isClickable = true
|
// binding.btnSubmit.isClickable = true
|
||||||
binding.clParent.setBackgroundColor(Color.parseColor("#edfffd"))
|
// binding.clParent.setBackgroundColor(Color.parseColor("#edfffd"))
|
||||||
}
|
// }
|
||||||
// }
|
// }
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
@@ -629,6 +735,56 @@ class HemoCubeFragment : Fragment() {
|
|||||||
return getString(R.string.invalid)
|
return getString(R.string.invalid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun deviceRatioClassification(ratio: Double?): String {
|
||||||
|
try {
|
||||||
|
hemoCubeViewModel.messages.postValue("result classification")
|
||||||
|
if (ratio != null) {
|
||||||
|
if (ratio in 0.0..0.4)
|
||||||
|
return getString(R.string.normal)
|
||||||
|
if (ratio in 0.4..0.45)
|
||||||
|
return getString(R.string.negative_borderline)
|
||||||
|
if (ratio in 0.45..0.55)
|
||||||
|
return getString(R.string.sickle_cell_trait)
|
||||||
|
if (ratio in 0.55..0.575)
|
||||||
|
return getString(R.string.positive_for_sickle_cell)
|
||||||
|
if (ratio in 0.09..1.0)
|
||||||
|
return getString(R.string.sickle_cell_disease)
|
||||||
|
} else {
|
||||||
|
return getString(R.string.invalid)
|
||||||
|
}
|
||||||
|
} catch (e: Exception) {
|
||||||
|
showToast(R.string.error_classification)
|
||||||
|
Firebase.crashlytics.recordException(e)
|
||||||
|
return getString(R.string.error)
|
||||||
|
}
|
||||||
|
return getString(R.string.invalid)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun slopeRatioClassification(ratio: Double?): String {
|
||||||
|
try {
|
||||||
|
hemoCubeViewModel.messages.postValue("result classification")
|
||||||
|
if (ratio != null) {
|
||||||
|
if (ratio in 0.0..30.0)
|
||||||
|
return getString(R.string.normal)
|
||||||
|
if (ratio in 30.0..35.0)
|
||||||
|
return getString(R.string.negative_borderline)
|
||||||
|
if (ratio in 35.0..50.0)
|
||||||
|
return getString(R.string.sickle_cell_trait)
|
||||||
|
if (ratio in 50.0..60.0)
|
||||||
|
return getString(R.string.positive_for_sickle_cell)
|
||||||
|
if (ratio > 60.0)
|
||||||
|
return getString(R.string.sickle_cell_disease)
|
||||||
|
} else {
|
||||||
|
return getString(R.string.invalid)
|
||||||
|
}
|
||||||
|
} catch (e: Exception) {
|
||||||
|
showToast(R.string.error_classification)
|
||||||
|
Firebase.crashlytics.recordException(e)
|
||||||
|
return getString(R.string.error)
|
||||||
|
}
|
||||||
|
return getString(R.string.invalid)
|
||||||
|
}
|
||||||
|
|
||||||
private fun absorbanceBasedClassification(predictedDenovixRatio: Double?): String {
|
private fun absorbanceBasedClassification(predictedDenovixRatio: Double?): String {
|
||||||
try {
|
try {
|
||||||
hemoCubeViewModel.messages.postValue("result classification")
|
hemoCubeViewModel.messages.postValue("result classification")
|
||||||
@@ -689,10 +845,62 @@ class HemoCubeFragment : Fragment() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun sendFirstGainCommand() {
|
||||||
|
hemoCubeViewModel.progressBar.postValue(true)
|
||||||
|
|
||||||
|
(activity as HemocubeActivity).mService.sendAndListenToHemoCube(HemoCubeCommands.FIRST_GAIN_COMMAND,
|
||||||
|
object : UsbServiceListener {
|
||||||
|
override fun onUsbRead(data: ByteArray?) {}
|
||||||
|
|
||||||
|
override fun onUsbError(e: Exception?) {
|
||||||
|
hemoCubeViewModel.progressBar.postValue(false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun sendSecondGainCommand() {
|
||||||
|
hemoCubeViewModel.progressBar.postValue(true)
|
||||||
|
|
||||||
|
(activity as HemocubeActivity).mService.sendAndListenToHemoCube(HemoCubeCommands.SECOND_GAIN_COMMAND,
|
||||||
|
object : UsbServiceListener {
|
||||||
|
override fun onUsbRead(data: ByteArray?) {}
|
||||||
|
|
||||||
|
override fun onUsbError(e: Exception?) {
|
||||||
|
hemoCubeViewModel.progressBar.postValue(false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun sendThirdGainCommand() {
|
||||||
|
hemoCubeViewModel.progressBar.postValue(true)
|
||||||
|
|
||||||
|
(activity as HemocubeActivity).mService.sendAndListenToHemoCube(HemoCubeCommands.THIRD_GAIN_COMMAND,
|
||||||
|
object : UsbServiceListener {
|
||||||
|
override fun onUsbRead(data: ByteArray?) {}
|
||||||
|
|
||||||
|
override fun onUsbError(e: Exception?) {
|
||||||
|
hemoCubeViewModel.progressBar.postValue(false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun sendForthGainCommand() {
|
||||||
|
hemoCubeViewModel.progressBar.postValue(true)
|
||||||
|
|
||||||
|
(activity as HemocubeActivity).mService.sendAndListenToHemoCube(HemoCubeCommands.FORTH_GAIN_COMMAND,
|
||||||
|
object : UsbServiceListener {
|
||||||
|
override fun onUsbRead(data: ByteArray?) {}
|
||||||
|
|
||||||
|
override fun onUsbError(e: Exception?) {
|
||||||
|
hemoCubeViewModel.progressBar.postValue(false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
private fun fetchResult() {
|
private fun fetchResult() {
|
||||||
hemoCubeViewModel.progressBar.postValue(true)
|
hemoCubeViewModel.progressBar.postValue(true)
|
||||||
|
|
||||||
(activity as HemocubeActivity).mService.sendAndListenToHemoCube(HemoCubeCommands.getSample,
|
(activity as HemocubeActivity).mService.sendAndListenToHemoCube(HemoCubeCommands.PRINT_COMMAND,
|
||||||
object : UsbServiceListener {
|
object : UsbServiceListener {
|
||||||
override fun onUsbRead(data: ByteArray?) {}
|
override fun onUsbRead(data: ByteArray?) {}
|
||||||
|
|
||||||
|
|||||||
@@ -243,13 +243,28 @@ class HemoCubeViewModel @Inject constructor(
|
|||||||
testDetails?.abs2 = DataHolder.hemoCubeTestData?.abs2
|
testDetails?.abs2 = DataHolder.hemoCubeTestData?.abs2
|
||||||
testDetails?.abs3 = DataHolder.hemoCubeTestData?.abs3
|
testDetails?.abs3 = DataHolder.hemoCubeTestData?.abs3
|
||||||
testDetails?.abs4 = DataHolder.hemoCubeTestData?.abs4
|
testDetails?.abs4 = DataHolder.hemoCubeTestData?.abs4
|
||||||
|
testDetails?.led1Gain1 = DataHolder.hemoCubeTestData?.led1Gain1
|
||||||
|
testDetails?.led2Gain1 = DataHolder.hemoCubeTestData?.led2Gain1
|
||||||
|
testDetails?.led3Gain1 = DataHolder.hemoCubeTestData?.led3Gain1
|
||||||
|
testDetails?.led4Gain1 = DataHolder.hemoCubeTestData?.led4Gain1
|
||||||
|
testDetails?.led1Gain2 = DataHolder.hemoCubeTestData?.led1Gain2
|
||||||
|
testDetails?.led2Gain2 = DataHolder.hemoCubeTestData?.led2Gain2
|
||||||
|
testDetails?.led3Gain2 = DataHolder.hemoCubeTestData?.led3Gain2
|
||||||
|
testDetails?.led4Gain2 = DataHolder.hemoCubeTestData?.led4Gain2
|
||||||
|
testDetails?.led1Gain4 = DataHolder.hemoCubeTestData?.led1Gain4
|
||||||
|
testDetails?.led2Gain4 = DataHolder.hemoCubeTestData?.led2Gain4
|
||||||
|
testDetails?.led3Gain4 = DataHolder.hemoCubeTestData?.led3Gain4
|
||||||
|
testDetails?.led4Gain4 = DataHolder.hemoCubeTestData?.led4Gain4
|
||||||
testDetails?.deviceRatio = DataHolder.hemoCubeTestData?.deviceRatio
|
testDetails?.deviceRatio = DataHolder.hemoCubeTestData?.deviceRatio
|
||||||
testDetails?.predictedDenovixRatio = DataHolder.hemoCubeTestData?.predictedDenovixRatio
|
testDetails?.predictedDenovixRatio = DataHolder.hemoCubeTestData?.predictedDenovixRatio
|
||||||
testDetails?.calculatedRatio = DataHolder.hemoCubeTestData?.calculatedRatio
|
testDetails?.calculatedRatio = DataHolder.hemoCubeTestData?.calculatedRatio
|
||||||
|
testDetails?.slopeRatio = DataHolder.hemoCubeTestData?.slopeRatio
|
||||||
testDetails?.coefficients = DataHolder.hemoCubeTestData?.coefficients
|
testDetails?.coefficients = DataHolder.hemoCubeTestData?.coefficients
|
||||||
testDetails?.classificationResult = DataHolder.hemoCubeTestData?.classificationResult!!
|
testDetails?.classificationResult = DataHolder.hemoCubeTestData?.classificationResult!!
|
||||||
testDetails?.prdClassification =
|
testDetails?.prdClassification =
|
||||||
DataHolder.hemoCubeTestData?.prdClassification.toString()
|
DataHolder.hemoCubeTestData?.prdClassification.toString()
|
||||||
|
testDetails?.deviceRatioClass = DataHolder.hemoCubeTestData?.deviceRatioClass!!
|
||||||
|
testDetails?.slopeRatioClass = DataHolder.hemoCubeTestData?.slopeRatioClass!!
|
||||||
testDetails?.batteryLevel = DataHolder.hemoCubeTestData?.batteryLevel.toString()
|
testDetails?.batteryLevel = DataHolder.hemoCubeTestData?.batteryLevel.toString()
|
||||||
testDetails?.batteryCapacity = DataHolder.hemoCubeTestData?.batteryCapacity.toString()
|
testDetails?.batteryCapacity = DataHolder.hemoCubeTestData?.batteryCapacity.toString()
|
||||||
testDetails?.batteryMaxCapacity =
|
testDetails?.batteryMaxCapacity =
|
||||||
|
|||||||
@@ -205,20 +205,25 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/btn_submit" />
|
app:layout_constraintTop_toBottomOf="@id/btn_submit" />
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="24dp"
|
||||||
|
android:layout_marginTop="12dp"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/error_message">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_device_messages"
|
android:id="@+id/tv_device_messages"
|
||||||
style="@style/title1_1"
|
style="@style/title1_1"
|
||||||
android:visibility="gone"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="180dp"
|
|
||||||
android:layout_marginHorizontal="24dp"
|
|
||||||
android:layout_marginTop="72dp"
|
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
android:textSize="11sp"
|
android:textSize="11sp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:visibility="gone" />
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
</ScrollView>
|
||||||
app:layout_constraintTop_toBottomOf="@id/error_message" />
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
|||||||
Reference in New Issue
Block a user