Closed Bug 1119573 Opened 10 years ago Closed 10 years ago

[FFOS2.0][Woodduck][STK]Message displayed not ok when execute "display text with wait user to clear".

Categories

(Firefox OS Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: sync-1, Assigned: selee, NeedInfo)

References

Details

Attachments

(2 files)

DEFECT DESCRIPTION:[STK]Message displayed not ok when execute "display text with wait user to clear". REPRODUCING PROCEDURES: 1. Load a simcard to the phone which can send "display text"; 2. Execute "Display Text->STM01002->CQ=00 DCS=00",with clearAfterDelay mode, the message will disappeared in one status's time; 3. Execute "Display Text->STM01002->CQ=80 DCS=00",with userToClearmode, the message will disappeared in one status's time;--ko EXPECTED BEHAVIOUR: 3. Execute "Display Text->STM01002->CQ=80 DCS=00",with userToClearmode, the message should disappeared in 2 status's time because of userToClearmode mode. Reporter's number:0752-2639695 ASSOCIATE SPECIFICATION: TEST PLAN REFERENCE: TOOLS AND PLATFORMS USED: USER IMPACT: REPRODUCING RATE: For FT PR, Please list reference mobile's behavior:
Dear all, The detail at TS11.14 12.6: Command Qualifier: DISPLAY TEXT, bit 1: 0 = normal priority 1 = high priority bits 2-7: = RFU bit 8: 0 = clear message after a delay 1 = wait for user to clear message Maybe we can parse the bit8 of commandQualifier to control the timeout of DISPLAY TEXT.
Hi Sean, Could you please help to check the problem? Thanks!
blocking-b2g: --- → 2.0M?
Flags: needinfo?(selee)
Hi Sean, I modify the code and pass the test. Is it right? @@ -273,6 +305,9 @@ var icc_worker = { timeout = icc.calculateDurationInMS(duration.timeUnit, duration.timeInterval); } + if (options.userClear) { + timeout = 2 * timeout; + }; if (options.responseNeeded) { icc.responseSTKCommand(message, {
Assignee: nobody → selee
Flags: needinfo?(selee)
Hi Pengfei, IMHO, I think the dialog must be closed by user if options.userClear is TRUE. We can say setTimeout (in icc.js @ function confirm ) should be disabled by assigning timeout = null . Here is my suggestion: In icc_worker.js @@ -273,6 +305,9 @@ var icc_worker = { timeout = icc.calculateDurationInMS(duration.timeUnit, duration.timeInterval); } + if (options.userClear) { + timeout = null; + }; if (options.responseNeeded) { icc.responseSTKCommand(message, { Please help to try the patch if it works. Thank you.
Flags: needinfo?(pengfei.huang.hz)
Hi Sean, I take your advice. In the lab test, the DISPLAY TEXT dialog hasn't disappear until user do some operation. VAL co-worker(Liyan.yi) think it's not good for their test standard.
Flags: needinfo?(pengfei.huang.hz)
Hi Pengfei, In your patch, timeout = 2 * timeout; this is just increasing the timeout value but not a exact value. Could you consult your VAL team to provide a more clear criteria for this case?
Could you help to explain why 2 times timeout? Thank you.
(In reply to Sean Lee [:seanlee] from comment #8) > Could you help to explain why 2 times timeout? Thank you. Our VAL suggest the timeout of "UserClear" should be longer than timeout of "clearAfterDelay" and no exactly time we need to follow. A rule we need to obey is the dialog must be remove when the userClear=true. And there is case "No Response" which userClear=true and dialog must be remove. They suggest 2 or 3 times timeout is OK.
Flags: needinfo?(selee)
Hi Sean Lee, I check android code about the exactly time they use. As follow, // Display Text timeouts static final int DISP_TEXT_CLEAR_AFTER_DELAY_TIMEOUT = (15 * 1000); static final int DISP_TEXT_WAIT_FOR_USER_TIMEOUT = (60 * 1000); so, what exactly time Mozilla will use for best design?
Hi Reporter, Since comment 9 and comment 10 are only suggestion. If this is is not blocker. I suggest we focus on other issues block certification Thanks!
Flags: needinfo?(sync-1)
clear ni first since comment 11.
Flags: needinfo?(selee)
Hi PengFei, Do you still need our help about this issue? Thanks!
Flags: needinfo?(pengfei.huang.hz)
blocking-b2g: 2.0M? → ---
Hi Josh, Sean had provided solution and I can follow his solution to fix this bug with VAL suggestion. we can close it. Thank you!
Flags: needinfo?(pengfei.huang.hz)
Dear Josh, And please focus on other issues block GCF certification! They drive me crazy.T_T Many thanks.
Hi Pengfei, I think this issue can be resolved by configuring settings without adding any patch (ex comment 4), just like bug 1122326 . Could you help to check it? Thank you.
Flags: needinfo?(pengfei.huang.hz)
Hi Sean, There is not key and value for timeout of "UserClear" in common-settings.json. We need to add one. What name will you give?
Flags: needinfo?(pengfei.huang.hz)
Can't we just use icc.displayTextTimeout (which already exists) for UserClear case ?
(In reply to Sean Lee [:seanlee] from comment #18) > Can't we just use icc.displayTextTimeout (which already exists) for > UserClear case ? I guess we can't because VAL will oppose us with the wrong timeout which is longer than they expected. we modified the time "icc.displayTextTimeout" to 120000 for bug 1122326 but VAL expected about 40000.
Hi Pengfei, I add icc.userClearTimeout setting for STK_CMD_DISPLAY_TEXT, and its default value is 120000. Could you help to try the patch? Thank you!
Flags: needinfo?(pengfei.huang.hz)
Hi Sean, Your patch works well and pass the test. I modify the default value to 40000 for VAL special require. Please know it. Thanks, Sean.
Flags: needinfo?(pengfei.huang.hz)
Based on comment 21, this is a special requirement for VAL, so I close the bug.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Dear Wayne Teng, we can close this bug, please see TCL bug896728. Thanks.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: