Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

How do I determine from TrigML/Lua level whether or not the phone has timed out and is "hibernating"? I believe I can determine it from /actor/systemState/opmode, but I don't know if its the offline (3) or LPM (5) value.

Also, how do I determine if the phone is in lockscreen mode (displaying the lockscreen)?

Lastly, how do I determine if the phone is currently displaying the home canvas (idle screen)?

Thanks!

Hi pbrock,
1. Operating Modes
For your reference, these modes correspond to the Operating Modes defined in AEETelDef.h, in %BREWMPSDK%\telephony\inc.
/*
** Enumeration of phone operating modes.
*/
typedef enum
{
AEET_OPRT_MODE_NONE = -1,
AEET_OPRT_MODE_PWROFF = 0,
/* Phone is powering off */
AEET_OPRT_MODE_FTM = 1,
/* Phone is in factory test mode */
AEET_OPRT_MODE_OFFLINE = 2,
/* Phone is offline */
AEET_OPRT_MODE_OFFLINE_AMPS = 3,
/* Phone is offline analog */
AEET_OPRT_MODE_OFFLINE_CDMA = 4,
/* Phone is offline cdma */
AEET_OPRT_MODE_ONLINE = 5,
/* Phone is online */
AEET_OPRT_MODE_LPM = 6,
/* Phone is in LPM - Low Power Mode */
AEET_OPRT_MODE_RESET = 7,
/* Phone is resetting - i.e. power-cycling */
AEET_OPRT_MODE_NET_TEST_GW = 8,
/* Phone is conducting network test for GSM/WCDMA. */
/* This mode can NOT be set by the clients. It can */
/* only be set by the lower layers of the stack. */
AEET_OPRT_MODE_BIG = 0x10000000
/* Force 32-bit enums */
} AEETOprtMode;
2. Lockscreen mode (key guard state?)
In C, you can use ISettings_Get() to retrieve the value stored at /BREW/DeviceState/KeyGuardOn.
In TrigML/Lua, you can try something similar to the following code.

when keyguard is enabled -->

delay = "{type2notes/VPCallEndedRedialNote/timeout}"
event="CloseType2Note" target="appframe"/>
3. Is this from TrigML/Lua or C?
Thanks,
Anand

Hi pbrock,
1. Operating Modes
For your reference, these modes correspond to the Operating Modes defined in AEETelDef.h, in %BREWMPSDK%\telephony\inc.
/*
** Enumeration of phone operating modes.
*/
typedef enum
{
AEET_OPRT_MODE_NONE = -1,
AEET_OPRT_MODE_PWROFF = 0,
/* Phone is powering off */
AEET_OPRT_MODE_FTM = 1,
/* Phone is in factory test mode */
AEET_OPRT_MODE_OFFLINE = 2,
/* Phone is offline */
AEET_OPRT_MODE_OFFLINE_AMPS = 3,
/* Phone is offline analog */
AEET_OPRT_MODE_OFFLINE_CDMA = 4,
/* Phone is offline cdma */
AEET_OPRT_MODE_ONLINE = 5,
/* Phone is online */
AEET_OPRT_MODE_LPM = 6,
/* Phone is in LPM - Low Power Mode */
AEET_OPRT_MODE_RESET = 7,
/* Phone is resetting - i.e. power-cycling */
AEET_OPRT_MODE_NET_TEST_GW = 8,
/* Phone is conducting network test for GSM/WCDMA. */
/* This mode can NOT be set by the clients. It can */
/* only be set by the lower layers of the stack. */
AEET_OPRT_MODE_BIG = 0x10000000
/* Force 32-bit enums */
} AEETOprtMode;
2. Lockscreen mode (key guard state?)
In C, you can use ISettings_Get() to retrieve the value stored at /BREW/DeviceState/KeyGuardOn.
In TrigML/Lua, you can try something similar to the following code.

when keyguard is enabled -->

delay = "{type2notes/VPCallEndedRedialNote/timeout}"
event="CloseType2Note" target="appframe"/>
3. Is this from TrigML/Lua or C?
Thanks,
Anand