MCE D-Bus Interface 1.10.x
mode-names.h File Reference

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.
 

Detailed Description

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.

Author
David Weinehall david.nosp@m..wei.nosp@m.nehal.nosp@m.l@no.nosp@m.kia.c.nosp@m.om
Tapio Rantala ext-t.nosp@m.apio.nosp@m..rant.nosp@m.ala@.nosp@m.nokia.nosp@m..com
Vesa Halttunen vesa..nosp@m.halt.nosp@m.tunen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com
Simo Piiroinen simo..nosp@m.piir.nosp@m.oinen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com
Kimmo Lindholm kimmo.nosp@m..lin.nosp@m.dholm.nosp@m.@eke.nosp@m..fi

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/.

Macro Definition Documentation

◆ MCE_RADIO_STATE_MASTER

#define MCE_RADIO_STATE_MASTER   (1 << 0)

Master switch; set - radios enabled, unset - radios disabled.

Since
mce 1.10.60
Note
Effectively is an alias for connman offline mode property. Chamges to offline mode are reflected to mce master radio bit and vise versa.

◆ MCE_RADIO_STATE_CELLULAR

#define MCE_RADIO_STATE_CELLULAR   (1 << 1)

Cellular; set - enabled, unset - disabled.

Since
mce 1.10.60
Note
Currently this exists for backwards compatibility only.

◆ MCE_RADIO_STATE_WLAN

#define MCE_RADIO_STATE_WLAN   (1 << 2)

WLAN; set - enabled, unset - disabled.

Since
mce 1.10.60
Note
Currently this exists for backwards compatibility only.

◆ MCE_RADIO_STATE_BLUETOOTH

#define MCE_RADIO_STATE_BLUETOOTH   (1 << 3)

Bluetooth; set - enabled, unset - disabled.

Since
mce 1.10.60
Note
Currently this exists for backwards compatibility only.

◆ MCE_RADIO_STATE_NFC

#define MCE_RADIO_STATE_NFC   (1 << 4)

NFC; set - enabled, unset - disabled.

Since
mce 1.10.93
Note
Currently this exists for backwards compatibility only.

◆ MCE_RADIO_STATE_FMTX

#define MCE_RADIO_STATE_FMTX   (1 << 5)

FM transmitter; set - enabled, unset - disabled.

Since
mce 1.10.93
Note
Currently this exists for backwards compatibility only.

◆ MCE_CALL_STATE_NONE

#define MCE_CALL_STATE_NONE   "none"

No ongoing call.

Since
mce 1.8.4

◆ MCE_CALL_STATE_RINGING

#define MCE_CALL_STATE_RINGING   "ringing"

Call ringing.

Since
mce 1.8.29

◆ MCE_CALL_STATE_ACTIVE

#define MCE_CALL_STATE_ACTIVE   "active"

Call on-going.

Since
mce 1.8.29

◆ MCE_CALL_STATE_SERVICE

#define MCE_CALL_STATE_SERVICE   "service"

Service operation on-going.

Since
mce 1.8.29
Deprecated
No longer in active use.

Use to prevent calls from being initiated; will not prevent emergency calls

◆ MCE_NORMAL_CALL

#define MCE_NORMAL_CALL   "normal"

Normal call.

Since
mce 1.8.4

◆ MCE_EMERGENCY_CALL

#define MCE_EMERGENCY_CALL   "emergency"

Emergency call.

Since
mce 1.8.4

◆ MCE_TK_LOCKED

#define MCE_TK_LOCKED   "locked"

Touchscreen/Keypad locked.

Since
mce 1.4.5

◆ MCE_TK_SILENT_LOCKED

#define MCE_TK_SILENT_LOCKED   "silent-locked"

Touchscreen/Keypad silently locked.

Since
mce 1.4.15
Deprecated
Handled as an alias for MCE_TK_LOCKED

◆ MCE_TK_LOCKED_DIM

#define MCE_TK_LOCKED_DIM   "locked-dim"

Touchscreen/Keypad locked with fadeout.

Since
mce 1.4.15
Deprecated
Handled as an alias for MCE_TK_LOCKED

◆ MCE_TK_LOCKED_DELAY

#define MCE_TK_LOCKED_DELAY   "locked-delay"

