summaryrefslogtreecommitdiffstats
path: root/chromium/base/android/jni_generator/doc/jni-check-flow.svg
blob: c7a5e485a03442cd8745056465a780d94c252888 (plain)
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="337px" preserveAspectRatio="none" style="width:500px;height:337px;" version="1.1" viewBox="0 0 500 337" width="500px" zoomAndPan="magnify"><defs/><g><rect fill="#DDDDDD" height="156.4844" style="stroke: #000000; stroke-width: 2.0;" width="454" x="10" y="72.0205"/><path d="M144,73.0205 L144,81.3174 L134,91.3174 L10,91.3174 " fill="none" style="stroke: #000000; stroke-width: 2.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="124" x="13" y="86.0156">Debug builds only</text><polygon fill="#F8F8F8" points="32,111.3174,125,111.3174,137,130.5244,125,149.7314,32,149.7314,20,130.5244,32,111.3174" style="stroke: #383838; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="21" x="82.5" y="159.9419">Yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="0" x="36" y="121.5278"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="93" x="32" y="134.3325">Mocks installed?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="0" x="36" y="147.1372"/><rect fill="#F8F8F8" height="33.9688" rx="12.5" ry="12.5" style="stroke: #383838; stroke-width: 1.5;" width="116" x="20.5" y="182.5361"/><text fill="#000000" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="96" x="30.5" y="203.6748">Return mocks</text><polygon fill="#F8F8F8" points="169,111.3174,262,111.3174,274,130.5244,262,149.7314,169,149.7314,157,130.5244,169,111.3174" style="stroke: #383838; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="21" x="219.5" y="159.9419">Yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="0" x="173" y="121.5278"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="93" x="169" y="134.3325">Mocks required?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="0" x="173" y="147.1372"/><rect fill="#BCBCBC" height="33.9688" rx="12.5" ry="12.5" style="stroke: #383838; stroke-width: 1.5;" width="55" x="188" y="182.5361"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="35" x="198" y="203.6748">throw</text><polygon fill="#F8F8F8" points="306,111.3174,440,111.3174,452,130.5244,440,149.7314,306,149.7314,294,130.5244,306,111.3174" style="stroke: #383838; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="15" x="377" y="159.9419">No</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="0" x="310" y="121.5278"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="134" x="306" y="134.3325">Native libraries loaded?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="0" x="310" y="147.1372"/><rect fill="#BCBCBC" height="33.9688" rx="12.5" ry="12.5" style="stroke: #383838; stroke-width: 1.5;" width="55" x="345.5" y="182.5361"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="35" x="355.5" y="203.6748">throw</text><polygon fill="#F8F8F8" points="212.5,11.0942,309.5,11.0942,321.5,30.3013,309.5,49.5083,212.5,49.5083,200.5,30.3013,212.5,11.0942" style="stroke: #383838; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="21" x="265" y="59.7188">Yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="0" x="216.5" y="21.3047"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="97" x="212.5" y="34.1094">Testing enabled?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="0" x="216.5" y="46.9141"/><polygon fill="#F8F8F8" points="261,248.5049,273,260.5049,261,272.5049,249,260.5049,261,248.5049" style="stroke: #383838; stroke-width: 1.5;"/><rect fill="#F8F8F8" height="33.9688" rx="12.5" ry="12.5" style="stroke: #383838; stroke-width: 1.5;" width="161" x="180.5" y="292.5049"/><text fill="#000000" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="141" x="190.5" y="313.6436">Return live instance</text><line style="stroke: #383838; stroke-width: 1.5;" x1="78.5" x2="78.5" y1="149.7314" y2="182.5361"/><polygon fill="#383838" points="74.5,172.5361,78.5,182.5361,82.5,172.5361,78.5,176.5361" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.5;" x1="215.5" x2="215.5" y1="149.7314" y2="182.5361"/><polygon fill="#383838" points="211.5,172.5361,215.5,182.5361,219.5,172.5361,215.5,176.5361" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.5;" x1="373" x2="373" y1="149.7314" y2="182.5361"/><polygon fill="#383838" points="369,172.5361,373,182.5361,377,172.5361,373,176.5361" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.5;" x1="137" x2="157" y1="130.5244" y2="130.5244"/><polygon fill="#383838" points="147,126.5244,157,130.5244,147,134.5244,151,130.5244" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.5;" x1="274" x2="294" y1="130.5244" y2="130.5244"/><polygon fill="#383838" points="284,126.5244,294,130.5244,284,134.5244,288,130.5244" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #000000; stroke-width: 1.5; stroke-dasharray: 1.0,3.0;" x1="261" x2="261" y1="49.5083" y2="96.3174"/><line style="stroke: #000000; stroke-width: 1.5; stroke-dasharray: 1.0,3.0;" x1="261" x2="78.5" y1="96.3174" y2="96.3174"/><line style="stroke: #000000; stroke-width: 1.5; stroke-dasharray: 1.0,3.0;" x1="78.5" x2="78.5" y1="96.3174" y2="111.3174"/><polygon fill="#000000" points="74.5,101.3174,78.5,111.3174,82.5,101.3174,78.5,105.3174" style="stroke: #000000; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.5;" x1="452" x2="457" y1="130.5244" y2="130.5244"/><line style="stroke: #383838; stroke-width: 1.5;" x1="457" x2="457" y1="130.5244" y2="221.5049"/><line style="stroke: #383838; stroke-width: 1.5;" x1="457" x2="261" y1="221.5049" y2="221.5049"/><line style="stroke: #383838; stroke-width: 1.5;" x1="261" x2="261" y1="221.5049" y2="248.5049"/><polygon fill="#383838" points="257,238.5049,261,248.5049,265,238.5049,261,242.5049" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.5;" x1="321.5" x2="474" y1="30.3013" y2="30.3013"/><polygon fill="#383838" points="470,167.1592,474,177.1592,478,167.1592,474,171.1592" style="stroke: #383838; stroke-width: 1.5;"/><line style="stroke: #383838; stroke-width: 1.5;" x1="474" x2="474" y1="30.3013" y2="260.5049"/><line style="stroke: #383838; stroke-width: 1.5;" x1="474" x2="273" y1="260.5049" y2="260.5049"/><polygon fill="#383838" points="283,256.5049,273,260.5049,283,264.5049,279,260.5049" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.5;" x1="261" x2="261" y1="272.5049" y2="292.5049"/><polygon fill="#383838" points="257,282.5049,261,292.5049,265,282.5049,261,286.5049" style="stroke: #383838; stroke-width: 1.0;"/><!--MD5=[cbe3f124b10974ef39a80a87295eedae]
@startuml
scale 1

skinparam shadowing false
skinparam monochrome true

if (\nTesting enabled?\n) then (Yes)
  -[#black,dotted]->

partition "//Debug builds only//" #ddd {
  if (\nMocks installed?\n) then (Yes)
    :**Return mocks**;
    detach
  elseif (\nMocks required?\n) then (Yes)
    #ffa0a0:throw;
    detach
  elseif (\nNative libraries loaded?\n) then (No)
    #ffa0a0:throw;
    detach
  endif
}

endif

:**Return live instance**;

@enduml

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