1// Request messages used to fetch tiles and resources
2syntax = "proto3";
3
4package androidx.wear.tiles.testing.proto;
5
6option java_package = "androidx.wear.tiles.testing.proto";
7option java_outer_classname = "DeviceParametersProto";
8
9// The platform of the device requesting a tile.
10enum DevicePlatform {
11  // Device platform is undefined.
12  DEVICE_PLATFORM_UNDEFINED = 0;
13
14  // Device is a Wear OS by Google device.
15  DEVICE_PLATFORM_WEAR_OS = 1;
16}
17
18// The shape of a screen.
19enum ScreenShape {
20  // Screen shape is undefined.
21  SCREEN_SHAPE_UNDEFINED = 0;
22
23  // A round screen (typically found on most Wear devices).
24  SCREEN_SHAPE_ROUND = 1;
25
26  // Rectangular screens.
27  SCREEN_SHAPE_RECT = 2;
28}
29
30// Parameters describing the device requesting a tile update. This contains
31// physical and logical characteristics about the device (e.g. screen size and
32// density, etc).
33message DeviceParameters {
34  // Width of the device's screen in DP.
35  uint32 screen_width_dp = 1;
36
37  // Height of the device's screen in DP.
38  uint32 screen_height_dp = 2;
39
40  // Density of the display. This value is the scaling factor to get from DP to
41  // Pixels (px = dp * density).
42  float screen_density = 3;
43
44  // The platform of the device.
45  DevicePlatform device_platform = 4;
46
47  // The shape of the device's screen
48  ScreenShape screen_shape = 5;
49}
50