Touchscreen/Keypad locked with delay.

Since
mce 1.12.2
Deprecated
Handled as an alias for MCE_TK_LOCKED

◆ MCE_TK_SILENT_LOCKED_DIM

#define MCE_TK_SILENT_LOCKED_DIM   "silent-locked-dim"

Touchscreen/Keypad silently locked with fadeout.

Since
mce 1.4.15
Deprecated
Handled as an alias for MCE_TK_LOCKED

◆ MCE_TK_UNLOCKED

#define MCE_TK_UNLOCKED   "unlocked"

Touchscreen/Keypad unlocked.

Since
mce 1.4.5

◆ MCE_TK_SILENT_UNLOCKED

#define MCE_TK_SILENT_UNLOCKED   "silent-unlocked"

Touchscreen/Keypad silently unlocked.

Since
mce 1.6.33
Deprecated
Handled as an alias for MCE_TK_UNLOCKED

◆ MCE_DISPLAY_ON_STRING

#define MCE_DISPLAY_ON_STRING   "on"

Display state name for display on.

Since
mce 1.5.21

◆ MCE_DISPLAY_DIM_STRING

#define MCE_DISPLAY_DIM_STRING   "dimmed"

Display state name for display dim.

Since
mce 1.5.21

◆ MCE_DISPLAY_OFF_STRING

#define MCE_DISPLAY_OFF_STRING   "off"

Display state name for display off.

Since
mce 1.5.21

◆ MCE_PREVENT_BLANK_ACTIVE_STRING

#define MCE_PREVENT_BLANK_ACTIVE_STRING   "active"

Blank prevent state name for active.

Since
mce 1.51.0

◆ MCE_PREVENT_BLANK_INACTIVE_STRING

#define MCE_PREVENT_BLANK_INACTIVE_STRING   "inactive"

Blank prevent state name for inactive.

Since
mce 1.51.0

◆ MCE_INHIBIT_BLANK_ACTIVE_STRING

#define MCE_INHIBIT_BLANK_ACTIVE_STRING   "active"

Blank inhibit state name for active.

Since
mce 1.51.0

◆ MCE_INHIBIT_BLANK_INACTIVE_STRING

#define MCE_INHIBIT_BLANK_INACTIVE_STRING   "inactive"

Blank inhibit state name for inactive.

Since
mce 1.51.0

◆ MCE_BLANKING_POLICY_DEFAULT_STRING

#define MCE_BLANKING_POLICY_DEFAULT_STRING   "default"

Default blanking policy active.

Since
mce 1.55.0

◆ MCE_BLANKING_POLICY_NOTIFICATION_STRING

#define MCE_BLANKING_POLICY_NOTIFICATION_STRING   "notification"

Default blanking policy disabled due to notifications.

Since
mce 1.55.0

◆ MCE_BLANKING_POLICY_ALARM_STRING

#define MCE_BLANKING_POLICY_ALARM_STRING   "alarm"

Default blanking policy disabled due to alarm dialog state.

Since
mce 1.55.0

◆ MCE_BLANKING_POLICY_CALL_STRING

#define MCE_BLANKING_POLICY_CALL_STRING   "call"

Default blanking policy disabled due to call state.

Since
mce 1.55.0

◆ MCE_BLANKING_POLICY_LINGER_STRING

#define MCE_BLANKING_POLICY_LINGER_STRING   "linger"

Default blanking policy is about to be restored.

Since
mce 1.55.0

◆ MCE_CABC_MODE_OFF

#define MCE_CABC_MODE_OFF   "off"

CABC name for CABC disabled.

Since
mce 1.8.88

◆ MCE_CABC_MODE_UI

#define MCE_CABC_MODE_UI   "ui"

CABC name for UI mode.

Since
mce 1.8.88

◆ MCE_CABC_MODE_STILL_IMAGE

#define MCE_CABC_MODE_STILL_IMAGE   "still-image"

CABC name for still image mode.

Since
mce 1.8.88

◆ MCE_CABC_MODE_MOVING_IMAGE

#define MCE_CABC_MODE_MOVING_IMAGE   "moving-image"

CABC name for moving image mode.

Since
mce 1.8.88

◆ MCE_POWERKEY_EVENT_SHORT_PRESS

