Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | Package Functions | Package Attributes | List of all members
io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode Class Reference

Public Member Functions

void addChild (TestSemanticsNode child)
 

Protected Member Functions

void addToBuffer (ByteBuffer bytes, ArrayList< String > strings, ArrayList< ByteBuffer > stringAttributeArgs)
 

Package Functions

 TestSemanticsNode ()
 
void addFlag (AccessibilityBridge.Flag flag)
 
void addAction (AccessibilityBridge.Action action)
 
TestSemanticsUpdate toUpdate ()
 

Package Attributes

int id = 0
 
int flags = 0
 
int actions = 0
 
int maxValueLength = 0
 
int currentValueLength = 0
 
int textSelectionBase = 0
 
int textSelectionExtent = 0
 
int platformViewId = -1
 
int scrollChildren = 0
 
int scrollIndex = 0
 
float scrollPosition = 0.0f
 
float scrollExtentMax = 0.0f
 
float scrollExtentMin = 0.0f
 
String identifier = null
 
String label = null
 
List< TestStringAttributelabelAttributes
 
String value = null
 
List< TestStringAttributevalueAttributes
 
String increasedValue = null
 
List< TestStringAttributeincreasedValueAttributes
 
String decreasedValue = null
 
List< TestStringAttributedecreasedValueAttributes
 
String hint = null
 
List< TestStringAttributehintAttributes
 
String tooltip = null
 
int textDirection = 0
 
float left = 0.0f
 
float top = 0.0f
 
float right = 0.0f
 
float bottom = 0.0f
 
float[] transform
 
final List< TestSemanticsNodechildren = new ArrayList<TestSemanticsNode>()
 

Detailed Description

Definition at line 2194 of file AccessibilityBridgeTest.java.

Constructor & Destructor Documentation

◆ TestSemanticsNode()

io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.TestSemanticsNode ( )
inlinepackage

Definition at line 2195 of file AccessibilityBridgeTest.java.

2195{}

Member Function Documentation

◆ addAction()

void io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.addAction ( AccessibilityBridge.Action  action)
inlinepackage

◆ addChild()

void io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.addChild ( TestSemanticsNode  child)
inline

Definition at line 2246 of file AccessibilityBridgeTest.java.

2246 {
2247 children.add(child);
2248 }

◆ addFlag()

void io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.addFlag ( AccessibilityBridge.Flag  flag)
inlinepackage

Definition at line 2197 of file AccessibilityBridgeTest.java.

2197 {
2198 flags |= flag.value;
2199 }
FlutterSemanticsFlag flag

◆ addToBuffer()

void io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.addToBuffer ( ByteBuffer  bytes,
ArrayList< String >  strings,
ArrayList< ByteBuffer >  stringAttributeArgs 
)
inlineprotected

Definition at line 2263 of file AccessibilityBridgeTest.java.

2264 {
2265 bytes.putInt(id);
2266 bytes.putInt(flags);
2267 bytes.putInt(actions);
2268 bytes.putInt(maxValueLength);
2269 bytes.putInt(currentValueLength);
2270 bytes.putInt(textSelectionBase);
2271 bytes.putInt(textSelectionExtent);
2272 bytes.putInt(platformViewId);
2273 bytes.putInt(scrollChildren);
2274 bytes.putInt(scrollIndex);
2275 bytes.putFloat(scrollPosition);
2276 bytes.putFloat(scrollExtentMax);
2277 bytes.putFloat(scrollExtentMin);
2278 if (identifier == null) {
2279 bytes.putInt(-1);
2280 } else {
2281 strings.add(identifier);
2282 bytes.putInt(strings.size() - 1);
2283 }
2284 updateString(label, labelAttributes, bytes, strings, stringAttributeArgs);
2285 updateString(value, valueAttributes, bytes, strings, stringAttributeArgs);
2286 updateString(increasedValue, increasedValueAttributes, bytes, strings, stringAttributeArgs);
2287 updateString(decreasedValue, decreasedValueAttributes, bytes, strings, stringAttributeArgs);
2288 updateString(hint, hintAttributes, bytes, strings, stringAttributeArgs);
2289 if (tooltip == null) {
2290 bytes.putInt(-1);
2291 } else {
2292 strings.add(tooltip);
2293 bytes.putInt(strings.size() - 1);
2294 }
2295 bytes.putInt(textDirection);
2296 bytes.putFloat(left);
2297 bytes.putFloat(top);
2298 bytes.putFloat(right);
2299 bytes.putFloat(bottom);
2300 // transform.
2301 for (int i = 0; i < 16; i++) {
2302 bytes.putFloat(transform[i]);
2303 }
2304 // children in traversal order.
2305 bytes.putInt(children.size());
2306 for (TestSemanticsNode node : children) {
2307 bytes.putInt(node.id);
2308 }
2309 // children in hit test order.
2310 for (TestSemanticsNode node : children) {
2311 bytes.putInt(node.id);
2312 }
2313 // custom actions
2314 bytes.putInt(0);
2315 // child nodes
2316 for (TestSemanticsNode node : children) {
2317 node.addToBuffer(bytes, strings, stringAttributeArgs);
2318 }
2319 }
static void updateString(String value, List< TestStringAttribute > attributes, ByteBuffer bytes, ArrayList< String > strings, ArrayList< ByteBuffer > stringAttributeArgs)

