e-manafa
Contents:
E-MANAFA: Energy Monitor and ANAlyzer For Android
SETUP
Installation
Usage
Supported devices:
TODO
manafa
manafa package
Subpackages
manafa.parsing package
manafa.resources package
manafa.services package
manafa.tests package
manafa.utils package
Submodules
manafa.emanafa module
manafa.hunter_emanafa module
manafa.main module
Module contents
e-manafa
»
manafa
»
manafa package
»
manafa.utils package
View page source
manafa.utils package
¶
Submodules
¶
manafa.utils.Logger module
¶
class
manafa.utils.Logger.
LogSeverity
(
value
)
[source]
¶
Bases:
enum.Enum
An enumeration.
ERROR
=
'Error'
¶
FATAL
=
'Fatal'
¶
INFO
=
'Info'
¶
SUCCESS
=
'Success'
¶
WARNING
=
'Warning'
¶
manafa.utils.Logger.
getColor
(
sev
)
[source]
¶
manafa.utils.Logger.
log
(
message
,
log_sev=<LogSeverity.INFO:
'Info'>
,
time=1646224292.1531498
)
[source]
¶
manafa.utils.Utils module
¶
manafa.utils.Utils.
execute_shell_command
(
cmd
,
args
=
[]
)
[source]
¶
manafa.utils.Utils.
get_pack_dir
(
packname
=
'manafa'
)
[source]
¶
manafa.utils.Utils.
get_reference_dir
(
packname
)
[source]
¶
manafa.utils.Utils.
get_resources_dir
(
packname
=
'manafa'
,
default_res_dir
=
'resources'
)
[source]
¶
manafa.utils.Utils.
get_results_dir
(
packname
=
'manafa'
,
default_results_dir
=
'results'
)
[source]
¶
manafa.utils.Utils.
is_float
(
string
)
[source]
¶
manafa.utils.Utils.
mega_find
(
basedir
,
pattern
=
'*'
,
maxdepth
=
999
,
mindepth
=
0
,
type_file
=
'n'
)
[source]
¶
manafa.utils.dateUtils module
¶
manafa.utils.dateUtils.
batStatResetTimeToTimeStamp
(
matime
,
timezone
=
'UTC'
)
[source]
¶
manafa.utils.dateUtils.
convertBatStatTimeToTimeStamp
(
batstattime
,
timezone
=
'EST'
)
[source]
¶
manafa.utils.dateUtils.
convertDateToTimeStamp
(
date
,
timezone
=
'EST'
)
[source]
¶
manafa.utils.dateUtils.
convertToUnixTimestamp
(
batstattime
)
[source]
¶
manafa.utils.dateUtils.
epochToDate
(
ts
)
[source]
¶
Module contents
¶