#define MCE_POWERKEY_EVENT_SHORT_PRESS   (0u)

Simulate single powerkey press.

Since
mce 1.10.54

◆ MCE_POWERKEY_EVENT_LONG_PRESS

#define MCE_POWERKEY_EVENT_LONG_PRESS   (1u)

Simulate long powerkey press.

Since
mce 1.10.54

◆ MCE_POWERKEY_EVENT_DOUBLE_PRESS

#define MCE_POWERKEY_EVENT_DOUBLE_PRESS   (2u)

Simulate double powerkey press.

Since
mce 1.10.54

◆ MCE_USB_CABLE_STATE_UNKNOWN

#define MCE_USB_CABLE_STATE_UNKNOWN   "unknown"

USB cable state is not known.

Since
mce 1.86.0

◆ MCE_USB_CABLE_STATE_CONNECTED

#define MCE_USB_CABLE_STATE_CONNECTED   "connected"

USB cable is connected.

Since
mce 1.86.0

◆ MCE_USB_CABLE_STATE_DISCONNECTED

#define MCE_USB_CABLE_STATE_DISCONNECTED   "disconnected"

USB cable is disconnected.

Since
mce 1.86.0

◆ MCE_CHARGER_STATE_UNKNOWN

#define MCE_CHARGER_STATE_UNKNOWN   "unknown"

Charger state is not known.

Since
mce 1.86.0

◆ MCE_CHARGER_STATE_ON

#define MCE_CHARGER_STATE_ON   "on"

Charger is active.

Since
mce 1.86.0

◆ MCE_CHARGER_STATE_OFF

#define MCE_CHARGER_STATE_OFF   "off"

Charger is inactive.

Since
mce 1.86.0

◆ MCE_CHARGER_TYPE_NONE

#define MCE_CHARGER_TYPE_NONE   "none"

No charger is active.

Since
mce 1.102.0

◆ MCE_CHARGER_TYPE_USB

#define MCE_CHARGER_TYPE_USB   "usb"

Standard down port (pc/hub) charger is active.

Since
mce 1.102.0

◆ MCE_CHARGER_TYPE_DCP

#define MCE_CHARGER_TYPE_DCP   "dcp"

Dedicated charging port (wall) charger is active.

Since
mce 1.102.0

◆ MCE_CHARGER_TYPE_HVDCP

#define MCE_CHARGER_TYPE_HVDCP   "hvdcp"

High voltage DCP charger is active.

Since
mce 1.102.0

◆ MCE_CHARGER_TYPE_CDP

#define MCE_CHARGER_TYPE_CDP   "cdp"

Charging Downstream Port charger is active.

Since
mce 1.102.0

◆ MCE_CHARGER_TYPE_WIRELESS

#define MCE_CHARGER_TYPE_WIRELESS   "wireless"

Wireless charger is active.

Since
mce 1.102.0

◆ MCE_CHARGER_TYPE_OTHER

#define MCE_CHARGER_TYPE_OTHER   "other"

Other kind of charger is active.

Since
mce 1.102.0

◆ MCE_CHARGING_STATE_UNKNOWN

#define MCE_CHARGING_STATE_UNKNOWN   "unknown"

Charging hysteresis policy state is not known.

Since
mce 1.110.0

◆ MCE_CHARGING_STATE_ENABLED

#define MCE_CHARGING_STATE_ENABLED   "enabled"

Charging hysteresis policy allows charging.

Since
mce 1.110.0

◆ MCE_CHARGING_STATE_DISABLED

#define MCE_CHARGING_STATE_DISABLED   "disabled"

Charging hysteresis policy denies charging.

Since
mce 1.110.0

◆ MCE_FORCED_CHARGING_UNKNOWN

#define MCE_FORCED_CHARGING_UNKNOWN   "unknown"

Charge-once-to-full policy override state is not known.

Since
mce 1.112.0

◆ MCE_FORCED_CHARGING_ENABLED

#define MCE_FORCED_CHARGING_ENABLED   "enabled"

Charge-once-to-full policy override has been activated.

Since
mce 1.112.0

◆ MCE_FORCED_CHARGING_DISABLED

#define MCE_FORCED_CHARGING_DISABLED   "disabled"

Charge-once-to-full policy override has been deactivated.