◆ toUpdate()

TestSemanticsUpdate io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.toUpdate ( )
inlinepackage

Definition at line 2251 of file AccessibilityBridgeTest.java.

2251 {
2252 ArrayList<String> strings = new ArrayList<String>();
2253 ByteBuffer bytes = ByteBuffer.allocate(1000);
2254 ArrayList<ByteBuffer> stringAttributeArgs = new ArrayList<ByteBuffer>();
2255 addToBuffer(bytes, strings, stringAttributeArgs);
2256 bytes.flip();
2257 return new TestSemanticsUpdate(
2258 bytes,
2259 strings.toArray(new String[strings.size()]),
2260 stringAttributeArgs.toArray(new ByteBuffer[stringAttributeArgs.size()]));
2261 }
void addToBuffer(ByteBuffer bytes, ArrayList< String > strings, ArrayList< ByteBuffer > stringAttributeArgs)

Member Data Documentation

◆ actions

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.actions = 0
package

Definition at line 2209 of file AccessibilityBridgeTest.java.

◆ bottom

float io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.bottom = 0.0f
package

Definition at line 2236 of file AccessibilityBridgeTest.java.

◆ children

final List<TestSemanticsNode> io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.children = new ArrayList<TestSemanticsNode>()
package

Definition at line 2244 of file AccessibilityBridgeTest.java.

◆ currentValueLength

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.currentValueLength = 0
package

Definition at line 2211 of file AccessibilityBridgeTest.java.

◆ decreasedValue

String io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.decreasedValue = null
package

Definition at line 2227 of file AccessibilityBridgeTest.java.

◆ decreasedValueAttributes

List<TestStringAttribute> io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.decreasedValueAttributes
package

Definition at line 2228 of file AccessibilityBridgeTest.java.

◆ flags

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.flags = 0
package

Definition at line 2208 of file AccessibilityBridgeTest.java.

◆ hint

String io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.hint = null
package

Definition at line 2229 of file AccessibilityBridgeTest.java.

◆ hintAttributes

List<TestStringAttribute> io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.hintAttributes
package

Definition at line 2230 of file AccessibilityBridgeTest.java.

◆ id

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.id = 0
package

Definition at line 2207 of file AccessibilityBridgeTest.java.

◆ identifier

String io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.identifier = null
package

Definition at line 2220 of file AccessibilityBridgeTest.java.

◆ increasedValue

String io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.increasedValue = null
package

Definition at line 2225 of file AccessibilityBridgeTest.java.

◆ increasedValueAttributes

List<TestStringAttribute> io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.increasedValueAttributes
package

Definition at line 2226 of file AccessibilityBridgeTest.java.

◆ label

String io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.label = null
package

Definition at line 2221 of file AccessibilityBridgeTest.java.

◆ labelAttributes

List<TestStringAttribute> io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.labelAttributes
package

Definition at line 2222 of file AccessibilityBridgeTest.java.

◆ left

float io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.left = 0.0f
package

Definition at line 2233 of file AccessibilityBridgeTest.java.

◆ maxValueLength

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.maxValueLength = 0
package

Definition at line 2210 of file AccessibilityBridgeTest.java.

◆ platformViewId

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.platformViewId = -1
package

Definition at line 2214 of file AccessibilityBridgeTest.java.

◆ right

float io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.right = 0.0f
package

Definition at line 2235 of file AccessibilityBridgeTest.java.

◆ scrollChildren

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.scrollChildren = 0
package

Definition at line 2215 of file AccessibilityBridgeTest.java.

◆ scrollExtentMax

float io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.scrollExtentMax = 0.0f
package

Definition at line 2218 of file AccessibilityBridgeTest.java.

◆ scrollExtentMin

float io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.scrollExtentMin = 0.0f
package

Definition at line 2219 of file AccessibilityBridgeTest.java.

◆ scrollIndex

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.scrollIndex = 0
package

Definition at line 2216 of file AccessibilityBridgeTest.java.

◆ scrollPosition

float io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.scrollPosition = 0.0f
package

Definition at line 2217 of file AccessibilityBridgeTest.java.

◆ textDirection

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.textDirection = 0
package

Definition at line 2232 of file AccessibilityBridgeTest.java.

◆ textSelectionBase

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.textSelectionBase = 0
package

Definition at line 2212 of file AccessibilityBridgeTest.java.

◆ textSelectionExtent

int io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.textSelectionExtent = 0
package

Definition at line 2213 of file AccessibilityBridgeTest.java.

◆ tooltip

String io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.tooltip = null
package

Definition at line 2231 of file AccessibilityBridgeTest.java.

◆ top

float io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.top = 0.0f
package

Definition at line 2234 of file AccessibilityBridgeTest.java.

◆ transform

float [] io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.transform
package
Initial value:
=
new float[] {
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f
}

Definition at line 2237 of file AccessibilityBridgeTest.java.

◆ value

String io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.value = null
package

Definition at line 2223 of file AccessibilityBridgeTest.java.

◆ valueAttributes

List<TestStringAttribute> io.flutter.view.AccessibilityBridgeTest.TestSemanticsNode.valueAttributes
package

Definition at line 2224 of file AccessibilityBridgeTest.java.


The documentation for this class was generated from the following file: