1/* 2 * Copyright (C) 2015 Google Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 5 * use this file except in compliance with the License. You may obtain a copy of 6 * the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 * License for the specific language governing permissions and limitations under 14 * the License. 15 */ 16 17syntax = "proto2"; 18 19package com.google.android.apps.common.testing.accessibility.framework.uielement.proto; 20 21option java_package = "com.google.android.apps.common.testing.accessibility.framework.uielement.proto"; 22option java_outer_classname = "AndroidFrameworkProtos"; 23option objc_class_prefix = "AXEP"; 24 25// Proto representation of Rect 26// Next index: 5 27message RectProto { 28 optional int32 left = 1; 29 optional int32 top = 2; 30 optional int32 right = 3; 31 optional int32 bottom = 4; 32} 33 34// Proto representation of a CharSequence 35// Next index: 3 36message CharSequenceProto { 37 optional string text = 1; 38 repeated SpanProto span = 2; 39} 40 41// Proto representation of a Spanned 42// Next index: 10 43message SpanProto { 44 optional int32 start = 1; 45 optional int32 end = 2; 46 optional int32 flags = 3; 47 optional SpanType type = 4; 48 optional string url = 5; 49 optional string span_class_name = 6; 50 optional int32 style = 7; 51 optional int32 background_color = 8; 52 optional int32 foreground_color = 9; 53 54 // Span types used by the test framework 55 // Next index: 7 56 enum SpanType { 57 UNKNOWN = 0; 58 CLICKABLE = 1; 59 URL = 2; 60 STYLE = 3; 61 UNDERLINE = 4; 62 BACKGROUND_COLOR = 5; 63 FOREGROUND_COLOR = 6; 64 } 65} 66 67// Proto representation of LayoutParams 68// Next index: 3 69message LayoutParamsProto { 70 optional int32 width = 1; 71 optional int32 height = 2; 72} 73