camerabox

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package camerabox provides all camerabox related types compiled from protobuf.

Index

Constants

This section is empty.

Variables

View Source
var (
	Facing_name = map[int32]string{
		0: "FACING_UNSET",
		1: "FACING_BACK",
		2: "FACING_FRONT",
	}
	Facing_value = map[string]int32{
		"FACING_UNSET": 0,
		"FACING_BACK":  1,
		"FACING_FRONT": 2,
	}
)

Enum value maps for Facing.

View Source
var (
	TestResult_name = map[int32]string{
		0: "TEST_RESULT_UNSET",
		1: "TEST_RESULT_PASSED",
		2: "TEST_RESULT_FAILED",
	}
	TestResult_value = map[string]int32{
		"TEST_RESULT_UNSET":  0,
		"TEST_RESULT_PASSED": 1,
		"TEST_RESULT_FAILED": 2,
	}
)

Enum value maps for TestResult.

View Source
var (
	HAL3CameraTest_name = map[int32]string{
		0:  "DEVICE",
		1:  "FRAME",
		2:  "JDA",
		3:  "JEA",
		4:  "MODULE",
		5:  "PERF",
		6:  "PREVIEW",
		7:  "RECORDING",
		8:  "STILL_CAPTURE",
		9:  "STREAM",
		10: "FACE_DETECTION",
	}
	HAL3CameraTest_value = map[string]int32{
		"DEVICE":         0,
		"FRAME":          1,
		"JDA":            2,
		"JEA":            3,
		"MODULE":         4,
		"PERF":           5,
		"PREVIEW":        6,
		"RECORDING":      7,
		"STILL_CAPTURE":  8,
		"STREAM":         9,
		"FACE_DETECTION": 10,
	}
)

Enum value maps for HAL3CameraTest.

View Source
var File_camerabox_alignment_service_proto protoreflect.FileDescriptor
View Source
var File_camerabox_common_proto protoreflect.FileDescriptor
View Source
var File_camerabox_hal3_service_proto protoreflect.FileDescriptor
View Source
var File_camerabox_its_service_proto protoreflect.FileDescriptor

Functions

func RegisterAlignmentServiceServer

func RegisterAlignmentServiceServer(s *grpc.Server, srv AlignmentServiceServer)

func RegisterHAL3ServiceServer

func RegisterHAL3ServiceServer(s *grpc.Server, srv HAL3ServiceServer)

func RegisterITSServiceServer

func RegisterITSServiceServer(s *grpc.Server, srv ITSServiceServer)

Types

type AlignmentServiceClient

