File: avd.proto

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (111 lines) | stat: -rw-r--r-- 3,360 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

syntax = "proto3";

package tools.android.avd.proto;

message CIPDPackage {
  // CIPD package name.
  string package_name = 1;
  // CIPD package version to use.
  // Ignored when creating AVD packages.
  string version = 2;
  // Path into which the package should be installed.
  // relative to pylib.local.emulator.avd.COMMON_CIPD_ROOT.
  string dest_path = 3;
}

message ScreenSettings {
  // Screen height in pixels.
  uint32 height = 1;

  // Screen width in pixels.
  uint32 width = 2;

  // Scren density in dpi.
  uint32 density = 3;
}

message SdcardSettings {
  // Size of the sdcard that should be created for this AVD.
  // Can be anything that `mksdcard` or `avdmanager -c` would accept:
  //   - a number of bytes
  //   - a number followed by K, M, or G, indicating that many
  //     KiB, MiB, or GiB, respectively.
  string size = 1;
}

// settings only used during AVD creation.
message AvdSettings {
  // Settings pertaining to the AVD's screen.
  ScreenSettings screen = 1;

  // Settings pertaining to the AVD's sdcard.
  SdcardSettings sdcard = 2;

  // Advanced Features for AVD. The <key,value> pairs here will override the
  // default ones in the given system image.
  // See https://bit.ly/2P1qK2X for all the available keys.
  // The values should be on, off, default, or null
  map<string, string> advanced_features = 3;

  // The physical RAM size on the device, in megabytes.
  uint32 ram_size = 4;

  // The properties for AVD. The <key,value> pairs here will override the
  // default ones in the given system image.
  // See https://bit.ly/3052c1V for all the available keys and values.
  //
  // Note the screen, sdcard, ram_size above are ultimately translated to
  // AVD properties and they won't be overwritten by values here.
  map<string, string> avd_properties = 5;
}

// settings used during AVD launch. Needed in both creation and deploy textpb.
message AvdLaunchSettings {
  // The mode of hardware OpenGL ES emulation.
  // See "emulator -help-gpu" for a full list of modes.
  string gpu_mode = 1;
}

message Avd {
  // Next ID: 13

  // The emulator to use in running the AVD.
  CIPDPackage emulator_package = 1;

  // The system image to use.
  CIPDPackage system_image_package = 2;
  // The name of the system image to use, as reported by sdkmanager.
  string system_image_name = 3;

  // The AVD to create or use.
  // (Only the package_name is used during AVD creation.)
  CIPDPackage avd_package = 4;
  // The name of the AVD to create or use.
  string avd_name = 5;

  // How to configure the AVD at creation.
  AvdSettings avd_settings = 6;

  // This includes additional AvdSettings so that we can create AVDs with
  // slightly different configs
  map<string, AvdSettings> avd_variants = 12;

  // min sdk level for emulator.
  uint32 min_sdk = 7;

  // The partition to install the privileged apk.
  // version 27 and below is /system. After that it can be
  // /system, /product, or /vendor
  string install_privileged_apk_partition = 8;

  // Needed for gmscore/phonesky support.
  repeated CIPDPackage privileged_apk = 9;
  repeated CIPDPackage additional_apk = 10;

  // AVD settings used during AVD launch.
  AvdLaunchSettings avd_launch_settings = 11;
}