~aleteoryx/muditaos

ref: e433e8dd033c0212b6b906ee6ff5743f4994135e muditaos/module-services/service-appmgr/doc/auto-lock/auto_lock_activity_detection.svg -rw-r--r-- 9.9 KiB
e433e8dd — GravisZro Fix transparent backgrounds in PlantUML 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="412px" preserveAspectRatio="none" style="width:738px;height:412px;background:#F0F0F0;" version="1.1" viewBox="0 0 738 412" width="738px" zoomAndPan="magnify"><defs><filter height="300%" id="f1hg25pkqoip3w" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><rect fill="#FFFFFF" filter="url(#f1hg25pkqoip3w)" height="16" style="stroke: #A80036; stroke-width: 1.0;" width="10" x="80.5" y="300.2266"/><rect fill="#FFFFFF" filter="url(#f1hg25pkqoip3w)" height="29.1328" style="stroke: #A80036; stroke-width: 1.0;" width="10" x="229" y="217.8281"/><rect fill="#FFFFFF" filter="url(#f1hg25pkqoip3w)" height="127.5313" style="stroke: #A80036; stroke-width: 1.0;" width="10" x="389.5" y="188.6953"/><rect fill="#FFFFFF" filter="url(#f1hg25pkqoip3w)" height="71.2656" style="stroke: #A80036; stroke-width: 1.0;" width="10" x="572.5" y="117.4297"/><rect fill="#F0F0F0" filter="url(#f1hg25pkqoip3w)" height="46.2656" style="stroke: #000000; stroke-width: 2.0;" width="466" x="13" y="261.9609"/><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="85" x2="85" y1="86.2969" y2="325.2266"/><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="234" x2="234" y1="86.2969" y2="325.2266"/><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="394" x2="394" y1="86.2969" y2="325.2266"/><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="577" x2="577" y1="86.2969" y2="325.2266"/><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="713.5" x2="713.5" y1="86.2969" y2="325.2266"/><rect fill="#FEFECE" filter="url(#f1hg25pkqoip3w)" height="30.2969" style="stroke: #A80036; stroke-width: 1.5;" width="121" x="23" y="51"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="107" x="30" y="70.9951">AutoLock Timer</text><rect fill="#FEFECE" filter="url(#f1hg25pkqoip3w)" height="30.2969" style="stroke: #A80036; stroke-width: 1.5;" width="121" x="23" y="324.2266"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="107" x="30" y="344.2217">AutoLock Timer</text><rect fill="#FEFECE" filter="url(#f1hg25pkqoip3w)" height="30.2969" style="stroke: #A80036; stroke-width: 1.5;" width="148" x="158" y="51"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="134" x="165" y="70.9951">PhoneLock Handler</text><rect fill="#FEFECE" filter="url(#f1hg25pkqoip3w)" height="30.2969" style="stroke: #A80036; stroke-width: 1.5;" width="148" x="158" y="324.2266"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="134" x="165" y="344.2217">PhoneLock Handler</text><rect fill="#FEFECE" filter="url(#f1hg25pkqoip3w)" height="30.2969" style="stroke: #A80036; stroke-width: 1.5;" width="145" x="320" y="51"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="131" x="327" y="70.9951">Application Manger</text><rect fill="#FEFECE" filter="url(#f1hg25pkqoip3w)" height="30.2969" style="stroke: #A80036; stroke-width: 1.5;" width="145" x="320" y="324.2266"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="131" x="327" y="344.2217">Application Manger</text><rect fill="#FEFECE" filter="url(#f1hg25pkqoip3w)" height="30.2969" style="stroke: #A80036; stroke-width: 1.5;" width="117" x="517" y="51"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="103" x="524" y="70.9951">Event Manager</text><rect fill="#FEFECE" filter="url(#f1hg25pkqoip3w)" height="30.2969" style="stroke: #A80036; stroke-width: 1.5;" width="117" x="517" y="324.2266"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="103" x="524" y="344.2217">Event Manager</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="32" x="694.5" y="82.9951">User</text><ellipse cx="713.5" cy="13" fill="#FEFECE" filter="url(#f1hg25pkqoip3w)" rx="8" ry="8" style="stroke: #A80036; stroke-width: 2.0;"/><path d="M713.5,21 L713.5,48 M700.5,29 L726.5,29 M713.5,48 L700.5,63 M713.5,48 L726.5,63 " fill="none" filter="url(#f1hg25pkqoip3w)" style="stroke: #A80036; stroke-width: 2.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="32" x="694.5" y="337.2217">User</text><ellipse cx="713.5" cy="350.5234" fill="#FEFECE" filter="url(#f1hg25pkqoip3w)" rx="8" ry="8" style="stroke: #A80036; stroke-width: 2.0;"/><path d="M713.5,358.5234 L713.5,385.5234 M700.5,366.5234 L726.5,366.5234 M713.5,385.5234 L700.5,400.5234 M713.5,385.5234 L726.5,400.5234 " fill="none" filter="url(#f1hg25pkqoip3w)" style="stroke: #A80036; stroke-width: 2.0;"/><rect fill="#FFFFFF" filter="url(#f1hg25pkqoip3w)" height="16" style="stroke: #A80036; stroke-width: 1.0;" width="10" x="80.5" y="300.2266"/><rect fill="#FFFFFF" filter="url(#f1hg25pkqoip3w)" height="29.1328" style="stroke: #A80036; stroke-width: 1.0;" width="10" x="229" y="217.8281"/><rect fill="#FFFFFF" filter="url(#f1hg25pkqoip3w)" height="127.5313" style="stroke: #A80036; stroke-width: 1.0;" width="10" x="389.5" y="188.6953"/><rect fill="#FFFFFF" filter="url(#f1hg25pkqoip3w)" height="71.2656" style="stroke: #A80036; stroke-width: 1.0;" width="10" x="572.5" y="117.4297"/><polygon fill="#A80036" points="593.5,113.4297,583.5,117.4297,593.5,121.4297,589.5,117.4297" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="587.5" x2="712.5" y1="117.4297" y2="117.4297"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="112" x="599.5" y="112.3638">key press/release</text><line style="stroke: #A80036; stroke-width: 1.0;" x1="582.5" x2="624.5" y1="146.5625" y2="146.5625"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="624.5" x2="624.5" y1="146.5625" y2="159.5625"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="583.5" x2="624.5" y1="159.5625" y2="159.5625"/><polygon fill="#A80036" points="593.5,155.5625,583.5,159.5625,593.5,163.5625,589.5,159.5625" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="90" x="589.5" y="141.4966">process event</text><polygon fill="#A80036" points="410.5,184.6953,400.5,188.6953,410.5,192.6953,406.5,188.6953" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="404.5" x2="576.5" y1="188.6953" y2="188.6953"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="154" x="416.5" y="183.6294">PreventBlockingRequest</text><polygon fill="#A80036" points="250,213.8281,240,217.8281,250,221.8281,246,217.8281" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="244" x2="388.5" y1="217.8281" y2="217.8281"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="55" x="256" y="212.7622">isLocked</text><polygon fill="#A80036" points="377.5,242.9609,387.5,246.9609,377.5,250.9609,381.5,246.9609" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 2.0,2.0;" x1="234" x2="383.5" y1="246.9609" y2="246.9609"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="59" x="241" y="241.895">response</text><path d="M13,261.9609 L77,261.9609 L77,268.9609 L67,278.9609 L13,278.9609 L13,261.9609 " fill="#EEEEEE" style="stroke: #000000; stroke-width: 1.0;"/><rect fill="none" height="46.2656" style="stroke: #000000; stroke-width: 2.0;" width="466" x="13" y="261.9609"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="19" x="28" y="275.0278">alt</text><a href="" target="_top" title="" xlink:actuate="onRequest" xlink:href="" xlink:show="new" xlink:title="" xlink:type="simple"><text fill="#0000FF" font-family="sans-serif" font-size="11" font-weight="bold" lengthAdjust="spacingAndGlyphs" text-decoration="underline" textLength="68" x="92" y="274.1714">Not locked</text></a><polygon fill="#A80036" points="101.5,296.2266,91.5,300.2266,101.5,304.2266,97.5,300.2266" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.0;" x1="95.5" x2="388.5" y1="300.2266" y2="300.2266"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="53" x="107.5" y="295.1606">(re)start</text><!--MD5=[78ac571f8a7f392beb5830965945a2eb]
@startuml
skinparam BackgroundColor F0F0F0

participant "AutoLock Timer" as timer
participant "PhoneLock Handler" as lock
participant "Application Manger" as apm
participant "Event Manager" as evnt
actor "User" as user

user -> evnt : key press/release
activate evnt
evnt->evnt : process event
evnt->apm : PreventBlockingRequest
deactivate evnt
activate apm

apm->lock : isLocked
activate lock
lock- ->apm : response
deactivate lock

alt [ Not locked ]
apm -> timer : (re)start
activate timer
end

@enduml

PlantUML version 1.2020.02(Sun Mar 01 05:22:07 EST 2020)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 11.0.12+7-post-Debian-2
Operating System: Linux
Default Encoding: UTF-8
Language: en
Country: US
--></g></svg>