diff --git a/third_party/wff/README.md b/third_party/wff/README.md index 45d0f46..b85b331 100644 --- a/third_party/wff/README.md +++ b/third_party/wff/README.md @@ -35,7 +35,7 @@ java -jar wff-validator.jar For example: ```shell -java -jar wff-validator.jar 4 ~/MyWatchface/res/raw/watchface.xml +java -jar wff-validator.jar 5 ~/MyWatchface/res/raw/watchface.xml ``` [xsd-files]: specification/documents/1 diff --git a/third_party/wff/specification/documents/5/bitmapFontsElement.xsd b/third_party/wff/specification/documents/5/bitmapFontsElement.xsd new file mode 100644 index 0000000..5cb5026 --- /dev/null +++ b/third_party/wff/specification/documents/5/bitmapFontsElement.xsd @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + User-defined bitmap fonts can be declared in this scope. + + + + + + + + + User-defined bitmap font can be declared with this element. + Put the name for the family attribute in the font element. + + + + + + + + + + + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/clock/analogClock.xsd b/third_party/wff/specification/documents/5/clock/analogClock.xsd new file mode 100644 index 0000000..5390972 --- /dev/null +++ b/third_party/wff/specification/documents/5/clock/analogClock.xsd @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + AnalogClock is a container that represents a traditional clock with + rotating hands. + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/clock/digitalClock.xsd b/third_party/wff/specification/documents/5/clock/digitalClock.xsd new file mode 100644 index 0000000..8d483d5 --- /dev/null +++ b/third_party/wff/specification/documents/5/clock/digitalClock.xsd @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + DigitalClock is a container for text-based formatted time. + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/clock/hourHand.xsd b/third_party/wff/specification/documents/5/clock/hourHand.xsd new file mode 100644 index 0000000..d1e4b3c --- /dev/null +++ b/third_party/wff/specification/documents/5/clock/hourHand.xsd @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + A image that represents an hour hand, it rotates 360 degree in 12 hours. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/clock/minuteHand.xsd b/third_party/wff/specification/documents/5/clock/minuteHand.xsd new file mode 100644 index 0000000..73dc472 --- /dev/null +++ b/third_party/wff/specification/documents/5/clock/minuteHand.xsd @@ -0,0 +1,42 @@ + + + + + + + + + + + + + A image that represent a minute hand, it rotates 360 degree in 1 hour. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/clock/secondHand.xsd b/third_party/wff/specification/documents/5/clock/secondHand.xsd new file mode 100644 index 0000000..44ff81a --- /dev/null +++ b/third_party/wff/specification/documents/5/clock/secondHand.xsd @@ -0,0 +1,93 @@ + + + + + + + + + + + + + A image that represents a second hand, it rotates 360 degree in 1 minute. + + + + + + + + + + + + + + + + + + + + + + + Definition of second hand movement. + The angle of the second hand will be updated by the given frequency for one second. + + SYNC_TO_DEVICE means that the angle is updated smoothly as allowed by the device. (Since V2) + + + + + + + + + + + + + + + + + + + + + Definition of second hand movement. It has 2 attributes below. + + Strength means intensity that exceeded the final value. + 0.5 : has 125% peek value of the final value. + 1.0 : has 200% peek value of the final value. + + Duration means how long the animation is interpolated. + 0.2 : 0 ~ 200 (ms) - interpolated value by given strength and time + 200 ~ 800 (ms) - no movement. + + These are used as x1, y1 parameters of the cubic bezier curve. + cubic-bezier((duration - 0.033) / duration, 1 + strength * 2, 1, 1) + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/clock/timeText.xsd b/third_party/wff/specification/documents/5/clock/timeText.xsd new file mode 100644 index 0000000..d429487 --- /dev/null +++ b/third_party/wff/specification/documents/5/clock/timeText.xsd @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + TimeText renders the time within the DigitalClock container. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/animationElement.xsd b/third_party/wff/specification/documents/5/common/animationElement.xsd new file mode 100644 index 0000000..317f515 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/animationElement.xsd @@ -0,0 +1,85 @@ + + + + + + + + + + + Animation for parent element. + Use "ANIMATION_VALUE" from the parent element's arithmetic attribute. + + + + + + + Interpolation method. Default is linear. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sets how many times the animation should be repeated. If the repeat + count is 0, the animation is never repeated. If the repeat count is + -1 then the animation will loop indefinitely. + The repeat count is 0 by default. + + + + + + + + + + + + + + Duration in seconds + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/attributes/alignmentAttribute.xsd b/third_party/wff/specification/documents/5/common/attributes/alignmentAttribute.xsd new file mode 100644 index 0000000..c69a5b9 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/attributes/alignmentAttribute.xsd @@ -0,0 +1,50 @@ + + + + + + + + + Horizontal Alignment of the tag. The default is CENTER. + + + + + + + + + + + + + + Vertical Alignment of the tag. The default is CENTER. If maxLines is not equal to 1, the default becomes TOP. + + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/attributes/angleAttributes.xsd b/third_party/wff/specification/documents/5/common/attributes/angleAttributes.xsd new file mode 100644 index 0000000..18cb386 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/attributes/angleAttributes.xsd @@ -0,0 +1,65 @@ + + + + + + + + + + + Start angle and end angle in degrees. + + + + + + Start angle in degrees. + + + + + + + End angle in degrees. + + + + + + + + + Start angle and end angle represented by expression. + + + + + + Start angle in degrees represented by expression. + + + + + + + End angle in degrees represented by expression. + + + + + diff --git a/third_party/wff/specification/documents/5/common/attributes/calendarAttribute.xsd b/third_party/wff/specification/documents/5/common/attributes/calendarAttribute.xsd new file mode 100644 index 0000000..8d95a3d --- /dev/null +++ b/third_party/wff/specification/documents/5/common/attributes/calendarAttribute.xsd @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/attributes/colorAttribute.xsd b/third_party/wff/specification/documents/5/common/attributes/colorAttribute.xsd new file mode 100644 index 0000000..c33b1f8 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/attributes/colorAttribute.xsd @@ -0,0 +1,21 @@ + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/attributes/geometricAttributes.xsd b/third_party/wff/specification/documents/5/common/attributes/geometricAttributes.xsd new file mode 100644 index 0000000..01f1621 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/attributes/geometricAttributes.xsd @@ -0,0 +1,170 @@ + + + + + + + + + + Relative starting point (x,y) of the element on the screen. + + + + + + + + Relative starting point (x,y) of the element on the screen. + + + + + + + + Size of the element (width, height) + + + + + + + + Size of the element (width, height) + + + + + + + + A margin to be applied to the left of the object. + + + + + + + + A margin to be applied to the top of the object. + + + + + + + + A margin to be applied to the right of the object. + + + + + + + + A margin to be applied to the bottom of the object. + + + + + + + + + + Geometry data. Relative starting position of (x, y) the part on the screen. + + + + + + + + + + + Geometry data. size of (width, height). + + + + + + + + + + + Geometry data. Relative starting position of (x, y) the part on the screen. + + + + + + + + + + + Geometry data. size of (width, height). + + + + + + + + + + + Geometry data. + (x, y) is relative start position on screen with the size of (width, height). + + + + + + + + + + + Geometry data. + (x, y) is relative start position on screen with the size of (width, height). + + + + + + + + + + + A set of margins to apply to the element. The set of margins, + (marginLeft, marginTop, marginRight, marginBottom), are floating-point + values in pixels applied to the object's bounds, to allow positioning of + cropped images. + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/conditionElement.xsd b/third_party/wff/specification/documents/5/common/conditionElement.xsd new file mode 100644 index 0000000..e74efd7 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/conditionElement.xsd @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + The Condition element provides the ability to provide a list of options - Compare + Elements - each of which is evaluated against an expression, in turn. Only the first + successful Compare element is selected, the others are not rendered or enabled. + If none of the Compare elements evaluate successfully, the Default Element is shown. + + + + + + + + + + + + + + + + + The Default element is enabled when no Compare element evaluates successfully. + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/expressionsElement.xsd b/third_party/wff/specification/documents/5/common/expressionsElement.xsd new file mode 100644 index 0000000..ea606b3 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/expressionsElement.xsd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/launchElement.xsd b/third_party/wff/specification/documents/5/common/launchElement.xsd new file mode 100644 index 0000000..26478d9 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/launchElement.xsd @@ -0,0 +1,48 @@ + + + + + + + + + System shortcuts + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/localizationElement.xsd b/third_party/wff/specification/documents/5/common/localizationElement.xsd new file mode 100644 index 0000000..013c041 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/localizationElement.xsd @@ -0,0 +1,50 @@ + + + + + + + + + + + The Localization is used to fix the date or time to a specific locale or timezone when + a parent node such as a part or group has an action related to the date or time. + + + + + + + timezone + e.g., "Asia/Seoul" or "Europe/London" + + + + + + + + if one of the given locales is matched to the system locale, it uses the matched locale, + otherwise, it uses the firstly added locale. If it is empty, it always follows the system + locale. e.g., "ko_KR" or "en_US en_GB fr_CH" + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/reference/referenceElements.xsd b/third_party/wff/specification/documents/5/common/reference/referenceElements.xsd new file mode 100644 index 0000000..32f865d --- /dev/null +++ b/third_party/wff/specification/documents/5/common/reference/referenceElements.xsd @@ -0,0 +1,53 @@ + + + + + + + + + + Reference is a new element which can be placed under any scene object supporting Transform. + Reference allows you to publish Transformable attributes from a source element, + which can be consumed as a DataSource in other expressions within your Scene. + The element has three attributes: name, source attribute's name and default value. + + "Reference" can be referenced in other expressions, such as DataSource, and 'REFERENCE' prefix and name are used. + e.g., To consume a Reference, use [REFERENCE.reference_name] in your expressions. + The result of this equals to the value of the source attribute of the referenced object. + + NOTE. + The reference name is the identifier of the reference, and it should be unique within the + scope of the document. + Do not use references as cross references or circular references. If so, it is updated only once for the first time + and is not updated after. + + SINCE. + Watch Face Format 4 + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/screenReaderElement.xsd b/third_party/wff/specification/documents/5/common/screenReaderElement.xsd new file mode 100644 index 0000000..e051fd9 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/screenReaderElement.xsd @@ -0,0 +1,47 @@ + + + + + + + + + + + The user may turn on the talkback screen reader to interact with the watch face + with touch and voice feedback. ScreenReader can be attached to any group or + part to let user know how they work. + + + + + + + + + An argument of formatted string. + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/angleType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/angleType.xsd new file mode 100644 index 0000000..7cf1223 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/angleType.xsd @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + Angle in degrees. + + + + + + + + + Angle in degrees represented by expression. + + + + + diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/arithmeticExpressionType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/arithmeticExpressionType.xsd new file mode 100644 index 0000000..21af991 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/arithmeticExpressionType.xsd @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Arithmetic expression with algebraic source expression. + Use CDATA tag if necessary. + ex. [SECOND] * 6 + 180 + + + + + + + + + + Arithmetic expression with algebraic source expression for gyro effect. + Use CDATA tag if necessary. + ex. (5/90)* clamp([ACCELEROMETER_ANGLE_X], 0, 90) + (-5/-90)* clamp([ACCELEROMETER_ANGLE_X], -90, 0) + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/booleanType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/booleanType.xsd new file mode 100644 index 0000000..39ec329 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/booleanType.xsd @@ -0,0 +1,27 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/circularDirectionType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/circularDirectionType.xsd new file mode 100644 index 0000000..783bcb2 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/circularDirectionType.xsd @@ -0,0 +1,26 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/colorType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/colorType.xsd new file mode 100644 index 0000000..3d858ed --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/colorType.xsd @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + Hexadecimal color code: #AARRGGBB or #RRGGBB + + + + + + + + + + + Hexadecimal color code: #AARRGGBB or #RRGGBB + or + Data source representing a color: CONFIGURATION.themeColor.1 + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/directionType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/directionType.xsd new file mode 100644 index 0000000..59e6555 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/directionType.xsd @@ -0,0 +1,26 @@ + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/eventTriggerType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/eventTriggerType.xsd new file mode 100644 index 0000000..9dba468 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/eventTriggerType.xsd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/interpolateType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/interpolateType.xsd new file mode 100644 index 0000000..3bd75ab --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/interpolateType.xsd @@ -0,0 +1,24 @@ + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/normalizedType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/normalizedType.xsd new file mode 100644 index 0000000..f7de4e7 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/normalizedType.xsd @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Normalized value to [0.0, 1.0] + + + + + diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/primitiveListTypes.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/primitiveListTypes.xsd new file mode 100644 index 0000000..885f5f0 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/primitiveListTypes.xsd @@ -0,0 +1,191 @@ + + + + + + + + + + Vector type for 4 floats + e.g., "0.1 0.2 0.3 0.4" + + + + + + + + + + + + Vector type for 3 floats + e.g., "0.1 0.2 0.3" + + + + + + + + + + + + List type for floats + e.g., "0.1 0.2 0.3 0.4 0.5 0.6 0.7 ..." + + + + + + + + + Vector type for 4 integers + e.g., "1 2 3 4" + + + + + + + + + + + + Vector type for 3 integers + e.g., "1 2 3" + + + + + + + + + + + + List type for integers + e.g., "1 2 3 4 5 6 7 ..." + + + + + + + + + Vector type for 4 strings + e.g., "abc def ghi jkl" + + + + + + + + + + + + Vector type for 3 strings + e.g., "abc def ghi" + + + + + + + + + + + + + List type for strings + e.g., "abc def ghi jkl mno pqr student ..." + + + + + + + + + List type for hexadecimal colors + e.g., "#FF00FF #FFFFFF #80FF1234" + + + + + + + + + + + + + List type for hexadecimal colors + e.g., "#FF00FF #FFFFFF #80FF1234 #12345678 #123456 ..." + of + Data source representing a colors: CONFIGURATION.themeColor , COMPLICATION.WEIGHTED_ELEMENTS_COLORS + + + + + + + + + List type for hexadecimal colors + e.g., "#FF00FF #FFFFFF #80FF1234 #12345678 #123456 ..." + + + + + + + + + Data source representing a colors: CONFIGURATION.themeColor , COMPLICATION.WEIGHTED_ELEMENTS_COLORS + + + + + + + + + + + List type for floats or integers + e.g., "0.1 0.2 0.3 0.4 0.5 0.6 0.7 ...", "1 2 3", + or + Data source representing a weight: COMPLICATION.RANGED_VALUE_COLOR_INTERPOLATE + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/resourceType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/resourceType.xsd new file mode 100644 index 0000000..18a1f82 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/resourceType.xsd @@ -0,0 +1,30 @@ + + + + + + + + Android resource name consists only of lowercase letters and numbers and "_". + + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/sourceType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/sourceType.xsd new file mode 100644 index 0000000..a6b6b72 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/sourceType.xsd @@ -0,0 +1,254 @@ + + + + + + + + + + Sources related to time unit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sources related to time and date + + + + + + + + + Sources related to language + + + + + + + + + + + + + + Sources related to battery + + + + + + + + + + + + + + + Sources related to moon phase + + + + + + + + + + + + + Sources related to sensor + + + + + + + + + + + + + + + + + + Sources related to health data + + + + + + + + + + + + + + + Sources of notification data + + + + + + + + + + + Weather source enumeration values + + + + + + + + + + + + + + + + + + + + + + Weather source patterns + + + + + + + + + + + + + + + + + + + + + + + + + + Sources related to weather + + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/unsignedCharacterType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/unsignedCharacterType.xsd new file mode 100644 index 0000000..12ac3f6 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/unsignedCharacterType.xsd @@ -0,0 +1,33 @@ + + + + + + + +
+          Unsigned character value in scope [0,255]
+        
+
+
+ + + + + +
+
\ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/simpleTypes/variousFloatType.xsd b/third_party/wff/specification/documents/5/common/simpleTypes/variousFloatType.xsd new file mode 100644 index 0000000..f440074 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/simpleTypes/variousFloatType.xsd @@ -0,0 +1,42 @@ + + + + + + + + positive Float-based dimension. + The dimension is a relative value corresponding to the width and height of the WatchFace. + + + + + + + + + + + non Negative Float-based dimension(includes 0). + The dimension is a relative value corresponding to thickness. + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/transform/gyroElements.xsd b/third_party/wff/specification/documents/5/common/transform/gyroElements.xsd new file mode 100644 index 0000000..8f4048b --- /dev/null +++ b/third_party/wff/specification/documents/5/common/transform/gyroElements.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + The Gyro element adjusts some attributes of the parent Group or Part according to an expression + using gyro sensor data source. + ex. x="(5/90)* clamp([ACCELEROMETER_ANGLE_X], 0, 90) + (-5/-90)* clamp([ACCELEROMETER_ANGLE_X], -90, 0)" + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/transform/pivotType.xsd b/third_party/wff/specification/documents/5/common/transform/pivotType.xsd new file mode 100644 index 0000000..2d7e86d --- /dev/null +++ b/third_party/wff/specification/documents/5/common/transform/pivotType.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + Normalized floating pivot point of x in scope [0,1]. + + + + + + + + Normalized floating pivot point of y in scope [0,1]. + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/common/transform/transformElements.xsd b/third_party/wff/specification/documents/5/common/transform/transformElements.xsd new file mode 100644 index 0000000..2b5e7ff --- /dev/null +++ b/third_party/wff/specification/documents/5/common/transform/transformElements.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/common/variant/variantElements.xsd b/third_party/wff/specification/documents/5/common/variant/variantElements.xsd new file mode 100644 index 0000000..43944c9 --- /dev/null +++ b/third_party/wff/specification/documents/5/common/variant/variantElements.xsd @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + Normalized duration value to [0.0, 1.0] + The duration is the effect time when switching between the interactive and ambient mode. + It is dependent on each vendor's ambient transition time. + The actual effect duration is determined as a normalized value, scaled proportionally based on the ambient transition time set by the vendor. + + + + + + + + + + + + + Normalized delay value to [0.0, 1.0] + If the sum of duration and startOffset is greater than 1.0, startOffset will be ignored. + + + + + + + + + + + + + Interpolation method. Default is linear. + + + + + + + + + + + + + + + + + + controls attribute is meaningful only when interpolation type is CUBIC_BEZIER. + + + + + + + The direction of animation while an element rotates. + It doesn't change the the final value of the animation. + It is affected only when the target is an angle. + + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/complication/boundingElement.xsd b/third_party/wff/specification/documents/5/complication/boundingElement.xsd new file mode 100644 index 0000000..060e053 --- /dev/null +++ b/third_party/wff/specification/documents/5/complication/boundingElement.xsd @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/complication/complicationElement.xsd b/third_party/wff/specification/documents/5/complication/complicationElement.xsd new file mode 100644 index 0000000..7f2cd38 --- /dev/null +++ b/third_party/wff/specification/documents/5/complication/complicationElement.xsd @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/complication/complicationSlotElement.xsd b/third_party/wff/specification/documents/5/complication/complicationSlotElement.xsd new file mode 100644 index 0000000..9b9e21b --- /dev/null +++ b/third_party/wff/specification/documents/5/complication/complicationSlotElement.xsd @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/complication/defaultProviderPolicyElement.xsd b/third_party/wff/specification/documents/5/complication/defaultProviderPolicyElement.xsd new file mode 100644 index 0000000..99e67ba --- /dev/null +++ b/third_party/wff/specification/documents/5/complication/defaultProviderPolicyElement.xsd @@ -0,0 +1,57 @@ + + + + + + + + + + System complication providers. + See + https://developer.android.com/reference/android/support/wearable/complications/SystemProviders + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/blendModeType.xsd b/third_party/wff/specification/documents/5/group/blendModeType.xsd new file mode 100644 index 0000000..662be83 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/blendModeType.xsd @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/groupElement.xsd b/third_party/wff/specification/documents/5/group/groupElement.xsd new file mode 100644 index 0000000..e2695ff --- /dev/null +++ b/third_party/wff/specification/documents/5/group/groupElement.xsd @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + The Group element contains other groups or parts as children. + This is an important node in the scene graph that lays out the components on the scene. + The group does not have the ability to draw on its own, but it affects the position, size, + angle or color of the child hierarchies. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of this group. + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/abstractPartType.xsd b/third_party/wff/specification/documents/5/group/part/abstractPartType.xsd new file mode 100644 index 0000000..ff71fbe --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/abstractPartType.xsd @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + The Part presents a visual element such image or text. + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/animatedImage/animatedImageElement.xsd b/third_party/wff/specification/documents/5/group/part/animatedImage/animatedImageElement.xsd new file mode 100644 index 0000000..9aff4ba --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/animatedImage/animatedImageElement.xsd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/group/part/animatedImage/animatedImagesElement.xsd b/third_party/wff/specification/documents/5/group/part/animatedImage/animatedImagesElement.xsd new file mode 100644 index 0000000..2dee693 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/animatedImage/animatedImagesElement.xsd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/group/part/animatedImage/animationControllerElement.xsd b/third_party/wff/specification/documents/5/group/part/animatedImage/animationControllerElement.xsd new file mode 100644 index 0000000..494859b --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/animatedImage/animationControllerElement.xsd @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/animatedImage/partAnimatedImageElement.xsd b/third_party/wff/specification/documents/5/group/part/animatedImage/partAnimatedImageElement.xsd new file mode 100644 index 0000000..c744a71 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/animatedImage/partAnimatedImageElement.xsd @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/animatedImage/sequenceImageElement.xsd b/third_party/wff/specification/documents/5/group/part/animatedImage/sequenceImageElement.xsd new file mode 100644 index 0000000..604988d --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/animatedImage/sequenceImageElement.xsd @@ -0,0 +1,59 @@ + + + + + + + + + + + frameRateRangeType allows input of frame rate value from 1 to 60 + + + + + + + + + + + + + + + + + + + This allows users to set the speed at which frames included in the SequenceImages should + be played. For example, if the frameRate of SequenceImages with 30 images is set to 15, + it is animated to show 30 frames in 2 seconds. If the frameRate is set to 30, 30 frames + are played during 1 second. + This specifies the play speed of the content, and it doesn't work perfectly the same on + the actual watch face. For example, if a device constrains the fps of the watch face to + 15, SequenceImages with frameRate set to 30 will usually be displayed by skipping 1 frame + to operate at a specified speed. + + Since watch face format 2 + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/draw/gradient/linearGradientElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/gradient/linearGradientElement.xsd new file mode 100644 index 0000000..7c934da --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/gradient/linearGradientElement.xsd @@ -0,0 +1,44 @@ + + + + + + + + + + + + Set a gradient color consisting of a progressive transition between two or more colors along a straight line + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/draw/gradient/radialGradientElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/gradient/radialGradientElement.xsd new file mode 100644 index 0000000..5927c1d --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/gradient/radialGradientElement.xsd @@ -0,0 +1,43 @@ + + + + + + + + + + + + Set a gradient color consisting of a progressive transition between two or more colors that radiate from an origin + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/draw/gradient/sweepGradientElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/gradient/sweepGradientElement.xsd new file mode 100644 index 0000000..09be386 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/gradient/sweepGradientElement.xsd @@ -0,0 +1,54 @@ + + + + + + + + + + + + + Set a gradient color consisting of a progressive transition between two or more colors that + sweep an angle from startAngle to endAngle + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/draw/partDrawElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/partDrawElement.xsd new file mode 100644 index 0000000..f31463f --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/partDrawElement.xsd @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + PartDraw is element that draws primitive types of figure like line, rect, arc, circle and rounded rectangle. + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/draw/shape/arcElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/shape/arcElement.xsd new file mode 100644 index 0000000..a1996f5 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/shape/arcElement.xsd @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + Draw arc line with given bound. Center point of arc is the center of the bounds. + Angle is given in degrees with 0 indicating 12 o'clock. + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/group/part/draw/shape/ellipseElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/shape/ellipseElement.xsd new file mode 100644 index 0000000..7f94148 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/shape/ellipseElement.xsd @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + Draw (fill or stroke) ellipse shape with given bound. + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/draw/shape/lineElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/shape/lineElement.xsd new file mode 100644 index 0000000..161594f --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/shape/lineElement.xsd @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + Draw line from start point to end point + + + + + + + + + + + + + + + + + + diff --git a/third_party/wff/specification/documents/5/group/part/draw/shape/rectangleElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/shape/rectangleElement.xsd new file mode 100644 index 0000000..1e30abf --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/shape/rectangleElement.xsd @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + Draw (fill or stroke) rectangle shape with given bound. + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/draw/shape/roundRectangleElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/shape/roundRectangleElement.xsd new file mode 100644 index 0000000..07321da --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/shape/roundRectangleElement.xsd @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + Draw (fill or stroke) rectangle shape that has rounded corners with given bounds. + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/draw/style/fillElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/style/fillElement.xsd new file mode 100644 index 0000000..f3146e0 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/style/fillElement.xsd @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + Element with an attribute about fill color. It supports gradient colors with a child element, + LinearGradient, RadialGradient or SweepGradient. If more than one gradient is added, the + gradient added at the last is only valid. + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/draw/style/strokeElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/style/strokeElement.xsd new file mode 100644 index 0000000..05c6490 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/style/strokeElement.xsd @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + Element with attributes for a stroke style. It supports gradient colors with a child element, + LinearGradient, RadialGradient or SweepGradient. If more than one gradient is added, the + gradient added at the last is only valid. + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Join specifies the treatment where lines and curve segments join on a stroked path. The default is MITER. + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/draw/style/weightedStrokeElement.xsd b/third_party/wff/specification/documents/5/group/part/draw/style/weightedStrokeElement.xsd new file mode 100644 index 0000000..e645329 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/draw/style/weightedStrokeElement.xsd @@ -0,0 +1,109 @@ + + + + + + + + + + + + + Stroke style with weight, each element can have different colors. + + + + + + + + + + + Series of color in hexadecimal like "#FF0000 #00FF00 #0000FF". + + + + + + + Series of weight in float like "3.0 4.0 5.0". Each value represents a + portion of the stroke range. + + + + + + + This indicates the gap between elements. It is useful when the strokes + split by weight are clearly divided, especially when there is a round cap. + This is because each cap of the divided stroke overlaps each other as they + are placed outside the stroke. To prevent overlapping caps, this value can + be set to the value greater than or equal to the thickness of the stroke. + + + + + + + If it is true, the stroke is drawn as a gradient color. Each segment takes + two colors for gradation: from and to. It means that the number of colors should + be one more than the number of weights. For example, two weights requires + three colors to show a color gradient across all segments of the stroke. + + + + + + + Width of stroke. Center of thickness is given arc geometry. + + + + + + + + The Cap specifies the treatment for the beginning and ending of stroked lines and paths. + + + + + + + + + + + + + + The Join specifies the treatment where lines and curve segments join on a stroked path. The default is MITER. + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/image/imageElement.xsd b/third_party/wff/specification/documents/5/group/part/image/imageElement.xsd new file mode 100644 index 0000000..3b736c4 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/image/imageElement.xsd @@ -0,0 +1,39 @@ + + + + + + + + + An element for an image. + + + + + + + Drawable id of image resource + or + Source of image. e.g., Some complications could have a source of image such as ICON, + SMALL_IMAGE or LARGE_IMAGE. + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/image/imageFilter/hsbFilterElement.xsd b/third_party/wff/specification/documents/5/group/part/image/imageFilter/hsbFilterElement.xsd new file mode 100644 index 0000000..96a316b --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/image/imageFilter/hsbFilterElement.xsd @@ -0,0 +1,35 @@ + + + + + + + + + + + + A filter that adjusts pixels by hue, saturate or brightness + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/image/imageFilter/imageFiltersElement.xsd b/third_party/wff/specification/documents/5/group/part/image/imageFilter/imageFiltersElement.xsd new file mode 100644 index 0000000..0c39fd1 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/image/imageFilter/imageFiltersElement.xsd @@ -0,0 +1,33 @@ + + + + + + + + + + ImageFilters is a container for filters that affect the pixels in the bitmap. + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/image/imagesElement.xsd b/third_party/wff/specification/documents/5/group/part/image/imagesElement.xsd new file mode 100644 index 0000000..a8b8479 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/image/imagesElement.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + Images is a container that has a series of image resources. + Only one image is shown at a time, and is changed using by tap. + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/image/partImageElement.xsd b/third_party/wff/specification/documents/5/group/part/image/partImageElement.xsd new file mode 100644 index 0000000..f148971 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/image/partImageElement.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/image/photosElement.xsd b/third_party/wff/specification/documents/5/group/part/image/photosElement.xsd new file mode 100644 index 0000000..ab92e5c --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/image/photosElement.xsd @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + An element for photos. + + + + + + + Source of image. This can only be pointed to a PhotosConfiguration. + + + + + + + Resource for default image. + + + + + + + Event trigger for changing photos. + + + + + + + Number of times of the change event before the actual change takes place. + Only works with ON_VISIBLE. + + + + + + + + + + + + + Size of the crop in pixels (width, height), if any of these are zero, + the original crop (device width, device height) is retained. + + + + + + + + Size of the crop in pixels (width, height), if any of these are zero, + the original crop (device width, device height) is retained. + + + + + + diff --git a/third_party/wff/specification/documents/5/group/part/image/thumbnailElement.xsd b/third_party/wff/specification/documents/5/group/part/image/thumbnailElement.xsd new file mode 100644 index 0000000..672a03e --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/image/thumbnailElement.xsd @@ -0,0 +1,25 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/partElementGroup.xsd b/third_party/wff/specification/documents/5/group/part/partElementGroup.xsd new file mode 100644 index 0000000..3e484ac --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/partElementGroup.xsd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/bitmapFontElement.xsd b/third_party/wff/specification/documents/5/group/part/text/bitmapFontElement.xsd new file mode 100644 index 0000000..0ddc578 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/bitmapFontElement.xsd @@ -0,0 +1,49 @@ + + + + + + + + + + + + + Specifies Bitmap font for text. + + + + + + + + + + + + + + Letter-Spacing is space between letters. The default value is 0. + The value is in 'EM' units. Typical values for slight expansion will be around 0.05. + Negative values tighten text. + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/decoration/abstractDecorationType.xsd b/third_party/wff/specification/documents/5/group/part/text/decoration/abstractDecorationType.xsd new file mode 100644 index 0000000..0288bdf --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/decoration/abstractDecorationType.xsd @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/decoration/decorationGroup.xsd b/third_party/wff/specification/documents/5/group/part/text/decoration/decorationGroup.xsd new file mode 100644 index 0000000..08ce9b4 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/decoration/decorationGroup.xsd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/decoration/outGlowElement.xsd b/third_party/wff/specification/documents/5/group/part/text/decoration/outGlowElement.xsd new file mode 100644 index 0000000..b8cced1 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/decoration/outGlowElement.xsd @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/decoration/outlineElement.xsd b/third_party/wff/specification/documents/5/group/part/text/decoration/outlineElement.xsd new file mode 100644 index 0000000..57d5de0 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/decoration/outlineElement.xsd @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/decoration/shadowElement.xsd b/third_party/wff/specification/documents/5/group/part/text/decoration/shadowElement.xsd new file mode 100644 index 0000000..c1c92ed --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/decoration/shadowElement.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/decoration/strikethroughElement.xsd b/third_party/wff/specification/documents/5/group/part/text/decoration/strikethroughElement.xsd new file mode 100644 index 0000000..fa2e474 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/decoration/strikethroughElement.xsd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/decoration/underlineElement.xsd b/third_party/wff/specification/documents/5/group/part/text/decoration/underlineElement.xsd new file mode 100644 index 0000000..baec84a --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/decoration/underlineElement.xsd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/fontElement.xsd b/third_party/wff/specification/documents/5/group/part/text/fontElement.xsd new file mode 100644 index 0000000..9b69bd4 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/fontElement.xsd @@ -0,0 +1,100 @@ + + + + + + + + + + + + + Specifies Font for text. + + + + + + + + + + + + + + Minimum text size used when auto-sizing text. + If specified, the text will not be reduced below this size. + The default value is 12px. + + + + + + + Letter-Spacing is space between letters. The default value is 0. + The value is in 'EM' units. Typical values for slight expansion will be around 0.05. + Negative values tighten text. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/formatter/formatterGroup.xsd b/third_party/wff/specification/documents/5/group/part/text/formatter/formatterGroup.xsd new file mode 100644 index 0000000..85fb5db --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/formatter/formatterGroup.xsd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/formatter/inlineImageElement.xsd b/third_party/wff/specification/documents/5/group/part/text/formatter/inlineImageElement.xsd new file mode 100644 index 0000000..898ab2a --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/formatter/inlineImageElement.xsd @@ -0,0 +1,43 @@ + + + + + + + + + + + + + Element for an inline image which appears within text. + This image will be handled as text, not as an image element. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/formatter/lowerElement.xsd b/third_party/wff/specification/documents/5/group/part/text/formatter/lowerElement.xsd new file mode 100644 index 0000000..f989003 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/formatter/lowerElement.xsd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/formatter/templateElement.xsd b/third_party/wff/specification/documents/5/group/part/text/formatter/templateElement.xsd new file mode 100644 index 0000000..421d660 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/formatter/templateElement.xsd @@ -0,0 +1,46 @@ + + + + + + + + + + + + Element specifying an argument for a Template. + + + + + + + + + + + Element for converting a specified format string and arguments to a formatted string. + This can be used similarly to printf() in C or String.format() in Java. + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/formatter/upperElement.xsd b/third_party/wff/specification/documents/5/group/part/text/formatter/upperElement.xsd new file mode 100644 index 0000000..69e3502 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/formatter/upperElement.xsd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/partTextElement.xsd b/third_party/wff/specification/documents/5/group/part/text/partTextElement.xsd new file mode 100644 index 0000000..0ecb0cf --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/partTextElement.xsd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/textCircularElement.xsd b/third_party/wff/specification/documents/5/group/part/text/textCircularElement.xsd new file mode 100644 index 0000000..e49d24a --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/textCircularElement.xsd @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + Specifies Circular Text configuration + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/textComponentGroup.xsd b/third_party/wff/specification/documents/5/group/part/text/textComponentGroup.xsd new file mode 100644 index 0000000..8358255 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/textComponentGroup.xsd @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/part/text/textElement.xsd b/third_party/wff/specification/documents/5/group/part/text/textElement.xsd new file mode 100644 index 0000000..c727972 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/part/text/textElement.xsd @@ -0,0 +1,65 @@ + + + + + + + + + + + + + Specifies Plain Text configuration for any text + + + + + + + + + + + + + + + Negative spacing is supported, but Restricts the minimum lineSpacing value to -5 to + prevent excessive text clipping or inverted rendering issues + that may occur with large negative line spacing values + + + + + + + + + + + + Whether text auto scale. + The min size is 12px and the size will be reduced to prevent the text from overflowing. + If used with ellipsis, First, text auto scale is applied. + Afterwards, if text is exceeded, ellipsis is applied. + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/group/renderModeType.xsd b/third_party/wff/specification/documents/5/group/renderModeType.xsd new file mode 100644 index 0000000..3564a39 --- /dev/null +++ b/third_party/wff/specification/documents/5/group/renderModeType.xsd @@ -0,0 +1,26 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/metadataElement.xsd b/third_party/wff/specification/documents/5/metadataElement.xsd new file mode 100644 index 0000000..a7e94a3 --- /dev/null +++ b/third_party/wff/specification/documents/5/metadataElement.xsd @@ -0,0 +1,91 @@ + + + + + + + + + + + Specifies time for preview with format HH:MM:SS. e.g., 10:08:30 + If this is not specified or is not an appropriate value, the system value is used. + + + + + + + Specifies type of Clock. + The value must be either DIGITAL or ANALOG. + Even if your watch face contains both, you must specify a main type. + If this is not specified or is not an appropriate value, ANALOG is used. + + + + + + + Set the daily goal of steps. Must be a positive integer. + If this is not specified or is not an appropriate value, the system value is used. + + + + + + + + + + + + + + + + + + Any pair of key-value can be added by user. + + + + + + + + Any unique key + + + + + + + + + + + + Any value + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/sceneElement.xsd b/third_party/wff/specification/documents/5/sceneElement.xsd new file mode 100644 index 0000000..129a39a --- /dev/null +++ b/third_party/wff/specification/documents/5/sceneElement.xsd @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + Scene is a container of Visual tags. A watch face MUST include at least one Scene. + + + + + + + + + + + + + + + + + + + + + + + The color of the scene's background. + Default value is #ff000000 (Black). + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/userConfiguration/abstractConfigurationType.xsd b/third_party/wff/specification/documents/5/userConfiguration/abstractConfigurationType.xsd new file mode 100644 index 0000000..86b0cfe --- /dev/null +++ b/third_party/wff/specification/documents/5/userConfiguration/abstractConfigurationType.xsd @@ -0,0 +1,78 @@ + + + + + + + + + + + Identifier of the configuration, this must be an unique value. + + + + + + + Title of the configuration. This text will be shown in the configuration activity. It is + recommended to use string resource id for localization. + + + + + + + Icon of the configuration, this will be used as an item of option list in the + configuration activity. + + + + + + + Description text to be read by screen reader for accessibility. It is recommended to use + string resource id for localization. + + + + + + + Default configuration. Used if the user has not changed the value. + + + + + + + Highlight image indicating where this configuration changes. Since it will be laid on the + watch face preview, some restrictions should be considered: + 1. Background MUST be transparent. + 2. It SHOULD be tint-able. + 3. The content SHOULD show the boundary of a part where will be changed by user style + selection. + 4. Aspect ratio of the image SHOULD be matched to width and height of the "WatchFace" + element. This will be stretched as fit as the preview screen. + It is recommended to use an image considered to look the same as other watch face + configuration screens in the watch face editor of the representative product to be + targeted. + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/userConfiguration/booleanConfigurationElement.xsd b/third_party/wff/specification/documents/5/userConfiguration/booleanConfigurationElement.xsd new file mode 100644 index 0000000..98d6d08 --- /dev/null +++ b/third_party/wff/specification/documents/5/userConfiguration/booleanConfigurationElement.xsd @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/userConfiguration/colorConfigurationElement.xsd b/third_party/wff/specification/documents/5/userConfiguration/colorConfigurationElement.xsd new file mode 100644 index 0000000..a4d28dc --- /dev/null +++ b/third_party/wff/specification/documents/5/userConfiguration/colorConfigurationElement.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/userConfiguration/flavorConfigurationType.xsd b/third_party/wff/specification/documents/5/userConfiguration/flavorConfigurationType.xsd new file mode 100644 index 0000000..1e2a519 --- /dev/null +++ b/third_party/wff/specification/documents/5/userConfiguration/flavorConfigurationType.xsd @@ -0,0 +1,53 @@ + + + + + + + + + + + Identifier of the configuration, this must be an unique value. + + + + + + + Title of the configuration. This text will be shown in the configuration activity. It is + recommended to use string resource id for localization. + + + + + + + Icon of the configuration, this drawable will be shown in the configuration activity + + + + + + + Description text to be read by screen reader for accessibility. It is recommended to use + string resource id for localization. + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/userConfiguration/flavorElement.xsd b/third_party/wff/specification/documents/5/userConfiguration/flavorElement.xsd new file mode 100644 index 0000000..9924e42 --- /dev/null +++ b/third_party/wff/specification/documents/5/userConfiguration/flavorElement.xsd @@ -0,0 +1,81 @@ + + + + + + + + + + + + The Flavor is a collection that can provide users with a combination of styles and + complications recommended by the developer. + + + + + + + + + + + Identifier of the configuration. It must be the ID that is present in a + configuration within UserConfiguration tag. + + + + + + + Identifier of the option. It must be one of the options present in the + configuration specified as id. + + + + + + + Description text to be read by screen reader for accessibility. It is + recommended to use string resource id for localization. + + + + + + + + + + + + + + Identifier of the complication slot. It must be one of the ComplicationSlots + present in the Scene tag. + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/userConfiguration/flavorsElement.xsd b/third_party/wff/specification/documents/5/userConfiguration/flavorsElement.xsd new file mode 100644 index 0000000..b0ad751 --- /dev/null +++ b/third_party/wff/specification/documents/5/userConfiguration/flavorsElement.xsd @@ -0,0 +1,28 @@ + + + + + + + + + Default flavor configuration. Used if the user has not changed the value. + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/userConfiguration/listConfigurationElement.xsd b/third_party/wff/specification/documents/5/userConfiguration/listConfigurationElement.xsd new file mode 100644 index 0000000..5e52a91 --- /dev/null +++ b/third_party/wff/specification/documents/5/userConfiguration/listConfigurationElement.xsd @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/userConfiguration/userConfigurationsElement.xsd b/third_party/wff/specification/documents/5/userConfiguration/userConfigurationsElement.xsd new file mode 100644 index 0000000..94266f2 --- /dev/null +++ b/third_party/wff/specification/documents/5/userConfiguration/userConfigurationsElement.xsd @@ -0,0 +1,239 @@ + + + + + + + + + + + + + + UserConfigurations is a set of Configuration to support various appearance options. + These can be used for Colors, Type of Hands, Background, Complication etc. + + + + + + + + + + + + + + + Identifier of the option, it should be an unique value. + + + + + + + Name of the option.This text will be shown in the configuration activity. + It is recommended to use string resource id for localization. + + + + + + + Description text to be read by screen reader for accessibility. It is + recommended to use string resource id for localization. + + + + + + + Icon of the option, this drawable will be shown in the configuration + activity. + + + + + + + A list of child user style settings that can be edited only when the + current ListOption is selected. + + + + + + + A list of complication slot IDs that are enabled and visible only when + the current ListOption is selected. Complication Slots that are not + referenced by any ListOption are always enabled. + + + + + + + + + + + + + + + + + + + + + + + + + + + + Identifier of the option, it should be an unique value. + + + + + + + Name of the option.This text will be shown in the configuration activity. + It is recommended to use string resource id for localization. + + + + + + + Description text to be read by screen reader for accessibility. It is + recommended to use string resource id for localization. + + + + + + + Icon of the option, this drawable will be shown in the configuration + activity. + + + + + + + List of color values + + + + + + + + + + + + + + + + + Default configuration. Used if the user has not changed the value. + + + + + + + + + + + + + + + Identifier of the configuration, this must be an unique value. + + + + + + + Title of the configuration. This text will be shown in the configuration activity. It is + recommended to use string resource id for localization. + + + + + + + Icon of the configuration, this will be used as an item of option list in the + configuration activity. + + + + + + + Description text to be read by screen reader for accessibility. It is recommended to use + string resource id for localization. + + + + + + + Highlight image indicating where this configuration changes. Since it will be laid on the + watch face preview, some restrictions should be considered: + 1. Background MUST be transparent. + 2. It SHOULD be tint-able. + 3. The content SHOULD show the boundary of a part where will be changed by user style + selection. + 4. Aspect ratio of the image SHOULD be matched to width and height of the "WatchFace" + element. This will be stretched as fit as the preview screen. + It is recommended to use an image considered to look the same as other watch face + configuration screens in the watch face editor of the representative product to be + targeted. + + + + + + + How the user will select the images on companion (SINGLE, MULTIPLE) + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/documents/5/watchface.xsd b/third_party/wff/specification/documents/5/watchface.xsd new file mode 100644 index 0000000..dd0b69b --- /dev/null +++ b/third_party/wff/specification/documents/5/watchface.xsd @@ -0,0 +1,125 @@ + + + + + + + + + + + + + WatchFace is a root element of watchface.xml. It contains scheme version of the xml + specification and the information of the virtual screen used when the sub-elements are + created. + + + + + + + + + + + + + Size of the visual screen in which watch face components are drawn. It is not related to + the display resolution of the real device, and all figures related to geometry(position + and dimension) among the attributes of the child elements indicate the relative position + and size in the virtual screen. + + + + + + + Size of the visual screen in which watch face components are drawn. It is not related to + the display resolution of the real device, and all figures related to geometry(position + and dimension) among the attributes of the child elements indicate the relative position + and size in the virtual screen. + + + + + + + Creators can require a shape that clips the result. This can be useful, for example, when + creators want to produce a circular result on a rectangular device. In some cases, there + may be objects that span outside the desired shape. + RECTANGLE shape with cornerRadiusX and cornerRadiusY attributes makes round-rectangle. + Default value is CIRCLE. + + + + + + + + + + + + + + The x-radius of the rounded corners on the rectangle. + It is available when the shape type is RECTANGLE. + + + + + + + The y-radius of the rounded corners on the rectangle. + It is available when the shape type is RECTANGLE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/third_party/wff/specification/validator/libs/cupv10k-runtime.jar b/third_party/wff/specification/validator/libs/cupv10k-runtime.jar new file mode 100644 index 0000000..97d11a1 Binary files /dev/null and b/third_party/wff/specification/validator/libs/cupv10k-runtime.jar differ diff --git a/third_party/wff/specification/validator/libs/org.eclipse.wst.xml.xpath2.processor_1.2.1.jar b/third_party/wff/specification/validator/libs/org.eclipse.wst.xml.xpath2.processor_1.2.1.jar new file mode 100644 index 0000000..f84deed Binary files /dev/null and b/third_party/wff/specification/validator/libs/org.eclipse.wst.xml.xpath2.processor_1.2.1.jar differ diff --git a/third_party/wff/specification/validator/libs/xercesImpl.jar b/third_party/wff/specification/validator/libs/xercesImpl.jar new file mode 100644 index 0000000..f45b3ae Binary files /dev/null and b/third_party/wff/specification/validator/libs/xercesImpl.jar differ diff --git a/third_party/wff/specification/validator/libs/xml-apis.jar b/third_party/wff/specification/validator/libs/xml-apis.jar new file mode 100644 index 0000000..4f677fc Binary files /dev/null and b/third_party/wff/specification/validator/libs/xml-apis.jar differ diff --git a/third_party/wff/specification/validator/src/main/java/com/samsung/watchface/DWFValidationApplication.java b/third_party/wff/specification/validator/src/main/java/com/samsung/watchface/DWFValidationApplication.java index 4a7d072..28a7f4e 100644 --- a/third_party/wff/specification/validator/src/main/java/com/samsung/watchface/DWFValidationApplication.java +++ b/third_party/wff/specification/validator/src/main/java/com/samsung/watchface/DWFValidationApplication.java @@ -31,7 +31,7 @@ public class DWFValidationApplication { private final static String APPLICATION_NAME = "wff-validator"; - private final static String MAX_SUPPORTED_FORMAT_VERSION = "4"; + private final static String MAX_SUPPORTED_FORMAT_VERSION = "5"; private WatchFaceXmlValidator validator; public static void main(String[] args) {