Documentation
¶
Overview ¶
Package serviceslines holds the lines that the app of the services tests (internal/iostest/serviceapp) prints and the test reads, and the names of its steps, so that the two cannot drift apart. It imports nothing but the standard library, so both the app (built for iOS) and the test (built for the host) use it.
Flutter: no counterpart
Index ¶
Constants ¶
const ( // Step is the line of a step that ran: "<step> <result>". The result of copy is "err=<tag or nil>", of paste // "ok=<bool> text=<quoted> err=<tag or nil>", of spell "spans=<start,end,first suggestion;...> err=<tag or nil>", of open and of // notify "err=<tag or nil>", and of the others "done". Step = "GLUTTER_IOS_SERVICES step" // Ready is the line that says the app is waiting for its steps. Ready = "GLUTTER_IOS_SERVICES ready" // Settings is the line of the settings: at the start, for the step "settings" and at each change of them. Its values are // "brightness=<light|dark> scale=<text scale> font17=<the scaled size of a 17 point font> bold=<bool> motion=<bool> // contrast=<bool> voiceover=<bool> h24=<bool> locale=<the first locale>". Settings = "GLUTTER_IOS_SERVICES settings" // Audio is the line of the audio stream's counts: "frames=<n> rate=<r> elapsed=<ms> devices=<n>"; State the line of a state that the // stream was told: "<paused|running|lost>". Audio = "GLUTTER_IOS_SERVICES audio" State = "GLUTTER_IOS_SERVICES audio state" // Done is the line after the last step. Done = "GLUTTER_IOS_SERVICES done" )
The lines of the app; each is followed by its values.
const StepsEnv = "GLUTTER_IOS_SERVICES"
StepsEnv is the environment variable with the steps of the app, separated by ";". Each step runs 400 ms after the one before, and prints its line.
style:dark|light SetSystemUIOverlayStyle with that status bar brightness
mode:edge|hidden|top|bottom SetEnabledSystemUIMode: edge to edge, the bars hidden, or manual with the top or the bottom overlay
orient:portrait|landscape|all SetPreferredOrientations
report logs what UIKit has of the system UI (the platform's "ios chrome" line)
copy:text puts the text on the clipboard
paste reads the text of the clipboard
spell:locale:text the misspelled words of the text
haptic, sound every kind of haptic feedback and of system sound
settings prints the settings
audio plays a stream of 48 kHz stereo for 1.5 s and says how many frames it asked for in that time
interrupt:began|ended a synthetic interruption of the audio session (AVAudioSession's own notification), for the stream
that the step audio left open; the states the stream goes through are printed
sensor:accel|gyro opens the sensor; the Simulator has none: its error is printed
pads starts the pad service and prints the pads that are connected a moment later
open:uri opens the URI
notify shows a notification (the permission prompt is not answered: the call ends with its context)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.