icon_android Android

The processor sensor measures the mobile phone’s processor load. It provides the average processors load (for multi-core devices) dedicated to the user processes, system processes and idle (i.e., no load). It also broadcasts when the processor is under stress or relaxed.

Settings

  • Aware_Preferences.STATUS_PROCESSOR: true or false to activate or deactivate sensor.
  • Aware_Preferences.FREQUENCY_PROCESSOR: frequency in seconds to update the processor load, by default is 10 seconds.

aware-broadcasts

  • Processor.ACTION_AWARE_PROCESSOR: broadcasted when new data exists in Context Provider.
  • Processor.ACTION_AWARE_PROCESSOR_STRESSED: broadcasted when the processing load is above 90%.
  • Processor.ACTION_AWARE_PROCESSOR_RELAXED: broadcasted when the processing load is below 10%.

aware-providers

Processor Data

Contains the CPU load data.

Processor_Data.CONTENT_URI
content://com.aware.provider.processor/processor

Table field Field type Description
_id INTEGER primary key, auto incremented
timestamp REAL unixtime milliseconds since 1970
device_id TEXT AWARE device UUID
double_last_user REAL last user CPU ticks
double_last_system REAL last system CPU ticks
double_last_idle REAL last idle CPU ticks
double_user_load REAL percentage of CPU load dedicated to user’s processes
double_system_load REAL percentage of CPU load dedicated to system’s processes
double_idle_load REAL percentage of idle CPU load

 


icon_ios iOS

The processor sensor measures the mobile phone’s processor load. It provides the average processors load (for multi-core devices) dedicated to the user processes, system processes and idle (i.e., no load).

aware-broadcasts

aware-providers

Processor Data

Contains the CPU load data.

Table field Field type Description
_id INTEGER primary key, auto incremented
timestamp REAL unixtime milliseconds since 1970
device_id TEXT AWARE device UUID
double_last_user REAL last user CPU ticks
double_last_system REAL last system CPU ticks
double_last_idle REAL last idle CPU ticks
double_user_load REAL not supported on iOS
double_system_load REAL not supported on iOS
double_idle_load REAL not supported on iOS

Processor