Since
mce 1.112.0

◆ MCE_BATTERY_STATUS_UNKNOWN

#define MCE_BATTERY_STATUS_UNKNOWN   "unknown"

Battery status is not known.

Since
mce 1.86.0

◆ MCE_BATTERY_STATUS_FULL

#define MCE_BATTERY_STATUS_FULL   "full"

Battery is full.

Since
mce 1.86.0

◆ MCE_BATTERY_STATUS_OK

#define MCE_BATTERY_STATUS_OK   "ok"

Battery is neither full nor empty.

Since
mce 1.86.0

◆ MCE_BATTERY_STATUS_LOW

#define MCE_BATTERY_STATUS_LOW   "low"

Battery is low on power.

Since
mce 1.86.0

◆ MCE_BATTERY_STATUS_EMPTY

#define MCE_BATTERY_STATUS_EMPTY   "empty"

Battery is empty.

Since
mce 1.86.0

◆ MCE_BATTERY_STATE_UNKNOWN

#define MCE_BATTERY_STATE_UNKNOWN   "unknown"

Battery state is not known.

Since
mce 1.104.0

◆ MCE_BATTERY_STATE_DISCHARGING

#define MCE_BATTERY_STATE_DISCHARGING   "discharging"

Battery is currently discharging.

Charger is disconnected, battery is discharging.

Since
mce 1.104.0

◆ MCE_BATTERY_STATE_CHARGING

#define MCE_BATTERY_STATE_CHARGING   "charging"

Battery is currently charging.

Charger is connected, battery is charging.

Since
mce 1.104.0

◆ MCE_BATTERY_STATE_NOT_CHARGING

#define MCE_BATTERY_STATE_NOT_CHARGING   "not_charging"

Battery is not getting charged.

Charger is connected, battery is not getting charged.

Since
mce 1.104.0

◆ MCE_BATTERY_STATE_FULL

#define MCE_BATTERY_STATE_FULL   "full"

Battery is fully charged.

Charger is connected, battery is full.

Since
mce 1.104.0

◆ MCE_BATTERY_LEVEL_UNKNOWN

#define MCE_BATTERY_LEVEL_UNKNOWN   (-1)

Battery level percentage is not known.

Since
mce 1.86.0

◆ MCE_INPUT_POLICY_ENABLED

#define MCE_INPUT_POLICY_ENABLED   "enabled"

Input events should be processed normally.

Since
mce 1.87.0

◆ MCE_INPUT_POLICY_DISABLED

#define MCE_INPUT_POLICY_DISABLED   "disabled"

Input events should be ignored.

Since
mce 1.87.0

◆ MCE_HARDWARE_KEYBOARD_UNDEF

#define MCE_HARDWARE_KEYBOARD_UNDEF   "undef"

Hardware Keyboard availability is not known.

Since
mce 1.39.0

◆ MCE_HARDWARE_KEYBOARD_AVAILABLE

#define MCE_HARDWARE_KEYBOARD_AVAILABLE   "available"

Hardware Keyboard is available.

Since
mce 1.39.0

◆ MCE_HARDWARE_KEYBOARD_NOT_AVAILABLE

#define MCE_HARDWARE_KEYBOARD_NOT_AVAILABLE   "not-available"

Hardware Keyboard is not available.

Since
mce 1.39.0

◆ MCE_HARDWARE_MOUSE_UNDEF

#define MCE_HARDWARE_MOUSE_UNDEF   "undef"

Hardware Mouse availability is not known.

Since
mce 1.109.0

◆ MCE_HARDWARE_MOUSE_AVAILABLE

#define MCE_HARDWARE_MOUSE_AVAILABLE   "available"

Hardware Mouse is available.

Since
mce 1.109.0

◆ MCE_HARDWARE_MOUSE_NOT_AVAILABLE

#define MCE_HARDWARE_MOUSE_NOT_AVAILABLE   "not-available"

Hardware Mouse is not available.

Since
mce 1.109.0

◆ MCE_FEEDBACK_EVENT_POWERKEY

#define MCE_FEEDBACK_EVENT_POWERKEY   "powerkey"

Notify that an application should handle powerkey press.

Since
mce 1.26.0

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:

