MCE D-Bus Interface 1.10.x
|
Defines for names of various modes and submodes for Mode Control Entity. More...
Go to the source code of this file.
Macros | |
Radio State Constants | |
#define | MCE_RADIO_STATE_MASTER (1 << 0) |
Master switch; set - radios enabled, unset - radios disabled. | |
#define | MCE_RADIO_STATE_CELLULAR (1 << 1) |
Cellular; set - enabled, unset - disabled. | |
#define | MCE_RADIO_STATE_WLAN (1 << 2) |
WLAN; set - enabled, unset - disabled. | |
#define | MCE_RADIO_STATE_BLUETOOTH (1 << 3) |
Bluetooth; set - enabled, unset - disabled. | |
#define | MCE_RADIO_STATE_NFC (1 << 4) |
NFC; set - enabled, unset - disabled. | |
#define | MCE_RADIO_STATE_FMTX (1 << 5) |
FM transmitter; set - enabled, unset - disabled. | |
Call State Constants | |
#define | MCE_CALL_STATE_NONE "none" |
No ongoing call. | |
#define | MCE_CALL_STATE_RINGING "ringing" |
Call ringing. | |
#define | MCE_CALL_STATE_ACTIVE "active" |
Call on-going. | |
#define | MCE_CALL_STATE_SERVICE "service" |
Service operation on-going. | |
Call Type Constants | |
#define | MCE_NORMAL_CALL "normal" |
Normal call. | |
#define | MCE_EMERGENCY_CALL "emergency" |
Emergency call. | |
Touchscreen And Keypad Lock State Constants | |
#define | MCE_TK_LOCKED "locked" |
Touchscreen/Keypad locked. | |
#define | MCE_TK_SILENT_LOCKED "silent-locked" |
Touchscreen/Keypad silently locked. | |
#define | MCE_TK_LOCKED_DIM "locked-dim" |
Touchscreen/Keypad locked with fadeout. | |
#define | MCE_TK_LOCKED_DELAY "locked-delay" |
Touchscreen/Keypad locked with delay. | |
#define | MCE_TK_SILENT_LOCKED_DIM "silent-locked-dim" |
Touchscreen/Keypad silently locked with fadeout. | |
#define | MCE_TK_UNLOCKED "unlocked" |
Touchscreen/Keypad unlocked. | |
#define | MCE_TK_SILENT_UNLOCKED "silent-unlocked" |
Touchscreen/Keypad silently unlocked. | |
Display State Constants | |
#define | MCE_DISPLAY_ON_STRING "on" |
Display state name for display on. | |
#define | MCE_DISPLAY_DIM_STRING "dimmed" |
Display state name for display dim. | |
#define | MCE_DISPLAY_OFF_STRING "off" |
Display state name for display off. | |
Blank Prevention State Constants | |
#define | MCE_PREVENT_BLANK_ACTIVE_STRING "active" |
Blank prevent state name for active. | |
#define | MCE_PREVENT_BLANK_INACTIVE_STRING "inactive" |
Blank prevent state name for inactive. | |
Blanking Inhibit State Constants | |
#define | MCE_INHIBIT_BLANK_ACTIVE_STRING "active" |
Blank inhibit state name for active. | |
#define | MCE_INHIBIT_BLANK_INACTIVE_STRING "inactive" |
Blank inhibit state name for inactive. | |
Blanking Policy State Constants | |
#define | MCE_BLANKING_POLICY_DEFAULT_STRING "default" |
Default blanking policy active. | |
#define | MCE_BLANKING_POLICY_NOTIFICATION_STRING "notification" |
Default blanking policy disabled due to notifications. | |
#define | MCE_BLANKING_POLICY_ALARM_STRING "alarm" |
Default blanking policy disabled due to alarm dialog state. | |
#define | MCE_BLANKING_POLICY_CALL_STRING "call" |
Default blanking policy disabled due to call state. | |
#define | MCE_BLANKING_POLICY_LINGER_STRING "linger" |
Default blanking policy is about to be restored. | |
CABC Mode Constants | |
#define | MCE_CABC_MODE_OFF "off" |
CABC name for CABC disabled. | |
#define | MCE_CABC_MODE_UI "ui" |
CABC name for UI mode. | |
#define | MCE_CABC_MODE_STILL_IMAGE "still-image" |
CABC name for still image mode. | |
#define | MCE_CABC_MODE_MOVING_IMAGE "moving-image" |
CABC name for moving image mode. | |
Power Key Trigger Constants | |
#define | MCE_POWERKEY_EVENT_SHORT_PRESS (0u) |
Simulate single powerkey press. | |
#define | MCE_POWERKEY_EVENT_LONG_PRESS (1u) |
Simulate long powerkey press. | |
#define | MCE_POWERKEY_EVENT_DOUBLE_PRESS (2u) |
Simulate double powerkey press. | |
USB Cable State Constants | |
#define | MCE_USB_CABLE_STATE_UNKNOWN "unknown" |
USB cable state is not known. | |
#define | MCE_USB_CABLE_STATE_CONNECTED "connected" |
USB cable is connected. | |
#define | MCE_USB_CABLE_STATE_DISCONNECTED "disconnected" |
USB cable is disconnected. | |
Charger State Constants | |
#define | MCE_CHARGER_STATE_UNKNOWN "unknown" |
Charger state is not known. | |
#define | MCE_CHARGER_STATE_ON "on" |
Charger is active. | |
#define | MCE_CHARGER_STATE_OFF "off" |
Charger is inactive. | |
Charger Type Constants | |
#define | MCE_CHARGER_TYPE_NONE "none" |
No charger is active. | |
#define | MCE_CHARGER_TYPE_USB "usb" |
Standard down port (pc/hub) charger is active. | |
#define | MCE_CHARGER_TYPE_DCP "dcp" |
Dedicated charging port (wall) charger is active. | |
#define | MCE_CHARGER_TYPE_HVDCP "hvdcp" |
High voltage DCP charger is active. | |
#define | MCE_CHARGER_TYPE_CDP "cdp" |
Charging Downstream Port charger is active. | |
#define | MCE_CHARGER_TYPE_WIRELESS "wireless" |
Wireless charger is active. | |
#define | MCE_CHARGER_TYPE_OTHER "other" |
Other kind of charger is active. | |
Charging Hysteresis State Constants | |
#define | MCE_CHARGING_STATE_UNKNOWN "unknown" |
Charging hysteresis policy state is not known. | |
#define | MCE_CHARGING_STATE_ENABLED "enabled" |
Charging hysteresis policy allows charging. | |
#define | MCE_CHARGING_STATE_DISABLED "disabled" |
Charging hysteresis policy denies charging. | |
Charge-once-to-full policy override constants | |
#define | MCE_FORCED_CHARGING_UNKNOWN "unknown" |
Charge-once-to-full policy override state is not known. | |
#define | MCE_FORCED_CHARGING_ENABLED "enabled" |
Charge-once-to-full policy override has been activated. | |
#define | MCE_FORCED_CHARGING_DISABLED "disabled" |
Charge-once-to-full policy override has been deactivated. | |
Battery Status Constants | |
These values match legacy maemo (bme) battery status values. | |
#define | MCE_BATTERY_STATUS_UNKNOWN "unknown" |
Battery status is not known. | |
#define | MCE_BATTERY_STATUS_FULL "full" |
Battery is full. | |
#define | MCE_BATTERY_STATUS_OK "ok" |
Battery is neither full nor empty. | |
#define | MCE_BATTERY_STATUS_LOW "low" |
Battery is low on power. | |
#define | MCE_BATTERY_STATUS_EMPTY "empty" |
Battery is empty. | |
Battery State Constants | |
These values match linux power supply device status values. | |
#define | MCE_BATTERY_STATE_UNKNOWN "unknown" |
Battery state is not known. | |
#define | MCE_BATTERY_STATE_DISCHARGING "discharging" |
Battery is currently discharging. | |
#define | MCE_BATTERY_STATE_CHARGING "charging" |
Battery is currently charging. | |
#define | MCE_BATTERY_STATE_NOT_CHARGING "not_charging" |
Battery is not getting charged. | |
#define | MCE_BATTERY_STATE_FULL "full" |
Battery is fully charged. | |
Battery Level Constants | |
#define | MCE_BATTERY_LEVEL_UNKNOWN (-1) |
Battery level percentage is not known. | |
Input Policy State Constants | |
#define | MCE_INPUT_POLICY_ENABLED "enabled" |
Input events should be processed normally. | |
#define | MCE_INPUT_POLICY_DISABLED "disabled" |
Input events should be ignored. | |
Hardware Keyboard Availability Constants | |
#define | MCE_HARDWARE_KEYBOARD_UNDEF "undef" |
Hardware Keyboard availability is not known. | |
#define | MCE_HARDWARE_KEYBOARD_AVAILABLE "available" |
Hardware Keyboard is available. | |
#define | MCE_HARDWARE_KEYBOARD_NOT_AVAILABLE "not-available" |
Hardware Keyboard is not available. | |
Hardware Mouse Availability Constants | |
#define | MCE_HARDWARE_MOUSE_UNDEF "undef" |
Hardware Mouse availability is not known. | |
#define | MCE_HARDWARE_MOUSE_AVAILABLE "available" |
Hardware Mouse is available. | |
#define | MCE_HARDWARE_MOUSE_NOT_AVAILABLE "not-available" |
Hardware Mouse is not available. | |
Feedback Event Name Constants | |
#define | MCE_FEEDBACK_EVENT_POWERKEY "powerkey" |
Notify that an application should handle powerkey press. | |
#define | MCE_FEEDBACK_EVENT_FLIPOVER "flipover" |
Notify that an application should handle device flipover. | |
#define | MCE_FEEDBACK_EVENT_UNLOCK "double-power-key" |
Request lockscreen ui to switch to device unlock view. | |
#define | MCE_FEEDBACK_EVENT_HOMEKEY "home-key" |
Notify lipstick about homekey presses. | |
Sliding Keyboard Availability Constants | |
Used for example in evaluating whether virtual keyboard should be used or not. See: | |
#define | MCE_SLIDING_KEYBOARD_UNDEF "undef" |
Sliding Keyboard state is not known. | |
#define | MCE_SLIDING_KEYBOARD_OPEN "open" |
Sliding Keyboard is opened. | |
#define | MCE_SLIDING_KEYBOARD_CLOSED "closed" |
Sliding Keyboard is closed. | |
Display Low Power Mode Constants | |
#define | MCE_LPM_UI_ENABLED "enabled" |
Display Low Power Mode is Enabled. | |
#define | MCE_LPM_UI_DISABLED "disabled" |
Display Low Power Mode is Disabled. | |
System Memory Pressure Constants | |
#define | MCE_MEMORY_LEVEL_NORMAL "normal" |
System memory use is at normal level. | |
#define | MCE_MEMORY_LEVEL_WARNING "warning" |
System memory use is above normal level. | |
#define | MCE_MEMORY_LEVEL_CRITICAL "critical" |
System memory use is at critical level. | |
#define | MCE_MEMORY_LEVEL_UNKNOWN "unknown" |
System memory use can't be evaluated. | |
TKLock status replies from SystemUI | |
#define | TKLOCK_UNLOCK 1 |
TKLock was unlocked by the user. | |
#define | TKLOCK_RETRY 2 |
TKLock unlock attempt failed. | |
#define | TKLOCK_TIMEOUT 3 |
Attempt to open TKLock timed out. | |
#define | TKLOCK_CLOSED 4 |
TKLock closed on request from mce. | |
Button backlight operation modes | |
#define | MCE_BUTTON_BACKLIGHT_MODE_OFF 0 |
Button backlight should be turned off. | |
#define | MCE_BUTTON_BACKLIGHT_MODE_ON 1 |
Button backlight should be turned on. | |
#define | MCE_BUTTON_BACKLIGHT_MODE_POLICY 2 |
Button backlight should be turned on/off according to policy. | |
Defines for names of various modes and submodes for Mode Control Entity.
This file is part of mce-dev
Copyright (c) 2004 - 2011 Nokia Corporation and/or its subsidiary(-ies). Copyright (c) 2012 - 2022 Jolla Ltd. Copyright (c) 2019 Open Mobile Platform LLC.
These headers are free software; you can redistribute them and/or modify them under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.
These headers are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with these headers. If not, see http://www.gnu.org/licenses/.
#define MCE_RADIO_STATE_MASTER (1 << 0) |
Master switch; set - radios enabled, unset - radios disabled.
#define MCE_RADIO_STATE_CELLULAR (1 << 1) |
Cellular; set - enabled, unset - disabled.
#define MCE_RADIO_STATE_WLAN (1 << 2) |
WLAN; set - enabled, unset - disabled.
#define MCE_RADIO_STATE_BLUETOOTH (1 << 3) |
Bluetooth; set - enabled, unset - disabled.
#define MCE_RADIO_STATE_NFC (1 << 4) |
NFC; set - enabled, unset - disabled.
#define MCE_RADIO_STATE_FMTX (1 << 5) |
FM transmitter; set - enabled, unset - disabled.
#define MCE_CALL_STATE_NONE "none" |
No ongoing call.
#define MCE_CALL_STATE_RINGING "ringing" |
Call ringing.
#define MCE_CALL_STATE_ACTIVE "active" |
Call on-going.
#define MCE_CALL_STATE_SERVICE "service" |
Service operation on-going.
Use to prevent calls from being initiated; will not prevent emergency calls
#define MCE_NORMAL_CALL "normal" |
Normal call.
#define MCE_EMERGENCY_CALL "emergency" |
Emergency call.
#define MCE_TK_LOCKED "locked" |
Touchscreen/Keypad locked.
#define MCE_TK_SILENT_LOCKED "silent-locked" |
Touchscreen/Keypad silently locked.
#define MCE_TK_LOCKED_DIM "locked-dim" |
Touchscreen/Keypad locked with fadeout.
#define MCE_TK_LOCKED_DELAY "locked-delay" |
Touchscreen/Keypad locked with delay.
#define MCE_TK_SILENT_LOCKED_DIM "silent-locked-dim" |
Touchscreen/Keypad silently locked with fadeout.
#define MCE_TK_UNLOCKED "unlocked" |
Touchscreen/Keypad unlocked.
#define MCE_TK_SILENT_UNLOCKED "silent-unlocked" |
Touchscreen/Keypad silently unlocked.
#define MCE_DISPLAY_ON_STRING "on" |
Display state name for display on.
#define MCE_DISPLAY_DIM_STRING "dimmed" |
Display state name for display dim.
#define MCE_DISPLAY_OFF_STRING "off" |
Display state name for display off.
#define MCE_PREVENT_BLANK_ACTIVE_STRING "active" |
Blank prevent state name for active.
#define MCE_PREVENT_BLANK_INACTIVE_STRING "inactive" |
Blank prevent state name for inactive.
#define MCE_INHIBIT_BLANK_ACTIVE_STRING "active" |
Blank inhibit state name for active.
#define MCE_INHIBIT_BLANK_INACTIVE_STRING "inactive" |
Blank inhibit state name for inactive.
#define MCE_BLANKING_POLICY_DEFAULT_STRING "default" |
Default blanking policy active.
#define MCE_BLANKING_POLICY_NOTIFICATION_STRING "notification" |
Default blanking policy disabled due to notifications.
#define MCE_BLANKING_POLICY_ALARM_STRING "alarm" |
Default blanking policy disabled due to alarm dialog state.
#define MCE_BLANKING_POLICY_CALL_STRING "call" |
Default blanking policy disabled due to call state.
#define MCE_BLANKING_POLICY_LINGER_STRING "linger" |
Default blanking policy is about to be restored.
#define MCE_CABC_MODE_OFF "off" |
CABC name for CABC disabled.
#define MCE_CABC_MODE_UI "ui" |
CABC name for UI mode.
#define MCE_CABC_MODE_STILL_IMAGE "still-image" |
CABC name for still image mode.
#define MCE_CABC_MODE_MOVING_IMAGE "moving-image" |
CABC name for moving image mode.
#define MCE_POWERKEY_EVENT_SHORT_PRESS (0u) |
Simulate single powerkey press.
#define MCE_POWERKEY_EVENT_LONG_PRESS (1u) |
Simulate long powerkey press.
#define MCE_POWERKEY_EVENT_DOUBLE_PRESS (2u) |
Simulate double powerkey press.
#define MCE_USB_CABLE_STATE_UNKNOWN "unknown" |
USB cable state is not known.
#define MCE_USB_CABLE_STATE_CONNECTED "connected" |
USB cable is connected.
#define MCE_USB_CABLE_STATE_DISCONNECTED "disconnected" |
USB cable is disconnected.
#define MCE_CHARGER_STATE_UNKNOWN "unknown" |
Charger state is not known.
#define MCE_CHARGER_STATE_ON "on" |
Charger is active.
#define MCE_CHARGER_STATE_OFF "off" |
Charger is inactive.
#define MCE_CHARGER_TYPE_NONE "none" |
No charger is active.
#define MCE_CHARGER_TYPE_USB "usb" |
Standard down port (pc/hub) charger is active.
#define MCE_CHARGER_TYPE_DCP "dcp" |
Dedicated charging port (wall) charger is active.
#define MCE_CHARGER_TYPE_HVDCP "hvdcp" |
High voltage DCP charger is active.
#define MCE_CHARGER_TYPE_CDP "cdp" |
Charging Downstream Port charger is active.
#define MCE_CHARGER_TYPE_WIRELESS "wireless" |
Wireless charger is active.
#define MCE_CHARGER_TYPE_OTHER "other" |
Other kind of charger is active.
#define MCE_CHARGING_STATE_UNKNOWN "unknown" |
Charging hysteresis policy state is not known.
#define MCE_CHARGING_STATE_ENABLED "enabled" |
Charging hysteresis policy allows charging.
#define MCE_CHARGING_STATE_DISABLED "disabled" |
Charging hysteresis policy denies charging.
#define MCE_FORCED_CHARGING_UNKNOWN "unknown" |
Charge-once-to-full policy override state is not known.
#define MCE_FORCED_CHARGING_ENABLED "enabled" |
Charge-once-to-full policy override has been activated.
#define MCE_FORCED_CHARGING_DISABLED "disabled" |
Charge-once-to-full policy override has been deactivated.
#define MCE_BATTERY_STATUS_UNKNOWN "unknown" |
Battery status is not known.
#define MCE_BATTERY_STATUS_FULL "full" |
Battery is full.
#define MCE_BATTERY_STATUS_OK "ok" |
Battery is neither full nor empty.
#define MCE_BATTERY_STATUS_LOW "low" |
Battery is low on power.
#define MCE_BATTERY_STATUS_EMPTY "empty" |
Battery is empty.
#define MCE_BATTERY_STATE_UNKNOWN "unknown" |
Battery state is not known.
#define MCE_BATTERY_STATE_DISCHARGING "discharging" |
Battery is currently discharging.
Charger is disconnected, battery is discharging.
#define MCE_BATTERY_STATE_CHARGING "charging" |
Battery is currently charging.
Charger is connected, battery is charging.
#define MCE_BATTERY_STATE_NOT_CHARGING "not_charging" |
Battery is not getting charged.
Charger is connected, battery is not getting charged.
#define MCE_BATTERY_STATE_FULL "full" |
Battery is fully charged.
Charger is connected, battery is full.
#define MCE_BATTERY_LEVEL_UNKNOWN (-1) |
Battery level percentage is not known.
#define MCE_INPUT_POLICY_ENABLED "enabled" |
Input events should be processed normally.
#define MCE_INPUT_POLICY_DISABLED "disabled" |
Input events should be ignored.
#define MCE_HARDWARE_KEYBOARD_UNDEF "undef" |
Hardware Keyboard availability is not known.
#define MCE_HARDWARE_KEYBOARD_AVAILABLE "available" |
Hardware Keyboard is available.
#define MCE_HARDWARE_KEYBOARD_NOT_AVAILABLE "not-available" |
Hardware Keyboard is not available.
#define MCE_HARDWARE_MOUSE_UNDEF "undef" |
Hardware Mouse availability is not known.
#define MCE_HARDWARE_MOUSE_AVAILABLE "available" |
Hardware Mouse is available.
#define MCE_HARDWARE_MOUSE_NOT_AVAILABLE "not-available" |
Hardware Mouse is not available.
#define MCE_FEEDBACK_EVENT_POWERKEY "powerkey" |
Notify that an application should handle powerkey press.
Normally MCE handles powerkey presses internally, however there are some exceptions - for example during alarms and incoming calls - where reacting to power key press is delegated to application ui relevant to the context.
See:
#define MCE_FEEDBACK_EVENT_FLIPOVER "flipover" |
Notify that an application should handle device flipover.
While there are incoming calls or ringing alarms, MCE does device flipover detection. Reacting to such "sensor gestures" is delegated to application ui relevant to the context.
See:
#define MCE_FEEDBACK_EVENT_UNLOCK "double-power-key" |
Request lockscreen ui to switch to device unlock view.
When MCE bumps into situation where removing tklock is requested while device is locked, it asks ui to switch into device unlock view instead of deactivating tklock.
See:
#define MCE_FEEDBACK_EVENT_HOMEKEY "home-key" |
Notify lipstick about homekey presses.
Artefact from tk7001 adaptation: The fingerprint sensor doubles as home key. To facilitate "wakeup display and activate fingerprint sensor" type activity homekey handling is divided in two parts: 1st mce subjects the press to similar unblanking rules as what is done to the powerkey and then after/when display is powered up reaction to the homekey is delegated to lipstick.
See:
#define MCE_SLIDING_KEYBOARD_UNDEF "undef" |
Sliding Keyboard state is not known.
#define MCE_SLIDING_KEYBOARD_OPEN "open" |
Sliding Keyboard is opened.
#define MCE_SLIDING_KEYBOARD_CLOSED "closed" |
Sliding Keyboard is closed.
#define MCE_LPM_UI_ENABLED "enabled" |
Display Low Power Mode is Enabled.
#define MCE_LPM_UI_DISABLED "disabled" |
Display Low Power Mode is Disabled.
#define MCE_MEMORY_LEVEL_NORMAL "normal" |
System memory use is at normal level.
#define MCE_MEMORY_LEVEL_WARNING "warning" |
System memory use is above normal level.
Signifies: Unnecesary resources should be released.
#define MCE_MEMORY_LEVEL_CRITICAL "critical" |
System memory use is at critical level.
Signifies: Unnecessary processes should exit. Non-critical processes can be expected to get terminated by kernel side out of memory killer.
#define MCE_MEMORY_LEVEL_UNKNOWN "unknown" |
System memory use can't be evaluated.
Signifies: Kernel does not provide memnotify interface and/or memory use limits have not been defined in mce configuration.
#define TKLOCK_UNLOCK 1 |
TKLock was unlocked by the user.
#define TKLOCK_RETRY 2 |
#define TKLOCK_TIMEOUT 3 |
#define TKLOCK_CLOSED 4 |
TKLock closed on request from mce.
#define MCE_BUTTON_BACKLIGHT_MODE_OFF 0 |
Button backlight should be turned off.
#define MCE_BUTTON_BACKLIGHT_MODE_ON 1 |
Button backlight should be turned on.
#define MCE_BUTTON_BACKLIGHT_MODE_POLICY 2 |
Button backlight should be turned on/off according to policy.