Send OK in terminal response if command specifies user response is not needed.
GCF Testcase GCF-PTCRB SAT/USAT 27.22.4.1.1seq1.5 expects OK if the command
qualifier specifies no user response is required. Send OK instead of
NO_RESPONSE_FROM_USER when userClear field is set to false.
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index 7831503..aca0c80 100644
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -528,7 +528,17 @@
break;
case RES_ID_TIMEOUT:
StkLog.d(this, "RES_ID_TIMEOUT");
- resMsg.setResultCode(ResultCode.NO_RESPONSE_FROM_USER);
+ // GCF test-case 27.22.4.1.1 Expected Sequence 1.5 (DISPLAY TEXT,
+ // Clear message after delay, successful) expects result code OK.
+ // If the command qualifier specifies no user response is required
+ // then send OK instead of NO_RESPONSE_FROM_USER
+ if ((mCurrentCmd.getCmdType().value() == AppInterface.CommandType.DISPLAY_TEXT
+ .value())
+ && (mCurrentCmd.geTextMessage().userClear == false)) {
+ resMsg.setResultCode(ResultCode.OK);
+ } else {
+ resMsg.setResultCode(ResultCode.NO_RESPONSE_FROM_USER);
+ }
break;
default:
StkLog.d(this, "Unknown result id");