type AlignmentServiceClient interface {
	// ManualAlign opens preview page on DUT and wait until preview is aligned.
	ManualAlign(ctx context.Context, in *ManualAlignRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// CheckRegression opens preview page on DUT and check preview is aligned as
	// regression test.
	CheckRegression(ctx context.Context, in *CheckRegressionRequest, opts ...grpc.CallOption) (*CheckRegressionResponse, error)
}

AlignmentServiceClient is the client API for AlignmentService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AlignmentServiceServer

type AlignmentServiceServer interface {
	// ManualAlign opens preview page on DUT and wait until preview is aligned.
	ManualAlign(context.Context, *ManualAlignRequest) (*empty.Empty, error)
	// CheckRegression opens preview page on DUT and check preview is aligned as
	// regression test.
	CheckRegression(context.Context, *CheckRegressionRequest) (*CheckRegressionResponse, error)
}

AlignmentServiceServer is the server API for AlignmentService service.

type CheckRegressionRequest

type CheckRegressionRequest struct {

	// Absolute path for saving data used on DUT.
	DataPath string `protobuf:"bytes,1,opt,name=data_path,json=dataPath,proto3" json:"data_path,omitempty"`
	// DUT's target camera facing to be aligned.
	Facing Facing `protobuf:"varint,2,opt,name=facing,proto3,enum=tast.cros.camerabox.Facing" json:"facing,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckRegressionRequest) Descriptor deprecated

func (*CheckRegressionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckRegressionRequest.ProtoReflect.Descriptor instead.

func (*CheckRegressionRequest) GetDataPath

func (x *CheckRegressionRequest) GetDataPath() string

func (*CheckRegressionRequest) GetFacing

func (x *CheckRegressionRequest) GetFacing() Facing

func (*CheckRegressionRequest) ProtoMessage

func (*CheckRegressionRequest) ProtoMessage()

func (*CheckRegressionRequest) ProtoReflect

func (x *CheckRegressionRequest) ProtoReflect() protoreflect.Message

func (*CheckRegressionRequest) Reset

func (x *CheckRegressionRequest) Reset()

func (*CheckRegressionRequest) String

func (x *CheckRegressionRequest) String() string

type CheckRegressionResponse

type CheckRegressionResponse struct {

	// Check result.
	Result TestResult `protobuf:"varint,1,opt,name=result,proto3,enum=tast.cros.camerabox.TestResult" json:"result,omitempty"`
	// Error message from running check.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckRegressionResponse) Descriptor deprecated

func (*CheckRegressionResponse) Descriptor() ([]byte, []int)

Deprecated: Use CheckRegressionResponse.ProtoReflect.Descriptor instead.

func (*CheckRegressionResponse) GetError

func (x *CheckRegressionResponse) GetError() string

func (*CheckRegressionResponse) GetResult

func (x *CheckRegressionResponse) GetResult() TestResult

func (*CheckRegressionResponse) ProtoMessage

func (*CheckRegressionResponse) ProtoMessage()

func (*CheckRegressionResponse) ProtoReflect

func (x *CheckRegressionResponse) ProtoReflect() protoreflect.Message

func (*CheckRegressionResponse) Reset

func (x *CheckRegressionResponse) Reset()

func (*CheckRegressionResponse) String

func (x *CheckRegressionResponse) String() string

type Facing

type Facing int32
const (
	Facing_FACING_UNSET Facing = 0
	// DUT's back camera is facing to chart tablet.
	Facing_FACING_BACK Facing = 1
	// DUT's front camera is facing to chart tablet.
	Facing_FACING_FRONT Facing = 2
)

func (Facing) Descriptor

func (Facing) Descriptor() protoreflect.EnumDescriptor

func (Facing) Enum

func (x Facing) Enum() *Facing

func (Facing) EnumDescriptor deprecated

func (Facing) EnumDescriptor() ([]byte, []int)

Deprecated: Use Facing.Descriptor instead.

func (Facing) Number

func (x Facing) Number() protoreflect.EnumNumber

func (Facing) String

func (x Facing) String() string

func (Facing) Type

func (Facing) Type() protoreflect.EnumType

type HAL3CameraTest

type HAL3CameraTest int32
const (
	HAL3CameraTest_DEVICE         HAL3CameraTest = 0
	HAL3CameraTest_FRAME          HAL3CameraTest = 1
	HAL3CameraTest_JDA            HAL3CameraTest = 2
	HAL3CameraTest_JEA            HAL3CameraTest = 3
	HAL3CameraTest_MODULE         HAL3CameraTest = 4
	HAL3CameraTest_PERF           HAL3CameraTest = 5
	HAL3CameraTest_PREVIEW        HAL3CameraTest = 6
	HAL3CameraTest_RECORDING      HAL3CameraTest = 7
	HAL3CameraTest_STILL_CAPTURE  HAL3CameraTest = 8
	HAL3CameraTest_STREAM         HAL3CameraTest = 9
	HAL3CameraTest_FACE_DETECTION HAL3CameraTest = 10
)

func (HAL3CameraTest) Descriptor

func (HAL3CameraTest) Enum

func (x HAL3CameraTest) Enum() *HAL3CameraTest

func (HAL3CameraTest) EnumDescriptor deprecated

func (HAL3CameraTest) EnumDescriptor() ([]byte, []int)

Deprecated: Use HAL3CameraTest.Descriptor instead.

func (HAL3CameraTest) Number

func (HAL3CameraTest) String

func (x HAL3CameraTest) String() string

func (HAL3CameraTest) Type

type HAL3ServiceClient

type HAL3ServiceClient interface {
	// RunTest runs specific HAL3 camera test on target facing camera.
	RunTest(ctx context.Context, in *RunTestRequest, opts ...grpc.CallOption) (*RunTestResponse, error)
}

HAL3ServiceClient is the client API for HAL3Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type HAL3ServiceServer

type HAL3ServiceServer interface {
	// RunTest runs specific HAL3 camera test on target facing camera.
	RunTest(context.Context, *RunTestRequest) (*RunTestResponse, error)
}

HAL3ServiceServer is the server API for HAL3Service service.

type ITSServiceClient

type ITSServiceClient interface {
	// SetUp sets up required software dependency to run ITS.
	SetUp(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// TearDown tears down software dependency brought up by |SetUp|.
	TearDown(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}

ITSServiceClient is the client API for ITSService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewITSServiceClient

func NewITSServiceClient(cc grpc.ClientConnInterface) ITSServiceClient

type ITSServiceServer

type ITSServiceServer interface {
	// SetUp sets up required software dependency to run ITS.
	SetUp(context.Context, *empty.Empty) (*empty.Empty, error)
	// TearDown tears down software dependency brought up by |SetUp|.
	TearDown(context.Context, *empty.Empty) (*empty.Empty, error)
}

ITSServiceServer is the server API for ITSService service.

type ManualAlignRequest

type ManualAlignRequest struct {

	// Absolute path for saving data used on DUT.
	DataPath string `protobuf:"bytes,1,opt,name=data_path,json=dataPath,proto3" json:"data_path,omitempty"`
	// Username to login chrome and prepare chrome remote desktop.
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// Password to login chrome and prepare chrome remote desktop.
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// DUT's target camera facing to be aligned.
	Facing Facing `protobuf:"varint,4,opt,name=facing,proto3,enum=tast.cros.camerabox.Facing" json:"facing,omitempty"`
	// contains filtered or unexported fields
}

func (*ManualAlignRequest) Descriptor deprecated

func (*ManualAlignRequest) Descriptor() ([]byte, []int)

Deprecated: Use ManualAlignRequest.ProtoReflect.Descriptor instead.

func (*ManualAlignRequest) GetDataPath

func (x *ManualAlignRequest) GetDataPath() string

func (*ManualAlignRequest) GetFacing

func (x *ManualAlignRequest) GetFacing() Facing

func (*ManualAlignRequest) GetPassword

func (x *ManualAlignRequest) GetPassword() string

func (*ManualAlignRequest) GetUsername

func (x *ManualAlignRequest) GetUsername() string

func (*ManualAlignRequest) ProtoMessage

func (*ManualAlignRequest) ProtoMessage()

func (*ManualAlignRequest) ProtoReflect

func (x *ManualAlignRequest) ProtoReflect() protoreflect.Message

func (*ManualAlignRequest) Reset

func (x *ManualAlignRequest) Reset()

func (*ManualAlignRequest) String

func (x *ManualAlignRequest) String() string

type RunTestRequest

type RunTestRequest struct {

	// Type of test to be run.
	Test HAL3CameraTest `protobuf:"varint,1,opt,name=test,proto3,enum=tast.cros.camerabox.HAL3CameraTest" json:"test,omitempty"`
	// Facing of camera to be tested.
	Facing Facing `protobuf:"varint,2,opt,name=facing,proto3,enum=tast.cros.camerabox.Facing" json:"facing,omitempty"`
	// Extended test parameters. The format is "id1=value1,id2=value2,..."
	ExtendedParams string `protobuf:"bytes,3,opt,name=extended_params,json=extendedParams,proto3" json:"extended_params,omitempty"`
	// contains filtered or unexported fields
}

func (*RunTestRequest) Descriptor deprecated

func (*RunTestRequest) Descriptor() ([]byte, []int)

Deprecated: Use RunTestRequest.ProtoReflect.Descriptor instead.

func (*RunTestRequest) GetExtendedParams

func (x *RunTestRequest) GetExtendedParams() string

func (*RunTestRequest) GetFacing

func (x *RunTestRequest) GetFacing() Facing

func (*RunTestRequest) GetTest

func (x *RunTestRequest) GetTest() HAL3CameraTest

func (*RunTestRequest) ProtoMessage

func (*RunTestRequest) ProtoMessage()

func (*RunTestRequest) ProtoReflect

func (x *RunTestRequest) ProtoReflect() protoreflect.Message

func (*RunTestRequest) Reset

func (x *RunTestRequest) Reset()

func (*RunTestRequest) String

func (x *RunTestRequest) String() string

type RunTestResponse

type RunTestResponse struct {
	Result TestResult `protobuf:"varint,1,opt,name=result,proto3,enum=tast.cros.camerabox.TestResult" json:"result,omitempty"`
	// Error message from running test.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*RunTestResponse) Descriptor deprecated

func (*RunTestResponse) Descriptor() ([]byte, []int)

Deprecated: Use RunTestResponse.ProtoReflect.Descriptor instead.

func (*RunTestResponse) GetError

func (x *RunTestResponse) GetError() string

func (*RunTestResponse) GetResult

func (x *RunTestResponse) GetResult() TestResult

func (*RunTestResponse) ProtoMessage

func (*RunTestResponse) ProtoMessage()

func (*RunTestResponse) ProtoReflect

func (x *RunTestResponse) ProtoReflect() protoreflect.Message

func (*RunTestResponse) Reset

func (x *RunTestResponse) Reset()

func (*RunTestResponse) String

func (x *RunTestResponse) String() string

type TestResult

type TestResult int32
const (
	TestResult_TEST_RESULT_UNSET TestResult = 0
	// Test is passed.
	TestResult_TEST_RESULT_PASSED TestResult = 1
	// Test is failed.
	TestResult_TEST_RESULT_FAILED TestResult = 2
)

func (TestResult) Descriptor

func (TestResult) Descriptor() protoreflect.EnumDescriptor

func (TestResult) Enum

func (x TestResult) Enum() *TestResult

func (TestResult) EnumDescriptor deprecated

func (TestResult) EnumDescriptor() ([]byte, []int)

Deprecated: Use TestResult.Descriptor instead.

func (TestResult) Number

func (x TestResult) Number() protoreflect.EnumNumber

func (TestResult) String

func (x TestResult) String() string

func (TestResult) Type

type UnimplementedAlignmentServiceServer

type UnimplementedAlignmentServiceServer struct {
}

UnimplementedAlignmentServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAlignmentServiceServer) CheckRegression

func (*UnimplementedAlignmentServiceServer) ManualAlign

type UnimplementedHAL3ServiceServer

type UnimplementedHAL3ServiceServer struct {
}

UnimplementedHAL3ServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedHAL3ServiceServer) RunTest

type UnimplementedITSServiceServer

type UnimplementedITSServiceServer struct {
}

UnimplementedITSServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedITSServiceServer) SetUp

func (*UnimplementedITSServiceServer) TearDown

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL