History log of /packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b10cfa33eac35d12f705a84454deb314930a6607 06-Apr-2017 Sanket Padawe <sanketpadawe@google.com> UI refresh for STK app.

Bug: 22573032
Test: manual
Change-Id: I85de6a6cb55034a0ddf6f812a46f0057f21bf81e
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
ba9b86b6257d98d3c1312ff188b22e0f6b785cad 03-Oct-2016 Ryuto Sawada <ryuto.x.sawada@sonymobile.com> Avoid NullPointerException when activity is automatically recreated

Android system recreates activity with the saved Bundle object if it is
unexpectedly destroyed. If the death of the phone process caused such
unexpected destruction of activity, it is possible that StkAppService is
not started yet when the activity is recreated.

Bug: 31980334
Test: Confirmed NPE does not happen after the phone process is killed.

Change-Id: I7aeb570a6d866ec4ae6c33c7cea309bf83080d0a
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
8b7e05130ca26bec834bdf4651c4dc562fc6fcbc 29-Aug-2016 Ryuto Sawada <ryuto.x.sawada@sonymobile.com> Terminal should sustain the dialog when user touches the outside

The dialog activity should not be closed when user touches the outside
of the text display area because it might be an unexpected touch.

Bug: 31294784
Change-Id: Id9e1112fbf9e2241fc98ecb39797b236c0ce55f5
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
2aa6456a624c66680a70b29b192ff9173295d9ad 09-Feb-2016 Tsukasa Gotou <tsukasa.x.gotou@sonymobile.com> The dialog shall be displayed even if the command comes while sleeping

This change fixes the issue that StkDialogActivity is unexpectedly
finished before user sees it. The issue can happen if the terminal
receives DISPLAY TEXT command with the immediate response option while
the terminal is sleeping.

StkAppService has a mechanism to finish the pending dialog when the
current session ends. The state of the activity immediately goes to the
stop state in this use-case and the session also ends right away because
of the immediate response option. The dialog shall not be treated as
pending dialog if the immediate response option is specified.

Change-Id: I7a6e87e24d91bb91e1708bc28e5aab69f1cb506c
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
8bf95af0202e8a9b475ab1a75fd7f7a13cd0262b 09-Jan-2015 w30234 <w30234@motorola.com> STK: Accurate Terminal Response timer for StkDialog

Bug: 18943616
Change-Id: I9c3ff78d38783e78bae47010ab2fc411e68e019d
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
aeefef5980a88d0dff10f4c81300789dca4aa1a5 26-Oct-2014 Legler Wu <legler.wu@mediatek.com> Stk App bug fix and code refine.

Major changes:

1. StkAppService.java :
line272~279: use getInstance(slotId)@CatService to get instance of cat service instead.
line303~307: remove redundant codes
line457~485: remove redundant codes
line693~695: fix the NPE if the first proactive command is not SET_UP_MENU.
line1109~1116: remove redundant codes.

2. StkMain.java (new file, is the launcher of Stk without UI(No_Display theme) :
To fix a short flash problem when entering Stk app for one SIM inserted case.
If inserted one SIM, it starts StkMenuActivity for showing main menu of the SIM.
If inserted two SIMs, it starts StkLauncherActivity which shows a list for inserted SIMs.

Bug: 18705342
Change-Id: If777f1cc0a16df38d1b534cd60ed7850b6072b22
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
414bc414dba1ef9605a0ab6185700af9748e2187 26-Jun-2013 Preeti Ahuja <preetia@codeaurora.org> Stk: These changes are related to DISPLAY Text pro cmd

1. Handle high priority and normal priority display text
command correctly.

2. For display text with immediate response, send the terminal
response immediately after showing the text dialog. Block all
responses from StkDialogActivity, if display text is
with immediate response. Remove the check for response needed
in StkAppService, since un wanted responses are already
blocked in StkDialogActivity.

3. While the text is being displayed if a next Proactive command is
received, it should be acted upon immediately.

Bug: 17553408
Change-Id: I8dd74e0fb1434b0753cedfea2f2fcc1ba2f18067
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
03be6676b5797d70ad30374c16589300f63438c0 30-Aug-2012 Preeti Ahuja <preetia@codeaurora.org> Stk: Timer Related Fixes

Stk: Timer not getting cancelled after user response

After user response, the timer should be cancelled.
Else the timer would expire and sends an untimely
Terminal response with RES_ID_TIMEOUT.

Stk: StkDialog activity should not cancel timer when it is paused

During display text, if any higher / lower priority events
such as incoming call, new sms, screen off intent,
notification alerts, user actions such as 'User moving to
another activtiy' etc.. occur during Display Text ongoing session,
this activity would receive 'onPause()' evt resulting in
cancellation of the timer. As a result no terminal response is
sent to the card

Stk: StkMenu/StkInput activity should not cancel timer when paused

During SelectItem / GetInkey / GetInput, if any
higher / lower priority events such as incoming call,
new sms, screen off intent,notification alerts,
user actions such as 'User moving to another activtiy' etc..
occur during SELECT ITEM / GETINKEY / GETINPUT ongoing session
respectively, the respective activity would receive
'onPause()' evt resulting in cancellation of the timer.
As a result no terminal response is sent to the card

Bug: 17553408
Change-Id: I0a214c037c3a53f65484104bb819c91bbea7fddd
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
9591934f86a8e10c1f9c4612883f8b6164ea427f 02-Oct-2013 Preeti Ahuja <preetia@codeaurora.org> Stk: Usat Phase 2 feature support

This change combines the following fixes:

1) Usat Phase 2 feature support
Added changes to support Idle screen, Language Selection.
Fix Display Alpha for proactive commands

2) Fix to display dialog for DISPLAY_TEXT commands
For Display Text commands that are low priority, we check the
Idle Screen status before displaying the dialog. However, the handling
for the result of the Idle Screen request is missing. Add this handling.

3) Fix crash on Idle Mode Text proactive command
After checking for screen status, use the saved command object
to process the Idle Mode Text command.

4) Stk: Update Manifest for modified Idle Screen Intent
Update StkCmdReceiver's intent-filter to use the updated idle
screen intent name

5) Stk: General Enhancements to StkAppService
i) Support GET_CHANNEL_STATUS command
ii)Set mMainCmd to null (SET_UP_MENU) only when we
receive a remove menu command
iii)Cleanup idlemode text code: Removed the intent extra
SCREEN_STATUS_REQUEST which is no longer used (introduced
in the change (3) above).

6) Handle LOCALE event properly

Bug: 17553408
Change-Id: Ie9a52f62bb520650eec68e3209fab1dd6343fe1c
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
e68857da85f6fb0964da9d58a7cbfcc0348065c6 18-Oct-2014 Wink Saville <wink@google.com> STK App DSDS support

Change-Id: I8d0a9ac406327fa91d78119df2953a417b4e4cb6
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
ef243a24eb9b919a6c315bffb53fcb557195489a 25-Oct-2011 Johannes Carlsson <johannes.carlsson.x@sonyericsson.com> DISPLAY TEXT clr msg after delay, expects result code OK

Send RES_ID_TIMEOUT response if StkDialogActivity is sent to the
background due to another acitivty has replaced it as forground
activity. When a callback call interferes and closes the
StkDialogActivity, the session still needs to be ended. If the
session is not ended in a controlled way, STK will end up in a
wrong state. If STK is in wrong state it will be unable to
process subsequent callbacks.

The sendResponse call is now moved to onStop() since it showed
that the system will not call onDestroy() in some scenarios.
This happened while repeating the test for 20 or more times.

Change-Id: Ib6519ce15225b1c7be83251c6461fb14a4680200
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
cfe4d7f06d8e023ddc153cd042682957dfd85de2 04-Sep-2013 Christopher Posselwhite <christopher.posselwhite@sonymobile.com> Special case for SAT Display Text

In the case where the SIM has required an immediate response the message
should be shown forever to the user and removed only when one of the
events specified in ETSI 102 223 §6.4.1 occurs. The implementation
of this case has been corrected

Change-Id: I17993542e1ba234a9e69b8162a9ae5271e176d07
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
1772c049facb06de0ca5d3b5cce870848c008804 22-Nov-2012 Christopher.Posselwhite <christopher.posselwhite@sonymobile.com> Changed timeouts for Stk

The SIM Toolkit interface in Android uses one common
timeout for UI commands. This is not good practice,
as there is a very clear difference between use cases.

A DISPLAY TEXT command with the option “clear after delay”
and with option “Wait for user to clear” should not have
the same timeout, which is the case without a patch. The
timeouts have in the patch been set to 15 s for
“clear after delay” (i.e. automatically removed), 60 seconds
for “Wait for user to clear” and 30 s for other UI timeouts.

The times are both in accordance with ETSI 102.223 and
operator requirements.

Change-Id: I61262bf36a84f071ec4f223eb187f92e2026b68b
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
d41f1d98d7bf42e9e867819593ad79f685604796 12-Jul-2010 Alex Yakavenka <ayakav@codeaurora.org> CAT: Use new Cat package from frameworks

As all stk related classes were moved to new Cat package this application
needs to use new package instead of old one.

Change-Id: I537c61318eff3677951af9639e9991425c418241
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
79085fcc5b4e54cc374e8720644ce4c1dc0004be 09-Jun-2009 Wink Saville <wink@google.com> Cleanup whitespace.
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
9d9730aecb72e830ef12d66ce6e084d8ae0928f2 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
4f140d1b04066e68d8236a41765ad06029e00105 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
28aadc2864433ec393fc93d46d9eba461f66ce89 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java
c46d8a06f810a3b5b570e43e7e0ed8b36efd23e5 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/apps/Stk/src/com/android/stk/StkDialogActivity.java