◆ MCE_FEEDBACK_EVENT_FLIPOVER

#define MCE_FEEDBACK_EVENT_FLIPOVER   "flipover"

Notify that an application should handle device flipover.

Since
mce 1.26.0

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:

◆ MCE_FEEDBACK_EVENT_UNLOCK

#define MCE_FEEDBACK_EVENT_UNLOCK   "double-power-key"

Request lockscreen ui to switch to device unlock view.

Since
mce 1.37.0

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:

Note
The "double-power-key" value is just unfortunate historical artefact that can't be changed without causing a D-Bus API break.

◆ MCE_FEEDBACK_EVENT_HOMEKEY

#define MCE_FEEDBACK_EVENT_HOMEKEY   "home-key"

Notify lipstick about homekey presses.

Since
mce 1.82.0

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:

◆ MCE_SLIDING_KEYBOARD_UNDEF

#define MCE_SLIDING_KEYBOARD_UNDEF   "undef"

Sliding Keyboard state is not known.

Since
mce 1.39.0

◆ MCE_SLIDING_KEYBOARD_OPEN

#define MCE_SLIDING_KEYBOARD_OPEN   "open"

Sliding Keyboard is opened.

Since
mce 1.39.0

◆ MCE_SLIDING_KEYBOARD_CLOSED

#define MCE_SLIDING_KEYBOARD_CLOSED   "closed"

Sliding Keyboard is closed.

Since
mce 1.39.0

◆ MCE_LPM_UI_ENABLED

#define MCE_LPM_UI_ENABLED   "enabled"

Display Low Power Mode is Enabled.

Since
mce 1.30.0

◆ MCE_LPM_UI_DISABLED

#define MCE_LPM_UI_DISABLED   "disabled"

Display Low Power Mode is Disabled.

Since
mce 1.30.0

◆ MCE_MEMORY_LEVEL_NORMAL

#define MCE_MEMORY_LEVEL_NORMAL   "normal"

System memory use is at normal level.

Since
mce 1.35.0

◆ MCE_MEMORY_LEVEL_WARNING

#define MCE_MEMORY_LEVEL_WARNING   "warning"

System memory use is above normal level.

Since
mce 1.35.0

Signifies: Unnecesary resources should be released.

◆ MCE_MEMORY_LEVEL_CRITICAL

#define MCE_MEMORY_LEVEL_CRITICAL   "critical"

System memory use is at critical level.

Since
mce 1.35.0

Signifies: Unnecessary processes should exit. Non-critical processes can be expected to get terminated by kernel side out of memory killer.

◆ MCE_MEMORY_LEVEL_UNKNOWN

#define MCE_MEMORY_LEVEL_UNKNOWN   "unknown"

System memory use can't be evaluated.

Since
mce 1.35.0

Signifies: Kernel does not provide memnotify interface and/or memory use limits have not been defined in mce configuration.

◆ TKLOCK_UNLOCK

#define TKLOCK_UNLOCK   1

TKLock was unlocked by the user.

Since
mce 1.10.92 (legacy)

◆ TKLOCK_RETRY

#define TKLOCK_RETRY   2

TKLock unlock attempt failed.

Since
mce 1.10.92 (legacy)
Deprecated
Ignored by MCE

◆ TKLOCK_TIMEOUT

#define TKLOCK_TIMEOUT   3

Attempt to open TKLock timed out.

Since
mce 1.10.92 (legacy)
Deprecated
Ignored by MCE

◆ TKLOCK_CLOSED

#define TKLOCK_CLOSED   4

TKLock closed on request from mce.

Since
mce 1.10.92 (legacy)

◆ MCE_BUTTON_BACKLIGHT_MODE_OFF

#define MCE_BUTTON_BACKLIGHT_MODE_OFF   0

Button backlight should be turned off.

Since
mce 1.98.0

◆ MCE_BUTTON_BACKLIGHT_MODE_ON

#define MCE_BUTTON_BACKLIGHT_MODE_ON   1

Button backlight should be turned on.

Since
mce 1.98.0

◆ MCE_BUTTON_BACKLIGHT_MODE_POLICY

#define MCE_BUTTON_BACKLIGHT_MODE_POLICY   2

Button backlight should be turned on/off according to policy.

Since
mce 1.98.0