Move enums file to new directory
Bug: 167962588 Test: m -j Change-Id: I29b21fdc98c6c795902d23f21ef3dfd11d3f3216
This commit is contained in:
10
Android.bp
10
Android.bp
@@ -747,6 +747,7 @@ gensrcs {
|
||||
|
||||
srcs: [
|
||||
":ipconnectivity-proto-src",
|
||||
":libstats_atom_enum_protos",
|
||||
"core/proto/**/*.proto",
|
||||
"libs/incident/**/*.proto",
|
||||
],
|
||||
@@ -773,6 +774,7 @@ gensrcs {
|
||||
|
||||
srcs: [
|
||||
":ipconnectivity-proto-src",
|
||||
":libstats_atom_enum_protos",
|
||||
"core/proto/**/*.proto",
|
||||
"libs/incident/**/*.proto",
|
||||
],
|
||||
@@ -912,6 +914,7 @@ java_library_host {
|
||||
name: "platformprotos",
|
||||
srcs: [
|
||||
":ipconnectivity-proto-src",
|
||||
":libstats_atom_enum_protos",
|
||||
":libstats_internal_protos",
|
||||
"cmds/am/proto/instrumentation_data.proto",
|
||||
"cmds/statsd/src/**/*.proto",
|
||||
@@ -947,6 +950,7 @@ java_library {
|
||||
sdk_version: "9",
|
||||
srcs: [
|
||||
":ipconnectivity-proto-src",
|
||||
":libstats_atom_enum_protos",
|
||||
"core/proto/**/*.proto",
|
||||
"libs/incident/proto/android/os/**/*.proto",
|
||||
],
|
||||
@@ -962,6 +966,7 @@ java_library {
|
||||
|
||||
srcs: [
|
||||
":ipconnectivity-proto-src",
|
||||
":libstats_atom_enum_protos",
|
||||
"core/proto/**/*.proto",
|
||||
"libs/incident/proto/android/os/**/*.proto",
|
||||
],
|
||||
@@ -983,7 +988,9 @@ cc_defaults {
|
||||
|
||||
proto: {
|
||||
export_proto_headers: true,
|
||||
include_dirs: ["external/protobuf/src"],
|
||||
include_dirs: [
|
||||
"external/protobuf/src",
|
||||
],
|
||||
},
|
||||
|
||||
cflags: [
|
||||
@@ -994,6 +1001,7 @@ cc_defaults {
|
||||
|
||||
srcs: [
|
||||
":ipconnectivity-proto-src",
|
||||
":libstats_atom_enum_protos",
|
||||
"core/proto/**/*.proto",
|
||||
],
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "frameworks/base/core/proto/android/stats/launcher/launcher.pb.h"
|
||||
#include "frameworks/proto_logging/stats/atoms.pb.h"
|
||||
#include "frameworks/proto_logging/stats/enums/stats/launcher/launcher.pb.h"
|
||||
#include "log/log_event_list.h"
|
||||
#include "stats_event.h"
|
||||
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
// Copyright (C) 2018 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// C++ library for Bluetooth platform wide protobuf definitions
|
||||
cc_library_static {
|
||||
name: "libbt-platform-protos-lite",
|
||||
host_supported: true,
|
||||
proto: {
|
||||
export_proto_headers: true,
|
||||
type: "lite",
|
||||
},
|
||||
srcs: [
|
||||
"android/bluetooth/a2dp/enums.proto",
|
||||
"android/bluetooth/enums.proto",
|
||||
"android/bluetooth/hci/enums.proto",
|
||||
"android/bluetooth/hfp/enums.proto",
|
||||
"android/bluetooth/smp/enums.proto",
|
||||
],
|
||||
}
|
||||
@@ -1,215 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2017 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.app;
|
||||
|
||||
option java_outer_classname = "AppProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// ActivityManagerInternal.java's APP_TRANSITION reasons.
|
||||
enum AppTransitionReasonEnum {
|
||||
APP_TRANSITION_REASON_UNKNOWN = 0;
|
||||
// The transition was started because we drew the splash screen.
|
||||
APP_TRANSITION_SPLASH_SCREEN = 1;
|
||||
// The transition was started because we all app windows were drawn.
|
||||
APP_TRANSITION_WINDOWS_DRAWN = 2;
|
||||
// The transition was started because of a timeout.
|
||||
APP_TRANSITION_TIMEOUT = 3;
|
||||
// The transition was started because of a we drew a task snapshot.
|
||||
APP_TRANSITION_SNAPSHOT = 4;
|
||||
// The transition was started because it was a recents animation and we only needed to wait on
|
||||
// the wallpaper.
|
||||
APP_TRANSITION_RECENTS_ANIM = 5;
|
||||
}
|
||||
|
||||
// ActivityManager.java PROCESS_STATEs
|
||||
// Next tag: 1021
|
||||
enum ProcessStateEnum {
|
||||
// Unlike the ActivityManager PROCESS_STATE values, the ordering and numerical values
|
||||
// here are completely fixed and arbitrary. Order is irrelevant.
|
||||
// No attempt need be made to keep them in sync.
|
||||
// The values here must not be modified. Any new process states can be appended to the end.
|
||||
|
||||
// Process state that is unknown to this proto file (i.e. is not mapped
|
||||
// by ActivityManager.processStateAmToProto()). Can only happen if there's a bug in the mapping.
|
||||
PROCESS_STATE_UNKNOWN_TO_PROTO = 998;
|
||||
// Not a real process state.
|
||||
PROCESS_STATE_UNKNOWN = 999;
|
||||
// Process is a persistent system process.
|
||||
PROCESS_STATE_PERSISTENT = 1000;
|
||||
// Process is a persistent system process and is doing UI.
|
||||
PROCESS_STATE_PERSISTENT_UI = 1001;
|
||||
// Process is hosting the current top activities. Note that this covers
|
||||
// all activities that are visible to the user.
|
||||
PROCESS_STATE_TOP = 1002;
|
||||
// Process is bound to a TOP app.
|
||||
PROCESS_STATE_BOUND_TOP = 1020;
|
||||
// Process is hosting a foreground service.
|
||||
PROCESS_STATE_FOREGROUND_SERVICE = 1003;
|
||||
// Process is hosting a service bound by the system or another foreground app.
|
||||
PROCESS_STATE_BOUND_FOREGROUND_SERVICE = 1004;
|
||||
// Process is important to the user, and something they are aware of.
|
||||
PROCESS_STATE_IMPORTANT_FOREGROUND = 1005;
|
||||
// Process is important to the user, but not something they are aware of.
|
||||
PROCESS_STATE_IMPORTANT_BACKGROUND = 1006;
|
||||
// Process is in the background transient so we will try to keep running.
|
||||
PROCESS_STATE_TRANSIENT_BACKGROUND = 1007;
|
||||
// Process is in the background running a backup/restore operation.
|
||||
PROCESS_STATE_BACKUP = 1008;
|
||||
// Process is in the background running a service. Unlike oom_adj, this
|
||||
// level is used for both the normal running in background state and the
|
||||
// executing operations state.
|
||||
PROCESS_STATE_SERVICE = 1009;
|
||||
// Process is in the background running a receiver. Note that from the
|
||||
// perspective of oom_adj, receivers run at a higher foreground level, but
|
||||
// for our prioritization here that is not necessary and putting them
|
||||
// below services means many fewer changes in some process states as they
|
||||
// receive broadcasts.
|
||||
PROCESS_STATE_RECEIVER = 1010;
|
||||
// Same as PROCESS_STATE_TOP but while device is sleeping.
|
||||
PROCESS_STATE_TOP_SLEEPING = 1011;
|
||||
// Process is in the background, but it can't restore its state so we want
|
||||
// to try to avoid killing it.
|
||||
PROCESS_STATE_HEAVY_WEIGHT = 1012;
|
||||
// Process is in the background but hosts the home activity.
|
||||
PROCESS_STATE_HOME = 1013;
|
||||
// Process is in the background but hosts the last shown activity.
|
||||
PROCESS_STATE_LAST_ACTIVITY = 1014;
|
||||
// Process is being cached for later use and contains activities.
|
||||
PROCESS_STATE_CACHED_ACTIVITY = 1015;
|
||||
// Process is being cached for later use and is a client of another cached
|
||||
// process that contains activities.
|
||||
PROCESS_STATE_CACHED_ACTIVITY_CLIENT = 1016;
|
||||
// Process is being cached for later use and has an activity that corresponds
|
||||
// to an existing recent task.
|
||||
PROCESS_STATE_CACHED_RECENT = 1017;
|
||||
// Process is being cached for later use and is empty.
|
||||
PROCESS_STATE_CACHED_EMPTY = 1018;
|
||||
// Process does not exist.
|
||||
PROCESS_STATE_NONEXISTENT = 1019;
|
||||
}
|
||||
|
||||
// AppOpsManager.java - operation ids for logging
|
||||
enum AppOpEnum {
|
||||
APP_OP_NONE = -1;
|
||||
APP_OP_COARSE_LOCATION = 0;
|
||||
APP_OP_FINE_LOCATION = 1;
|
||||
APP_OP_GPS = 2;
|
||||
APP_OP_VIBRATE = 3;
|
||||
APP_OP_READ_CONTACTS = 4;
|
||||
APP_OP_WRITE_CONTACTS = 5;
|
||||
APP_OP_READ_CALL_LOG = 6;
|
||||
APP_OP_WRITE_CALL_LOG = 7;
|
||||
APP_OP_READ_CALENDAR = 8;
|
||||
APP_OP_WRITE_CALENDAR = 9;
|
||||
APP_OP_WIFI_SCAN = 10;
|
||||
APP_OP_POST_NOTIFICATION = 11;
|
||||
APP_OP_NEIGHBORING_CELLS = 12;
|
||||
APP_OP_CALL_PHONE = 13;
|
||||
APP_OP_READ_SMS = 14;
|
||||
APP_OP_WRITE_SMS = 15;
|
||||
APP_OP_RECEIVE_SMS = 16;
|
||||
APP_OP_RECEIVE_EMERGENCY_SMS = 17;
|
||||
APP_OP_RECEIVE_MMS = 18;
|
||||
APP_OP_RECEIVE_WAP_PUSH = 19;
|
||||
APP_OP_SEND_SMS = 20;
|
||||
APP_OP_READ_ICC_SMS = 21;
|
||||
APP_OP_WRITE_ICC_SMS = 22;
|
||||
APP_OP_WRITE_SETTINGS = 23;
|
||||
APP_OP_SYSTEM_ALERT_WINDOW = 24;
|
||||
APP_OP_ACCESS_NOTIFICATIONS = 25;
|
||||
APP_OP_CAMERA = 26;
|
||||
APP_OP_RECORD_AUDIO = 27;
|
||||
APP_OP_PLAY_AUDIO = 28;
|
||||
APP_OP_READ_CLIPBOARD = 29;
|
||||
APP_OP_WRITE_CLIPBOARD = 30;
|
||||
APP_OP_TAKE_MEDIA_BUTTONS = 31;
|
||||
APP_OP_TAKE_AUDIO_FOCUS = 32;
|
||||
APP_OP_AUDIO_MASTER_VOLUME = 33;
|
||||
APP_OP_AUDIO_VOICE_VOLUME = 34;
|
||||
APP_OP_AUDIO_RING_VOLUME = 35;
|
||||
APP_OP_AUDIO_MEDIA_VOLUME = 36;
|
||||
APP_OP_AUDIO_ALARM_VOLUME = 37;
|
||||
APP_OP_AUDIO_NOTIFICATION_VOLUME = 38;
|
||||
APP_OP_AUDIO_BLUETOOTH_VOLUME = 39;
|
||||
APP_OP_WAKE_LOCK = 40;
|
||||
APP_OP_MONITOR_LOCATION = 41;
|
||||
APP_OP_MONITOR_HIGH_POWER_LOCATION = 42;
|
||||
APP_OP_GET_USAGE_STATS = 43;
|
||||
APP_OP_MUTE_MICROPHONE = 44;
|
||||
APP_OP_TOAST_WINDOW = 45;
|
||||
APP_OP_PROJECT_MEDIA = 46;
|
||||
APP_OP_ACTIVATE_VPN = 47;
|
||||
APP_OP_WRITE_WALLPAPER = 48;
|
||||
APP_OP_ASSIST_STRUCTURE = 49;
|
||||
APP_OP_ASSIST_SCREENSHOT = 50;
|
||||
APP_OP_READ_PHONE_STATE = 51;
|
||||
APP_OP_ADD_VOICEMAIL = 52;
|
||||
APP_OP_USE_SIP = 53;
|
||||
APP_OP_PROCESS_OUTGOING_CALLS = 54;
|
||||
APP_OP_USE_FINGERPRINT = 55;
|
||||
APP_OP_BODY_SENSORS = 56;
|
||||
APP_OP_READ_CELL_BROADCASTS = 57;
|
||||
APP_OP_MOCK_LOCATION = 58;
|
||||
APP_OP_READ_EXTERNAL_STORAGE = 59;
|
||||
APP_OP_WRITE_EXTERNAL_STORAGE = 60;
|
||||
APP_OP_TURN_SCREEN_ON = 61;
|
||||
APP_OP_GET_ACCOUNTS = 62;
|
||||
APP_OP_RUN_IN_BACKGROUND = 63;
|
||||
APP_OP_AUDIO_ACCESSIBILITY_VOLUME = 64;
|
||||
APP_OP_READ_PHONE_NUMBERS = 65;
|
||||
APP_OP_REQUEST_INSTALL_PACKAGES = 66;
|
||||
APP_OP_PICTURE_IN_PICTURE = 67;
|
||||
APP_OP_INSTANT_APP_START_FOREGROUND = 68;
|
||||
APP_OP_ANSWER_PHONE_CALLS = 69;
|
||||
APP_OP_RUN_ANY_IN_BACKGROUND = 70;
|
||||
APP_OP_CHANGE_WIFI_STATE = 71;
|
||||
APP_OP_REQUEST_DELETE_PACKAGES = 72;
|
||||
APP_OP_BIND_ACCESSIBILITY_SERVICE = 73;
|
||||
APP_OP_ACCEPT_HANDOVER = 74;
|
||||
APP_OP_MANAGE_IPSEC_TUNNELS = 75;
|
||||
APP_OP_START_FOREGROUND = 76;
|
||||
APP_OP_BLUETOOTH_SCAN = 77;
|
||||
APP_OP_USE_BIOMETRIC = 78;
|
||||
APP_OP_ACTIVITY_RECOGNITION = 79;
|
||||
APP_OP_SMS_FINANCIAL_TRANSACTIONS = 80;
|
||||
APP_OP_READ_MEDIA_AUDIO = 81;
|
||||
APP_OP_WRITE_MEDIA_AUDIO = 82;
|
||||
APP_OP_READ_MEDIA_VIDEO = 83;
|
||||
APP_OP_WRITE_MEDIA_VIDEO = 84;
|
||||
APP_OP_READ_MEDIA_IMAGES = 85;
|
||||
APP_OP_WRITE_MEDIA_IMAGES = 86;
|
||||
APP_OP_LEGACY_STORAGE = 87;
|
||||
APP_OP_ACCESS_ACCESSIBILITY = 88;
|
||||
APP_OP_READ_DEVICE_IDENTIFIERS = 89;
|
||||
APP_OP_ACCESS_MEDIA_LOCATION = 90;
|
||||
APP_OP_QUERY_ALL_PACKAGES = 91;
|
||||
APP_OP_MANAGE_EXTERNAL_STORAGE = 92;
|
||||
APP_OP_INTERACT_ACROSS_PROFILES = 93;
|
||||
APP_OP_ACTIVATE_PLATFORM_VPN = 94;
|
||||
APP_OP_LOADER_USAGE_STATS = 95;
|
||||
APP_OP_DEPRECATED_1 = 96 [deprecated = true];
|
||||
APP_OP_AUTO_REVOKE_PERMISSIONS_IF_UNUSED = 97;
|
||||
APP_OP_AUTO_REVOKE_MANAGED_BY_INSTALLER = 98;
|
||||
APP_OP_NO_ISOLATED_STORAGE = 99;
|
||||
APP_OP_PHONE_CALL_MICROPHONE = 100;
|
||||
APP_OP_PHONE_CALL_CAMERA = 101;
|
||||
APP_OP_RECORD_AUDIO_HOTWORD = 102;
|
||||
APP_OP_MANAGE_ONGOING_CALLS = 103;
|
||||
APP_OP_MANAGE_CREDENTIALS = 104;
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2017 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.app.job;
|
||||
|
||||
// This file is for JobScheduler enums inside the app directory. If you're
|
||||
// adding enums for system-server-side code, use the file in
|
||||
// frameworks/base/core/proto/android/server/job.
|
||||
option java_outer_classname = "JobProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// Reasons a job is stopped.
|
||||
// Primarily used in android.app.job.JobParameters.java.
|
||||
enum StopReasonEnum {
|
||||
STOP_REASON_UNKNOWN = -1;
|
||||
STOP_REASON_CANCELLED = 0;
|
||||
STOP_REASON_CONSTRAINTS_NOT_SATISFIED = 1;
|
||||
STOP_REASON_PREEMPT = 2;
|
||||
STOP_REASON_TIMEOUT = 3;
|
||||
STOP_REASON_DEVICE_IDLE = 4;
|
||||
STOP_REASON_DEVICE_THERMAL = 5;
|
||||
STOP_REASON_RESTRICTED_BUCKET = 6;
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.app.settings.mediaoutput;
|
||||
option java_multiple_files = true;
|
||||
|
||||
/**
|
||||
* The medium type specified in an output switching operation.
|
||||
*/
|
||||
enum MediumType {
|
||||
UNKNOWN_TYPE = 0;
|
||||
BUILTIN_SPEAKER = 1;
|
||||
WIRED_3POINT5_MM_AUDIO = 100;
|
||||
WIRED_3POINT5_MM_HEADSET = 101;
|
||||
WIRED_3POINT5_MM_HEADPHONES = 102;
|
||||
USB_C_AUDIO = 200;
|
||||
USB_C_DEVICE = 201;
|
||||
USB_C_HEADSET = 202;
|
||||
USB_C_ACCESSORY = 203;
|
||||
USB_C_DOCK = 204;
|
||||
USB_C_HDMI = 205;
|
||||
BLUETOOTH = 300;
|
||||
BLUETOOTH_HEARING_AID = 301;
|
||||
BLUETOOTH_A2DP = 302;
|
||||
REMOTE_SINGLE = 400;
|
||||
REMOTE_TV = 401;
|
||||
REMOTE_SPEAKER = 402;
|
||||
REMOTE_GROUP = 500;
|
||||
REMOTE_DYNAMIC_GROUP = 501;
|
||||
};
|
||||
|
||||
/**
|
||||
* The result of an output switching operation.
|
||||
*/
|
||||
enum SwitchResult {
|
||||
ERROR = 0;
|
||||
OK = 1;
|
||||
};
|
||||
|
||||
/**
|
||||
* The sub result of an output switching operation.
|
||||
*/
|
||||
enum SubResult {
|
||||
UNKNOWN_ERROR = 0;
|
||||
NO_ERROR = 1;
|
||||
REJECTED = 2;
|
||||
NETWORK_ERROR = 3;
|
||||
ROUTE_NOT_AVAILABLE = 4;
|
||||
INVALID_COMMAND = 5;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,35 +0,0 @@
|
||||
/*
|
||||
* Copyright 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.bluetooth.a2dp;
|
||||
|
||||
option java_outer_classname = "BluetoothA2dpProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// A2dp playback state enum, defined from:
|
||||
// frameworks/base/core/java/android/bluetooth/BluetoothA2dp.java
|
||||
enum PlaybackStateEnum {
|
||||
PLAYBACK_STATE_UNKNOWN = 0;
|
||||
PLAYBACK_STATE_PLAYING = 10;
|
||||
PLAYBACK_STATE_NOT_PLAYING = 11;
|
||||
}
|
||||
|
||||
enum AudioCodingModeEnum {
|
||||
AUDIO_CODING_MODE_UNKNOWN = 0;
|
||||
AUDIO_CODING_MODE_HARDWARE = 1;
|
||||
AUDIO_CODING_MODE_SOFTWARE = 2;
|
||||
}
|
||||
@@ -1,142 +0,0 @@
|
||||
/*
|
||||
* Copyright 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.bluetooth;
|
||||
|
||||
option java_outer_classname = "BluetoothProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// Bluetooth connection states.
|
||||
enum ConnectionStateEnum {
|
||||
CONNECTION_STATE_DISCONNECTED = 0;
|
||||
CONNECTION_STATE_CONNECTING = 1;
|
||||
CONNECTION_STATE_CONNECTED = 2;
|
||||
CONNECTION_STATE_DISCONNECTING = 3;
|
||||
}
|
||||
|
||||
// Bluetooth Adapter Enable and Disable Reasons
|
||||
enum EnableDisableReasonEnum {
|
||||
ENABLE_DISABLE_REASON_UNSPECIFIED = 0;
|
||||
ENABLE_DISABLE_REASON_APPLICATION_REQUEST = 1;
|
||||
ENABLE_DISABLE_REASON_AIRPLANE_MODE = 2;
|
||||
ENABLE_DISABLE_REASON_DISALLOWED = 3;
|
||||
ENABLE_DISABLE_REASON_RESTARTED = 4;
|
||||
ENABLE_DISABLE_REASON_START_ERROR = 5;
|
||||
ENABLE_DISABLE_REASON_SYSTEM_BOOT = 6;
|
||||
ENABLE_DISABLE_REASON_CRASH = 7;
|
||||
ENABLE_DISABLE_REASON_USER_SWITCH = 8;
|
||||
ENABLE_DISABLE_REASON_RESTORE_USER_SETTING = 9;
|
||||
ENABLE_DISABLE_REASON_FACTORY_RESET = 10;
|
||||
ENABLE_DISABLE_REASON_INIT_FLAGS_CHANGED = 11;
|
||||
}
|
||||
|
||||
enum DirectionEnum {
|
||||
DIRECTION_UNKNOWN = 0;
|
||||
DIRECTION_OUTGOING = 1;
|
||||
DIRECTION_INCOMING = 2;
|
||||
}
|
||||
|
||||
// First item is the default value, other values follow Bluetooth spec definition
|
||||
enum LinkTypeEnum {
|
||||
// Link type is at most 1 byte (0xFF), thus 0xFFF must not be a valid value
|
||||
LINK_TYPE_UNKNOWN = 0xFFF;
|
||||
LINK_TYPE_SCO = 0x00;
|
||||
LINK_TYPE_ACL = 0x01;
|
||||
LINK_TYPE_ESCO = 0x02;
|
||||
}
|
||||
|
||||
enum DeviceInfoSrcEnum {
|
||||
DEVICE_INFO_SRC_UNKNOWN = 0;
|
||||
// Within Android Bluetooth stack
|
||||
DEVICE_INFO_INTERNAL = 1;
|
||||
// Outside Android Bluetooth stack
|
||||
DEVICE_INFO_EXTERNAL = 2;
|
||||
}
|
||||
|
||||
enum DeviceTypeEnum {
|
||||
DEVICE_TYPE_UNKNOWN = 0;
|
||||
DEVICE_TYPE_CLASSIC = 1;
|
||||
DEVICE_TYPE_LE = 2;
|
||||
DEVICE_TYPE_DUAL = 3;
|
||||
}
|
||||
|
||||
// Defined in frameworks/base/core/java/android/bluetooth/BluetoothDevice.java
|
||||
enum TransportTypeEnum {
|
||||
TRANSPORT_TYPE_AUTO = 0;
|
||||
TRANSPORT_TYPE_BREDR = 1;
|
||||
TRANSPORT_TYPE_LE = 2;
|
||||
}
|
||||
|
||||
// Bond state enum
|
||||
// Defined in frameworks/base/core/java/android/bluetooth/BluetoothDevice.java
|
||||
enum BondStateEnum {
|
||||
BOND_STATE_UNKNOWN = 0;
|
||||
BOND_STATE_NONE = 10;
|
||||
BOND_STATE_BONDING = 11;
|
||||
BOND_STATE_BONDED = 12;
|
||||
}
|
||||
|
||||
// Sub states within the bonding general state
|
||||
enum BondSubStateEnum {
|
||||
BOND_SUB_STATE_UNKNOWN = 0;
|
||||
BOND_SUB_STATE_LOCAL_OOB_DATA_PROVIDED = 1;
|
||||
BOND_SUB_STATE_LOCAL_PIN_REQUESTED = 2;
|
||||
BOND_SUB_STATE_LOCAL_PIN_REPLIED = 3;
|
||||
BOND_SUB_STATE_LOCAL_SSP_REQUESTED = 4;
|
||||
BOND_SUB_STATE_LOCAL_SSP_REPLIED = 5;
|
||||
}
|
||||
|
||||
enum UnbondReasonEnum {
|
||||
UNBOND_REASON_UNKNOWN = 0;
|
||||
UNBOND_REASON_AUTH_FAILED = 1;
|
||||
UNBOND_REASON_AUTH_REJECTED = 2;
|
||||
UNBOND_REASON_AUTH_CANCELED = 3;
|
||||
UNBOND_REASON_REMOTE_DEVICE_DOWN = 4;
|
||||
UNBOND_REASON_DISCOVERY_IN_PROGRESS = 5;
|
||||
UNBOND_REASON_AUTH_TIMEOUT = 6;
|
||||
UNBOND_REASON_REPEATED_ATTEMPTS = 7;
|
||||
UNBOND_REASON_REMOTE_AUTH_CANCELED = 8;
|
||||
UNBOND_REASON_REMOVED = 9;
|
||||
}
|
||||
|
||||
enum SocketTypeEnum {
|
||||
SOCKET_TYPE_UNKNOWN = 0;
|
||||
SOCKET_TYPE_RFCOMM = 1;
|
||||
SOCKET_TYPE_SCO = 2;
|
||||
SOCKET_TYPE_L2CAP_BREDR = 3;
|
||||
SOCKET_TYPE_L2CAP_LE = 4;
|
||||
}
|
||||
|
||||
enum SocketConnectionstateEnum {
|
||||
SOCKET_CONNECTION_STATE_UNKNOWN = 0;
|
||||
// Socket acts as a server waiting for connection
|
||||
SOCKET_CONNECTION_STATE_LISTENING = 1;
|
||||
// Socket acts as a client trying to connect
|
||||
SOCKET_CONNECTION_STATE_CONNECTING = 2;
|
||||
// Socket is connected
|
||||
SOCKET_CONNECTION_STATE_CONNECTED = 3;
|
||||
// Socket tries to disconnect from remote
|
||||
SOCKET_CONNECTION_STATE_DISCONNECTING = 4;
|
||||
// This socket is closed
|
||||
SOCKET_CONNECTION_STATE_DISCONNECTED = 5;
|
||||
}
|
||||
|
||||
enum SocketRoleEnum {
|
||||
SOCKET_ROLE_UNKNOWN = 0;
|
||||
SOCKET_ROLE_LISTEN = 1;
|
||||
SOCKET_ROLE_CONNECTION = 2;
|
||||
}
|
||||
@@ -1,559 +0,0 @@
|
||||
/*
|
||||
* Copyright 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.bluetooth.hci;
|
||||
|
||||
option java_outer_classname = "BluetoothHciProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// HCI command opcodes (OCF+OGF) from Bluetooth 5.0 specification Vol 2, Part E, Section 7
|
||||
// Original definition: system/bt/stack/include/hcidefs.h
|
||||
enum CommandEnum {
|
||||
// Opcode is at most 2 bytes (0xFFFF), thus 0xFFFFF must not be a valid value
|
||||
CMD_UNKNOWN = 0xFFFFF;
|
||||
// Link control commands 0x0400
|
||||
CMD_INQUIRY = 0x0401;
|
||||
CMD_INQUIRY_CANCEL = 0x0402;
|
||||
CMD_PERIODIC_INQUIRY_MODE = 0x0403;
|
||||
CMD_EXIT_PERIODIC_INQUIRY_MODE = 0x0404;
|
||||
CMD_CREATE_CONNECTION = 0x0405;
|
||||
CMD_DISCONNECT = 0x0406;
|
||||
CMD_ADD_SCO_CONNECTION = 0x0407; // Deprecated since Bluetooth 1.2
|
||||
CMD_CREATE_CONNECTION_CANCEL = 0x0408;
|
||||
CMD_ACCEPT_CONNECTION_REQUEST = 0x0409;
|
||||
CMD_REJECT_CONNECTION_REQUEST = 0x040A;
|
||||
CMD_LINK_KEY_REQUEST_REPLY = 0x040B;
|
||||
CMD_LINK_KEY_REQUEST_NEG_REPLY = 0x040C;
|
||||
CMD_PIN_CODE_REQUEST_REPLY = 0x040D;
|
||||
CMD_PIN_CODE_REQUEST_NEG_REPLY = 0x040E;
|
||||
CMD_CHANGE_CONN_PACKET_TYPE = 0x040F;
|
||||
CMD_AUTHENTICATION_REQUESTED = 0x0411;
|
||||
CMD_SET_CONN_ENCRYPTION = 0x0413;
|
||||
CMD_CHANGE_CONN_LINK_KEY = 0x0415;
|
||||
CMD_MASTER_LINK_KEY = 0x0417;
|
||||
CMD_RMT_NAME_REQUEST = 0x0419;
|
||||
CMD_RMT_NAME_REQUEST_CANCEL = 0x041A;
|
||||
CMD_READ_RMT_FEATURES = 0x041B;
|
||||
CMD_READ_RMT_EXT_FEATURES = 0x041C;
|
||||
CMD_READ_RMT_VERSION_INFO = 0x041D;
|
||||
CMD_READ_RMT_CLOCK_OFFSET = 0x041F;
|
||||
CMD_READ_LMP_HANDLE = 0x0420;
|
||||
CMD_SETUP_ESCO_CONNECTION = 0x0428;
|
||||
CMD_ACCEPT_ESCO_CONNECTION = 0x0429;
|
||||
CMD_REJECT_ESCO_CONNECTION = 0x042A;
|
||||
CMD_IO_CAPABILITY_REQUEST_REPLY = 0x042B;
|
||||
CMD_USER_CONF_REQUEST_REPLY = 0x042C;
|
||||
CMD_USER_CONF_VALUE_NEG_REPLY = 0x042D;
|
||||
CMD_USER_PASSKEY_REQ_REPLY = 0x042E;
|
||||
CMD_USER_PASSKEY_REQ_NEG_REPLY = 0x042F;
|
||||
CMD_REM_OOB_DATA_REQ_REPLY = 0x0430;
|
||||
CMD_REM_OOB_DATA_REQ_NEG_REPLY = 0x0433;
|
||||
CMD_IO_CAP_REQ_NEG_REPLY = 0x0434;
|
||||
// BEGIN: AMP commands (not used in system/bt)
|
||||
CMD_CREATE_PHYSICAL_LINK = 0x0435;
|
||||
CMD_ACCEPT_PHYSICAL_LINK = 0x0436;
|
||||
CMD_DISCONNECT_PHYSICAL_LINK = 0x0437;
|
||||
CMD_CREATE_LOGICAL_LINK = 0x0438;
|
||||
CMD_ACCEPT_LOGICAL_LINK = 0x0439;
|
||||
CMD_DISCONNECT_LOGICAL_LINK = 0x043A;
|
||||
CMD_LOGICAL_LINK_CANCEL = 0x043B;
|
||||
CMD_FLOW_SPEC_MODIFY = 0x043C;
|
||||
// END: AMP commands
|
||||
CMD_ENH_SETUP_ESCO_CONNECTION = 0x043D;
|
||||
CMD_ENH_ACCEPT_ESCO_CONNECTION = 0x043E;
|
||||
CMD_TRUNCATED_PAGE = 0x043F;
|
||||
CMD_TRUNCATED_PAGE_CANCEL = 0x0440;
|
||||
CMD_SET_CLB = 0x0441;
|
||||
CMD_RECEIVE_CLB = 0x0442;
|
||||
CMD_START_SYNC_TRAIN = 0x0443;
|
||||
CMD_RECEIVE_SYNC_TRAIN = 0x0444;
|
||||
CMD_REM_OOB_EXTENDED_DATA_REQ_REPLY = 0x0445; // Not currently used in system/bt
|
||||
// Link policy commands 0x0800
|
||||
CMD_HOLD_MODE = 0x0801;
|
||||
CMD_SNIFF_MODE = 0x0803;
|
||||
CMD_EXIT_SNIFF_MODE = 0x0804;
|
||||
CMD_PARK_MODE = 0x0805;
|
||||
CMD_EXIT_PARK_MODE = 0x0806;
|
||||
CMD_QOS_SETUP = 0x0807;
|
||||
CMD_ROLE_DISCOVERY = 0x0809;
|
||||
CMD_SWITCH_ROLE = 0x080B;
|
||||
CMD_READ_POLICY_SETTINGS = 0x080C;
|
||||
CMD_WRITE_POLICY_SETTINGS = 0x080D;
|
||||
CMD_READ_DEF_POLICY_SETTINGS = 0x080E;
|
||||
CMD_WRITE_DEF_POLICY_SETTINGS = 0x080F;
|
||||
CMD_FLOW_SPECIFICATION = 0x0810;
|
||||
CMD_SNIFF_SUB_RATE = 0x0811;
|
||||
// Host controller baseband commands 0x0C00
|
||||
CMD_SET_EVENT_MASK = 0x0C01;
|
||||
CMD_RESET = 0x0C03;
|
||||
CMD_SET_EVENT_FILTER = 0x0C05;
|
||||
CMD_FLUSH = 0x0C08;
|
||||
CMD_READ_PIN_TYPE = 0x0C09;
|
||||
CMD_WRITE_PIN_TYPE = 0x0C0A;
|
||||
CMD_CREATE_NEW_UNIT_KEY = 0x0C0B;
|
||||
CMD_GET_MWS_TRANS_LAYER_CFG = 0x0C0C; // Deprecated (not used in spec)
|
||||
CMD_READ_STORED_LINK_KEY = 0x0C0D;
|
||||
CMD_WRITE_STORED_LINK_KEY = 0x0C11;
|
||||
CMD_DELETE_STORED_LINK_KEY = 0x0C12;
|
||||
CMD_CHANGE_LOCAL_NAME = 0x0C13;
|
||||
CMD_READ_LOCAL_NAME = 0x0C14;
|
||||
CMD_READ_CONN_ACCEPT_TOUT = 0x0C15;
|
||||
CMD_WRITE_CONN_ACCEPT_TOUT = 0x0C16;
|
||||
CMD_READ_PAGE_TOUT = 0x0C17;
|
||||
CMD_WRITE_PAGE_TOUT = 0x0C18;
|
||||
CMD_READ_SCAN_ENABLE = 0x0C19;
|
||||
CMD_WRITE_SCAN_ENABLE = 0x0C1A;
|
||||
CMD_READ_PAGESCAN_CFG = 0x0C1B;
|
||||
CMD_WRITE_PAGESCAN_CFG = 0x0C1C;
|
||||
CMD_READ_INQUIRYSCAN_CFG = 0x0C1D;
|
||||
CMD_WRITE_INQUIRYSCAN_CFG = 0x0C1E;
|
||||
CMD_READ_AUTHENTICATION_ENABLE = 0x0C1F;
|
||||
CMD_WRITE_AUTHENTICATION_ENABLE = 0x0C20;
|
||||
CMD_READ_ENCRYPTION_MODE = 0x0C21; // Deprecated
|
||||
CMD_WRITE_ENCRYPTION_MODE = 0x0C22; // Deprecated
|
||||
CMD_READ_CLASS_OF_DEVICE = 0x0C23;
|
||||
CMD_WRITE_CLASS_OF_DEVICE = 0x0C24;
|
||||
CMD_READ_VOICE_SETTINGS = 0x0C25;
|
||||
CMD_WRITE_VOICE_SETTINGS = 0x0C26;
|
||||
CMD_READ_AUTOMATIC_FLUSH_TIMEOUT = 0x0C27;
|
||||
CMD_WRITE_AUTOMATIC_FLUSH_TIMEOUT = 0x0C28;
|
||||
CMD_READ_NUM_BCAST_REXMITS = 0x0C29;
|
||||
CMD_WRITE_NUM_BCAST_REXMITS = 0x0C2A;
|
||||
CMD_READ_HOLD_MODE_ACTIVITY = 0x0C2B;
|
||||
CMD_WRITE_HOLD_MODE_ACTIVITY = 0x0C2C;
|
||||
CMD_READ_TRANSMIT_POWER_LEVEL = 0x0C2D;
|
||||
CMD_READ_SCO_FLOW_CTRL_ENABLE = 0x0C2E;
|
||||
CMD_WRITE_SCO_FLOW_CTRL_ENABLE = 0x0C2F;
|
||||
CMD_SET_HC_TO_HOST_FLOW_CTRL = 0x0C31;
|
||||
CMD_HOST_BUFFER_SIZE = 0x0C33;
|
||||
CMD_HOST_NUM_PACKETS_DONE = 0x0C35;
|
||||
CMD_READ_LINK_SUPER_TOUT = 0x0C36;
|
||||
CMD_WRITE_LINK_SUPER_TOUT = 0x0C37;
|
||||
CMD_READ_NUM_SUPPORTED_IAC = 0x0C38;
|
||||
CMD_READ_CURRENT_IAC_LAP = 0x0C39;
|
||||
CMD_WRITE_CURRENT_IAC_LAP = 0x0C3A;
|
||||
CMD_READ_PAGESCAN_PERIOD_MODE = 0x0C3B; // Deprecated
|
||||
CMD_WRITE_PAGESCAN_PERIOD_MODE = 0x0C3C; // Deprecated
|
||||
CMD_READ_PAGESCAN_MODE = 0x0C3D; // Deprecated
|
||||
CMD_WRITE_PAGESCAN_MODE = 0x0C3E; // Deprecated
|
||||
CMD_SET_AFH_CHANNELS = 0x0C3F;
|
||||
CMD_READ_INQSCAN_TYPE = 0x0C42;
|
||||
CMD_WRITE_INQSCAN_TYPE = 0x0C43;
|
||||
CMD_READ_INQUIRY_MODE = 0x0C44;
|
||||
CMD_WRITE_INQUIRY_MODE = 0x0C45;
|
||||
CMD_READ_PAGESCAN_TYPE = 0x0C46;
|
||||
CMD_WRITE_PAGESCAN_TYPE = 0x0C47;
|
||||
CMD_READ_AFH_ASSESSMENT_MODE = 0x0C48;
|
||||
CMD_WRITE_AFH_ASSESSMENT_MODE = 0x0C49;
|
||||
CMD_READ_EXT_INQ_RESPONSE = 0x0C51;
|
||||
CMD_WRITE_EXT_INQ_RESPONSE = 0x0C52;
|
||||
CMD_REFRESH_ENCRYPTION_KEY = 0x0C53;
|
||||
CMD_READ_SIMPLE_PAIRING_MODE = 0x0C55;
|
||||
CMD_WRITE_SIMPLE_PAIRING_MODE = 0x0C56;
|
||||
CMD_READ_LOCAL_OOB_DATA = 0x0C57;
|
||||
CMD_READ_INQ_TX_POWER_LEVEL = 0x0C58;
|
||||
CMD_WRITE_INQ_TX_POWER_LEVEL = 0x0C59;
|
||||
CMD_READ_ERRONEOUS_DATA_RPT = 0x0C5A;
|
||||
CMD_WRITE_ERRONEOUS_DATA_RPT = 0x0C5B;
|
||||
CMD_ENHANCED_FLUSH = 0x0C5F;
|
||||
CMD_SEND_KEYPRESS_NOTIF = 0x0C60;
|
||||
CMD_READ_LOGICAL_LINK_ACCEPT_TIMEOUT = 0x0C61;
|
||||
CMD_WRITE_LOGICAL_LINK_ACCEPT_TIMEOUT = 0x0C62;
|
||||
CMD_SET_EVENT_MASK_PAGE_2 = 0x0C63;
|
||||
CMD_READ_LOCATION_DATA = 0x0C64;
|
||||
CMD_WRITE_LOCATION_DATA = 0x0C65;
|
||||
CMD_READ_FLOW_CONTROL_MODE = 0x0C66;
|
||||
CMD_WRITE_FLOW_CONTROL_MODE = 0x0C67;
|
||||
CMD_READ_ENHANCED_TX_PWR_LEVEL = 0x0C68; // Not currently used in system/bt
|
||||
CMD_READ_BE_FLUSH_TOUT = 0x0C69;
|
||||
CMD_WRITE_BE_FLUSH_TOUT = 0x0C6A;
|
||||
CMD_SHORT_RANGE_MODE = 0x0C6B;
|
||||
CMD_READ_BLE_HOST_SUPPORT = 0x0C6C;
|
||||
CMD_WRITE_BLE_HOST_SUPPORT = 0x0C6D;
|
||||
CMD_SET_MWS_CHANNEL_PARAMETERS = 0x0C6E;
|
||||
CMD_SET_EXTERNAL_FRAME_CONFIGURATION = 0x0C6F;
|
||||
CMD_SET_MWS_SIGNALING = 0x0C70;
|
||||
CMD_SET_MWS_TRANSPORT_LAYER = 0x0C71;
|
||||
CMD_SET_MWS_SCAN_FREQUENCY_TABLE = 0x0C72;
|
||||
CMD_SET_MWS_PATTERN_CONFIGURATION = 0x0C73;
|
||||
CMD_SET_RESERVED_LT_ADDR = 0x0C74;
|
||||
CMD_DELETE_RESERVED_LT_ADDR = 0x0C75;
|
||||
CMD_WRITE_CLB_DATA = 0x0C76;
|
||||
CMD_READ_SYNC_TRAIN_PARAM = 0x0C77;
|
||||
CMD_WRITE_SYNC_TRAIN_PARAM = 0x0C78;
|
||||
CMD_READ_SECURE_CONNS_SUPPORT = 0x0C79;
|
||||
CMD_WRITE_SECURE_CONNS_SUPPORT = 0x0C7A;
|
||||
CMD_READ_AUTHED_PAYLOAD_TIMEOUT = 0x0C7B; // Not currently used in system/bt
|
||||
CMD_WRITE_AUTHED_PAYLOAD_TIMEOUT = 0x0C7C; // Not currently used in system/bt
|
||||
CMD_READ_LOCAL_OOB_EXTENDED_DATA = 0x0C7D; // Not currently used in system/bt
|
||||
CMD_READ_EXTENDED_PAGE_TIMEOUT = 0x0C7E; // Not currently used in system/bt
|
||||
CMD_WRITE_EXTENDED_PAGE_TIMEOUT = 0x0C7F; // Not currently used in system/bt
|
||||
CMD_READ_EXTENDED_INQUIRY_LENGTH = 0x0C80; // Not currently used in system/bt
|
||||
CMD_WRITE_EXTENDED_INQUIRY_LENGTH = 0x0C81; // Not currently used in system/bt
|
||||
// Informational parameter commands 0x1000
|
||||
CMD_READ_LOCAL_VERSION_INFO = 0x1001;
|
||||
CMD_READ_LOCAL_SUPPORTED_CMDS = 0x1002;
|
||||
CMD_READ_LOCAL_FEATURES = 0x1003;
|
||||
CMD_READ_LOCAL_EXT_FEATURES = 0x1004;
|
||||
CMD_READ_BUFFER_SIZE = 0x1005;
|
||||
CMD_READ_COUNTRY_CODE = 0x1007; // Deprecated
|
||||
CMD_READ_BD_ADDR = 0x1009;
|
||||
CMD_READ_DATA_BLOCK_SIZE = 0x100A;
|
||||
CMD_READ_LOCAL_SUPPORTED_CODECS = 0x100B;
|
||||
// Status parameter commands 0x1400
|
||||
CMD_READ_FAILED_CONTACT_COUNTER = 0x1401;
|
||||
CMD_RESET_FAILED_CONTACT_COUNTER = 0x1402;
|
||||
CMD_GET_LINK_QUALITY = 0x1403;
|
||||
CMD_READ_RSSI = 0x1405;
|
||||
CMD_READ_AFH_CH_MAP = 0x1406;
|
||||
CMD_READ_CLOCK = 0x1407;
|
||||
CMD_READ_ENCR_KEY_SIZE = 0x1408;
|
||||
CMD_READ_LOCAL_AMP_INFO = 0x1409;
|
||||
CMD_READ_LOCAL_AMP_ASSOC = 0x140A;
|
||||
CMD_WRITE_REMOTE_AMP_ASSOC = 0x140B;
|
||||
CMD_GET_MWS_TRANSPORT_CFG = 0x140C; // Not currently used in system/bt
|
||||
CMD_SET_TRIGGERED_CLK_CAPTURE = 0x140D; // Not currently used in system/bt
|
||||
// Testing commands 0x1800
|
||||
CMD_READ_LOOPBACK_MODE = 0x1801;
|
||||
CMD_WRITE_LOOPBACK_MODE = 0x1802;
|
||||
CMD_ENABLE_DEV_UNDER_TEST_MODE = 0x1803;
|
||||
CMD_WRITE_SIMP_PAIR_DEBUG_MODE = 0x1804;
|
||||
CMD_ENABLE_AMP_RCVR_REPORTS = 0x1807;
|
||||
CMD_AMP_TEST_END = 0x1808;
|
||||
CMD_AMP_TEST = 0x1809;
|
||||
CMD_WRITE_SECURE_CONN_TEST_MODE = 0x180A; // Not currently used in system/bt
|
||||
// BLE commands 0x2000
|
||||
CMD_BLE_SET_EVENT_MASK = 0x2001;
|
||||
CMD_BLE_READ_BUFFER_SIZE = 0x2002;
|
||||
CMD_BLE_READ_LOCAL_SPT_FEAT = 0x2003;
|
||||
CMD_BLE_WRITE_LOCAL_SPT_FEAT = 0x2004;
|
||||
CMD_BLE_WRITE_RANDOM_ADDR = 0x2005;
|
||||
CMD_BLE_WRITE_ADV_PARAMS = 0x2006;
|
||||
CMD_BLE_READ_ADV_CHNL_TX_POWER = 0x2007;
|
||||
CMD_BLE_WRITE_ADV_DATA = 0x2008;
|
||||
CMD_BLE_WRITE_SCAN_RSP_DATA = 0x2009;
|
||||
CMD_BLE_WRITE_ADV_ENABLE = 0x200A;
|
||||
CMD_BLE_WRITE_SCAN_PARAMS = 0x200B;
|
||||
CMD_BLE_WRITE_SCAN_ENABLE = 0x200C;
|
||||
CMD_BLE_CREATE_LL_CONN = 0x200D;
|
||||
CMD_BLE_CREATE_CONN_CANCEL = 0x200E;
|
||||
CMD_BLE_READ_WHITE_LIST_SIZE = 0x200F;
|
||||
CMD_BLE_CLEAR_WHITE_LIST = 0x2010;
|
||||
CMD_BLE_ADD_WHITE_LIST = 0x2011;
|
||||
CMD_BLE_REMOVE_WHITE_LIST = 0x2012;
|
||||
CMD_BLE_UPD_LL_CONN_PARAMS = 0x2013;
|
||||
CMD_BLE_SET_HOST_CHNL_CLASS = 0x2014;
|
||||
CMD_BLE_READ_CHNL_MAP = 0x2015;
|
||||
CMD_BLE_READ_REMOTE_FEAT = 0x2016;
|
||||
CMD_BLE_ENCRYPT = 0x2017;
|
||||
CMD_BLE_RAND = 0x2018;
|
||||
CMD_BLE_START_ENC = 0x2019;
|
||||
CMD_BLE_LTK_REQ_REPLY = 0x201A;
|
||||
CMD_BLE_LTK_REQ_NEG_REPLY = 0x201B;
|
||||
CMD_BLE_READ_SUPPORTED_STATES = 0x201C;
|
||||
CMD_BLE_RECEIVER_TEST = 0x201D;
|
||||
CMD_BLE_TRANSMITTER_TEST = 0x201E;
|
||||
CMD_BLE_TEST_END = 0x201F;
|
||||
CMD_BLE_RC_PARAM_REQ_REPLY = 0x2020;
|
||||
CMD_BLE_RC_PARAM_REQ_NEG_REPLY = 0x2021;
|
||||
CMD_BLE_SET_DATA_LENGTH = 0x2022;
|
||||
CMD_BLE_READ_DEFAULT_DATA_LENGTH = 0x2023;
|
||||
CMD_BLE_WRITE_DEFAULT_DATA_LENGTH = 0x2024;
|
||||
CMD_BLE_GENERATE_DHKEY = 0x2026; // Not currently used in system/bt
|
||||
CMD_BLE_ADD_DEV_RESOLVING_LIST = 0x2027;
|
||||
CMD_BLE_RM_DEV_RESOLVING_LIST = 0x2028;
|
||||
CMD_BLE_CLEAR_RESOLVING_LIST = 0x2029;
|
||||
CMD_BLE_READ_RESOLVING_LIST_SIZE = 0x202A;
|
||||
CMD_BLE_READ_RESOLVABLE_ADDR_PEER = 0x202B;
|
||||
CMD_BLE_READ_RESOLVABLE_ADDR_LOCAL = 0x202C;
|
||||
CMD_BLE_SET_ADDR_RESOLUTION_ENABLE = 0x202D;
|
||||
CMD_BLE_SET_RAND_PRIV_ADDR_TIMOUT = 0x202E;
|
||||
CMD_BLE_READ_MAXIMUM_DATA_LENGTH = 0x202F;
|
||||
CMD_BLE_READ_PHY = 0x2030;
|
||||
CMD_BLE_SET_DEFAULT_PHY = 0x2031;
|
||||
CMD_BLE_SET_PHY = 0x2032;
|
||||
CMD_BLE_ENH_RECEIVER_TEST = 0x2033;
|
||||
CMD_BLE_ENH_TRANSMITTER_TEST = 0x2034;
|
||||
CMD_BLE_SET_EXT_ADVERTISING_RANDOM_ADDRESS = 0x2035;
|
||||
CMD_BLE_SET_EXT_ADVERTISING_PARAM = 0x2036;
|
||||
CMD_BLE_SET_EXT_ADVERTISING_DATA = 0x2037;
|
||||
CMD_BLE_SET_EXT_ADVERTISING_SCAN_RESP = 0x2038;
|
||||
CMD_BLE_SET_EXT_ADVERTISING_ENABLE = 0x2039;
|
||||
CMD_BLE_READ_MAXIMUM_ADVERTISING_DATA_LENGTH = 0x203A;
|
||||
CMD_BLE_READ_NUMBER_OF_SUPPORTED_ADVERTISING_SETS = 0x203B;
|
||||
CMD_BLE_REMOVE_ADVERTISING_SET = 0x203C;
|
||||
CMD_BLE_CLEAR_ADVERTISING_SETS = 0x203D;
|
||||
CMD_BLE_SET_PERIODIC_ADVERTISING_PARAM = 0x203E;
|
||||
CMD_BLE_SET_PERIODIC_ADVERTISING_DATA = 0x203F;
|
||||
CMD_BLE_SET_PERIODIC_ADVERTISING_ENABLE = 0x2040;
|
||||
CMD_BLE_SET_EXTENDED_SCAN_PARAMETERS = 0x2041;
|
||||
CMD_BLE_SET_EXTENDED_SCAN_ENABLE = 0x2042;
|
||||
CMD_BLE_EXTENDED_CREATE_CONNECTION = 0x2043;
|
||||
CMD_BLE_PERIODIC_ADVERTISING_CREATE_SYNC = 0x2044;
|
||||
CMD_BLE_PERIODIC_ADVERTISING_CREATE_SYNC_CANCEL = 0x2045;
|
||||
CMD_BLE_PERIODIC_ADVERTISING_TERMINATE_SYNC = 0x2046;
|
||||
CMD_BLE_ADD_DEVICE_TO_PERIODIC_ADVERTISING_LIST = 0x2047;
|
||||
CMD_BLE_RM_DEVICE_FROM_PERIODIC_ADVERTISING_LIST = 0x2048;
|
||||
CMD_BLE_CLEAR_PERIODIC_ADVERTISING_LIST = 0x2049;
|
||||
CMD_BLE_READ_PERIODIC_ADVERTISING_LIST_SIZE = 0x204A;
|
||||
CMD_BLE_READ_TRANSMIT_POWER = 0x204B;
|
||||
CMD_BLE_READ_RF_COMPENS_POWER = 0x204C;
|
||||
CMD_BLE_WRITE_RF_COMPENS_POWER = 0x204D;
|
||||
CMD_BLE_SET_PRIVACY_MODE = 0x204E;
|
||||
// Vendor specific commands 0xFC00 and above
|
||||
// Android vendor specific commands defined in
|
||||
// https://source.android.com/devices/bluetooth/hci_requirements#vendor-specific-capabilities
|
||||
CMD_BLE_VENDOR_CAP = 0xFD53;
|
||||
CMD_BLE_MULTI_ADV = 0xFD54;
|
||||
CMD_BLE_BATCH_SCAN = 0xFD56;
|
||||
CMD_BLE_ADV_FILTER = 0xFD57;
|
||||
CMD_BLE_TRACK_ADV = 0xFD58;
|
||||
CMD_BLE_ENERGY_INFO = 0xFD59;
|
||||
CMD_BLE_EXTENDED_SCAN_PARAMS = 0xFD5A;
|
||||
CMD_CONTROLLER_DEBUG_INFO = 0xFD5B;
|
||||
CMD_CONTROLLER_A2DP_OPCODE = 0xFD5D;
|
||||
CMD_BRCM_SET_ACL_PRIORITY = 0xFC57;
|
||||
// Other vendor specific commands below here
|
||||
}
|
||||
|
||||
// HCI event codes from the Bluetooth 5.0 specification Vol 2, Part 7, Section 7
|
||||
// Original definition: system/bt/stack/include/hcidefs.h
|
||||
enum EventEnum {
|
||||
// Event is at most 1 byte (0xFF), thus 0xFFF must not be a valid value
|
||||
EVT_UNKNOWN = 0xFFF;
|
||||
EVT_INQUIRY_COMP = 0x01;
|
||||
EVT_INQUIRY_RESULT = 0x02;
|
||||
EVT_CONNECTION_COMP = 0x03;
|
||||
EVT_CONNECTION_REQUEST = 0x04;
|
||||
EVT_DISCONNECTION_COMP = 0x05;
|
||||
EVT_AUTHENTICATION_COMP = 0x06;
|
||||
EVT_RMT_NAME_REQUEST_COMP = 0x07;
|
||||
EVT_ENCRYPTION_CHANGE = 0x08;
|
||||
EVT_CHANGE_CONN_LINK_KEY = 0x09;
|
||||
EVT_MASTER_LINK_KEY_COMP = 0x0A;
|
||||
EVT_READ_RMT_FEATURES_COMP = 0x0B;
|
||||
EVT_READ_RMT_VERSION_COMP = 0x0C;
|
||||
EVT_QOS_SETUP_COMP = 0x0D;
|
||||
EVT_COMMAND_COMPLETE = 0x0E;
|
||||
EVT_COMMAND_STATUS = 0x0F;
|
||||
EVT_HARDWARE_ERROR = 0x10;
|
||||
EVT_FLUSH_OCCURRED = 0x11;
|
||||
EVT_ROLE_CHANGE = 0x12;
|
||||
EVT_NUM_COMPL_DATA_PKTS = 0x13;
|
||||
EVT_MODE_CHANGE = 0x14;
|
||||
EVT_RETURN_LINK_KEYS = 0x15;
|
||||
EVT_PIN_CODE_REQUEST = 0x16;
|
||||
EVT_LINK_KEY_REQUEST = 0x17;
|
||||
EVT_LINK_KEY_NOTIFICATION = 0x18;
|
||||
EVT_LOOPBACK_COMMAND = 0x19;
|
||||
EVT_DATA_BUF_OVERFLOW = 0x1A;
|
||||
EVT_MAX_SLOTS_CHANGED = 0x1B;
|
||||
EVT_READ_CLOCK_OFF_COMP = 0x1C;
|
||||
EVT_CONN_PKT_TYPE_CHANGE = 0x1D;
|
||||
EVT_QOS_VIOLATION = 0x1E;
|
||||
EVT_PAGE_SCAN_MODE_CHANGE = 0x1F; // Deprecated
|
||||
EVT_PAGE_SCAN_REP_MODE_CHNG = 0x20;
|
||||
EVT_FLOW_SPECIFICATION_COMP = 0x21;
|
||||
EVT_INQUIRY_RSSI_RESULT = 0x22;
|
||||
EVT_READ_RMT_EXT_FEATURES_COMP = 0x23;
|
||||
EVT_ESCO_CONNECTION_COMP = 0x2C;
|
||||
EVT_ESCO_CONNECTION_CHANGED = 0x2D;
|
||||
EVT_SNIFF_SUB_RATE = 0x2E;
|
||||
EVT_EXTENDED_INQUIRY_RESULT = 0x2F;
|
||||
EVT_ENCRYPTION_KEY_REFRESH_COMP = 0x30;
|
||||
EVT_IO_CAPABILITY_REQUEST = 0x31;
|
||||
EVT_IO_CAPABILITY_RESPONSE = 0x32;
|
||||
EVT_USER_CONFIRMATION_REQUEST = 0x33;
|
||||
EVT_USER_PASSKEY_REQUEST = 0x34;
|
||||
EVT_REMOTE_OOB_DATA_REQUEST = 0x35;
|
||||
EVT_SIMPLE_PAIRING_COMPLETE = 0x36;
|
||||
EVT_LINK_SUPER_TOUT_CHANGED = 0x38;
|
||||
EVT_ENHANCED_FLUSH_COMPLETE = 0x39;
|
||||
EVT_USER_PASSKEY_NOTIFY = 0x3B;
|
||||
EVT_KEYPRESS_NOTIFY = 0x3C;
|
||||
EVT_RMT_HOST_SUP_FEAT_NOTIFY = 0x3D;
|
||||
EVT_BLE_META = 0x3E;
|
||||
EVT_PHYSICAL_LINK_COMP = 0x40;
|
||||
EVT_CHANNEL_SELECTED = 0x41;
|
||||
EVT_DISC_PHYSICAL_LINK_COMP = 0x42;
|
||||
EVT_PHY_LINK_LOSS_EARLY_WARNING = 0x43;
|
||||
EVT_PHY_LINK_RECOVERY = 0x44;
|
||||
EVT_LOGICAL_LINK_COMP = 0x45;
|
||||
EVT_DISC_LOGICAL_LINK_COMP = 0x46;
|
||||
EVT_FLOW_SPEC_MODIFY_COMP = 0x47;
|
||||
EVT_NUM_COMPL_DATA_BLOCKS = 0x48;
|
||||
EVT_AMP_TEST_START = 0x49; // Not currently used in system/bt
|
||||
EVT_AMP_TEST_END = 0x4A; // Not currently used in system/bt
|
||||
EVT_AMP_RECEIVER_RPT = 0x4B; // Not currently used in system/bt
|
||||
EVT_SHORT_RANGE_MODE_COMPLETE = 0x4C;
|
||||
EVT_AMP_STATUS_CHANGE = 0x4D;
|
||||
EVT_SET_TRIGGERED_CLOCK_CAPTURE = 0x4E;
|
||||
EVT_SYNC_TRAIN_CMPL = 0x4F; // Not currently used in system/bt
|
||||
EVT_SYNC_TRAIN_RCVD = 0x50; // Not currently used in system/bt
|
||||
EVT_CONNLESS_SLAVE_BROADCAST_RCVD = 0x51; // Not currently used in system/bt
|
||||
EVT_CONNLESS_SLAVE_BROADCAST_TIMEOUT = 0x52; // Not currently used in system/bt
|
||||
EVT_TRUNCATED_PAGE_CMPL = 0x53; // Not currently used in system/bt
|
||||
EVT_SLAVE_PAGE_RES_TIMEOUT = 0x54; // Not currently used in system/bt
|
||||
EVT_CONNLESS_SLAVE_BROADCAST_CHNL_MAP_CHANGE = 0x55; // Not currently used in system/bt
|
||||
EVT_INQUIRY_RES_NOTIFICATION = 0x56; // Not currently used in system/bt
|
||||
EVT_AUTHED_PAYLOAD_TIMEOUT = 0x57; // Not currently used in system/bt
|
||||
EVT_SAM_STATUS_CHANGE = 0x58; // Not currently used in system/bt
|
||||
}
|
||||
|
||||
// Bluetooth low energy related meta event codes
|
||||
// from the Bluetooth 5.0 specification Vol 2, Part E, Section 7.7.65
|
||||
// Original definition: system/bt/stack/include/hcidefs.h
|
||||
enum BleMetaEventEnum {
|
||||
// BLE meta event code is at most 1 byte (0xFF), thus 0xFFF must not be a valid value
|
||||
BLE_EVT_UNKNOWN = 0xFFF;
|
||||
BLE_EVT_CONN_COMPLETE_EVT = 0x01;
|
||||
BLE_EVT_ADV_PKT_RPT_EVT = 0x02;
|
||||
BLE_EVT_LL_CONN_PARAM_UPD_EVT = 0x03;
|
||||
BLE_EVT_READ_REMOTE_FEAT_CMPL_EVT = 0x04;
|
||||
BLE_EVT_LTK_REQ_EVT = 0x05;
|
||||
BLE_EVT_RC_PARAM_REQ_EVT = 0x06;
|
||||
BLE_EVT_DATA_LENGTH_CHANGE_EVT = 0x07;
|
||||
BLE_EVT_READ_LOCAL_P256_PUB_KEY = 0x08; // Not currently used in system/bt
|
||||
BLE_EVT_GEN_DHKEY_CMPL = 0x09; // Not currently used in system/bt
|
||||
BLE_EVT_ENHANCED_CONN_COMPLETE_EVT = 0x0a;
|
||||
BLE_EVT_DIRECT_ADV_EVT = 0x0b;
|
||||
BLE_EVT_PHY_UPDATE_COMPLETE_EVT = 0x0c;
|
||||
BLE_EVT_EXTENDED_ADVERTISING_REPORT_EVT = 0x0D;
|
||||
BLE_EVT_PERIODIC_ADV_SYNC_EST_EVT = 0x0E;
|
||||
BLE_EVT_PERIODIC_ADV_REPORT_EVT = 0x0F;
|
||||
BLE_EVT_PERIODIC_ADV_SYNC_LOST_EVT = 0x10;
|
||||
BLE_EVT_SCAN_TIMEOUT_EVT = 0x11;
|
||||
BLE_EVT_ADVERTISING_SET_TERMINATED_EVT = 0x12;
|
||||
BLE_EVT_SCAN_REQ_RX_EVT = 0x13;
|
||||
BLE_EVT_CHNL_SELECTION_ALGORITHM = 0x14; // Not currently used in system/bt
|
||||
}
|
||||
|
||||
// HCI status code from the Bluetooth 5.0 specification Vol 2, Part D.
|
||||
// Original definition: system/bt/stack/include/hcidefs.h
|
||||
enum StatusEnum {
|
||||
// Status is at most 1 byte (0xFF), thus 0xFFF must not be a valid value
|
||||
STATUS_UNKNOWN = 0xFFF;
|
||||
STATUS_SUCCESS = 0x00;
|
||||
STATUS_ILLEGAL_COMMAND = 0x01;
|
||||
STATUS_NO_CONNECTION = 0x02;
|
||||
STATUS_HW_FAILURE = 0x03;
|
||||
STATUS_PAGE_TIMEOUT = 0x04;
|
||||
STATUS_AUTH_FAILURE = 0x05;
|
||||
STATUS_KEY_MISSING = 0x06;
|
||||
STATUS_MEMORY_FULL = 0x07;
|
||||
STATUS_CONNECTION_TOUT = 0x08;
|
||||
STATUS_MAX_NUM_OF_CONNECTIONS = 0x09;
|
||||
STATUS_MAX_NUM_OF_SCOS = 0x0A;
|
||||
STATUS_CONNECTION_EXISTS = 0x0B;
|
||||
STATUS_COMMAND_DISALLOWED = 0x0C;
|
||||
STATUS_HOST_REJECT_RESOURCES = 0x0D;
|
||||
STATUS_HOST_REJECT_SECURITY = 0x0E;
|
||||
STATUS_HOST_REJECT_DEVICE = 0x0F;
|
||||
STATUS_HOST_TIMEOUT = 0x10;
|
||||
STATUS_UNSUPPORTED_VALUE = 0x11;
|
||||
STATUS_ILLEGAL_PARAMETER_FMT = 0x12;
|
||||
STATUS_PEER_USER = 0x13;
|
||||
STATUS_PEER_LOW_RESOURCES = 0x14;
|
||||
STATUS_PEER_POWER_OFF = 0x15;
|
||||
STATUS_CONN_CAUSE_LOCAL_HOST = 0x16;
|
||||
STATUS_REPEATED_ATTEMPTS = 0x17;
|
||||
STATUS_PAIRING_NOT_ALLOWED = 0x18;
|
||||
STATUS_UNKNOWN_LMP_PDU = 0x19;
|
||||
STATUS_UNSUPPORTED_REM_FEATURE = 0x1A;
|
||||
STATUS_SCO_OFFSET_REJECTED = 0x1B;
|
||||
STATUS_SCO_INTERVAL_REJECTED = 0x1C;
|
||||
STATUS_SCO_AIR_MODE = 0x1D;
|
||||
STATUS_INVALID_LMP_PARAM = 0x1E;
|
||||
STATUS_UNSPECIFIED = 0x1F;
|
||||
STATUS_UNSUPPORTED_LMP_FEATURE = 0x20;
|
||||
STATUS_ROLE_CHANGE_NOT_ALLOWED = 0x21;
|
||||
STATUS_LMP_RESPONSE_TIMEOUT = 0x22;
|
||||
STATUS_LMP_STATUS_TRANS_COLLISION = 0x23;
|
||||
STATUS_LMP_PDU_NOT_ALLOWED = 0x24;
|
||||
STATUS_ENCRY_MODE_NOT_ACCEPTABLE = 0x25;
|
||||
STATUS_UNIT_KEY_USED = 0x26;
|
||||
STATUS_QOS_NOT_SUPPORTED = 0x27;
|
||||
STATUS_INSTANT_PASSED = 0x28;
|
||||
STATUS_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED = 0x29;
|
||||
STATUS_DIFF_TRANSACTION_COLLISION = 0x2A;
|
||||
STATUS_UNDEFINED_0x2B = 0x2B; // Not used
|
||||
STATUS_QOS_UNACCEPTABLE_PARAM = 0x2C;
|
||||
STATUS_QOS_REJECTED = 0x2D;
|
||||
STATUS_CHAN_CLASSIF_NOT_SUPPORTED = 0x2E;
|
||||
STATUS_INSUFFCIENT_SECURITY = 0x2F;
|
||||
STATUS_PARAM_OUT_OF_RANGE = 0x30;
|
||||
STATUS_UNDEFINED_0x31 = 0x31; // Not used
|
||||
STATUS_ROLE_SWITCH_PENDING = 0x32;
|
||||
STATUS_UNDEFINED_0x33 = 0x33;
|
||||
STATUS_RESERVED_SLOT_VIOLATION = 0x34;
|
||||
STATUS_ROLE_SWITCH_FAILED = 0x35;
|
||||
STATUS_INQ_RSP_DATA_TOO_LARGE = 0x36;
|
||||
STATUS_SIMPLE_PAIRING_NOT_SUPPORTED = 0x37;
|
||||
STATUS_HOST_BUSY_PAIRING = 0x38;
|
||||
STATUS_REJ_NO_SUITABLE_CHANNEL = 0x39;
|
||||
STATUS_CONTROLLER_BUSY = 0x3A;
|
||||
STATUS_UNACCEPT_CONN_INTERVAL = 0x3B;
|
||||
STATUS_ADVERTISING_TIMEOUT = 0x3C;
|
||||
STATUS_CONN_TOUT_DUE_TO_MIC_FAILURE = 0x3D;
|
||||
STATUS_CONN_FAILED_ESTABLISHMENT = 0x3E;
|
||||
STATUS_MAC_CONNECTION_FAILED = 0x3F;
|
||||
STATUS_LT_ADDR_ALREADY_IN_USE = 0x40;
|
||||
STATUS_LT_ADDR_NOT_ALLOCATED = 0x41;
|
||||
STATUS_CLB_NOT_ENABLED = 0x42;
|
||||
STATUS_CLB_DATA_TOO_BIG = 0x43;
|
||||
STATUS_OPERATION_CANCELED_BY_HOST = 0x44; // Not currently used in system/bt
|
||||
}
|
||||
|
||||
enum BqrIdEnum {
|
||||
BQR_ID_UNKNOWN = 0x00;
|
||||
BQR_ID_MONITOR_MODE = 0x01;
|
||||
BQR_ID_APPROACH_LSTO = 0x02;
|
||||
BQR_ID_A2DP_AUDIO_CHOPPY = 0x03;
|
||||
BQR_ID_SCO_VOICE_CHOPPY = 0x04;
|
||||
}
|
||||
|
||||
enum BqrPacketTypeEnum {
|
||||
BQR_PACKET_TYPE_UNKNOWN = 0x00;
|
||||
BQR_PACKET_TYPE_ID = 0x01;
|
||||
BQR_PACKET_TYPE_NULL = 0x02;
|
||||
BQR_PACKET_TYPE_POLL = 0x03;
|
||||
BQR_PACKET_TYPE_FHS = 0x04;
|
||||
BQR_PACKET_TYPE_HV1 = 0x05;
|
||||
BQR_PACKET_TYPE_HV2 = 0x06;
|
||||
BQR_PACKET_TYPE_HV3 = 0x07;
|
||||
BQR_PACKET_TYPE_DV = 0x08;
|
||||
BQR_PACKET_TYPE_EV3 = 0x09;
|
||||
BQR_PACKET_TYPE_EV4 = 0x0A;
|
||||
BQR_PACKET_TYPE_EV5 = 0x0B;
|
||||
BQR_PACKET_TYPE_2EV3 = 0x0C;
|
||||
BQR_PACKET_TYPE_2EV5 = 0x0D;
|
||||
BQR_PACKET_TYPE_3EV3 = 0x0E;
|
||||
BQR_PACKET_TYPE_3EV5 = 0x0F;
|
||||
BQR_PACKET_TYPE_DM1 = 0x10;
|
||||
BQR_PACKET_TYPE_DH1 = 0x11;
|
||||
BQR_PACKET_TYPE_DM3 = 0x12;
|
||||
BQR_PACKET_TYPE_DH3 = 0x13;
|
||||
BQR_PACKET_TYPE_DM5 = 0x14;
|
||||
BQR_PACKET_TYPE_DH5 = 0x15;
|
||||
BQR_PACKET_TYPE_AUX1 = 0x16;
|
||||
BQR_PACKET_TYPE_2DH1 = 0x17;
|
||||
BQR_PACKET_TYPE_2DH3 = 0x18;
|
||||
BQR_PACKET_TYPE_2DH5 = 0x19;
|
||||
BQR_PACKET_TYPE_3DH1 = 0x1A;
|
||||
BQR_PACKET_TYPE_3DH3 = 0x1B;
|
||||
BQR_PACKET_TYPE_3DH5 = 0x1C;
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.bluetooth.hfp;
|
||||
|
||||
option java_outer_classname = "BluetoothHfpProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
enum ScoCodec {
|
||||
SCO_CODEC_UNKNOWN = 0;
|
||||
SCO_CODEC_CVSD = 1;
|
||||
// Default codec behind Wide Band Speech
|
||||
SCO_CODEC_MSBC = 2;
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.bluetooth.smp;
|
||||
|
||||
option java_outer_classname = "BluetoothSmpProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// SMP Pairing command codes
|
||||
enum CommandEnum {
|
||||
CMD_UNKNOWN = 0x00;
|
||||
CMD_PAIRING_REQUEST = 0x01;
|
||||
CMD_PAIRING_RESPONSE = 0x02;
|
||||
CMD_PAIRING_CONFIRM = 0x03;
|
||||
CMD_PAIRING_RANDOM = 0x04;
|
||||
CMD_PAIRING_FAILED = 0x05;
|
||||
CMD_ENCRYPTION_INFON = 0x06;
|
||||
CMD_MASTER_IDENTIFICATION = 0x07;
|
||||
CMD_IDENTITY_INFO = 0x08;
|
||||
CMD_IDENTITY_ADDR_INFO = 0x09;
|
||||
CMD_SIGNING_INFO = 0x0A;
|
||||
CMD_SECURITY_REQUEST = 0x0B;
|
||||
CMD_PAIRING_PUBLIC_KEY = 0x0C;
|
||||
CMD_PAIRING_DHKEY_CHECK = 0x0D;
|
||||
CMD_PAIRING_KEYPRESS_INFO = 0x0E;
|
||||
}
|
||||
|
||||
enum PairingFailReasonEnum {
|
||||
PAIRING_FAIL_REASON_RESERVED = 0x00;
|
||||
PAIRING_FAIL_REASON_PASSKEY_ENTRY = 0x01;
|
||||
PAIRING_FAIL_REASON_OOB = 0x02;
|
||||
PAIRING_FAIL_REASON_AUTH_REQ = 0x03;
|
||||
PAIRING_FAIL_REASON_CONFIRM_VALUE = 0x04;
|
||||
PAIRING_FAIL_REASON_PAIR_NOT_SUPPORT = 0x05;
|
||||
PAIRING_FAIL_REASON_ENC_KEY_SIZE = 0x06;
|
||||
PAIRING_FAIL_REASON_INVALID_CMD = 0x07;
|
||||
PAIRING_FAIL_REASON_UNSPECIFIED = 0x08;
|
||||
PAIRING_FAIL_REASON_REPEATED_ATTEMPTS = 0x09;
|
||||
PAIRING_FAIL_REASON_INVALID_PARAMETERS = 0x0A;
|
||||
PAIRING_FAIL_REASON_DHKEY_CHK = 0x0B;
|
||||
PAIRING_FAIL_REASON_NUMERIC_COMPARISON = 0x0C;
|
||||
PAIRING_FAIL_REASON_CLASSIC_PAIRING_IN_PROGR = 0x0D;
|
||||
PAIRING_FAIL_REASON_XTRANS_DERIVE_NOT_ALLOW = 0x0E;
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.debug;
|
||||
|
||||
option java_outer_classname = "AdbProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
/**
|
||||
* adb connection state used to track adb connection changes in AdbDebuggingManager.java.
|
||||
*/
|
||||
enum AdbConnectionStateEnum {
|
||||
UNKNOWN = 0;
|
||||
|
||||
/**
|
||||
* The adb connection is waiting for approval from the user.
|
||||
*/
|
||||
AWAITING_USER_APPROVAL = 1;
|
||||
|
||||
/**
|
||||
* The user allowed the adb connection from the system.
|
||||
*/
|
||||
USER_ALLOWED = 2;
|
||||
|
||||
/**
|
||||
* The user denied the adb connection from the system.
|
||||
*/
|
||||
USER_DENIED = 3;
|
||||
|
||||
/**
|
||||
* The adb connection was automatically allowed without user interaction due to the system
|
||||
* being previously allowed by the user with the 'always allow' option selected, and the adb
|
||||
* grant has not yet expired.
|
||||
*/
|
||||
AUTOMATICALLY_ALLOWED = 4;
|
||||
|
||||
/**
|
||||
* An empty or invalid base64 encoded key was provided to the framework; the connection was
|
||||
* automatically denied.
|
||||
*/
|
||||
DENIED_INVALID_KEY = 5;
|
||||
|
||||
/**
|
||||
* vold decrypt has not yet occurred; the connection was automatically denied.
|
||||
*/
|
||||
DENIED_VOLD_DECRYPT = 6;
|
||||
|
||||
/**
|
||||
* The adb session has been disconnected.
|
||||
*/
|
||||
DISCONNECTED = 7;
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.hardware.biometrics;
|
||||
|
||||
option java_outer_classname = "BiometricsProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// Logging constants for <Biometric>Service and BiometricService
|
||||
|
||||
enum ModalityEnum {
|
||||
MODALITY_UNKNOWN = 0;
|
||||
MODALITY_FINGERPRINT = 1; // 1 << 0
|
||||
MODALITY_IRIS = 2; // 1 << 1
|
||||
MODALITY_FACE = 4; // 1 << 2
|
||||
}
|
||||
|
||||
enum ClientEnum {
|
||||
CLIENT_UNKNOWN = 0;
|
||||
CLIENT_KEYGUARD = 1;
|
||||
CLIENT_BIOMETRIC_PROMPT = 2;
|
||||
CLIENT_FINGERPRINT_MANAGER = 3; // Deprecated API before BiometricPrompt was introduced
|
||||
}
|
||||
|
||||
enum ActionEnum {
|
||||
ACTION_UNKNOWN = 0;
|
||||
ACTION_ENROLL = 1;
|
||||
ACTION_AUTHENTICATE = 2;
|
||||
ACTION_ENUMERATE = 3;
|
||||
ACTION_REMOVE = 4;
|
||||
}
|
||||
|
||||
enum IssueEnum {
|
||||
ISSUE_UNKNOWN = 0;
|
||||
// When a biometric HAL has crashed.
|
||||
ISSUE_HAL_DEATH = 1;
|
||||
// When Android Framework has a template that doesn't exist in the HAL. The framework
|
||||
// is expected to remove its template to stay in sync with the HAL.
|
||||
ISSUE_UNKNOWN_TEMPLATE_ENROLLED_FRAMEWORK = 2;
|
||||
// When the HAL has a template that doesn't exist in Android Framework. The framework
|
||||
// is expected to notify the HAL to remove this template to stay in sync with the framework.
|
||||
ISSUE_UNKNOWN_TEMPLATE_ENROLLED_HAL = 3;
|
||||
// When the HAL has not sent ERROR_CANCELED within the specified timeout.
|
||||
ISSUE_CANCEL_TIMED_OUT = 4;
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.hardware.sensor.assist;
|
||||
|
||||
option java_outer_classname = "AssistGestureProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
enum AssistGestureStageEnum {
|
||||
ASSIST_GESTURE_STAGE_UNKNOWN = 0;
|
||||
ASSIST_GESTURE_STAGE_PROGRESS = 1;
|
||||
ASSIST_GESTURE_STAGE_PRIMED = 2;
|
||||
ASSIST_GESTURE_STAGE_DETECTED = 3;
|
||||
}
|
||||
|
||||
enum AssistGestureFeedbackEnum {
|
||||
ASSIST_GESTURE_FEEDBACK_UNKNOWN = 0;
|
||||
ASSIST_GESTURE_FEEDBACK_NOT_USED = 1;
|
||||
ASSIST_GESTURE_FEEDBACK_USED = 2;
|
||||
}
|
||||
@@ -1,133 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2017 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.net;
|
||||
|
||||
option java_multiple_files = true;
|
||||
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
|
||||
/**
|
||||
* An android.net.NetworkCapabilities object.
|
||||
*/
|
||||
message NetworkCapabilitiesProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
enum Transport {
|
||||
// Indicates this network uses a Cellular transport.
|
||||
TRANSPORT_CELLULAR = 0;
|
||||
// Indicates this network uses a Wi-Fi transport.
|
||||
TRANSPORT_WIFI = 1;
|
||||
// Indicates this network uses a Bluetooth transport.
|
||||
TRANSPORT_BLUETOOTH = 2;
|
||||
// Indicates this network uses an Ethernet transport.
|
||||
TRANSPORT_ETHERNET = 3;
|
||||
// Indicates this network uses a VPN transport.
|
||||
TRANSPORT_VPN = 4;
|
||||
// Indicates this network uses a Wi-Fi Aware transport.
|
||||
TRANSPORT_WIFI_AWARE = 5;
|
||||
// Indicates this network uses a LoWPAN transport.
|
||||
TRANSPORT_LOWPAN = 6;
|
||||
}
|
||||
repeated Transport transports = 1;
|
||||
|
||||
enum NetCapability {
|
||||
// Indicates this is a network that has the ability to reach the
|
||||
// carrier's MMSC for sending and receiving MMS messages.
|
||||
NET_CAPABILITY_MMS = 0;
|
||||
// Indicates this is a network that has the ability to reach the
|
||||
// carrier's SUPL server, used to retrieve GPS information.
|
||||
NET_CAPABILITY_SUPL = 1;
|
||||
// Indicates this is a network that has the ability to reach the
|
||||
// carrier's DUN or tethering gateway.
|
||||
NET_CAPABILITY_DUN = 2;
|
||||
// Indicates this is a network that has the ability to reach the
|
||||
// carrier's FOTA portal, used for over the air updates.
|
||||
NET_CAPABILITY_FOTA = 3;
|
||||
// Indicates this is a network that has the ability to reach the
|
||||
// carrier's IMS servers, used for network registration and signaling.
|
||||
NET_CAPABILITY_IMS = 4;
|
||||
// Indicates this is a network that has the ability to reach the
|
||||
// carrier's CBS servers, used for carrier specific services.
|
||||
NET_CAPABILITY_CBS = 5;
|
||||
// Indicates this is a network that has the ability to reach a Wi-Fi
|
||||
// direct peer.
|
||||
NET_CAPABILITY_WIFI_P2P = 6;
|
||||
// Indicates this is a network that has the ability to reach a carrier's
|
||||
// Initial Attach servers.
|
||||
NET_CAPABILITY_IA = 7;
|
||||
// Indicates this is a network that has the ability to reach a carrier's
|
||||
// RCS servers, used for Rich Communication Services.
|
||||
NET_CAPABILITY_RCS = 8;
|
||||
// Indicates this is a network that has the ability to reach a carrier's
|
||||
// XCAP servers, used for configuration and control.
|
||||
NET_CAPABILITY_XCAP = 9;
|
||||
// Indicates this is a network that has the ability to reach a carrier's
|
||||
// Emergency IMS servers or other services, used for network signaling
|
||||
// during emergency calls.
|
||||
NET_CAPABILITY_EIMS = 10;
|
||||
// Indicates that this network is unmetered.
|
||||
NET_CAPABILITY_NOT_METERED = 11;
|
||||
// Indicates that this network should be able to reach the internet.
|
||||
NET_CAPABILITY_INTERNET = 12;
|
||||
// Indicates that this network is available for general use. If this is
|
||||
// not set applications should not attempt to communicate on this
|
||||
// network. Note that this is simply informative and not enforcement -
|
||||
// enforcement is handled via other means. Set by default.
|
||||
NET_CAPABILITY_NOT_RESTRICTED = 13;
|
||||
// Indicates that the user has indicated implicit trust of this network.
|
||||
// This generally means it's a sim-selected carrier, a plugged in
|
||||
// ethernet, a paired BT device or a wifi the user asked to connect to.
|
||||
// Untrusted networks are probably limited to unknown wifi AP. Set by
|
||||
// default.
|
||||
NET_CAPABILITY_TRUSTED = 14;
|
||||
// Indicates that this network is not a VPN. This capability is set by
|
||||
// default and should be explicitly cleared for VPN networks.
|
||||
NET_CAPABILITY_NOT_VPN = 15;
|
||||
// Indicates that connectivity on this network was successfully
|
||||
// validated. For example, for a network with NET_CAPABILITY_INTERNET,
|
||||
// it means that Internet connectivity was successfully detected.
|
||||
NET_CAPABILITY_VALIDATED = 16;
|
||||
// Indicates that this network was found to have a captive portal in
|
||||
// place last time it was probed.
|
||||
NET_CAPABILITY_CAPTIVE_PORTAL = 17;
|
||||
// Indicates that this network is not roaming.
|
||||
NET_CAPABILITY_NOT_ROAMING = 18;
|
||||
// Indicates that this network is available for use by apps, and not a
|
||||
// network that is being kept up in the background to facilitate fast
|
||||
// network switching.
|
||||
NET_CAPABILITY_FOREGROUND = 19;
|
||||
}
|
||||
repeated NetCapability capabilities = 2;
|
||||
|
||||
// Passive link bandwidth. This is a rough guide of the expected peak
|
||||
// bandwidth for the first hop on the given transport. It is not measured,
|
||||
// but may take into account link parameters (Radio technology, allocated
|
||||
// channels, etc).
|
||||
optional int32 link_up_bandwidth_kbps = 3;
|
||||
optional int32 link_down_bandwidth_kbps = 4;
|
||||
|
||||
optional string network_specifier = 5 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
|
||||
// True if this object specifies a signal strength.
|
||||
optional bool can_report_signal_strength = 6;
|
||||
// This is a signed integer, and higher values indicate better signal. The
|
||||
// exact units are bearer-dependent. For example, Wi-Fi uses RSSI.
|
||||
// Only valid if can_report_signal_strength is true.
|
||||
optional sint32 signal_strength = 7;
|
||||
}
|
||||
@@ -20,8 +20,8 @@ package android.net;
|
||||
|
||||
option java_multiple_files = true;
|
||||
|
||||
import "frameworks/base/core/proto/android/net/networkcapabilities.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
import "frameworks/proto_logging/stats/enums/net/networkcapabilities.proto";
|
||||
|
||||
/**
|
||||
* An android.net.NetworkRequest object.
|
||||
|
||||
@@ -19,10 +19,10 @@ option java_multiple_files = true;
|
||||
|
||||
package android.os;
|
||||
|
||||
import "frameworks/base/core/proto/android/app/job/enums.proto";
|
||||
import "frameworks/base/core/proto/android/os/powermanager.proto";
|
||||
import "frameworks/base/core/proto/android/telephony/enums.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
import "frameworks/proto_logging/stats/enums/app/job/enums.proto";
|
||||
import "frameworks/proto_logging/stats/enums/telephony/enums.proto";
|
||||
|
||||
message BatteryStatsProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
@@ -1,169 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.os;
|
||||
|
||||
option java_outer_classname = "OsProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// These constants are defined in hardware/interfaces/health/1.0/types.hal
|
||||
// They are primarily used by android/os/BatteryManager.java.
|
||||
enum BatteryHealthEnum {
|
||||
BATTERY_HEALTH_INVALID = 0;
|
||||
BATTERY_HEALTH_UNKNOWN = 1;
|
||||
BATTERY_HEALTH_GOOD = 2;
|
||||
BATTERY_HEALTH_OVERHEAT = 3;
|
||||
BATTERY_HEALTH_DEAD = 4;
|
||||
BATTERY_HEALTH_OVER_VOLTAGE = 5;
|
||||
BATTERY_HEALTH_UNSPECIFIED_FAILURE = 6;
|
||||
BATTERY_HEALTH_COLD = 7;
|
||||
}
|
||||
|
||||
// Plug states, primarily used by android/os/BatteryManager.java.
|
||||
enum BatteryPluggedStateEnum {
|
||||
// Note that NONE is not in BatteryManager.java's constants.
|
||||
BATTERY_PLUGGED_NONE = 0;
|
||||
// Power source is an AC charger.
|
||||
BATTERY_PLUGGED_AC = 1;
|
||||
// Power source is a USB port.
|
||||
BATTERY_PLUGGED_USB = 2;
|
||||
// Power source is wireless.
|
||||
BATTERY_PLUGGED_WIRELESS = 4;
|
||||
}
|
||||
|
||||
// These constants are defined in hardware/interfaces/health/1.0/types.hal
|
||||
// They are primarily used by android/os/BatteryManager.java.
|
||||
enum BatteryStatusEnum {
|
||||
BATTERY_STATUS_INVALID = 0;
|
||||
BATTERY_STATUS_UNKNOWN = 1;
|
||||
BATTERY_STATUS_CHARGING = 2;
|
||||
BATTERY_STATUS_DISCHARGING = 3;
|
||||
BATTERY_STATUS_NOT_CHARGING = 4;
|
||||
BATTERY_STATUS_FULL = 5;
|
||||
}
|
||||
|
||||
// These constants are defined in hardware/interfaces/thermal/1.0/types.hal
|
||||
// and in hardware/interfaces/thermal/2.0/types.hal
|
||||
// They are primarily used by android/os/HardwarePropertiesManager.java.
|
||||
// Any change to the types in the thermal hal should be made here as well.
|
||||
enum TemperatureTypeEnum {
|
||||
TEMPERATURE_TYPE_UNKNOWN = -1;
|
||||
TEMPERATURE_TYPE_CPU = 0;
|
||||
TEMPERATURE_TYPE_GPU = 1;
|
||||
TEMPERATURE_TYPE_BATTERY = 2;
|
||||
TEMPERATURE_TYPE_SKIN = 3;
|
||||
TEMPERATURE_TYPE_USB_PORT = 4;
|
||||
TEMPERATURE_TYPE_POWER_AMPLIFIER = 5;
|
||||
|
||||
// Battery Charge Limit - virtual thermal sensors.
|
||||
TEMPERATURE_TYPE_BCL_VOLTAGE = 6;
|
||||
TEMPERATURE_TYPE_BCL_CURRENT = 7;
|
||||
TEMPERATURE_TYPE_BCL_PERCENTAGE = 8;
|
||||
|
||||
// Neural Processing Unit.
|
||||
TEMPERATURE_TYPE_NPU = 9;
|
||||
}
|
||||
|
||||
// Device throttling severity
|
||||
// These constants are defined in hardware/interfaces/thermal/2.0/types.hal.
|
||||
// Any change to the types in the thermal hal should be made here as well.
|
||||
enum ThrottlingSeverityEnum {
|
||||
// Not under throttling.
|
||||
NONE = 0;
|
||||
// Light throttling where UX is not impacted.
|
||||
LIGHT = 1;
|
||||
// Moderate throttling where UX is not largely impacted.
|
||||
MODERATE = 2;
|
||||
// Severe throttling where UX is largely impacted.
|
||||
// Similar to 1.0 throttlingThreshold.
|
||||
SEVERE = 3;
|
||||
// Platform has done everything to reduce power.
|
||||
CRITICAL = 4;
|
||||
// Key components in platform are shutting down due to thermal condition.
|
||||
// Device functionalities will be limited.
|
||||
EMERGENCY = 5;
|
||||
// Need shutdown immediately.
|
||||
SHUTDOWN = 6;
|
||||
};
|
||||
|
||||
// Device cooling device types.
|
||||
// These constants are defined in hardware/interfaces/thermal/2.0/types.hal.
|
||||
// Any change to the types in the thermal hal should be made here as well.
|
||||
enum CoolingTypeEnum {
|
||||
FAN = 0;
|
||||
BATTERY = 1;
|
||||
CPU = 2;
|
||||
GPU = 3;
|
||||
MODEM = 4;
|
||||
NPU = 5;
|
||||
COMPONENT = 6;
|
||||
};
|
||||
|
||||
// Wakelock types, primarily used by android/os/PowerManager.java.
|
||||
enum WakeLockLevelEnum {
|
||||
// NOTE: Wake lock levels were previously defined as a bit field, except
|
||||
// that only a few combinations were actually supported so the bit field
|
||||
// was removed. This explains why the numbering scheme is so odd. If
|
||||
// adding a new wake lock level, any unused value can be used.
|
||||
|
||||
// Ensures that the CPU is running; the screen and keyboard backlight
|
||||
// will be allowed to go off.
|
||||
PARTIAL_WAKE_LOCK = 1;
|
||||
|
||||
// Ensures that the screen is on (but may be dimmed); the keyboard
|
||||
// backlight will be allowed to go off. If the user presses the power
|
||||
// button, then the SCREEN_DIM_WAKE_LOCK will be implicitly released by
|
||||
// the system, causing both the screen and the CPU to be turned off.
|
||||
SCREEN_DIM_WAKE_LOCK = 6 [deprecated = true];
|
||||
|
||||
// Ensures that the screen is on at full brightness; the keyboard
|
||||
// backlight will be allowed to go off. If the user presses the power
|
||||
// button, then the SCREEN_BRIGHT_WAKE_LOCK will be implicitly released
|
||||
// by the system, causing both the screen and the CPU to be turned off.
|
||||
SCREEN_BRIGHT_WAKE_LOCK = 10 [deprecated = true];
|
||||
|
||||
// Ensures that the screen and keyboard backlight are on at full
|
||||
// brightness. If the user presses the power button, then the
|
||||
// FULL_WAKE_LOCK will be implicitly released by the system, causing
|
||||
// both the screen and the CPU to be turned off.
|
||||
FULL_WAKE_LOCK = 26 [deprecated = true];
|
||||
|
||||
// Turns the screen off when the proximity sensor activates. If the
|
||||
// proximity sensor detects that an object is nearby, the screen turns
|
||||
// off immediately. Shortly after the object moves away, the screen
|
||||
// turns on again.
|
||||
// A proximity wake lock does not prevent the device from falling asleep
|
||||
// unlike FULL_WAKE_LOCK, SCREEN_BRIGHT_WAKE_LOCK and
|
||||
// SCREEN_DIM_WAKE_LOCK. If there is no user activity and no other wake
|
||||
// locks are held, then the device will fall asleep (and lock) as usual.
|
||||
// However, the device will not fall asleep while the screen has been
|
||||
// turned off by the proximity sensor because it effectively counts as
|
||||
// ongoing user activity.
|
||||
PROXIMITY_SCREEN_OFF_WAKE_LOCK = 32;
|
||||
|
||||
// Put the screen in a low power state and allow the CPU to suspend if
|
||||
// no other wake locks are held. This is used by the dream manager to
|
||||
// implement doze mode. It currently has no effect unless the power
|
||||
// manager is in the dozing state.
|
||||
DOZE_WAKE_LOCK = 64;
|
||||
|
||||
// Keep the device awake enough to allow drawing to occur. This is used
|
||||
// by the window manager to allow applications to draw while the system
|
||||
// is dozing. It currently has no effect unless the power manager is in
|
||||
// the dozing state.
|
||||
DRAW_WAKE_LOCK = 128;
|
||||
}
|
||||
@@ -56,13 +56,13 @@ import "frameworks/base/core/proto/android/service/print.proto";
|
||||
import "frameworks/base/core/proto/android/service/procstats.proto";
|
||||
import "frameworks/base/core/proto/android/service/restricted_image.proto";
|
||||
import "frameworks/base/core/proto/android/service/sensor_service.proto";
|
||||
import "frameworks/base/core/proto/android/service/usb.proto";
|
||||
import "frameworks/base/core/proto/android/util/event_log_tags.proto";
|
||||
import "frameworks/base/core/proto/android/util/log.proto";
|
||||
import "frameworks/base/core/proto/android/util/textdump.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
import "frameworks/base/core/proto/android/section.proto";
|
||||
import "frameworks/base/proto/src/ipconnectivity.proto";
|
||||
import "frameworks/proto_logging/stats/enums/service/usb.proto";
|
||||
|
||||
package android.os;
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ package com.android.server.am;
|
||||
|
||||
import "frameworks/base/core/proto/android/app/activitymanager.proto";
|
||||
import "frameworks/base/core/proto/android/app/appexitinfo.proto";
|
||||
import "frameworks/base/core/proto/android/app/enums.proto";
|
||||
import "frameworks/base/core/proto/android/app/notification.proto";
|
||||
import "frameworks/base/core/proto/android/app/profilerinfo.proto";
|
||||
import "frameworks/base/core/proto/android/content/component_name.proto";
|
||||
@@ -35,6 +34,7 @@ import "frameworks/base/core/proto/android/server/intentresolver.proto";
|
||||
import "frameworks/base/core/proto/android/server/windowmanagerservice.proto";
|
||||
import "frameworks/base/core/proto/android/util/common.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
import "frameworks/proto_logging/stats/enums/app/enums.proto";
|
||||
|
||||
option java_multiple_files = true;
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
syntax = "proto2";
|
||||
package com.android.server;
|
||||
|
||||
import "frameworks/base/core/proto/android/bluetooth/enums.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
import "frameworks/proto_logging/stats/enums/bluetooth/enums.proto";
|
||||
|
||||
option java_multiple_files = true;
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
// Copyright (C) 2019 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
java_library_static {
|
||||
name: "datastallprotosnano",
|
||||
proto: {
|
||||
type: "nano",
|
||||
},
|
||||
srcs: [
|
||||
"data_stall_event.proto",
|
||||
],
|
||||
sdk_version: "system_current",
|
||||
// this is part of updatable modules(NetworkStack) which targets 29(Q)
|
||||
min_sdk_version: "29",
|
||||
}
|
||||
@@ -1,91 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package com.android.server.connectivity;
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "DataStallEventProto";
|
||||
|
||||
enum ProbeResult {
|
||||
UNKNOWN = 0;
|
||||
VALID = 1;
|
||||
INVALID = 2;
|
||||
PORTAL = 3;
|
||||
PARTIAL = 4;
|
||||
}
|
||||
|
||||
enum ApBand {
|
||||
AP_BAND_UNKNOWN = 0;
|
||||
AP_BAND_2GHZ = 1;
|
||||
AP_BAND_5GHZ = 2;
|
||||
AP_BAND_6GHZ = 3;
|
||||
}
|
||||
|
||||
// Refer to definition in TelephonyManager.java.
|
||||
enum RadioTech {
|
||||
RADIO_TECHNOLOGY_UNKNOWN = 0;
|
||||
RADIO_TECHNOLOGY_GPRS = 1;
|
||||
RADIO_TECHNOLOGY_EDGE = 2;
|
||||
RADIO_TECHNOLOGY_UMTS = 3;
|
||||
RADIO_TECHNOLOGY_IS95A = 4;
|
||||
RADIO_TECHNOLOGY_IS95B = 5;
|
||||
RADIO_TECHNOLOGY_1XRTT = 6;
|
||||
RADIO_TECHNOLOGY_EVDO_0 = 7;
|
||||
RADIO_TECHNOLOGY_EVDO_A = 8;
|
||||
RADIO_TECHNOLOGY_HSDPA = 9;
|
||||
RADIO_TECHNOLOGY_HSUPA = 10;
|
||||
RADIO_TECHNOLOGY_HSPA = 11;
|
||||
RADIO_TECHNOLOGY_EVDO_B = 12;
|
||||
RADIO_TECHNOLOGY_LTE = 13;
|
||||
RADIO_TECHNOLOGY_EHRPD = 14;
|
||||
RADIO_TECHNOLOGY_HSPAP = 15;
|
||||
RADIO_TECHNOLOGY_GSM = 16;
|
||||
RADIO_TECHNOLOGY_TD_SCDMA = 17;
|
||||
RADIO_TECHNOLOGY_IWLAN = 18;
|
||||
RADIO_TECHNOLOGY_LTE_CA = 19;
|
||||
RADIO_TECHNOLOGY_NR = 20;
|
||||
}
|
||||
|
||||
// Cellular specific information.
|
||||
message CellularData {
|
||||
// Indicate the radio technology at the time of data stall suspected.
|
||||
optional RadioTech rat_type = 1;
|
||||
// True if device is in roaming network at the time of data stall suspected.
|
||||
optional bool is_roaming = 2;
|
||||
// Registered network MccMnc when data stall happen
|
||||
optional string network_mccmnc = 3;
|
||||
// Indicate the SIM card carrier.
|
||||
optional string sim_mccmnc = 4;
|
||||
// Signal strength level at the time of data stall suspected.
|
||||
optional int32 signal_strength = 5;
|
||||
}
|
||||
|
||||
// Wifi specific information.
|
||||
message WifiData {
|
||||
// Signal strength at the time of data stall suspected.
|
||||
// RSSI range is between -55 to -110.
|
||||
optional int32 signal_strength = 1;
|
||||
// AP band.
|
||||
optional ApBand wifi_band = 2;
|
||||
}
|
||||
|
||||
message DnsEvent {
|
||||
// The dns return code.
|
||||
repeated int32 dns_return_code = 1;
|
||||
// Indicate the timestamp of the dns event.
|
||||
repeated int64 dns_time = 2;
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.server;
|
||||
|
||||
option java_outer_classname = "ServerProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
enum DeviceIdleModeEnum {
|
||||
// Device idle mode - not active.
|
||||
DEVICE_IDLE_MODE_OFF = 0;
|
||||
// Device idle mode - active in lightweight mode.
|
||||
DEVICE_IDLE_MODE_LIGHT = 1;
|
||||
// Device idle mode - active in full mode.
|
||||
DEVICE_IDLE_MODE_DEEP = 2;
|
||||
}
|
||||
|
||||
enum ErrorSource {
|
||||
ERROR_SOURCE_UNKNOWN = 0;
|
||||
// Data app
|
||||
DATA_APP = 1;
|
||||
// System app
|
||||
SYSTEM_APP = 2;
|
||||
// System server.
|
||||
SYSTEM_SERVER = 3;
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package com.android.server.job;
|
||||
|
||||
// This file is for JobScheduler enums inside the server directory. If you're
|
||||
// adding enums for app-side code, use the file in
|
||||
// frameworks/base/core/proto/android/app/job.
|
||||
option java_outer_classname = "JobServerProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// Set of constraints that a job potentially needs satisfied before it can run.
|
||||
// Defined in
|
||||
// frameworks/base/services/core/java/com/android/server/job/controllers/JobStatus.java
|
||||
enum ConstraintEnum {
|
||||
CONSTRAINT_UNKNOWN = 0;
|
||||
CONSTRAINT_CHARGING = 1;
|
||||
CONSTRAINT_BATTERY_NOT_LOW = 2;
|
||||
CONSTRAINT_STORAGE_NOT_LOW = 3;
|
||||
CONSTRAINT_TIMING_DELAY = 4;
|
||||
CONSTRAINT_DEADLINE = 5;
|
||||
CONSTRAINT_IDLE = 6;
|
||||
CONSTRAINT_CONNECTIVITY = 7;
|
||||
CONSTRAINT_CONTENT_TRIGGER = 8;
|
||||
CONSTRAINT_DEVICE_NOT_DOZING = 9;
|
||||
CONSTRAINT_WITHIN_QUOTA = 10;
|
||||
CONSTRAINT_BACKGROUND_NOT_RESTRICTED = 11;
|
||||
}
|
||||
@@ -20,7 +20,6 @@ package com.android.server.job;
|
||||
|
||||
option java_multiple_files = true;
|
||||
|
||||
import "frameworks/base/core/proto/android/app/job/enums.proto";
|
||||
import "frameworks/base/core/proto/android/content/clipdata.proto";
|
||||
import "frameworks/base/core/proto/android/content/component_name.proto";
|
||||
import "frameworks/base/core/proto/android/content/intent.proto";
|
||||
@@ -29,10 +28,11 @@ import "frameworks/base/core/proto/android/net/networkrequest.proto";
|
||||
import "frameworks/base/core/proto/android/os/bundle.proto";
|
||||
import "frameworks/base/core/proto/android/os/persistablebundle.proto";
|
||||
import "frameworks/base/core/proto/android/server/appstatetracker.proto";
|
||||
import "frameworks/base/core/proto/android/server/job/enums.proto";
|
||||
import "frameworks/base/core/proto/android/server/statlogger.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
import "frameworks/base/core/proto/android/util/quotatracker.proto";
|
||||
import "frameworks/proto_logging/stats/enums/app/job/enums.proto";
|
||||
import "frameworks/proto_logging/stats/enums/server/job/enums.proto";
|
||||
|
||||
message JobSchedulerServiceDumpProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
@@ -1,132 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.server.location;
|
||||
|
||||
option java_outer_classname = "ServerLocationProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// GPS Signal Quality levels,
|
||||
// primarily used by location/java/com/android/internal/location/gnssmetrics/GnssMetrics.java
|
||||
enum GpsSignalQualityEnum {
|
||||
GPS_SIGNAL_QUALITY_UNKNOWN = -1;
|
||||
GPS_SIGNAL_QUALITY_POOR = 0;
|
||||
GPS_SIGNAL_QUALITY_GOOD = 1;
|
||||
}
|
||||
|
||||
// A type which distinguishes different categories of NI request, such as VOICE, UMTS_SUPL etc.
|
||||
enum GnssNiType {
|
||||
VOICE = 1;
|
||||
UMTS_SUPL = 2;
|
||||
UMTS_CTRL_PLANE = 3;
|
||||
EMERGENCY_SUPL = 4;
|
||||
};
|
||||
|
||||
// GNSS NI responses, used to define the response in NI structures.
|
||||
enum GnssUserResponseType {
|
||||
RESPONSE_ACCEPT = 1;
|
||||
RESPONSE_DENY = 2;
|
||||
RESPONSE_NORESP = 3;
|
||||
};
|
||||
|
||||
// GNSS NI data encoding scheme.
|
||||
enum GnssNiEncodingType {
|
||||
ENC_NONE = 0;
|
||||
ENC_SUPL_GSM_DEFAULT = 1;
|
||||
ENC_SUPL_UTF8 = 2;
|
||||
ENC_SUPL_UCS2 = 3;
|
||||
ENC_UNKNOWN = -1;
|
||||
};
|
||||
|
||||
// Protocol stack that initiated the non-framework location request.
|
||||
enum NfwProtocolStack {
|
||||
// Cellular control plane requests.
|
||||
CTRL_PLANE = 0;
|
||||
// All types of SUPL requests.
|
||||
SUPL = 1;
|
||||
// All types of requests from IMS.
|
||||
IMS = 10;
|
||||
// All types of requests from SIM.
|
||||
SIM = 11;
|
||||
// Requests from other protocol stacks.
|
||||
OTHER_PROTOCOL_STACK = 100;
|
||||
};
|
||||
|
||||
// Source initiating/receiving the location information.
|
||||
enum NfwRequestor {
|
||||
// Wireless service provider.
|
||||
CARRIER = 0;
|
||||
// Device manufacturer.
|
||||
OEM = 10;
|
||||
// Modem chipset vendor.
|
||||
MODEM_CHIPSET_VENDOR = 11;
|
||||
// GNSS chipset vendor.
|
||||
GNSS_CHIPSET_VENDOR = 12;
|
||||
// Other chipset vendor.
|
||||
OTHER_CHIPSET_VENDOR = 13;
|
||||
// Automobile client.
|
||||
AUTOMOBILE_CLIENT = 20;
|
||||
// Other sources.
|
||||
OTHER_REQUESTOR = 100;
|
||||
};
|
||||
|
||||
// Indicates whether location information was provided for this request.
|
||||
enum NfwResponseType {
|
||||
// Request rejected because framework has not given permission for this use case.
|
||||
REJECTED = 0;
|
||||
// Request accepted but could not provide location because of a failure.
|
||||
ACCEPTED_NO_LOCATION_PROVIDED = 1;
|
||||
// Request accepted and location provided.
|
||||
ACCEPTED_LOCATION_PROVIDED = 2;
|
||||
};
|
||||
|
||||
// The SUPL mode.
|
||||
enum SuplMode {
|
||||
// Mobile Station Based.
|
||||
MSB = 0x01;
|
||||
// Mobile Station Assisted.
|
||||
MSA = 0x02;
|
||||
};
|
||||
|
||||
// Enum that hold the bit masks for various LTE Positioning Profile settings (LPP_PROFILE
|
||||
// configuration parameter). If none of the bits in the enum are set, the default setting is
|
||||
// Radio Resource Location Protocol(RRLP).
|
||||
enum LppProfile {
|
||||
// Enable LTE Positioning Protocol user plane.
|
||||
USER_PLANE = 0x01;
|
||||
// Enable LTE Positioning Protocol Control plane.
|
||||
CONTROL_PLANE = 0x02;
|
||||
};
|
||||
|
||||
// Positioning protocol on A-Glonass system.
|
||||
enum GlonassPosProtocol {
|
||||
// Radio Resource Control(RRC) control-plane.
|
||||
RRC_CPLANE = 0x01;
|
||||
// Radio Resource Location user-plane.
|
||||
RRLP_CPLANE = 0x02;
|
||||
// LTE Positioning Protocol User plane.
|
||||
LPP_UPLANE = 0x04;
|
||||
};
|
||||
|
||||
// Configurations of how GPS functionalities should be locked when user turns off GPS On setting.
|
||||
enum GpsLock {
|
||||
// Lock Mobile Originated GPS functionalitues.
|
||||
MO = 0x01;
|
||||
// Lock Network Initiated GPS functionalities.
|
||||
NI = 0x02;
|
||||
};
|
||||
@@ -19,16 +19,16 @@ package com.android.server.power;
|
||||
|
||||
option java_multiple_files = true;
|
||||
|
||||
import "frameworks/base/core/proto/android/app/enums.proto";
|
||||
import "frameworks/base/core/proto/android/content/intent.proto";
|
||||
import "frameworks/base/core/proto/android/os/enums.proto";
|
||||
import "frameworks/base/core/proto/android/os/looper.proto";
|
||||
import "frameworks/base/core/proto/android/os/powermanager.proto";
|
||||
import "frameworks/base/core/proto/android/os/worksource.proto";
|
||||
import "frameworks/base/core/proto/android/providers/settings.proto";
|
||||
import "frameworks/base/core/proto/android/server/wirelesschargerdetector.proto";
|
||||
import "frameworks/base/core/proto/android/view/enums.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
import "frameworks/proto_logging/stats/enums/app/enums.proto";
|
||||
import "frameworks/proto_logging/stats/enums/os/enums.proto";
|
||||
import "frameworks/proto_logging/stats/enums/view/enums.proto";
|
||||
|
||||
message PowerManagerServiceDumpProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
@@ -24,7 +24,6 @@ import "frameworks/base/core/proto/android/server/windowcontainerthumbnail.proto
|
||||
import "frameworks/base/core/proto/android/server/surfaceanimator.proto";
|
||||
import "frameworks/base/core/proto/android/view/displaycutout.proto";
|
||||
import "frameworks/base/core/proto/android/view/displayinfo.proto";
|
||||
import "frameworks/base/core/proto/android/view/enums.proto";
|
||||
import "frameworks/base/core/proto/android/view/surface.proto";
|
||||
import "frameworks/base/core/proto/android/view/windowlayoutparams.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
@@ -34,6 +33,8 @@ import "frameworks/base/core/proto/android/view/surfacecontrol.proto";
|
||||
import "frameworks/base/core/proto/android/view/insetssource.proto";
|
||||
import "frameworks/base/core/proto/android/view/insetssourcecontrol.proto";
|
||||
|
||||
import "frameworks/proto_logging/stats/enums/view/enums.proto";
|
||||
|
||||
package com.android.server.wm;
|
||||
|
||||
option java_multiple_files = true;
|
||||
|
||||
@@ -20,8 +20,8 @@ package android.service.battery;
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "BatteryServiceProto";
|
||||
|
||||
import "frameworks/base/core/proto/android/os/enums.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
import "frameworks/proto_logging/stats/enums/os/enums.proto";
|
||||
|
||||
message BatteryServiceDumpProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
@@ -21,8 +21,8 @@ option java_multiple_files = true;
|
||||
option java_outer_classname = "ProcessStatsServiceProto";
|
||||
|
||||
import "frameworks/base/core/proto/android/util/common.proto";
|
||||
import "frameworks/base/core/proto/android/service/procstats_enum.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
import "frameworks/proto_logging/stats/enums/service/procstats_enum.proto";
|
||||
|
||||
/**
|
||||
* Data from ProcStatsService Dumpsys
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.service.procstats;
|
||||
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "ProcessStatsEnums";
|
||||
|
||||
enum ScreenState {
|
||||
SCREEN_STATE_UNKNOWN = 0;
|
||||
SCREEN_STATE_OFF = 1;
|
||||
SCREEN_STATE_ON = 2;
|
||||
}
|
||||
|
||||
enum MemoryState {
|
||||
MEMORY_STATE_UNKNOWN = 0;
|
||||
MEMORY_STATE_NORMAL = 1; // normal.
|
||||
MEMORY_STATE_MODERATE = 2; // moderate memory pressure.
|
||||
MEMORY_STATE_LOW = 3; // low memory.
|
||||
MEMORY_STATE_CRITICAL = 4; // critical memory.
|
||||
}
|
||||
|
||||
// this enum list is from frameworks/base/core/java/com/android/internal/app/procstats/ProcessStats.java
|
||||
// and not frameworks/base/core/java/android/app/ActivityManager.java
|
||||
enum ProcessState {
|
||||
PROCESS_STATE_UNKNOWN = 0;
|
||||
// Persistent system process.
|
||||
PROCESS_STATE_PERSISTENT = 1;
|
||||
// Top activity; actually any visible activity.
|
||||
PROCESS_STATE_TOP = 2;
|
||||
// Important foreground process (ime, wallpaper, etc).
|
||||
PROCESS_STATE_IMPORTANT_FOREGROUND = 3;
|
||||
// Important background process.
|
||||
PROCESS_STATE_IMPORTANT_BACKGROUND = 4;
|
||||
// Performing backup operation.
|
||||
PROCESS_STATE_BACKUP = 5;
|
||||
// Background process running a service.
|
||||
PROCESS_STATE_SERVICE = 6;
|
||||
// Process not running, but would be if there was enough RAM.
|
||||
PROCESS_STATE_SERVICE_RESTARTING = 7;
|
||||
// Process running a receiver.
|
||||
PROCESS_STATE_RECEIVER = 8;
|
||||
// Heavy-weight process (currently not used).
|
||||
PROCESS_STATE_HEAVY_WEIGHT = 9;
|
||||
// Process hosting home/launcher app when not on top.
|
||||
PROCESS_STATE_HOME = 10;
|
||||
// Process hosting the last app the user was in.
|
||||
PROCESS_STATE_LAST_ACTIVITY = 11;
|
||||
// Cached process hosting a previous activity.
|
||||
PROCESS_STATE_CACHED_ACTIVITY = 12;
|
||||
// Cached process hosting a client activity.
|
||||
PROCESS_STATE_CACHED_ACTIVITY_CLIENT = 13;
|
||||
// Cached process that is empty.
|
||||
PROCESS_STATE_CACHED_EMPTY = 14;
|
||||
}
|
||||
|
||||
enum ServiceOperationState {
|
||||
SERVICE_OPERATION_STATE_UNKNOWN = 0;
|
||||
SERVICE_OPERATION_STATE_RUNNING = 1;
|
||||
SERVICE_OPERATION_STATE_STARTED = 2;
|
||||
SERVICE_OPERATION_STATE_FOREGROUND = 3;
|
||||
SERVICE_OPERATION_STATE_BOUND = 4;
|
||||
SERVICE_OPERATION_STATE_EXECUTING = 5;
|
||||
}
|
||||
|
||||
// this enum list is from frameworks/base/core/java/com/android/internal/app/procstats/ProcessStats.java
|
||||
// and not frameworks/base/core/java/android/app/ActivityManager.java
|
||||
enum AggregatedProcessState {
|
||||
AGGREGATED_PROCESS_STATE_UNKNOWN = 0;
|
||||
// Persistent system process; PERSISTENT or PERSISTENT_UI in ActivityManager
|
||||
AGGREGATED_PROCESS_STATE_PERSISTENT = 1;
|
||||
// Top activity; actually any visible activity; TOP or TOP_SLEEPING in ActivityManager
|
||||
AGGREGATED_PROCESS_STATE_TOP = 2;
|
||||
// Bound top foreground process; BOUND_TOP or BOUND_FOREGROUND_SERVICE in ActivityManager
|
||||
AGGREGATED_PROCESS_STATE_BOUND_TOP_OR_FGS = 3;
|
||||
// Important foreground process; FOREGROUND_SERVICE in ActivityManager
|
||||
AGGREGATED_PROCESS_STATE_FGS = 4;
|
||||
// Important foreground process ; IMPORTANT_FOREGROUND in ActivityManager
|
||||
AGGREGATED_PROCESS_STATE_IMPORTANT_FOREGROUND = 5;
|
||||
// Various background processes; IMPORTANT_BACKGROUND, TRANSIENT_BACKGROUND, BACKUP, SERVICE,
|
||||
// HEAVY_WEIGHT in ActivityManager
|
||||
AGGREGATED_PROCESS_STATE_BACKGROUND = 6;
|
||||
// Process running a receiver; RECEIVER in ActivityManager
|
||||
AGGREGATED_PROCESS_STATE_RECEIVER = 7;
|
||||
// Various cached processes; HOME, LAST_ACTIVITY, CACHED_ACTIVITY, CACHED_RECENT,
|
||||
// CACHED_ACTIVITY_CLIENT, CACHED_EMPTY in ActivityManager
|
||||
AGGREGATED_PROCESS_STATE_CACHED = 8;
|
||||
}
|
||||
@@ -1,440 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.service.usb;
|
||||
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "UsbServiceProto";
|
||||
|
||||
import "frameworks/base/core/proto/android/content/component_name.proto";
|
||||
import "frameworks/base/core/proto/android/service/enums.proto";
|
||||
import "frameworks/base/core/proto/android/privacy.proto";
|
||||
|
||||
message UsbServiceDumpProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional UsbDeviceManagerProto device_manager = 1;
|
||||
optional UsbHostManagerProto host_manager = 2;
|
||||
optional UsbPortManagerProto port_manager = 3;
|
||||
optional UsbAlsaManagerProto alsa_manager = 4;
|
||||
optional UsbSettingsManagerProto settings_manager = 5;
|
||||
optional UsbPermissionsManagerProto permissions_manager = 6;
|
||||
}
|
||||
|
||||
message UsbDeviceManagerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional UsbHandlerProto handler = 1;
|
||||
optional UsbDebuggingManagerProto debugging_manager = 2;
|
||||
}
|
||||
|
||||
message UsbHandlerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
/* Same as android.hardware.usb.gadget.V1_0.GadgetFunction.* */
|
||||
enum Function {
|
||||
FUNCTION_ADB = 1;
|
||||
FUNCTION_ACCESSORY = 2;
|
||||
FUNCTION_MTP = 4;
|
||||
FUNCTION_MIDI = 8;
|
||||
FUNCTION_PTP = 16;
|
||||
FUNCTION_RNDIS = 32;
|
||||
FUNCTION_AUDIO_SOURCE = 64;
|
||||
}
|
||||
|
||||
repeated Function current_functions = 1;
|
||||
optional bool current_functions_applied = 2;
|
||||
repeated Function screen_unlocked_functions = 3;
|
||||
optional bool screen_locked = 4;
|
||||
optional bool connected = 5;
|
||||
optional bool configured = 6;
|
||||
optional UsbAccessoryProto current_accessory = 7;
|
||||
optional bool host_connected = 8;
|
||||
optional bool source_power = 9;
|
||||
optional bool sink_power = 10;
|
||||
optional bool usb_charging = 11;
|
||||
optional bool hide_usb_notification = 12;
|
||||
optional bool audio_accessory_connected = 13;
|
||||
optional bool adb_enabled = 14;
|
||||
optional string kernel_state = 15;
|
||||
optional string kernel_function_list = 16;
|
||||
}
|
||||
|
||||
message UsbAccessoryProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional string manufacturer = 1;
|
||||
optional string model = 2;
|
||||
// For "classical" USB-accessories the manufacturer bakes this into the
|
||||
// firmware of the device. If an Android phone is configured as accessory, the
|
||||
// app that sets up the accessory side of the connection set this. Either way,
|
||||
// these are part of the detection protocol, and so they cannot be user set or
|
||||
// unique.
|
||||
optional string description = 3;
|
||||
optional string version = 4;
|
||||
optional string uri = 5 [ (android.privacy).dest = DEST_EXPLICIT ];
|
||||
// Non-resettable hardware ID.
|
||||
optional string serial = 6 [ (android.privacy).dest = DEST_LOCAL ];
|
||||
}
|
||||
|
||||
message UsbDebuggingManagerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional bool connected_to_adb = 1;
|
||||
// A workstation that connects to the phone for debugging is identified by
|
||||
// this key.
|
||||
optional string last_key_received = 2 [ (android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional string user_keys = 3 [ (android.privacy).dest = DEST_LOCAL ];
|
||||
optional string system_keys = 4 [ (android.privacy).dest = DEST_LOCAL ];
|
||||
}
|
||||
|
||||
message UsbHostManagerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional android.content.ComponentNameProto default_usb_host_connection_handler = 1;
|
||||
repeated UsbDeviceProto devices = 2;
|
||||
optional int32 num_connects = 3;
|
||||
repeated UsbConnectionRecordProto connections = 4;
|
||||
}
|
||||
|
||||
message UsbDeviceProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// Generic USB name, not user-provided.
|
||||
optional string name = 1;
|
||||
// ID specific to the vendor, not the device.
|
||||
optional int32 vendor_id = 2;
|
||||
// ID of this product type: Each vendor gives each product a unique ID. E.g.
|
||||
// all mice of the same model would have the same ID.
|
||||
optional int32 product_id = 3;
|
||||
optional int32 class = 4;
|
||||
optional int32 subclass = 5;
|
||||
optional int32 protocol = 6;
|
||||
optional string manufacturer_name = 7;
|
||||
optional string product_name = 8;
|
||||
optional string version = 9;
|
||||
// Non-resettable hardware ID.
|
||||
optional string serial_number = 10 [ (android.privacy).dest = DEST_LOCAL ];
|
||||
repeated UsbConfigurationProto configurations = 11;
|
||||
}
|
||||
|
||||
message UsbConfigurationProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// A single USB device can have several configurations and the app accessing
|
||||
// the USB device can switch between them. At any time only one can be active.
|
||||
// Each configuration can present completely different interfaces end
|
||||
// endpoints, i.e. a completely different behavior.
|
||||
optional int32 id = 1;
|
||||
// Hardware-defined name, not set by the user.
|
||||
optional string name = 2;
|
||||
optional uint32 attributes = 3;
|
||||
optional int32 max_power = 4;
|
||||
repeated UsbInterfaceProto interfaces = 5;
|
||||
}
|
||||
|
||||
message UsbInterfaceProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// Hardware defined. This is the id used by the app to identify the interface.
|
||||
optional int32 id = 1;
|
||||
optional int32 alternate_settings = 2;
|
||||
optional string name = 3;
|
||||
optional int32 class = 4;
|
||||
optional int32 subclass = 5;
|
||||
optional int32 protocol = 6;
|
||||
repeated UsbEndPointProto endpoints = 7;
|
||||
}
|
||||
|
||||
message UsbEndPointProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 endpoint_number = 1;
|
||||
optional android.service.UsbEndPointDirection direction = 2;
|
||||
// The address of the endpoint. Needed to read and write to the endpoint.
|
||||
optional int32 address = 3;
|
||||
optional android.service.UsbEndPointType type = 4;
|
||||
optional uint32 attributes = 5;
|
||||
optional int32 max_packet_size = 6;
|
||||
optional int32 interval = 7;
|
||||
}
|
||||
|
||||
message UsbConnectionRecordProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// usb device's address, e.g. 001/002, nothing about the phone
|
||||
optional string device_address = 1;
|
||||
optional android.service.UsbConnectionRecordMode mode = 2;
|
||||
optional int64 timestamp = 3;
|
||||
optional int32 manufacturer = 4;
|
||||
optional int32 product = 5;
|
||||
optional UsbIsHeadsetProto is_headset = 6;
|
||||
}
|
||||
|
||||
message UsbIsHeadsetProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional bool in = 1;
|
||||
optional bool out = 2;
|
||||
}
|
||||
|
||||
message UsbPortManagerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional bool is_simulation_active = 1;
|
||||
repeated UsbPortInfoProto usb_ports = 2;
|
||||
}
|
||||
|
||||
message UsbPortInfoProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional UsbPortProto port = 1;
|
||||
optional UsbPortStatusProto status = 2;
|
||||
optional bool can_change_mode = 3;
|
||||
optional bool can_change_power_role = 4;
|
||||
optional bool can_change_data_role = 5;
|
||||
optional int64 connected_at_millis = 6;
|
||||
optional int64 last_connect_duration_millis = 7;
|
||||
}
|
||||
|
||||
message UsbPortProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
/* Same as android.hardware.usb.V1_1.Constants.PortMode_1_1 */
|
||||
enum Mode {
|
||||
MODE_NONE = 0;
|
||||
MODE_UFP = 1;
|
||||
MODE_DFP = 2;
|
||||
MODE_DRP = 3;
|
||||
MODE_AUDIO_ACCESSORY = 4;
|
||||
MODE_DEBUG_ACCESSORY = 8;
|
||||
}
|
||||
|
||||
// ID of the port. A device (eg: Chromebooks) might have multiple ports.
|
||||
optional string id = 1;
|
||||
repeated Mode supported_modes = 2;
|
||||
}
|
||||
|
||||
/* Same as android.hardware.usb.V1_2.Constants.ContaminantPresenceStatus */
|
||||
enum ContaminantPresenceStatus {
|
||||
CONTAMINANT_STATUS_UNKNOWN = 0;
|
||||
CONTAMINANT_STATUS_NOT_SUPPORTED = 1;
|
||||
CONTAMINANT_STATUS_DISABLED = 2;
|
||||
CONTAMINANT_STATUS_NOT_DETECTED = 3;
|
||||
CONTAMINANT_STATUS_DETECTED = 4;
|
||||
}
|
||||
|
||||
message UsbPortStatusProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
/* Same as android.hardware.usb.V1_0.Constants.PortPowerRole */
|
||||
enum PowerRole {
|
||||
POWER_ROLE_NONE = 0;
|
||||
POWER_ROLE_SOURCE = 1;
|
||||
POWER_ROLE_SINK = 2;
|
||||
}
|
||||
|
||||
/* Same as android.hardware.usb.V1_0.Constants.PortDataRole */
|
||||
enum DataRole {
|
||||
DATA_ROLE_NONE = 0;
|
||||
DATA_ROLE_HOST = 1;
|
||||
DATA_ROLE_DEVICE = 2;
|
||||
}
|
||||
|
||||
optional bool connected = 1;
|
||||
optional UsbPortProto.Mode current_mode = 2;
|
||||
optional PowerRole power_role = 3;
|
||||
optional DataRole data_role = 4;
|
||||
repeated UsbPortStatusRoleCombinationProto role_combinations = 5;
|
||||
optional ContaminantPresenceStatus contaminant_presence_status = 6;
|
||||
}
|
||||
|
||||
message UsbPortStatusRoleCombinationProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional UsbPortStatusProto.PowerRole power_role = 1;
|
||||
optional UsbPortStatusProto.DataRole data_role = 2;
|
||||
}
|
||||
|
||||
message UsbAlsaManagerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 cards_parser = 1;
|
||||
repeated UsbAlsaDeviceProto alsa_devices = 2;
|
||||
repeated UsbMidiDeviceProto midi_devices = 3;
|
||||
}
|
||||
|
||||
message UsbAlsaDeviceProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 card = 1;
|
||||
optional int32 device = 2;
|
||||
optional string name = 3;
|
||||
optional bool has_playback = 4;
|
||||
optional bool has_capture = 5;
|
||||
// usb device's address, e.g. 001/002, nothing about the phone
|
||||
optional string address = 6;
|
||||
}
|
||||
|
||||
message UsbMidiDeviceProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 card = 1;
|
||||
optional int32 device = 2;
|
||||
// usb device's address, e.g. 001/002, nothing about the phone
|
||||
optional string device_address = 3;
|
||||
}
|
||||
|
||||
message UsbSettingsManagerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
repeated UsbUserSettingsManagerProto user_settings = 1;
|
||||
repeated UsbProfileGroupSettingsManagerProto profile_group_settings = 2;
|
||||
}
|
||||
|
||||
message UsbUserSettingsManagerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 user_id = 1;
|
||||
reserved 2; // previously device_permissions, now unused
|
||||
reserved 3; // previously accessory_permissions, now unused
|
||||
repeated UsbDeviceAttachedActivities device_attached_activities = 4;
|
||||
repeated UsbAccessoryAttachedActivities accessory_attached_activities = 5;
|
||||
}
|
||||
|
||||
message UsbProfileGroupSettingsManagerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// The user id of the personal profile if the device has a work profile.
|
||||
optional int32 parent_user_id = 1;
|
||||
repeated UsbSettingsDevicePreferenceProto device_preferences = 2;
|
||||
repeated UsbSettingsAccessoryPreferenceProto accessory_preferences = 3;
|
||||
}
|
||||
|
||||
message UsbSettingsDevicePreferenceProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional UsbDeviceFilterProto filter = 1;
|
||||
optional UserPackageProto user_package = 2;
|
||||
}
|
||||
|
||||
message UsbPermissionsManagerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
repeated UsbUserPermissionsManagerProto user_permissions = 1;
|
||||
}
|
||||
|
||||
message UsbUserPermissionsManagerProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 user_id = 1;
|
||||
|
||||
repeated UsbDevicePermissionProto device_permissions = 2;
|
||||
repeated UsbAccessoryPermissionProto accessory_permissions = 3;
|
||||
|
||||
repeated UsbDevicePersistentPermissionProto device_persistent_permissions = 4;
|
||||
repeated UsbAccessoryPersistentPermissionProto accessory_persistent_permissions = 5;
|
||||
}
|
||||
|
||||
message UsbDevicePermissionProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// Name of device set by manufacturer
|
||||
// All devices of the same model have the same name
|
||||
optional string device_name = 1;
|
||||
repeated int32 uids = 2;
|
||||
}
|
||||
|
||||
message UsbAccessoryPermissionProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// Description of accessory set by manufacturer
|
||||
// All accessories of the same model have the same description
|
||||
optional string accessory_description = 1;
|
||||
repeated int32 uids = 2;
|
||||
}
|
||||
|
||||
message UsbDevicePersistentPermissionProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional UsbDeviceFilterProto device_filter = 1;
|
||||
repeated UsbUidPermissionProto permission_values = 2;
|
||||
}
|
||||
|
||||
message UsbAccessoryPersistentPermissionProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional UsbAccessoryFilterProto accessory_filter = 1;
|
||||
repeated UsbUidPermissionProto permission_values = 2;
|
||||
}
|
||||
|
||||
message UsbUidPermissionProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 uid = 1;
|
||||
optional bool is_granted = 2;
|
||||
}
|
||||
|
||||
message UsbDeviceFilterProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// Mirrors the vendor_id of UsbDeviceProto.
|
||||
optional int32 vendor_id = 1;
|
||||
optional int32 product_id = 2;
|
||||
optional int32 class = 3;
|
||||
optional int32 subclass = 4;
|
||||
optional int32 protocol = 5;
|
||||
optional string manufacturer_name = 6;
|
||||
optional string product_name = 7;
|
||||
optional string serial_number = 8 [ (android.privacy).dest = DEST_EXPLICIT ];
|
||||
}
|
||||
|
||||
message UserPackageProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 user_id = 1;
|
||||
optional string package_name =2;
|
||||
}
|
||||
|
||||
message UsbSettingsAccessoryPreferenceProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional UsbAccessoryFilterProto filter = 1;
|
||||
optional UserPackageProto user_package = 2;
|
||||
}
|
||||
|
||||
message UsbAccessoryFilterProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional string manufacturer = 1;
|
||||
optional string model = 2;
|
||||
optional string version = 3;
|
||||
}
|
||||
|
||||
message UsbDeviceAttachedActivities {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional android.content.ComponentNameProto activity = 1;
|
||||
repeated UsbDeviceFilterProto filters = 2;
|
||||
}
|
||||
|
||||
message UsbAccessoryAttachedActivities {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional android.content.ComponentNameProto activity = 1;
|
||||
repeated UsbAccessoryFilterProto filters = 2;
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.stats.accessibility;
|
||||
option java_multiple_files = true;
|
||||
|
||||
// The entry point of the accessibility shortcut.
|
||||
enum ShortcutType {
|
||||
UNKNOWN_TYPE = 0;
|
||||
A11Y_BUTTON = 1;
|
||||
VOLUME_KEY = 2;
|
||||
TRIPLE_TAP = 3;
|
||||
A11Y_BUTTON_LONG_PRESS = 4;
|
||||
}
|
||||
|
||||
// The service status code.
|
||||
enum ServiceStatus {
|
||||
UNKNOWN = 0;
|
||||
ENABLED = 1;
|
||||
DISABLED = 2;
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
// Copyright (C) 2020 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
java_library {
|
||||
name: "cameraprotosnano",
|
||||
proto: {
|
||||
type: "nano",
|
||||
},
|
||||
srcs: [
|
||||
"*.proto",
|
||||
],
|
||||
java_version: "1.8",
|
||||
target: {
|
||||
android: {
|
||||
jarjar_rules: "jarjar-rules.txt",
|
||||
},
|
||||
host: {
|
||||
static_libs: ["libprotobuf-java-nano"],
|
||||
}
|
||||
},
|
||||
sdk_version: "core_platform",
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.stats.camera;
|
||||
option java_multiple_files = true;
|
||||
|
||||
message CameraStreamProto {
|
||||
// The stream width (in pixels)
|
||||
optional int32 width = 1;
|
||||
// The stream height (in pixels)
|
||||
optional int32 height = 2;
|
||||
// The format of the stream
|
||||
optional int32 format = 3;
|
||||
// The dataspace of the stream
|
||||
optional int32 data_space = 4;
|
||||
// The usage flag of the stream
|
||||
optional int64 usage = 5;
|
||||
|
||||
// The number of requests for this stream
|
||||
optional int64 request_count = 6;
|
||||
// The number of buffer error for this stream
|
||||
optional int64 error_count = 7;
|
||||
// The capture latency of first request for this stream
|
||||
optional int32 first_capture_latency_millis = 8;
|
||||
|
||||
// The maximum number of hal buffers
|
||||
optional int32 max_hal_buffers = 9;
|
||||
// The maximum number of app buffers
|
||||
optional int32 max_app_buffers = 10;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
rule com.google.protobuf.nano.** com.android.framework.protobuf.nano.@1
|
||||
@@ -1,38 +0,0 @@
|
||||
// Copyright (C) 2019 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
java_library_static {
|
||||
name: "networkstackprotos",
|
||||
proto: {
|
||||
type: "lite",
|
||||
},
|
||||
srcs: [
|
||||
"network_stack.proto",
|
||||
],
|
||||
sdk_version: "system_29",
|
||||
}
|
||||
|
||||
java_library_static {
|
||||
name: "tetheringprotos",
|
||||
proto: {
|
||||
type: "lite",
|
||||
},
|
||||
srcs: [
|
||||
"tethering.proto",
|
||||
],
|
||||
apex_available: [
|
||||
"com.android.tethering",
|
||||
],
|
||||
sdk_version: "system_current",
|
||||
}
|
||||
@@ -1,180 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats.connectivity;
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "NetworkStackProto";
|
||||
|
||||
enum DhcpRenewResult {
|
||||
RR_UNKNOWN = 0;
|
||||
RR_SUCCESS = 1;
|
||||
RR_ERROR_NAK = 2;
|
||||
RR_ERROR_IP_MISMATCH = 3;
|
||||
RR_ERROR_IP_EXPIRE = 4;
|
||||
}
|
||||
|
||||
enum DisconnectCode {
|
||||
DC_NONE = 0;
|
||||
DC_NORMAL_TERMINATION = 1;
|
||||
DC_PROVISIONING_FAIL = 2;
|
||||
DC_ERROR_STARTING_IPV4 = 4;
|
||||
DC_ERROR_STARTING_IPV6 = 5;
|
||||
DC_ERROR_STARTING_IPREACHABILITYMONITOR = 6;
|
||||
DC_INVALID_PROVISIONING = 7;
|
||||
DC_INTERFACE_NOT_FOUND = 8;
|
||||
DC_PROVISIONING_TIMEOUT = 9;
|
||||
}
|
||||
|
||||
enum TransportType {
|
||||
TT_UNKNOWN = 0;
|
||||
// Indicates this network uses a Cellular transport
|
||||
TT_CELLULAR = 1;
|
||||
// Indicates this network uses a Wi-Fi transport
|
||||
TT_WIFI = 2;
|
||||
// Indicates this network uses a Bluetooth transport
|
||||
TT_BLUETOOTH = 3;
|
||||
// Indicates this network uses an Ethernet transport
|
||||
TT_ETHERNET = 4;
|
||||
// Indicates this network uses a Wi-Fi Aware transport
|
||||
TT_WIFI_AWARE = 5;
|
||||
// Indicates this network uses a LoWPAN transport
|
||||
TT_LOWPAN = 6;
|
||||
// Indicates this network uses a Cellular+VPN transport
|
||||
TT_CELLULAR_VPN = 7;
|
||||
// Indicates this network uses a Wi-Fi+VPN transport
|
||||
TT_WIFI_VPN = 8;
|
||||
// Indicates this network uses a Bluetooth+VPN transport
|
||||
TT_BLUETOOTH_VPN = 9;
|
||||
// Indicates this network uses an Ethernet+VPN transport
|
||||
TT_ETHERNET_VPN = 10;
|
||||
// Indicates this network uses a Wi-Fi+Cellular+VPN transport
|
||||
TT_WIFI_CELLULAR_VPN = 11;
|
||||
// Indicates this network uses for test only
|
||||
TT_TEST = 12;
|
||||
}
|
||||
|
||||
enum DhcpFeature {
|
||||
DF_UNKNOWN = 0;
|
||||
// DHCP INIT-REBOOT state
|
||||
DF_INITREBOOT = 1;
|
||||
// DHCP rapid commit option
|
||||
DF_RAPIDCOMMIT = 2;
|
||||
// Duplicate address detection
|
||||
DF_DAD = 3;
|
||||
// Fast initial Link setup
|
||||
DF_FILS = 4;
|
||||
}
|
||||
|
||||
enum HostnameTransResult {
|
||||
HTR_UNKNOWN = 0;
|
||||
HTR_SUCCESS = 1;
|
||||
HTR_FAILURE = 2;
|
||||
HTR_DISABLE = 3;
|
||||
}
|
||||
|
||||
enum ProbeResult {
|
||||
PR_UNKNOWN = 0;
|
||||
PR_SUCCESS = 1;
|
||||
PR_FAILURE = 2;
|
||||
PR_PORTAL = 3;
|
||||
// DNS query for the probe host returned a private IP address
|
||||
PR_PRIVATE_IP_DNS = 4;
|
||||
}
|
||||
|
||||
enum ValidationResult {
|
||||
VR_UNKNOWN = 0;
|
||||
VR_SUCCESS = 1;
|
||||
VR_FAILURE = 2;
|
||||
VR_PORTAL = 3;
|
||||
VR_PARTIAL = 4;
|
||||
}
|
||||
|
||||
enum ProbeType {
|
||||
PT_UNKNOWN = 0;
|
||||
PT_DNS = 1;
|
||||
PT_HTTP = 2;
|
||||
PT_HTTPS = 3;
|
||||
PT_PAC = 4;
|
||||
PT_FALLBACK = 5;
|
||||
PT_PRIVDNS = 6;
|
||||
PT_CAPPORT_API = 7;
|
||||
}
|
||||
|
||||
// The Dhcp error code is defined in android.net.metrics.DhcpErrorEvent
|
||||
enum DhcpErrorCode {
|
||||
ET_UNKNOWN = 0;
|
||||
ET_L2_ERROR = 1;
|
||||
ET_L3_ERROR = 2;
|
||||
ET_L4_ERROR = 3;
|
||||
ET_DHCP_ERROR = 4;
|
||||
ET_MISC_ERROR = 5;
|
||||
/* Reserve for error type
|
||||
// ET_L2_ERROR_TYPE = ET_L2_ERROR << 8;
|
||||
ET_L2_ERROR_TYPE = 256;
|
||||
// ET_L3_ERROR_TYPE = ET_L3_ERROR << 8;
|
||||
ET_L3_ERROR_TYPE = 512;
|
||||
// ET_L4_ERROR_TYPE = ET_L4_ERROR << 8;
|
||||
ET_L4_ERROR_TYPE = 768;
|
||||
// ET_DHCP_ERROR_TYPE = ET_DHCP_ERROR << 8;
|
||||
ET_DHCP_ERROR_TYPE = 1024;
|
||||
// ET_MISC_ERROR_TYPE = ET_MISC_ERROR << 8;
|
||||
ET_MISC_ERROR_TYPE = 1280;
|
||||
*/
|
||||
// ET_L2_TOO_SHORT = (ET_L2_ERROR_TYPE | 0x1) << 16;
|
||||
ET_L2_TOO_SHORT = 16842752;
|
||||
// ET_L2_WRONG_ETH_TYPE = (ET_L2_ERROR_TYPE | 0x2) << 16;
|
||||
ET_L2_WRONG_ETH_TYPE = 16908288;
|
||||
// ET_L3_TOO_SHORT = (ET_L3_ERROR_TYPE | 0x1) << 16;
|
||||
ET_L3_TOO_SHORT = 33619968;
|
||||
// ET_L3_NOT_IPV4 = (ET_L3_ERROR_TYPE | 0x2) << 16;
|
||||
ET_L3_NOT_IPV4 = 33685504;
|
||||
// ET_L3_INVALID_IP = (ET_L3_ERROR_TYPE | 0x3) << 16;
|
||||
ET_L3_INVALID_IP = 33751040;
|
||||
// ET_L4_NOT_UDP = (ET_L4_ERROR_TYPE | 0x1) << 16;
|
||||
ET_L4_NOT_UDP = 50397184;
|
||||
// ET_L4_WRONG_PORT = (ET_L4_ERROR_TYPE | 0x2) << 16;
|
||||
ET_L4_WRONG_PORT = 50462720;
|
||||
// ET_BOOTP_TOO_SHORT = (ET_DHCP_ERROR_TYPE | 0x1) << 16;
|
||||
ET_BOOTP_TOO_SHORT = 67174400;
|
||||
// ET_DHCP_BAD_MAGIC_COOKIE = (ET_DHCP_ERROR_TYPE | 0x2) << 16;
|
||||
ET_DHCP_BAD_MAGIC_COOKIE = 67239936;
|
||||
// ET_DHCP_INVALID_OPTION_LENGTH = (ET_DHCP_ERROR_TYPE | 0x3) << 16;
|
||||
ET_DHCP_INVALID_OPTION_LENGTH = 67305472;
|
||||
// ET_DHCP_NO_MSG_TYPE = (ET_DHCP_ERROR_TYPE | 0x4) << 16;
|
||||
ET_DHCP_NO_MSG_TYPE = 67371008;
|
||||
// ET_DHCP_UNKNOWN_MSG_TYPE = (ET_DHCP_ERROR_TYPE | 0x5) << 16;
|
||||
ET_DHCP_UNKNOWN_MSG_TYPE = 67436544;
|
||||
// ET_DHCP_NO_COOKIE = (ET_DHCP_ERROR_TYPE | 0x6) << 16;
|
||||
ET_DHCP_NO_COOKIE = 67502080;
|
||||
// ET_BUFFER_UNDERFLOW = (ET_MISC_ERROR_TYPE | 0x1) << 16;
|
||||
ET_BUFFER_UNDERFLOW = 83951616;
|
||||
// ET_RECEIVE_ERROR = (ET_MISC_ERROR_TYPE | 0x2) << 16;
|
||||
ET_RECEIVE_ERROR = 84017152;
|
||||
// ET_PARSING_ERROR = (ET_MISC_ERROR_TYPE | 0x3) << 16;
|
||||
ET_PARSING_ERROR = 84082688;
|
||||
}
|
||||
|
||||
enum NetworkQuirkEvent {
|
||||
QE_UNKNOWN = 0;
|
||||
QE_IPV6_PROVISIONING_ROUTER_LOST = 1;
|
||||
}
|
||||
|
||||
message NetworkStackEventData {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
syntax = "proto2";
|
||||
package android.stats.connectivity;
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "TetheringProto";
|
||||
|
||||
enum ErrorCode {
|
||||
EC_NO_ERROR = 0;
|
||||
EC_UNKNOWN_IFACE = 1;
|
||||
EC_SERVICE_UNAVAIL = 2;
|
||||
EC_UNSUPPORTED = 3;
|
||||
EC_UNAVAIL_IFACE = 4;
|
||||
EC_INTERNAL_ERROR = 5;
|
||||
EC_TETHER_IFACE_ERROR = 6;
|
||||
EC_UNTETHER_IFACE_ERROR = 7;
|
||||
EC_ENABLE_FORWARDING_ERROR = 8;
|
||||
EC_DISABLE_FORWARDING_ERROR = 9;
|
||||
EC_IFACE_CFG_ERROR = 10;
|
||||
EC_PROVISIONING_FAILED = 11;
|
||||
EC_DHCPSERVER_ERROR = 12;
|
||||
EC_ENTITLEMENT_UNKNOWN = 13;
|
||||
EC_NO_CHANGE_TETHERING_PERMISSION = 14;
|
||||
EC_NO_ACCESS_TETHERING_PERMISSION = 15;
|
||||
EC_UNKNOWN_TYPE = 16;
|
||||
}
|
||||
|
||||
enum DownstreamType {
|
||||
// Unspecific tethering type.
|
||||
DS_UNSPECIFIED = 0;
|
||||
// Wifi tethering type.
|
||||
DS_TETHERING_WIFI = 1;
|
||||
// USB tethering type.
|
||||
DS_TETHERING_USB = 2;
|
||||
// Bluetooth tethering type.
|
||||
DS_TETHERING_BLUETOOTH = 3;
|
||||
// Wifi P2p tethering type.
|
||||
DS_TETHERING_WIFI_P2P = 4;
|
||||
// NCM (Network Control Model) local tethering type.
|
||||
DS_TETHERING_NCM = 5;
|
||||
// Ethernet tethering type.
|
||||
DS_TETHERING_ETHERNET = 6;
|
||||
}
|
||||
|
||||
enum UpstreamType {
|
||||
UT_UNKNOWN = 0;
|
||||
// Indicates upstream using a Cellular transport.
|
||||
UT_CELLULAR = 1;
|
||||
// Indicates upstream using a Wi-Fi transport.
|
||||
UT_WIFI = 2;
|
||||
// Indicates upstream using a Bluetooth transport.
|
||||
UT_BLUETOOTH = 3;
|
||||
// Indicates upstream using an Ethernet transport.
|
||||
UT_ETHERNET = 4;
|
||||
// Indicates upstream using a Wi-Fi Aware transport.
|
||||
UT_WIFI_AWARE = 5;
|
||||
// Indicates upstream using a LoWPAN transport.
|
||||
UT_LOWPAN = 6;
|
||||
// Indicates upstream using a Cellular+VPN transport.
|
||||
UT_CELLULAR_VPN = 7;
|
||||
// Indicates upstream using a Wi-Fi+VPN transport.
|
||||
UT_WIFI_VPN = 8;
|
||||
// Indicates upstream using a Bluetooth+VPN transport.
|
||||
UT_BLUETOOTH_VPN = 9;
|
||||
// Indicates upstream using an Ethernet+VPN transport.
|
||||
UT_ETHERNET_VPN = 10;
|
||||
// Indicates upstream using a Wi-Fi+Cellular+VPN transport.
|
||||
UT_WIFI_CELLULAR_VPN = 11;
|
||||
// Indicates upstream using for test only.
|
||||
UT_TEST = 12;
|
||||
// Indicates upstream using DUN capability + Cellular transport.
|
||||
UT_DUN_CELLULAR = 13;
|
||||
}
|
||||
|
||||
enum UserType {
|
||||
// Unknown.
|
||||
USER_UNKNOWN = 0;
|
||||
// Settings.
|
||||
USER_SETTINGS = 1;
|
||||
// System UI.
|
||||
USER_SYSTEMUI = 2;
|
||||
// Google mobile service.
|
||||
USER_GMS = 3;
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
// Copyright (C) 2018 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
java_library_static {
|
||||
name: "devicepolicyprotosnano",
|
||||
proto: {
|
||||
type: "nano",
|
||||
},
|
||||
srcs: [
|
||||
"*.proto",
|
||||
],
|
||||
java_version: "1.8",
|
||||
target: {
|
||||
android: {
|
||||
jarjar_rules: "jarjar-rules.txt",
|
||||
},
|
||||
host: {
|
||||
static_libs: ["libprotobuf-java-nano"],
|
||||
}
|
||||
},
|
||||
sdk_version: "core_platform",
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats.devicepolicy;
|
||||
option java_multiple_files = true;
|
||||
|
||||
message StringList {
|
||||
repeated string string_value = 1;
|
||||
}
|
||||
@@ -1,204 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats.devicepolicy;
|
||||
option java_multiple_files = true;
|
||||
|
||||
/**
|
||||
* Id for device policy features.
|
||||
*/
|
||||
enum EventId {
|
||||
SET_PASSWORD_QUALITY = 1;
|
||||
SET_PASSWORD_MINIMUM_LENGTH = 2;
|
||||
SET_PASSWORD_MINIMUM_NUMERIC = 3;
|
||||
SET_PASSWORD_MINIMUM_NON_LETTER = 4;
|
||||
SET_PASSWORD_MINIMUM_LETTERS = 5;
|
||||
SET_PASSWORD_MINIMUM_LOWER_CASE = 6;
|
||||
SET_PASSWORD_MINIMUM_UPPER_CASE = 7;
|
||||
SET_PASSWORD_MINIMUM_SYMBOLS = 8;
|
||||
SET_KEYGUARD_DISABLED_FEATURES = 9;
|
||||
LOCK_NOW = 10;
|
||||
WIPE_DATA_WITH_REASON = 11;
|
||||
ADD_USER_RESTRICTION = 12;
|
||||
REMOVE_USER_RESTRICTION = 13;
|
||||
SET_SECURE_SETTING = 14;
|
||||
SET_SECURITY_LOGGING_ENABLED = 15;
|
||||
RETRIEVE_SECURITY_LOGS = 16;
|
||||
RETRIEVE_PRE_REBOOT_SECURITY_LOGS = 17;
|
||||
SET_PERMISSION_POLICY = 18;
|
||||
SET_PERMISSION_GRANT_STATE = 19;
|
||||
INSTALL_KEY_PAIR = 20;
|
||||
INSTALL_CA_CERT = 21;
|
||||
CHOOSE_PRIVATE_KEY_ALIAS = 22;
|
||||
REMOVE_KEY_PAIR = 23;
|
||||
UNINSTALL_CA_CERTS = 24;
|
||||
SET_CERT_INSTALLER_PACKAGE = 25;
|
||||
SET_ALWAYS_ON_VPN_PACKAGE = 26;
|
||||
SET_PERMITTED_INPUT_METHODS = 27;
|
||||
SET_PERMITTED_ACCESSIBILITY_SERVICES = 28;
|
||||
SET_SCREEN_CAPTURE_DISABLED = 29;
|
||||
SET_CAMERA_DISABLED = 30;
|
||||
QUERY_SUMMARY_FOR_USER = 31;
|
||||
QUERY_SUMMARY = 32;
|
||||
QUERY_DETAILS = 33;
|
||||
REBOOT = 34;
|
||||
SET_MASTER_VOLUME_MUTED = 35;
|
||||
SET_AUTO_TIME_REQUIRED = 36;
|
||||
SET_KEYGUARD_DISABLED = 37;
|
||||
SET_STATUS_BAR_DISABLED = 38;
|
||||
SET_ORGANIZATION_COLOR = 39;
|
||||
SET_PROFILE_NAME = 40;
|
||||
SET_USER_ICON = 41;
|
||||
SET_DEVICE_OWNER_LOCK_SCREEN_INFO = 42;
|
||||
SET_SHORT_SUPPORT_MESSAGE = 43;
|
||||
SET_LONG_SUPPORT_MESSAGE = 44;
|
||||
SET_CROSS_PROFILE_CONTACTS_SEARCH_DISABLED = 45;
|
||||
SET_CROSS_PROFILE_CALLER_ID_DISABLED = 46;
|
||||
SET_BLUETOOTH_CONTACT_SHARING_DISABLED = 47;
|
||||
ADD_CROSS_PROFILE_INTENT_FILTER = 48;
|
||||
ADD_CROSS_PROFILE_WIDGET_PROVIDER = 49;
|
||||
SET_SYSTEM_UPDATE_POLICY = 50;
|
||||
SET_LOCKTASK_MODE_ENABLED = 51;
|
||||
ADD_PERSISTENT_PREFERRED_ACTIVITY = 52;
|
||||
REQUEST_BUGREPORT = 53;
|
||||
GET_WIFI_MAC_ADDRESS = 54;
|
||||
REQUEST_QUIET_MODE_ENABLED = 55;
|
||||
WORK_PROFILE_LOCATION_CHANGED = 56;
|
||||
DO_USER_INFO_CLICKED = 57;
|
||||
TRANSFER_OWNERSHIP = 58;
|
||||
GENERATE_KEY_PAIR = 59;
|
||||
SET_KEY_PAIR_CERTIFICATE = 60;
|
||||
SET_KEEP_UNINSTALLED_PACKAGES = 61;
|
||||
SET_APPLICATION_RESTRICTIONS = 62;
|
||||
SET_APPLICATION_HIDDEN = 63;
|
||||
ENABLE_SYSTEM_APP = 64;
|
||||
ENABLE_SYSTEM_APP_WITH_INTENT = 65;
|
||||
INSTALL_EXISTING_PACKAGE = 66;
|
||||
SET_UNINSTALL_BLOCKED = 67;
|
||||
SET_PACKAGES_SUSPENDED = 68;
|
||||
ON_LOCK_TASK_MODE_ENTERING = 69;
|
||||
SET_CROSS_PROFILE_CALENDAR_PACKAGES = 70;
|
||||
GET_USER_PASSWORD_COMPLEXITY_LEVEL = 72;
|
||||
INSTALL_SYSTEM_UPDATE = 73;
|
||||
INSTALL_SYSTEM_UPDATE_ERROR = 74;
|
||||
IS_MANAGED_KIOSK = 75;
|
||||
IS_UNATTENDED_MANAGED_KIOSK = 76;
|
||||
PROVISIONING_MANAGED_PROFILE_ON_FULLY_MANAGED_DEVICE = 77;
|
||||
PROVISIONING_PERSISTENT_DEVICE_OWNER = 78;
|
||||
|
||||
// existing Tron logs to be migrated to statsd
|
||||
PROVISIONING_ENTRY_POINT_NFC = 79;
|
||||
PROVISIONING_ENTRY_POINT_QR_CODE = 80;
|
||||
PROVISIONING_ENTRY_POINT_CLOUD_ENROLLMENT = 81;
|
||||
PROVISIONING_ENTRY_POINT_ADB = 82;
|
||||
PROVISIONING_ENTRY_POINT_TRUSTED_SOURCE = 83;
|
||||
PROVISIONING_DPC_PACKAGE_NAME = 84;
|
||||
PROVISIONING_DPC_INSTALLED_BY_PACKAGE = 85;
|
||||
PROVISIONING_PROVISIONING_ACTIVITY_TIME_MS = 86;
|
||||
PROVISIONING_PREPROVISIONING_ACTIVITY_TIME_MS = 87;
|
||||
PROVISIONING_ENCRYPT_DEVICE_ACTIVITY_TIME_MS = 88;
|
||||
PROVISIONING_WEB_ACTIVITY_TIME_MS = 89;
|
||||
PROVISIONING_TRAMPOLINE_ACTIVITY_TIME_MS = 90 [deprecated=true];
|
||||
PROVISIONING_POST_ENCRYPTION_ACTIVITY_TIME_MS = 91 [deprecated=true];
|
||||
PROVISIONING_FINALIZATION_ACTIVITY_TIME_MS = 92 [deprecated=true];
|
||||
PROVISIONING_NETWORK_TYPE = 93;
|
||||
PROVISIONING_ACTION = 94;
|
||||
PROVISIONING_EXTRAS = 95;
|
||||
PROVISIONING_COPY_ACCOUNT_TASK_MS = 96;
|
||||
PROVISIONING_CREATE_PROFILE_TASK_MS = 97;
|
||||
PROVISIONING_START_PROFILE_TASK_MS = 98;
|
||||
PROVISIONING_DOWNLOAD_PACKAGE_TASK_MS = 99;
|
||||
PROVISIONING_INSTALL_PACKAGE_TASK_MS = 100;
|
||||
PROVISIONING_CANCELLED = 101;
|
||||
PROVISIONING_ERROR = 102;
|
||||
PROVISIONING_COPY_ACCOUNT_STATUS = 103;
|
||||
PROVISIONING_TOTAL_TASK_TIME_MS = 104;
|
||||
PROVISIONING_SESSION_STARTED = 105;
|
||||
PROVISIONING_SESSION_COMPLETED = 106;
|
||||
PROVISIONING_TERMS_ACTIVITY_TIME_MS = 107;
|
||||
PROVISIONING_TERMS_COUNT = 108;
|
||||
PROVISIONING_TERMS_READ = 109;
|
||||
|
||||
SEPARATE_PROFILE_CHALLENGE_CHANGED = 110;
|
||||
SET_GLOBAL_SETTING = 111;
|
||||
INSTALL_PACKAGE = 112;
|
||||
UNINSTALL_PACKAGE = 113;
|
||||
WIFI_SERVICE_ADD_NETWORK_SUGGESTIONS = 114;
|
||||
WIFI_SERVICE_ADD_OR_UPDATE_NETWORK = 115;
|
||||
QUERY_SUMMARY_FOR_DEVICE = 116;
|
||||
REMOVE_CROSS_PROFILE_WIDGET_PROVIDER = 117;
|
||||
ESTABLISH_VPN = 118;
|
||||
SET_NETWORK_LOGGING_ENABLED = 119;
|
||||
RETRIEVE_NETWORK_LOGS = 120;
|
||||
PROVISIONING_PREPARE_TOTAL_TIME_MS = 121;
|
||||
PROVISIONING_PREPARE_STARTED = 122;
|
||||
PROVISIONING_PREPARE_COMPLETED = 123;
|
||||
PROVISIONING_FLOW_TYPE = 124;
|
||||
CROSS_PROFILE_APPS_GET_TARGET_USER_PROFILES = 125;
|
||||
CROSS_PROFILE_APPS_START_ACTIVITY_AS_USER = 126;
|
||||
SET_AUTO_TIME = 127;
|
||||
SET_AUTO_TIME_ZONE = 128;
|
||||
SET_USER_CONTROL_DISABLED_PACKAGES = 129;
|
||||
SET_FACTORY_RESET_PROTECTION = 130;
|
||||
SET_COMMON_CRITERIA_MODE = 131;
|
||||
ALLOW_MODIFICATION_OF_ADMIN_CONFIGURED_NETWORKS = 132;
|
||||
SET_TIME = 133;
|
||||
SET_TIME_ZONE = 134;
|
||||
SET_PERSONAL_APPS_SUSPENDED = 135;
|
||||
SET_MANAGED_PROFILE_MAXIMUM_TIME_OFF = 136;
|
||||
COMP_TO_ORG_OWNED_PO_MIGRATED = 137;
|
||||
SET_CROSS_PROFILE_PACKAGES = 138;
|
||||
SET_INTERACT_ACROSS_PROFILES_APP_OP = 139;
|
||||
GET_CROSS_PROFILE_PACKAGES = 140;
|
||||
CAN_REQUEST_INTERACT_ACROSS_PROFILES_TRUE = 141;
|
||||
CAN_REQUEST_INTERACT_ACROSS_PROFILES_FALSE_NO_PROFILES = 142;
|
||||
CAN_REQUEST_INTERACT_ACROSS_PROFILES_FALSE_WHITELIST = 143;
|
||||
CAN_REQUEST_INTERACT_ACROSS_PROFILES_FALSE_PERMISSION = 144;
|
||||
CAN_INTERACT_ACROSS_PROFILES_TRUE = 145;
|
||||
CAN_INTERACT_ACROSS_PROFILES_FALSE_PERMISSION = 146;
|
||||
CAN_INTERACT_ACROSS_PROFILES_FALSE_NO_PROFILES = 147;
|
||||
CREATE_CROSS_PROFILE_INTENT = 148;
|
||||
IS_MANAGED_PROFILE = 149;
|
||||
START_ACTIVITY_BY_INTENT = 150;
|
||||
BIND_CROSS_PROFILE_SERVICE = 151;
|
||||
PROVISIONING_DPC_SETUP_STARTED = 152;
|
||||
PROVISIONING_DPC_SETUP_COMPLETED = 153;
|
||||
PROVISIONING_ORGANIZATION_OWNED_MANAGED_PROFILE = 154;
|
||||
RESOLVER_CROSS_PROFILE_TARGET_OPENED = 155;
|
||||
RESOLVER_SWITCH_TABS = 156;
|
||||
RESOLVER_EMPTY_STATE_WORK_APPS_DISABLED = 157;
|
||||
RESOLVER_EMPTY_STATE_NO_SHARING_TO_PERSONAL= 158;
|
||||
RESOLVER_EMPTY_STATE_NO_SHARING_TO_WORK= 159;
|
||||
RESOLVER_EMPTY_STATE_NO_APPS_RESOLVED= 160;
|
||||
RESOLVER_AUTOLAUNCH_CROSS_PROFILE_TARGET = 161;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_LAUNCHED_FROM_APP = 162;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_LAUNCHED_FROM_SETTINGS = 163;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_ADMIN_RESTRICTED = 164;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_MISSING_WORK_APP = 165;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_MISSING_PERSONAL_APP = 166;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_MISSING_INSTALL_BANNER_INTENT = 167;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_INSTALL_BANNER_CLICKED = 168;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_INSTALL_BANNER_NO_INTENT_CLICKED = 169;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_USER_CONSENTED = 170;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_USER_DECLINED_CONSENT = 171;
|
||||
CROSS_PROFILE_SETTINGS_PAGE_PERMISSION_REVOKED = 172;
|
||||
DOCSUI_EMPTY_STATE_NO_PERMISSION = 173;
|
||||
DOCSUI_EMPTY_STATE_QUIET_MODE = 174;
|
||||
DOCSUI_LAUNCH_OTHER_APP = 175;
|
||||
DOCSUI_PICK_RESULT = 176;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
rule com.google.protobuf.nano.** com.android.framework.protobuf.nano.@1
|
||||
@@ -1,24 +0,0 @@
|
||||
// Copyright (C) 2019 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
java_library_static {
|
||||
name: "dnsresolverprotosnano",
|
||||
proto: {
|
||||
type: "nano",
|
||||
},
|
||||
srcs: [
|
||||
"dns_resolver.proto",
|
||||
],
|
||||
sdk_version: "system_current",
|
||||
}
|
||||
@@ -1,375 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
syntax = "proto2";
|
||||
package android.stats.dnsresolver;
|
||||
|
||||
enum EventType {
|
||||
EVENT_UNKNOWN = 0;
|
||||
EVENT_GETADDRINFO = 1;
|
||||
EVENT_GETHOSTBYNAME = 2;
|
||||
EVENT_GETHOSTBYADDR = 3;
|
||||
EVENT_RES_NSEND = 4;
|
||||
}
|
||||
|
||||
// The return value of the DNS resolver for each DNS lookups.
|
||||
// bionic/libc/include/netdb.h
|
||||
// system/netd/resolv/include/netd_resolv/resolv.h
|
||||
enum ReturnCode {
|
||||
RC_EAI_NO_ERROR = 0;
|
||||
RC_EAI_ADDRFAMILY = 1;
|
||||
RC_EAI_AGAIN = 2;
|
||||
RC_EAI_BADFLAGS = 3;
|
||||
RC_EAI_FAIL = 4;
|
||||
RC_EAI_FAMILY = 5;
|
||||
RC_EAI_MEMORY = 6;
|
||||
RC_EAI_NODATA = 7;
|
||||
RC_EAI_NONAME = 8;
|
||||
RC_EAI_SERVICE = 9;
|
||||
RC_EAI_SOCKTYPE = 10;
|
||||
RC_EAI_SYSTEM = 11;
|
||||
RC_EAI_BADHINTS = 12;
|
||||
RC_EAI_PROTOCOL = 13;
|
||||
RC_EAI_OVERFLOW = 14;
|
||||
RC_RESOLV_INTERNAL_ERROR = 254;
|
||||
RC_RESOLV_TIMEOUT = 255;
|
||||
RC_EAI_MAX = 256;
|
||||
}
|
||||
|
||||
enum NsRcode {
|
||||
NS_R_NO_ERROR = 0; // No error occurred.
|
||||
NS_R_FORMERR = 1; // Format error.
|
||||
NS_R_SERVFAIL = 2; // Server failure.
|
||||
NS_R_NXDOMAIN = 3; // Name error.
|
||||
NS_R_NOTIMPL = 4; // Unimplemented.
|
||||
NS_R_REFUSED = 5; // Operation refused.
|
||||
// these are for BIND_UPDATE
|
||||
NS_R_YXDOMAIN = 6; // Name exists
|
||||
NS_R_YXRRSET = 7; // RRset exists
|
||||
NS_R_NXRRSET = 8; // RRset does not exist
|
||||
NS_R_NOTAUTH = 9; // Not authoritative for zone
|
||||
NS_R_NOTZONE = 10; // Zone of record different from zone section
|
||||
NS_R_MAX = 11;
|
||||
// Define rcode=12~15(UNASSIGNED) in rcode enum type.
|
||||
// Some DNS Servers might return undefined code to devices.
|
||||
// Without the enum definition, that would be noise for our dashboard.
|
||||
NS_R_UNASSIGNED12 = 12; // Unassigned
|
||||
NS_R_UNASSIGNED13 = 13; // Unassigned
|
||||
NS_R_UNASSIGNED14 = 14; // Unassigned
|
||||
NS_R_UNASSIGNED15 = 15; // Unassigned
|
||||
// The following are EDNS extended rcodes
|
||||
NS_R_BADVERS = 16;
|
||||
// The following are TSIG errors
|
||||
// NS_R_BADSIG = 16,
|
||||
NS_R_BADKEY = 17;
|
||||
NS_R_BADTIME = 18;
|
||||
NS_R_INTERNAL_ERROR = 254;
|
||||
NS_R_TIMEOUT = 255;
|
||||
}
|
||||
|
||||
// Currently defined type values for resources and queries.
|
||||
enum NsType {
|
||||
NS_T_INVALID = 0; // Cookie.
|
||||
NS_T_A = 1; // Host address.
|
||||
NS_T_NS = 2; // Authoritative server.
|
||||
NS_T_MD = 3; // Mail destination.
|
||||
NS_T_MF = 4; // Mail forwarder.
|
||||
NS_T_CNAME = 5; // Canonical name.
|
||||
NS_T_SOA = 6; // Start of authority zone.
|
||||
NS_T_MB = 7; // Mailbox domain name.
|
||||
NS_T_MG = 8; // Mail group member.
|
||||
NS_T_MR = 9; // Mail rename name.
|
||||
NS_T_NULL = 10; // Null resource record.
|
||||
NS_T_WKS = 11; // Well known service.
|
||||
NS_T_PTR = 12; // Domain name pointer.
|
||||
NS_T_HINFO = 13; // Host information.
|
||||
NS_T_MINFO = 14; // Mailbox information.
|
||||
NS_T_MX = 15; // Mail routing information.
|
||||
NS_T_TXT = 16; // Text strings.
|
||||
NS_T_RP = 17; // Responsible person.
|
||||
NS_T_AFSDB = 18; // AFS cell database.
|
||||
NS_T_X25 = 19; // X_25 calling address.
|
||||
NS_T_ISDN = 20; // ISDN calling address.
|
||||
NS_T_RT = 21; // Router.
|
||||
NS_T_NSAP = 22; // NSAP address.
|
||||
NS_T_NSAP_PTR = 23; // Reverse NSAP lookup (deprecated).
|
||||
NS_T_SIG = 24; // Security signature.
|
||||
NS_T_KEY = 25; // Security key.
|
||||
NS_T_PX = 26; // X.400 mail mapping.
|
||||
NS_T_GPOS = 27; // Geographical position (withdrawn).
|
||||
NS_T_AAAA = 28; // IPv6 Address.
|
||||
NS_T_LOC = 29; // Location Information.
|
||||
NS_T_NXT = 30; // Next domain (security).
|
||||
NS_T_EID = 31; // Endpoint identifier.
|
||||
NS_T_NIMLOC = 32; // Nimrod Locator.
|
||||
NS_T_SRV = 33; // Server Selection.
|
||||
NS_T_ATMA = 34; // ATM Address
|
||||
NS_T_NAPTR = 35; // Naming Authority PoinTeR
|
||||
NS_T_KX = 36; // Key Exchange
|
||||
NS_T_CERT = 37; // Certification record
|
||||
NS_T_A6 = 38; // IPv6 address (experimental)
|
||||
NS_T_DNAME = 39; // Non-terminal DNAME
|
||||
NS_T_SINK = 40; // Kitchen sink (experimentatl)
|
||||
NS_T_OPT = 41; // EDNS0 option (meta-RR)
|
||||
NS_T_APL = 42; // Address prefix list (RFC 3123)
|
||||
NS_T_DS = 43; // Delegation Signer
|
||||
NS_T_SSHFP = 44; // SSH Fingerprint
|
||||
NS_T_IPSECKEY = 45; // IPSEC Key
|
||||
NS_T_RRSIG = 46; // RRset Signature
|
||||
NS_T_NSEC = 47; // Negative security
|
||||
NS_T_DNSKEY = 48; // DNS Key
|
||||
NS_T_DHCID = 49; // Dynamic host configuratin identifier
|
||||
NS_T_NSEC3 = 50; // Negative security type 3
|
||||
NS_T_NSEC3PARAM = 51; // Negative security type 3 parameters
|
||||
NS_T_HIP = 55; // Host Identity Protocol
|
||||
NS_T_SPF = 99; // Sender Policy Framework
|
||||
NS_T_TKEY = 249; // Transaction key
|
||||
NS_T_TSIG = 250; // Transaction signature.
|
||||
NS_T_IXFR = 251; // Incremental zone transfer.
|
||||
NS_T_AXFR = 252; // Transfer zone of authority.
|
||||
NS_T_MAILB = 253; // Transfer mailbox records.
|
||||
NS_T_MAILA = 254; // Transfer mail agent records.
|
||||
NS_T_ANY = 255; // Wildcard match.
|
||||
NS_T_ZXFR = 256; // BIND-specific, nonstandard.
|
||||
NS_T_DLV = 32769; // DNSSEC look-aside validatation.
|
||||
NS_T_MAX = 65536;
|
||||
}
|
||||
|
||||
enum IpVersion {
|
||||
IV_UNKNOWN = 0;
|
||||
IV_IPV4 = 1;
|
||||
IV_IPV6 = 2;
|
||||
}
|
||||
|
||||
enum Protocol {
|
||||
PROTO_UNKNOWN = 0;
|
||||
PROTO_UDP = 1;
|
||||
PROTO_TCP = 2;
|
||||
PROTO_DOT = 3;
|
||||
}
|
||||
|
||||
enum PrivateDnsModes {
|
||||
PDM_UNKNOWN = 0;
|
||||
PDM_OFF = 1;
|
||||
PDM_OPPORTUNISTIC = 2;
|
||||
PDM_STRICT = 3;
|
||||
}
|
||||
|
||||
enum NetworkType {
|
||||
NT_UNKNOWN = 0;
|
||||
// Indicates this network uses a Cellular transport.
|
||||
NT_CELLULAR = 1;
|
||||
// Indicates this network uses a Wi-Fi transport.
|
||||
NT_WIFI = 2;
|
||||
// Indicates this network uses a Bluetooth transport.
|
||||
NT_BLUETOOTH = 3;
|
||||
// Indicates this network uses an Ethernet transport.
|
||||
NT_ETHERNET = 4;
|
||||
// Indicates this network uses a VPN transport, now deprecated.
|
||||
NT_VPN = 5 [deprecated=true];
|
||||
// Indicates this network uses a Wi-Fi Aware transport.
|
||||
NT_WIFI_AWARE = 6;
|
||||
// Indicates this network uses a LoWPAN transport.
|
||||
NT_LOWPAN = 7;
|
||||
// Indicates this network uses a Cellular+VPN transport.
|
||||
NT_CELLULAR_VPN = 8;
|
||||
// Indicates this network uses a Wi-Fi+VPN transport.
|
||||
NT_WIFI_VPN = 9;
|
||||
// Indicates this network uses a Bluetooth+VPN transport.
|
||||
NT_BLUETOOTH_VPN = 10;
|
||||
// Indicates this network uses an Ethernet+VPN transport.
|
||||
NT_ETHERNET_VPN = 11;
|
||||
// Indicates this network uses a Wi-Fi+Cellular+VPN transport.
|
||||
NT_WIFI_CELLULAR_VPN = 12;
|
||||
}
|
||||
|
||||
enum CacheStatus{
|
||||
// the cache can't handle that kind of queries.
|
||||
// or the answer buffer is too small.
|
||||
CS_UNSUPPORTED = 0;
|
||||
// the cache doesn't know about this query.
|
||||
CS_NOTFOUND = 1;
|
||||
// the cache found the answer.
|
||||
CS_FOUND = 2;
|
||||
// Don't do anything on cache.
|
||||
CS_SKIP = 3;
|
||||
}
|
||||
|
||||
// The enum LinuxErrno is defined in the following 2 files.
|
||||
// 1. bionic/libc/kernel/uapi/asm-generic/errno-base.h
|
||||
// 2. bionic/libc/kernel/uapi/asm-generic/errno.h
|
||||
enum LinuxErrno {
|
||||
SYS_NO_ERROR = 0;
|
||||
SYS_EPERM = 1; // Not super-user
|
||||
SYS_ENOENT = 2; // No such file or directory
|
||||
SYS_ESRCH = 3; // No such process
|
||||
SYS_EINTR = 4; // Interrupted system call
|
||||
SYS_EIO = 5; // I/O error
|
||||
SYS_ENXIO = 6; // No such device or address
|
||||
SYS_E2BIG = 7; // Arg list too long
|
||||
SYS_ENOEXEC = 8; // Exec format error
|
||||
SYS_EBADF = 9; // Bad file number
|
||||
SYS_ECHILD = 10; // No children
|
||||
SYS_EAGAIN = 11; // No more processes
|
||||
SYS_ENOMEM = 12; // Not enough core
|
||||
SYS_EACCES = 13; // Permission denied
|
||||
SYS_EFAULT = 14; // Bad address
|
||||
SYS_ENOTBLK = 15; // Block device required
|
||||
SYS_EBUSY = 16; // Mount device busy
|
||||
SYS_EEXIST = 17; // File exists
|
||||
SYS_EXDEV = 18; // Cross-device link
|
||||
SYS_ENODEV = 19; // No such device
|
||||
SYS_ENOTDIR = 20; // Not a directory
|
||||
SYS_EISDIR = 21; // Is a directory
|
||||
SYS_EINVAL = 22; // Invalid argument
|
||||
SYS_ENFILE = 23; // Too many open files in system
|
||||
SYS_EMFILE = 24; // Too many open files
|
||||
SYS_ENOTTY = 25; // Not a typewriter
|
||||
SYS_ETXTBSY = 26; // Text file busy
|
||||
SYS_EFBIG = 27; // File too large
|
||||
SYS_ENOSPC = 28; // No space left on device
|
||||
SYS_ESPIPE = 29; // Illegal seek
|
||||
SYS_EROFS = 30; // Read only file system
|
||||
SYS_EMLINK = 31; // Too many links
|
||||
SYS_EPIPE = 32; // Broken pipe
|
||||
SYS_EDOM = 33; // Math arg out of domain of func
|
||||
SYS_ERANGE = 34; // Math result not representable
|
||||
SYS_EDEADLOCK = 35; // File locking deadlock error
|
||||
SYS_ENAMETOOLONG = 36; // File or path name too long
|
||||
SYS_ENOLCK = 37; // No record locks available
|
||||
SYS_ENOSYS = 38; // Function not implemented
|
||||
SYS_ENOTEMPTY = 39; // Directory not empty
|
||||
SYS_ELOOP = 40; // Too many symbolic links
|
||||
SYS_ENOMSG = 42; // No message of desired type
|
||||
SYS_EIDRM = 43; // Identifier removed
|
||||
SYS_ECHRNG = 44; // Channel number out of range
|
||||
SYS_EL2NSYNC = 45; // Level 2 not synchronized
|
||||
SYS_EL3HLT = 46; // Level 3 halted
|
||||
SYS_EL3RST = 47; // Level 3 reset
|
||||
SYS_ELNRNG = 48; // Link number out of range
|
||||
SYS_EUNATCH = 49; // rotocol driver not attached
|
||||
SYS_ENOCSI = 50; // No CSI structure available
|
||||
SYS_EL2HLT = 51; // Level 2 halted
|
||||
SYS_EBADE = 52; // Invalid exchange
|
||||
SYS_EBADR = 53; // Invalid request descriptor
|
||||
SYS_EXFULL = 54; // Exchange full
|
||||
SYS_ENOANO = 55; // No anode
|
||||
SYS_EBADRQC = 56; // Invalid request code
|
||||
SYS_EBADSLT = 57; // Invalid slot
|
||||
SYS_EBFONT = 59; // Bad font file fmt
|
||||
SYS_ENOSTR = 60; // Device not a stream
|
||||
SYS_ENODATA = 61; // No data (for no delay io)
|
||||
SYS_ETIME = 62; // Timer expired
|
||||
SYS_ENOSR = 63; // Out of streams resources
|
||||
SYS_ENONET = 64; // Machine is not on the network
|
||||
SYS_ENOPKG = 65; // Package not installed
|
||||
SYS_EREMOTE = 66; // The object is remote
|
||||
SYS_ENOLINK = 67; // The link has been severed
|
||||
SYS_EADV = 68; // Advertise error
|
||||
SYS_ESRMNT = 69; // Srmount error
|
||||
SYS_ECOMM = 70; // Communication error on send
|
||||
SYS_EPROTO = 71; // Protocol error
|
||||
SYS_EMULTIHOP = 72; // Multihop attempted
|
||||
SYS_EDOTDOT = 73; // Cross mount point (not really error)
|
||||
SYS_EBADMSG = 74; // Trying to read unreadable message
|
||||
SYS_EOVERFLOW = 75; // Value too large for defined data type
|
||||
SYS_ENOTUNIQ = 76; // Given log. name not unique
|
||||
SYS_EBADFD = 77; // f.d. invalid for this operation
|
||||
SYS_EREMCHG = 78; // Remote address changed
|
||||
SYS_ELIBACC = 79; // Can't access a needed shared lib
|
||||
SYS_ELIBBAD = 80; // Accessing a corrupted shared lib
|
||||
SYS_ELIBSCN = 81; // .lib section in a.out corrupted
|
||||
SYS_ELIBMAX = 82; // Attempting to link in too many libs
|
||||
SYS_ELIBEXEC = 83; // Attempting to exec a shared library
|
||||
SYS_EILSEQ = 84;
|
||||
SYS_ERESTART = 85;
|
||||
SYS_ESTRPIPE = 86;
|
||||
SYS_EUSERS = 87;
|
||||
SYS_ENOTSOCK = 88; // Socket operation on non-socket
|
||||
SYS_EDESTADDRREQ = 89; // Destination address required
|
||||
SYS_EMSGSIZE = 90; // Message too long
|
||||
SYS_EPROTOTYPE = 91; // Protocol wrong type for socket
|
||||
SYS_ENOPROTOOPT = 92; // Protocol not available
|
||||
SYS_EPROTONOSUPPORT = 93; // Unknown protocol
|
||||
SYS_ESOCKTNOSUPPORT = 94; // Socket type not supported
|
||||
SYS_EOPNOTSUPP = 95; // Operation not supported on transport endpoint
|
||||
SYS_EPFNOSUPPORT = 96; // Protocol family not supported
|
||||
SYS_EAFNOSUPPORT = 97; // Address family not supported by protocol family
|
||||
SYS_EADDRINUSE = 98; // Address already in use
|
||||
SYS_EADDRNOTAVAIL = 99; // Address not available
|
||||
SYS_ENETDOWN = 100; // Network interface is not configured
|
||||
SYS_ENETUNREACH = 101; // Network is unreachable
|
||||
SYS_ENETRESET = 102;
|
||||
SYS_ECONNABORTED = 103; // Connection aborted
|
||||
SYS_ECONNRESET = 104; // Connection reset by peer
|
||||
SYS_ENOBUFS = 105; // No buffer space available
|
||||
SYS_EISCONN = 106; // Socket is already connected
|
||||
SYS_ENOTCONN = 107; // Socket is not connected
|
||||
SYS_ESHUTDOWN = 108; // Can't send after socket shutdown
|
||||
SYS_ETOOMANYREFS = 109;
|
||||
SYS_ETIMEDOUT = 110; // Connection timed out
|
||||
SYS_ECONNREFUSED = 111; // Connection refused
|
||||
SYS_EHOSTDOWN = 112; // Host is down
|
||||
SYS_EHOSTUNREACH = 113; // Host is unreachable
|
||||
SYS_EALREADY = 114; // Socket already connected
|
||||
SYS_EINPROGRESS = 115; // Connection already in progress
|
||||
SYS_ESTALE = 116;
|
||||
SYS_EUCLEAN = 117;
|
||||
SYS_ENOTNAM = 118;
|
||||
SYS_ENAVAIL = 119;
|
||||
SYS_EISNAM = 120;
|
||||
SYS_EREMOTEIO = 121;
|
||||
SYS_EDQUOT = 122;
|
||||
SYS_ENOMEDIUM = 123; // No medium (in tape drive)
|
||||
SYS_EMEDIUMTYPE = 124;
|
||||
SYS_ECANCELED = 125;
|
||||
SYS_ENOKEY = 126;
|
||||
SYS_EKEYEXPIRED = 127;
|
||||
SYS_EKEYREVOKED = 128;
|
||||
SYS_EKEYREJECTED = 129;
|
||||
SYS_EOWNERDEAD = 130;
|
||||
SYS_ENOTRECOVERABLE = 131;
|
||||
SYS_ERFKILL = 132;
|
||||
SYS_EHWPOISON = 133;
|
||||
}
|
||||
|
||||
message DnsQueryEvent {
|
||||
optional android.stats.dnsresolver.NsRcode rcode = 1;
|
||||
|
||||
optional android.stats.dnsresolver.NsType type = 2;
|
||||
|
||||
optional android.stats.dnsresolver.CacheStatus cache_hit = 3;
|
||||
|
||||
optional android.stats.dnsresolver.IpVersion ip_version = 4;
|
||||
|
||||
optional android.stats.dnsresolver.Protocol protocol = 5;
|
||||
|
||||
// Number of DNS query retry times
|
||||
optional int32 retry_times = 6;
|
||||
|
||||
// Ordinal number of name server.
|
||||
optional int32 dns_server_index = 7;
|
||||
|
||||
// Used only by TCP and DOT. True for new connections.
|
||||
optional bool connected = 8;
|
||||
|
||||
optional int32 latency_micros = 9;
|
||||
|
||||
optional android.stats.dnsresolver.LinuxErrno linux_errno = 10;
|
||||
}
|
||||
|
||||
message DnsQueryEvents {
|
||||
repeated DnsQueryEvent dns_query_event = 1;
|
||||
}
|
||||
@@ -1,197 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.stats.docsui;
|
||||
option java_multiple_files = true;
|
||||
|
||||
enum LaunchAction {
|
||||
UNKNOWN = 0;
|
||||
OPEN = 1;
|
||||
CREATE = 2;
|
||||
GET_CONTENT = 3;
|
||||
OPEN_TREE = 4;
|
||||
PICK_COPY_DEST = 5;
|
||||
BROWSE = 6;
|
||||
OTHER = 7;
|
||||
}
|
||||
|
||||
enum MimeType {
|
||||
MIME_UNKNOWN = 0;
|
||||
MIME_NONE = 1;
|
||||
MIME_ANY = 2;
|
||||
MIME_APPLICATION = 3;
|
||||
MIME_AUDIO = 4;
|
||||
MIME_IMAGE = 5;
|
||||
MIME_MESSAGE = 6;
|
||||
MIME_MULTIPART = 7;
|
||||
MIME_TEXT = 8;
|
||||
MIME_VIDEO = 9;
|
||||
MIME_OTHER = 10;
|
||||
}
|
||||
|
||||
enum Root {
|
||||
ROOT_UNKNOWN = 0;
|
||||
ROOT_NONE = 1;
|
||||
ROOT_OTHER_DOCS_PROVIDER = 2;
|
||||
ROOT_AUDIO = 3;
|
||||
ROOT_DEVICE_STORAGE = 4;
|
||||
ROOT_DOWNLOADS = 5;
|
||||
ROOT_HOME = 6;
|
||||
ROOT_IMAGES = 7;
|
||||
ROOT_RECENTS = 8;
|
||||
ROOT_VIDEOS = 9;
|
||||
ROOT_MTP = 10;
|
||||
ROOT_THIRD_PARTY_APP = 11;
|
||||
ROOT_DOCUMENTS = 12;
|
||||
}
|
||||
|
||||
enum ContextScope {
|
||||
SCOPE_UNKNOWN = 0;
|
||||
SCOPE_FILES = 1;
|
||||
SCOPE_PICKER = 2;
|
||||
}
|
||||
|
||||
enum Provider {
|
||||
PROVIDER_UNKNOWN = 0;
|
||||
PROVIDER_SYSTEM = 1;
|
||||
PROVIDER_EXTERNAL = 2;
|
||||
}
|
||||
|
||||
enum FileOperation {
|
||||
OP_UNKNOWN = 0;
|
||||
OP_OTHER = 1;
|
||||
OP_COPY = 2;
|
||||
OP_COPY_INTRA_PROVIDER = 3;
|
||||
OP_COPY_SYSTEM_PROVIDER = 4;
|
||||
OP_COPY_EXTERNAL_PROVIDER = 5;
|
||||
OP_MOVE = 6;
|
||||
OP_MOVE_INTRA_PROVIDER = 7;
|
||||
OP_MOVE_SYSTEM_PROVIDER = 8;
|
||||
OP_MOVE_EXTERNAL_PROVIDER = 9;
|
||||
OP_DELETE = 10;
|
||||
OP_RENAME = 11;
|
||||
OP_CREATE_DIR = 12;
|
||||
OP_OTHER_ERROR = 13;
|
||||
OP_DELETE_ERROR = 14;
|
||||
OP_MOVE_ERROR = 15;
|
||||
OP_COPY_ERROR = 16;
|
||||
OP_RENAME_ERROR = 17;
|
||||
OP_CREATE_DIR_ERROR = 18;
|
||||
OP_COMPRESS_INTRA_PROVIDER = 19;
|
||||
OP_COMPRESS_SYSTEM_PROVIDER = 20;
|
||||
OP_COMPRESS_EXTERNAL_PROVIDER = 21;
|
||||
OP_EXTRACT_INTRA_PROVIDER = 22;
|
||||
OP_EXTRACT_SYSTEM_PROVIDER = 23;
|
||||
OP_EXTRACT_EXTERNAL_PROVIDER = 24;
|
||||
OP_COMPRESS_ERROR = 25;
|
||||
OP_EXTRACT_ERROR = 26;
|
||||
}
|
||||
|
||||
enum SubFileOperation {
|
||||
SUB_OP_UNKNOWN = 0;
|
||||
SUB_OP_QUERY_DOC = 1;
|
||||
SUB_OP_QUERY_CHILD = 2;
|
||||
SUB_OP_OPEN_FILE = 3;
|
||||
SUB_OP_READ_FILE = 4;
|
||||
SUB_OP_CREATE_DOC = 5;
|
||||
SUB_OP_WRITE_FILE = 6;
|
||||
SUB_OP_DELETE_DOC = 7;
|
||||
SUB_OP_OBTAIN_STREAM_TYPE = 8;
|
||||
SUB_OP_QUICK_MOVE = 9;
|
||||
SUB_OP_QUICK_COPY = 10;
|
||||
}
|
||||
|
||||
enum CopyMoveOpMode {
|
||||
MODE_UNKNOWN = 0;
|
||||
MODE_PROVIDER = 1;
|
||||
MODE_CONVERTED = 2;
|
||||
MODE_CONVENTIONAL = 3;
|
||||
}
|
||||
|
||||
enum Authority {
|
||||
AUTH_UNKNOWN = 0;
|
||||
AUTH_OTHER = 1;
|
||||
AUTH_MEDIA = 2;
|
||||
AUTH_STORAGE_INTERNAL = 3;
|
||||
AUTH_STORAGE_EXTERNAL = 4;
|
||||
AUTH_DOWNLOADS = 5;
|
||||
AUTH_MTP = 6;
|
||||
}
|
||||
|
||||
enum UserAction {
|
||||
ACTION_UNKNOWN = 0;
|
||||
ACTION_OTHER = 1;
|
||||
ACTION_GRID = 2;
|
||||
ACTION_LIST = 3;
|
||||
ACTION_SORT_NAME = 4;
|
||||
ACTION_SORT_DATE = 5;
|
||||
ACTION_SORT_SIZE = 6;
|
||||
ACTION_SORT_TYPE = 7;
|
||||
ACTION_SEARCH = 8;
|
||||
ACTION_SHOW_SIZE = 9;
|
||||
ACTION_HIDE_SIZE = 10;
|
||||
ACTION_SETTINGS = 11;
|
||||
ACTION_COPY_TO = 12;
|
||||
ACTION_MOVE_TO = 13;
|
||||
ACTION_DELETE = 14;
|
||||
ACTION_RENAME = 15;
|
||||
ACTION_CREATE_DIR = 16;
|
||||
ACTION_SELECT_ALL = 17;
|
||||
ACTION_SHARE = 18;
|
||||
ACTION_OPEN = 19;
|
||||
ACTION_SHOW_ADVANCED = 20;
|
||||
ACTION_HIDE_ADVANCED = 21;
|
||||
ACTION_NEW_WINDOW = 22;
|
||||
ACTION_PASTE_CLIPBOARD = 23;
|
||||
ACTION_COPY_CLIPBOARD = 24;
|
||||
ACTION_DRAG_N_DROP = 25;
|
||||
ACTION_DRAG_N_DROP_MULTI_WINDOW = 26;
|
||||
ACTION_CUT_CLIPBOARD = 27;
|
||||
ACTION_COMPRESS = 28;
|
||||
ACTION_EXTRACT_TO = 29;
|
||||
ACTION_VIEW_IN_APPLICATION = 30;
|
||||
ACTION_INSPECTOR = 31;
|
||||
ACTION_SEARCH_CHIP = 32;
|
||||
ACTION_SEARCH_HISTORY = 33;
|
||||
}
|
||||
|
||||
enum InvalidScopedAccess {
|
||||
SCOPED_DIR_ACCESS_UNKNOWN = 0;
|
||||
SCOPED_DIR_ACCESS_INVALID_ARGUMENTS = 1;
|
||||
SCOPED_DIR_ACCESS_INVALID_DIRECTORY = 2;
|
||||
SCOPED_DIR_ACCESS_ERROR = 3;
|
||||
SCOPED_DIR_ACCESS_DEPRECATED = 4;
|
||||
}
|
||||
|
||||
enum SearchType {
|
||||
TYPE_UNKNOWN = 0;
|
||||
TYPE_CHIP_IMAGES = 1;
|
||||
TYPE_CHIP_AUDIOS = 2;
|
||||
TYPE_CHIP_VIDEOS = 3;
|
||||
TYPE_CHIP_DOCS = 4;
|
||||
TYPE_SEARCH_HISTORY = 5;
|
||||
TYPE_SEARCH_STRING = 6;
|
||||
TYPE_CHIP_LARGE_FILES = 7;
|
||||
TYPE_CHIP_FROM_THIS_WEEK = 8;
|
||||
}
|
||||
|
||||
enum SearchMode {
|
||||
SEARCH_UNKNOWN = 0;
|
||||
SEARCH_KEYWORD = 1;
|
||||
SEARCH_CHIPS = 2;
|
||||
SEARCH_KEYWORD_N_CHIPS = 3;
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats;
|
||||
option java_outer_classname = "StatsEnums";
|
||||
|
||||
enum EventType {
|
||||
// Unknown.
|
||||
TYPE_UNKNOWN = 0;
|
||||
CONTENT_SUGGESTIONS_CLASSIFY_CONTENT_CALL_SUCCEEDED = 1;
|
||||
CONTENT_SUGGESTIONS_CLASSIFY_CONTENT_CALL_FAILED = 2;
|
||||
CONTENT_SUGGESTIONS_SUGGEST_CONTENT_CALL_SUCCEEDED = 3;
|
||||
CONTENT_SUGGESTIONS_SUGGEST_CONTENT_CALL_FAILED = 4;
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats.hdmi;
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "HdmiStatsEnums";
|
||||
|
||||
// HDMI CEC logical addresses.
|
||||
// Values correspond to "CEC Table 5 Logical Addresses" in the HDMI CEC 1.4b spec.
|
||||
enum LogicalAddress {
|
||||
LOGICAL_ADDRESS_UNKNOWN = -1;
|
||||
TV = 0;
|
||||
RECORDING_DEVICE_1 = 1;
|
||||
RECORDING_DEVICE_2 = 2;
|
||||
TUNER_1 = 3;
|
||||
PLAYBACK_DEVICE_1 = 4;
|
||||
AUDIO_SYSTEM = 5;
|
||||
TUNER_2 = 6;
|
||||
TUNER_3 = 7;
|
||||
PLAYBACK_DEVICE_2 = 8;
|
||||
RECORDING_DEVICE_3 = 9;
|
||||
TUNER_4 = 10;
|
||||
PLAYBACK_DEVICE_3 = 11;
|
||||
RESERVED_1 = 12;
|
||||
RESERVED_2 = 13;
|
||||
SPECIFIC_USE = 14;
|
||||
UNREGISTERED_OR_BROADCAST = 15;
|
||||
}
|
||||
|
||||
// The relationship between two paths.
|
||||
// Values correspond exactly to PathRelationship in com.android.server.hdmi.Constants.
|
||||
enum PathRelationship {
|
||||
RELATIONSHIP_TO_ACTIVE_SOURCE_UNKNOWN = 0;
|
||||
DIFFERENT_BRANCH = 1;
|
||||
ANCESTOR = 2;
|
||||
DESCENDANT = 3;
|
||||
SIBLING = 4;
|
||||
SAME = 5;
|
||||
}
|
||||
|
||||
// The result of attempting to send a HDMI CEC message.
|
||||
// Values correspond to the constants in android.hardware.tv.cec.V1_0.SendMessageResult,
|
||||
// offset by 10.
|
||||
enum SendMessageResult {
|
||||
SEND_MESSAGE_RESULT_UNKNOWN = 0;
|
||||
SUCCESS = 10;
|
||||
NACK = 11;
|
||||
BUSY = 12;
|
||||
FAIL = 13;
|
||||
}
|
||||
|
||||
// Whether a HDMI CEC message is sent from this device, to this device, or neither.
|
||||
enum MessageDirection {
|
||||
MESSAGE_DIRECTION_UNKNOWN = 0;
|
||||
MESSAGE_DIRECTION_OTHER = 1; // None of the other options.
|
||||
OUTGOING = 2; // Sent from this device.
|
||||
INCOMING = 3; // Sent to this device.
|
||||
TO_SELF = 4; // Sent from this device, to this device. Indicates a bug.
|
||||
}
|
||||
|
||||
// User control commands. Each value can represent an individual command, or a set of commands.
|
||||
// Values correspond to "CEC Table 30 UI Command Codes" in the HDMI CEC 1.4b spec, offset by 0x100.
|
||||
enum UserControlPressedCommand {
|
||||
USER_CONTROL_PRESSED_COMMAND_UNKNOWN = 0;
|
||||
|
||||
// Represents all codes that are not represented by another value.
|
||||
USER_CONTROL_PRESSED_COMMAND_OTHER = 1;
|
||||
|
||||
// Represents all number codes (codes 0x1E through 0x29).
|
||||
NUMBER = 2;
|
||||
|
||||
// Navigation
|
||||
SELECT = 0x100;
|
||||
UP = 0x101;
|
||||
DOWN = 0x102;
|
||||
LEFT = 0x103;
|
||||
RIGHT = 0x104;
|
||||
RIGHT_UP = 0x105;
|
||||
RIGHT_DOWN = 0x106;
|
||||
LEFT_UP = 0x107;
|
||||
LEFT_DOWN = 0x108;
|
||||
EXIT = 0x10D;
|
||||
|
||||
// Volume
|
||||
VOLUME_UP = 0x141;
|
||||
VOLUME_DOWN = 0x142;
|
||||
VOLUME_MUTE = 0x143;
|
||||
|
||||
// Power
|
||||
POWER = 0x140;
|
||||
POWER_TOGGLE = 0x16B;
|
||||
POWER_OFF = 0x16C;
|
||||
POWER_ON = 0x16D;
|
||||
}
|
||||
|
||||
// Reason parameter of the <Feature Abort> message.
|
||||
// Values correspond to "CEC Table 29 Operand Descriptions" in the HDMI CEC 1.4b spec,
|
||||
// offset by 10.
|
||||
enum FeatureAbortReason {
|
||||
FEATURE_ABORT_REASON_UNKNOWN = 0;
|
||||
UNRECOGNIZED_OPCODE = 10;
|
||||
NOT_IN_CORRECT_MODE_TO_RESPOND = 11;
|
||||
CANNOT_PROVIDE_SOURCE = 12;
|
||||
INVALID_OPERAND = 13;
|
||||
REFUSED = 14;
|
||||
UNABLE_TO_DETERMINE = 15;
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats.intelligence;
|
||||
option java_outer_classname = "IntelligenceStatsEnums";
|
||||
|
||||
enum Status {
|
||||
// The value wasn't set.
|
||||
// protoc requires enum values to be unique by package rather than enum type.
|
||||
// This forces us to prefix the enum values.
|
||||
STATUS_UNKNOWN = 0;
|
||||
// The event succeeded.
|
||||
STATUS_SUCCEEDED = 1;
|
||||
// The event had an error.
|
||||
STATUS_FAILED = 2;
|
||||
}
|
||||
|
||||
enum EventType {
|
||||
// The value wasn't set.
|
||||
EVENT_UNKNOWN = 0;
|
||||
// ContentSuggestionsService classifyContentSelections call.
|
||||
EVENT_CONTENT_SUGGESTIONS_CLASSIFY_CONTENT_CALL = 1;
|
||||
// ContentSuggestionsService suggestContentSelections call.
|
||||
EVENT_CONTENT_SUGGESTIONS_SUGGEST_CONTENT_CALL = 2;
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
// Copyright (C) 2018 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
java_library {
|
||||
name: "launcherprotosnano",
|
||||
proto: {
|
||||
type: "nano",
|
||||
output_params: ["store_unknown_fields=true"],
|
||||
include_dirs: ["external/protobuf/src"],
|
||||
},
|
||||
|
||||
sdk_version: "current",
|
||||
srcs: [
|
||||
"*.proto",
|
||||
],
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "launcherprotoslite",
|
||||
proto: {
|
||||
type: "lite",
|
||||
include_dirs: ["external/protobuf/src"],
|
||||
},
|
||||
|
||||
sdk_version: "current",
|
||||
srcs: [
|
||||
"*.proto",
|
||||
],
|
||||
}
|
||||
@@ -1,88 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.stats.launcher;
|
||||
option java_multiple_files = true;
|
||||
|
||||
enum LauncherAction {
|
||||
DEFAULT_ACTION = 0;
|
||||
LAUNCH_APP = 1;
|
||||
LAUNCH_TASK = 2;
|
||||
DISMISS_TASK = 3;
|
||||
LONGPRESS = 4;
|
||||
DRAGDROP = 5;
|
||||
SWIPE_UP = 6;
|
||||
SWIPE_DOWN = 7;
|
||||
SWIPE_LEFT = 8;
|
||||
SWIPE_RIGHT = 9;
|
||||
}
|
||||
|
||||
enum LauncherState {
|
||||
LAUNCHER_STATE_UNSPECIFIED = 0;
|
||||
BACKGROUND = 1;
|
||||
HOME = 2;
|
||||
OVERVIEW = 3;
|
||||
ALLAPPS = 4;
|
||||
UNCHANGED = 5;
|
||||
}
|
||||
|
||||
message LauncherTarget {
|
||||
enum Type {
|
||||
NONE = 0;
|
||||
ITEM_TYPE = 1;
|
||||
CONTROL_TYPE = 2;
|
||||
CONTAINER_TYPE = 3;
|
||||
}
|
||||
enum Item {
|
||||
DEFAULT_ITEM = 0;
|
||||
APP_ICON = 1;
|
||||
SHORTCUT = 2;
|
||||
WIDGET = 3;
|
||||
FOLDER_ICON = 4;
|
||||
DEEPSHORTCUT = 5;
|
||||
SEARCHBOX = 6;
|
||||
EDITTEXT = 7;
|
||||
NOTIFICATION = 8;
|
||||
TASK = 9;
|
||||
}
|
||||
enum Container {
|
||||
DEFAULT_CONTAINER = 0;
|
||||
HOTSEAT = 1;
|
||||
FOLDER = 2;
|
||||
PREDICTION = 3;
|
||||
SEARCHRESULT = 4;
|
||||
}
|
||||
enum Control {
|
||||
DEFAULT_CONTROL = 0;
|
||||
MENU = 1;
|
||||
UNINSTALL = 2;
|
||||
REMOVE = 3;
|
||||
}
|
||||
optional Type type = 1;
|
||||
optional Item item = 2;
|
||||
optional Container container = 3;
|
||||
optional Control control = 4;
|
||||
optional string launch_component = 5;
|
||||
optional int32 page_id = 6;
|
||||
optional int32 grid_x = 7;
|
||||
optional int32 grid_y = 8;
|
||||
}
|
||||
|
||||
message LauncherExtension {
|
||||
repeated LauncherTarget src_target = 1;
|
||||
repeated LauncherTarget dst_target = 2;
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats.location;
|
||||
option java_outer_classname = "LocationStatsEnums";
|
||||
|
||||
|
||||
// APIs from LocationManagerService
|
||||
enum LocationManagerServiceApi {
|
||||
API_UNKNOWN = 0;
|
||||
API_REQUEST_LOCATION_UPDATES = 1;
|
||||
API_ADD_GNSS_MEASUREMENTS_LISTENER = 2;
|
||||
API_REGISTER_GNSS_STATUS_CALLBACK = 3;
|
||||
API_REQUEST_GEOFENCE = 4;
|
||||
API_SEND_EXTRA_COMMAND = 5;
|
||||
}
|
||||
|
||||
enum UsageState {
|
||||
USAGE_STARTED = 0;
|
||||
USAGE_ENDED = 1;
|
||||
}
|
||||
|
||||
// Type of location providers
|
||||
enum ProviderType {
|
||||
PROVIDER_UNKNOWN = 0;
|
||||
PROVIDER_NETWORK = 1;
|
||||
PROVIDER_GPS = 2;
|
||||
PROVIDER_PASSIVE = 3;
|
||||
PROVIDER_FUSED = 4;
|
||||
}
|
||||
|
||||
// Type of Callback passed in for this API
|
||||
enum CallbackType {
|
||||
CALLBACK_UNKNOWN = 0;
|
||||
// Current API does not need a callback, e.g. sendExtraCommand
|
||||
CALLBACK_NOT_APPLICABLE = 1;
|
||||
CALLBACK_LISTENER = 2;
|
||||
CALLBACK_PENDING_INTENT = 3;
|
||||
}
|
||||
|
||||
// Possible values for mQuality field in
|
||||
// frameworks/base/location/java/android/location/LocationRequest.java
|
||||
enum LocationRequestQuality {
|
||||
QUALITY_UNKNOWN = 0;
|
||||
ACCURACY_FINE = 100;
|
||||
ACCURACY_BLOCK = 102;
|
||||
ACCURACY_CITY = 104;
|
||||
POWER_NONE = 200;
|
||||
POWER_LOW = 201;
|
||||
POWER_HIGH = 203;
|
||||
}
|
||||
|
||||
// Bucketized values for interval field in
|
||||
// frameworks/base/location/java/android/location/LocationRequest.java
|
||||
enum LocationRequestIntervalBucket {
|
||||
INTERVAL_UNKNOWN = 0;
|
||||
INTERVAL_BETWEEN_0_SEC_AND_1_SEC = 1;
|
||||
INTERVAL_BETWEEN_1_SEC_AND_5_SEC = 2;
|
||||
INTERVAL_BETWEEN_5_SEC_AND_1_MIN = 3;
|
||||
INTERVAL_BETWEEN_1_MIN_AND_10_MIN = 4;
|
||||
INTERVAL_BETWEEN_10_MIN_AND_1_HOUR = 5;
|
||||
INTERVAL_LARGER_THAN_1_HOUR = 6;
|
||||
}
|
||||
|
||||
// Bucketized values for small displacement field in
|
||||
// frameworks/base/location/java/android/location/LocationRequest.java
|
||||
// Value in meters.
|
||||
enum SmallestDisplacementBucket {
|
||||
DISTANCE_UNKNOWN = 0;
|
||||
DISTANCE_ZERO = 1;
|
||||
DISTANCE_BETWEEN_0_AND_100 = 2;
|
||||
DISTANCE_LARGER_THAN_100 = 3;
|
||||
}
|
||||
|
||||
// Bucketized values for expire_in field in
|
||||
// frameworks/base/location/java/android/location/LocationRequest.java
|
||||
enum ExpirationBucket {
|
||||
EXPIRATION_UNKNOWN = 0;
|
||||
EXPIRATION_BETWEEN_0_AND_20_SEC = 1;
|
||||
EXPIRATION_BETWEEN_20_SEC_AND_1_MIN = 2;
|
||||
EXPIRATION_BETWEEN_1_MIN_AND_10_MIN = 3;
|
||||
EXPIRATION_BETWEEN_10_MIN_AND_1_HOUR = 4;
|
||||
EXPIRATION_LARGER_THAN_1_HOUR = 5;
|
||||
EXPIRATION_NO_EXPIRY = 6;
|
||||
}
|
||||
|
||||
// Bucketized values for radius field in
|
||||
// frameworks/base/location/java/android/location/Geofence.java
|
||||
// Value in meters.
|
||||
enum GeofenceRadiusBucket {
|
||||
RADIUS_UNKNOWN = 0;
|
||||
RADIUS_BETWEEN_0_AND_100 = 1;
|
||||
RADIUS_BETWEEN_100_AND_200 = 2;
|
||||
RADIUS_BETWEEN_200_AND_300 = 3;
|
||||
RADIUS_BETWEEN_300_AND_1000 = 4;
|
||||
RADIUS_BETWEEN_1000_AND_10000 = 5;
|
||||
RADIUS_LARGER_THAN_100000 = 6;
|
||||
RADIUS_NEGATIVE = 7;
|
||||
}
|
||||
|
||||
// Caller Activity Importance.
|
||||
enum ActivityImportance {
|
||||
IMPORTANCE_UNKNOWN = 0;
|
||||
IMPORTANCE_TOP = 1;
|
||||
IMPORTANCE_FORGROUND_SERVICE = 2;
|
||||
IMPORTANCE_BACKGROUND = 3;
|
||||
}
|
||||
@@ -1,354 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats.mediametrics;
|
||||
|
||||
/**
|
||||
* Track how we arbitrate between microphone/input requests.
|
||||
* Logged from
|
||||
* frameworks/av/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
|
||||
* frameworks/av/services/mediaanalytics/statsd_audiopolicy.cpp
|
||||
* Next Tag: 10
|
||||
*/
|
||||
message AudioPolicyData {
|
||||
optional int32 status = 1;
|
||||
optional string request_source = 2;
|
||||
optional string request_package = 3;
|
||||
optional int32 request_session = 4;
|
||||
optional string request_device = 5;
|
||||
optional string active_source = 6;
|
||||
optional string active_package = 7;
|
||||
optional int32 active_session = 8;
|
||||
optional string active_device = 9;
|
||||
}
|
||||
|
||||
/**
|
||||
* Track properties of audio recording
|
||||
* Logged from
|
||||
* frameworks/av/media/libaudioclient/AudioRecord.cpp
|
||||
* frameworks/av/services/mediaanalytics/statsd_audiorecord.cpp
|
||||
* Next Tag: 16
|
||||
*/
|
||||
message AudioRecordData {
|
||||
optional string encoding = 1;
|
||||
optional string source = 2;
|
||||
optional int32 latency = 3;
|
||||
optional int32 samplerate = 4;
|
||||
optional int32 channels = 5;
|
||||
optional int64 created_millis = 6;
|
||||
optional int64 duration_millis = 7;
|
||||
optional int32 count = 8;
|
||||
optional int32 error_code = 9;
|
||||
optional string error_function = 10;
|
||||
optional int32 port_id = 11;
|
||||
optional int32 frame_count = 12;
|
||||
optional string attributes = 13;
|
||||
optional int64 channel_mask = 14;
|
||||
optional int64 start_count = 15;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Track audio thread performance data
|
||||
* Logged from
|
||||
* frameworks/av/media/libnblog/ReportPerformance.cpp
|
||||
* frameworks/av/services/mediaanalytics/statsd_audiothread.cpp
|
||||
* Next Tag: 28
|
||||
*/
|
||||
message AudioThreadData {
|
||||
optional string type = 1;
|
||||
optional int32 framecount = 2;
|
||||
optional int32 samplerate = 3;
|
||||
optional string work_millis_hist = 4;
|
||||
optional string latency_millis_hist = 5;
|
||||
optional string warmup_millis_hist = 6;
|
||||
optional int64 underruns = 7;
|
||||
optional int64 overruns = 8;
|
||||
optional int64 active_millis = 9;
|
||||
optional int64 duration_millis = 10;
|
||||
|
||||
optional int32 id = 11;
|
||||
optional int32 port_id = 12;
|
||||
optional int32 sample_rate = 13;
|
||||
optional int64 channel_mask = 14;
|
||||
optional string encoding = 15;
|
||||
optional int32 frame_count = 16;
|
||||
optional string output_device = 17;
|
||||
optional string input_device = 18;
|
||||
optional double io_jitter_mean_millis = 19;
|
||||
optional double io_jitter_stddev_millis = 20;
|
||||
optional double process_time_mean_millis = 21;
|
||||
optional double process_time_stddev_millis = 22;
|
||||
optional double timestamp_jitter_mean_millis = 23;
|
||||
optional double timestamp_jitter_stddev_millis = 24;
|
||||
optional double latency_mean_millis = 25;
|
||||
optional double latency_stddev_millis = 26;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Track audio track playback data
|
||||
* Logged from
|
||||
* frameworks/av/media/libaudioclient/AudioTrack.cpp
|
||||
* frameworks/av/services/mediaanalytics/statsd_audiotrack.cpp
|
||||
* Next Tag: 12
|
||||
*/
|
||||
message AudioTrackData {
|
||||
optional string stream_type = 1;
|
||||
optional string content_type = 2;
|
||||
optional string track_usage = 3;
|
||||
optional int32 sample_rate = 4;
|
||||
optional int64 channel_mask = 5;
|
||||
|
||||
optional int32 underrun_frames = 6;
|
||||
optional int32 startup_glitch = 7;
|
||||
|
||||
optional int32 port_id = 8;
|
||||
optional string encoding = 9;
|
||||
optional int32 frame_count = 10;
|
||||
optional string attributes = 11;
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Track Media Codec usage
|
||||
* Logged from:
|
||||
* frameworks/av/media/libstagefright/MediaCodec.cpp
|
||||
* frameworks/av/services/mediaanalytics/statsd_codec.cpp
|
||||
* Next Tag: 26
|
||||
*/
|
||||
message CodecData {
|
||||
optional string codec = 1;
|
||||
optional string mime = 2;
|
||||
optional string mode = 3;
|
||||
optional int32 encoder = 4;
|
||||
optional int32 secure = 5;
|
||||
optional int32 width = 6;
|
||||
optional int32 height = 7;
|
||||
optional int32 rotation = 8;
|
||||
optional int32 crypto = 9;
|
||||
optional int32 profile = 10;
|
||||
optional int32 level = 11;
|
||||
optional int32 max_width = 12;
|
||||
optional int32 max_height = 13;
|
||||
optional int32 error_code = 14;
|
||||
optional string error_state = 15;
|
||||
optional int64 latency_max = 16;
|
||||
optional int64 latency_min = 17;
|
||||
optional int64 latency_avg = 18;
|
||||
optional int64 latency_count = 19;
|
||||
optional int64 latency_unknown = 20;
|
||||
optional int32 queue_input_buffer_error = 21;
|
||||
optional int32 queue_secure_input_buffer_error = 22;
|
||||
optional string bitrate_mode = 23;
|
||||
optional int32 bitrate = 24;
|
||||
optional int64 lifetime_millis = 25;
|
||||
}
|
||||
|
||||
/**
|
||||
* Track Media Extractor (pulling video/audio streams out of containers) usage
|
||||
* Logged from:
|
||||
* frameworks/av/media/libstagefright/RemoteMediaExtractor.cpp
|
||||
* frameworks/av/services/mediaanalytics/statsd_extractor.cpp
|
||||
* Next Tag: 5
|
||||
*/
|
||||
message ExtractorData {
|
||||
optional string format = 1;
|
||||
optional string mime = 2;
|
||||
optional int32 tracks = 3;
|
||||
|
||||
enum EntryPoint {
|
||||
UNSET = 0; // For backwards compatibility with clients that don't
|
||||
// collect the entry point.
|
||||
SDK = 1;
|
||||
NDK_WITH_JVM = 2;
|
||||
NDK_NO_JVM = 3;
|
||||
OTHER = 4; // For extractor users that don't make use of the APIs.
|
||||
}
|
||||
|
||||
optional EntryPoint entry_point = 4 [default = UNSET];
|
||||
}
|
||||
|
||||
/**
|
||||
* Track Media Player usage
|
||||
* this handles both nuplayer and nuplayer2
|
||||
* Logged from:
|
||||
* frameworks/av/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp
|
||||
* frameworks/av/media/libmediaplayer2/nuplayer2/NuPlayer2Driver.cpp
|
||||
* frameworks/av/services/mediaanalytics/statsd_nuplayer.cpp
|
||||
* Next Tag: 21
|
||||
*/
|
||||
message NuPlayerData {
|
||||
optional string whichPlayer = 1;
|
||||
|
||||
optional string video_mime = 2;
|
||||
optional string video_codec = 3;
|
||||
optional int32 width = 4;
|
||||
optional int32 height = 5;
|
||||
optional int64 frames = 6;
|
||||
optional int64 frames_dropped = 7;
|
||||
optional double framerate = 8;
|
||||
optional string audio_mime = 9;
|
||||
optional string audio_codec = 10;
|
||||
optional int64 duration_millis = 11;
|
||||
optional int64 playing_millis = 12;
|
||||
optional int32 error = 13;
|
||||
optional int32 error_code = 14;
|
||||
optional string error_state = 15;
|
||||
optional string data_source_type = 16;
|
||||
optional int64 rebuffering_millis = 17;
|
||||
optional int32 rebuffers = 18;
|
||||
optional int32 rebuffer_at_exit = 19;
|
||||
optional int64 frames_dropped_startup = 20;
|
||||
}
|
||||
|
||||
/**
|
||||
* Track information about recordings (e.g. camcorder)
|
||||
* Logged from
|
||||
* frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp
|
||||
* frameworks/av/services/mediaanalytics/if_statsd.cpp
|
||||
* Next Tag: 22
|
||||
*/
|
||||
message RecorderData {
|
||||
optional string audio_mime = 1;
|
||||
optional string video_mime = 2;
|
||||
optional int32 video_profile = 3;
|
||||
optional int32 video_level = 4;
|
||||
optional int32 width = 5;
|
||||
optional int32 height = 6;
|
||||
optional int32 rotation = 7;
|
||||
optional int32 framerate = 8;
|
||||
optional int32 capture_fps = 9;
|
||||
optional double capture_fps_enable = 10;
|
||||
optional int64 duration_millis = 11;
|
||||
optional int64 paused_millis = 12;
|
||||
optional int32 paused_count = 13;
|
||||
optional int32 audio_bitrate = 14;
|
||||
optional int32 audio_channels = 15;
|
||||
optional int32 audio_samplerate = 16;
|
||||
optional int32 movie_timescale = 17;
|
||||
optional int32 audio_timescale = 18;
|
||||
optional int32 video_timescale = 19;
|
||||
optional int32 video_bitrate = 20;
|
||||
optional int32 iframe_interval = 21;
|
||||
}
|
||||
|
||||
enum StreamType {
|
||||
STREAM_TYPE_UNKNOWN = 0;
|
||||
STREAM_TYPE_OTHER = 1;
|
||||
STREAM_TYPE_PROGRESSIVE = 2;
|
||||
STREAM_TYPE_DASH = 3;
|
||||
STREAM_TYPE_HLS = 4;
|
||||
STREAM_TYPE_SS = 5;
|
||||
}
|
||||
|
||||
enum DrmType {
|
||||
DRM_TYPE_NONE = 0;
|
||||
DRM_TYPE_OTHER = 1;
|
||||
DRM_TYPE_PLAY_READY = 2;
|
||||
DRM_TYPE_WV_L1 = 3;
|
||||
DRM_TYPE_WV_L3 = 4;
|
||||
}
|
||||
|
||||
enum PlaybackType {
|
||||
PLAYBACK_TYPE_VOD = 0;
|
||||
PLAYBACK_TYPE_LIVE = 1;
|
||||
PLAYBACK_TYPE_OTHER = 2;
|
||||
}
|
||||
|
||||
enum ContentType {
|
||||
CONTENT_TYPE_MAIN = 0;
|
||||
CONTENT_TYPE_AD = 1;
|
||||
CONTENT_TYPE_OTHER = 2;
|
||||
}
|
||||
|
||||
enum StreamSourceType {
|
||||
STREAM_SOURCE_UNKNOWN = 0;
|
||||
STREAM_SOURCE_NETWORK = 1;
|
||||
STREAM_SOURCE_DEVICE = 2;
|
||||
STREAM_SOURCE_MIXED = 3;
|
||||
}
|
||||
enum NetworkType {
|
||||
NETWORK_TYPE_NONE = 0;
|
||||
NETWORK_TYPE_OTHER = 1;
|
||||
NETWORK_TYPE_WIFI = 2;
|
||||
NETWORK_TYPE_ETHERNET = 3;
|
||||
NETWORK_TYPE_2G = 4;
|
||||
NETWORK_TYPE_3G = 5;
|
||||
NETWORK_TYPE_4G = 6;
|
||||
NETWORK_TYPE_5G_NSA = 7;
|
||||
NETWORK_TYPE_5G_SA = 8;
|
||||
}
|
||||
|
||||
enum PlaybackState {
|
||||
// Playback has not started (initial state)
|
||||
NOT_STARTED = 0;
|
||||
// Playback is buffering in the background for initial playback start
|
||||
JOINING_BACKGROUND = 1;
|
||||
// Playback is buffering in the foreground for initial playback start
|
||||
JOINING_FOREGROUND = 2;
|
||||
// Playback is actively playing
|
||||
PLAYING = 3;
|
||||
// Playback is paused but ready to play
|
||||
PAUSED = 4;
|
||||
// Playback is handling a seek
|
||||
SEEKING = 5;
|
||||
// Playback is buffering to resume active playback
|
||||
BUFFERING = 6;
|
||||
// Playback is buffering while paused
|
||||
PAUSED_BUFFERING = 7;
|
||||
// Playback is suppressed (e.g. due to audio focus loss)
|
||||
SUPPRESSED = 8;
|
||||
// Playback is suppressed (e.g. due to audio focus loss) while buffering to resume a
|
||||
// playback
|
||||
SUPPRESSED_BUFFERING = 9;
|
||||
// Playback has reached the end of the media
|
||||
ENDED = 10;
|
||||
// Playback is stopped and can be restarted
|
||||
STOPPED = 11;
|
||||
// Playback is stopped due a fatal error and can be retried
|
||||
FAILED = 12;
|
||||
// Playback is interrupted by an ad
|
||||
INTERRUPTED_BY_AD = 13;
|
||||
// Playback is abandoned before reaching the end of the media
|
||||
ABANDONED = 14;
|
||||
}
|
||||
|
||||
enum PlaybackErrorCode {
|
||||
ERROR_CODE_UNKNOWN = 0;
|
||||
ERROR_CODE_OTHER = 1;
|
||||
ERROR_CODE_RUNTIME = 2;
|
||||
}
|
||||
|
||||
enum TrackType {
|
||||
AUDIO = 0;
|
||||
VIDEO = 1;
|
||||
TEXT = 2;
|
||||
}
|
||||
enum TrackState {
|
||||
OFF = 0;
|
||||
ON = 1;
|
||||
}
|
||||
enum TrackChangeReason {
|
||||
REASON_UNKNOWN = 0;
|
||||
REASON_OTHER = 1;
|
||||
REASON_INITIAL = 2;
|
||||
REASON_MANUAL = 3;
|
||||
REASON_ADAPTIVE = 4;
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.stats.mediaprovider;
|
||||
option java_multiple_files = true;
|
||||
|
||||
enum VolumeType {
|
||||
// Volume is unknown
|
||||
UNKNOWN = 0;
|
||||
// Volume is MediaStore.VOLUME_INTERNAL
|
||||
INTERNAL = 1;
|
||||
// Volume is MediaStore.VOLUME_EXTERNAL_PRIMARY
|
||||
EXTERNAL_PRIMARY = 2;
|
||||
// Volume is non-primary external storage
|
||||
EXTERNAL_OTHER = 3;
|
||||
}
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.stats.otaupdate;
|
||||
|
||||
// The payload type of an OTA update attempt on A/B devices.
|
||||
enum PayloadType {
|
||||
FULL = 10000;
|
||||
DELTA = 10001;
|
||||
}
|
||||
|
||||
// The attempt result reported by the update engine for an OTA update.
|
||||
enum AttemptResult {
|
||||
UPDATE_SUCCEEDED = 10000;
|
||||
INTERNAL_ERROR = 10001;
|
||||
PAYLOAD_DOWNLOAD_ERROR = 10002;
|
||||
METADATA_MALFORMED = 10003;
|
||||
OPERATION_MALFORMED = 10004;
|
||||
OPERATION_EXECUTION_ERROR = 10005;
|
||||
METADATA_VERIFICATION_FAILED = 10006;
|
||||
PAYLOAD_VERIFICATION_FAILED = 10007;
|
||||
VERIFICATION_FAILED = 10008;
|
||||
POSTINSTALL_FAILED = 10009;
|
||||
ABNORMAL_TERMINATION = 10010;
|
||||
UPDATE_CANCELED = 10011;
|
||||
UPDATE_SUCCEEDED_NOT_ACTIVE = 10012;
|
||||
}
|
||||
|
||||
// The error code reported by the update engine after an OTA update attempt
|
||||
// on A/B devices. More details in system/update_engine/common/error_code.h
|
||||
enum ErrorCode {
|
||||
SUCCESS = 10000;
|
||||
ERROR = 10001;
|
||||
FILESYSTEM_COPIER_ERROR = 10004;
|
||||
POST_INSTALL_RUNNER_ERROR = 10005;
|
||||
PAYLOAD_MISMATCHED_TYPE_ERROR = 10006;
|
||||
INSTALL_DEVICE_OPEN_ERROR = 10007;
|
||||
KERNEL_DEVICE_OPEN_ERROR = 10008;
|
||||
DOWNLOAD_TRANSFER_ERROR = 10009;
|
||||
PAYLOAD_HASH_MISMATCH_ERROR = 10010;
|
||||
PAYLOAD_SIZE_MISMATCH_ERROR = 10011;
|
||||
DOWNLOAD_PAYLOAD_VERIFICATION_ERROR = 10012;
|
||||
DOWNLOAD_NEW_PARTITION_INFO_ERROR = 10013;
|
||||
DOWNLOAD_WRITE_ERROR = 10014;
|
||||
NEW_ROOTFS_VERIFICATION_ERROR = 10015;
|
||||
SIGNED_DELTA_PAYLOAD_EXPECTED_ERROR = 10017;
|
||||
DOWNLOAD_PAYLOAD_PUB_KEY_VERIFICATION_ERROR = 10018;
|
||||
DOWNLOAD_STATE_INITIALIZATION_ERROR = 10020;
|
||||
DOWNLOAD_INVALID_METADATA_MAGIC_STRING = 10021;
|
||||
DOWNLOAD_SIGNATURE_MISSING_IN_MANIFEST = 10022;
|
||||
DOWNLOAD_MANIFEST_PARSE_ERROR = 10023;
|
||||
DOWNLOAD_METADATA_SIGNATURE_ERROR = 10024;
|
||||
DOWNLOAD_METADATA_SIGNATURE_VERIFICATION_ERROR = 10025;
|
||||
DOWNLOAD_METADATA_SIGNATURE_MISMATCH = 10026;
|
||||
DOWNLOAD_OPERATION_HASH_VERIFICATION_ERROR = 10027;
|
||||
DOWNLOAD_OPERATION_EXECUTION_ERROR = 10028;
|
||||
DOWNLOAD_OPERATION_HASH_MISMATCH = 10029;
|
||||
DOWNLOAD_INVALID_METADATA_SIZE = 10032;
|
||||
DOWNLOAD_INVALID_METADATA_SIGNATURE = 10033;
|
||||
DOWNLOAD_OPERATION_HASH_MISSING_ERROR = 10038;
|
||||
DOWNLOAD_METADATA_SIGNATURE_MISSING_ERROR = 10039;
|
||||
UNSUPPORTED_MAJOR_PAYLOAD_VERSION = 10044;
|
||||
UNSUPPORTED_MINOR_PAYLOAD_VERSION = 10045;
|
||||
FILESYSTEM_VERIFIER_ERROR = 10047;
|
||||
USER_CANCELED = 10048;
|
||||
PAYLOAD_TIMESTAMP_ERROR = 10051;
|
||||
UPDATED_BUT_NOT_ACTIVE = 10052;
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats.storage;
|
||||
|
||||
enum ExternalStorageType {
|
||||
UNKNOWN = 0;
|
||||
SD_CARD = 1;
|
||||
USB = 2;
|
||||
OTHER = 3;
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
// Copyright (C) 2019 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
java_library {
|
||||
name: "styleprotosnano",
|
||||
proto: {
|
||||
type: "nano",
|
||||
output_params: ["store_unknown_fields=true"],
|
||||
include_dirs: ["external/protobuf/src"],
|
||||
},
|
||||
|
||||
sdk_version: "current",
|
||||
srcs: [
|
||||
"*.proto",
|
||||
],
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.stats.style;
|
||||
option java_multiple_files = true;
|
||||
|
||||
enum Action {
|
||||
DEFAULT_ACTION = 0;
|
||||
ONRESUME = 1;
|
||||
ONSTOP = 2;
|
||||
PICKER_SELECT = 3;
|
||||
PICKER_APPLIED = 4;
|
||||
WALLPAPER_OPEN_CATEGORY = 5;
|
||||
WALLPAPER_SELECT = 6;
|
||||
WALLPAPER_APPLIED = 7;
|
||||
WALLPAPER_EXPLORE = 8;
|
||||
WALLPAPER_DOWNLOAD = 9;
|
||||
WALLPAPER_REMOVE = 10;
|
||||
LIVE_WALLPAPER_DOWNLOAD_SUCCESS = 11;
|
||||
LIVE_WALLPAPER_DOWNLOAD_FAILED = 12;
|
||||
LIVE_WALLPAPER_DOWNLOAD_CANCELLED = 13;
|
||||
LIVE_WALLPAPER_DELETE_SUCCESS = 14;
|
||||
LIVE_WALLPAPER_DELETE_FAILED = 15;
|
||||
LIVE_WALLPAPER_APPLIED = 16;
|
||||
LIVE_WALLPAPER_INFO_SELECT = 17;
|
||||
LIVE_WALLPAPER_CUSTOMIZE_SELECT = 18;
|
||||
LIVE_WALLPAPER_QUESTIONNAIRE_SELECT = 19;
|
||||
LIVE_WALLPAPER_QUESTIONNAIRE_APPLIED = 20;
|
||||
LIVE_WALLPAPER_EFFECT_SHOW = 21;
|
||||
APP_LAUNCHED = 22;
|
||||
}
|
||||
|
||||
enum LocationPreference {
|
||||
LOCATION_PREFERENCE_UNSPECIFIED = 0;
|
||||
LOCATION_UNAVAILABLE = 1;
|
||||
LOCATION_CURRENT = 2;
|
||||
LOCATION_MANUAL = 3;
|
||||
}
|
||||
|
||||
enum DatePreference {
|
||||
DATE_PREFERENCE_UNSPECIFIED = 0;
|
||||
DATE_UNAVAILABLE = 1;
|
||||
DATE_MANUAL = 2;
|
||||
}
|
||||
|
||||
enum LaunchedPreference {
|
||||
LAUNCHED_PREFERENCE_UNSPECIFIED = 0;
|
||||
LAUNCHED_LAUNCHER = 1;
|
||||
LAUNCHED_SETTINGS = 2;
|
||||
LAUNCHED_SUW = 3;
|
||||
LAUNCHED_TIPS = 4;
|
||||
LAUNCHED_LAUNCH_ICON = 5;
|
||||
LAUNCHED_CROP_AND_SET_ACTION = 6;
|
||||
LAUNCHED_DEEP_LINK = 7;
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats.sysui;
|
||||
|
||||
// Enum used in NotificationReported and NotificationChannelModified atoms
|
||||
enum NotificationImportance { // Constants from NotificationManager.java
|
||||
IMPORTANCE_UNSPECIFIED = -1000; // Should not occur for real notifications.
|
||||
IMPORTANCE_NONE = 0; // No importance: does not show in the shade.
|
||||
IMPORTANCE_MIN = 1; // Minimum to show in the shade.
|
||||
IMPORTANCE_LOW = 2; // Shows in shade, maybe status bar, no buzz/beep.
|
||||
IMPORTANCE_DEFAULT = 3; // Shows everywhere, makes noise, no heads-up.
|
||||
IMPORTANCE_HIGH = 4; // Shows everywhere, makes noise, heads-up, may full-screen.
|
||||
IMPORTANCE_IMPORTANT_CONVERSATION = 5; // High + isImportantConversation().
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
// Copyright (C) 2019 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
java_library_static {
|
||||
name: "textclassifierprotoslite",
|
||||
proto: {
|
||||
type: "lite",
|
||||
},
|
||||
srcs: [
|
||||
"*.proto",
|
||||
],
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.stats.textclassifier;
|
||||
option java_multiple_files = true;
|
||||
|
||||
enum EventType {
|
||||
TYPE_UNKNOWN = 0;
|
||||
// User started a new selection.
|
||||
SELECTION_STARTED = 1;
|
||||
// User modified an existing selection.
|
||||
SELECTION_MODIFIED = 2;
|
||||
// Smart selection triggered for a single token (word).
|
||||
SMART_SELECTION_SINGLE = 3;
|
||||
// Smart selection triggered spanning multiple tokens (words).
|
||||
SMART_SELECTION_MULTI = 4;
|
||||
// Something else other than user or the default TextClassifier triggered a selection.
|
||||
AUTO_SELECTION = 5;
|
||||
// Smart actions shown to the user.
|
||||
ACTIONS_SHOWN = 6;
|
||||
// User clicked a link.
|
||||
LINK_CLICKED = 7;
|
||||
// User typed over the selection.
|
||||
OVERTYPE = 8;
|
||||
// User clicked on Copy action.
|
||||
COPY_ACTION = 9;
|
||||
// User clicked on Paste action.
|
||||
PASTE_ACTION = 10;
|
||||
// User clicked on Cut action.
|
||||
CUT_ACTION = 11;
|
||||
// User clicked on Share action.
|
||||
SHARE_ACTION = 12;
|
||||
// User clicked on a Smart action.
|
||||
SMART_ACTION = 13;
|
||||
// User dragged+dropped the selection.
|
||||
SELECTION_DRAG = 14;
|
||||
// Selection is destroyed.
|
||||
SELECTION_DESTROYED = 15;
|
||||
// User clicked on a custom action.
|
||||
OTHER_ACTION = 16;
|
||||
// User clicked on Select All action
|
||||
SELECT_ALL = 17;
|
||||
// User reset the smart selection.
|
||||
SELECTION_RESET = 18;
|
||||
// User composed a reply.
|
||||
MANUAL_REPLY = 19;
|
||||
// TextClassifier generated some actions
|
||||
ACTIONS_GENERATED = 20;
|
||||
// Some text links were generated
|
||||
LINKS_GENERATED = 21;
|
||||
}
|
||||
|
||||
enum WidgetType {
|
||||
WIDGET_TYPE_UNKNOWN = 0;
|
||||
// Standard TextView
|
||||
WIDGET_TYPE_TEXTVIEW = 1;
|
||||
// EditText
|
||||
WIDGET_TYPE_EDITTEXT = 2;
|
||||
// Not selectable textview
|
||||
WIDGET_TYPE_UNSELECTABLE_TEXTVIEW = 3;
|
||||
// Standard Webview
|
||||
WIDGET_TYPE_WEBVIEW = 4;
|
||||
// Editable TextView
|
||||
WIDGET_TYPE_EDIT_WEBVIEW = 5;
|
||||
// Custom text widget
|
||||
WIDGET_TYPE_CUSTOM_TEXTVIEW = 6;
|
||||
// Custom editable text widget.
|
||||
WIDGET_TYPE_CUSTOM_EDITTEXT = 7;
|
||||
// Non-selectable text widget.
|
||||
WIDGET_TYPE_CUSTOM_UNSELECTABLE_TEXTVIEW = 8;
|
||||
// Notification
|
||||
WIDGET_TYPE_NOTIFICATION = 9;
|
||||
}
|
||||
@@ -1,70 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
syntax = "proto2";
|
||||
package android.stats.tls;
|
||||
|
||||
// Keep in sync with
|
||||
// external/conscrypt/{android,platform}/src/main/java/org/conscrypt/Platform.java
|
||||
enum Protocol {
|
||||
UNKNOWN_PROTO = 0;
|
||||
SSL_V3 = 1;
|
||||
TLS_V1 = 2;
|
||||
TLS_V1_1 = 3;
|
||||
TLS_V1_2 = 4;
|
||||
TLS_V1_3 = 5;
|
||||
}
|
||||
|
||||
// Cipher suites' ids are based on IANA's database:
|
||||
// https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-4
|
||||
//
|
||||
// If you add new cipher suite, make sure id is the same as in IANA's database (see link above)
|
||||
//
|
||||
// Keep in sync with
|
||||
// external/conscrypt/{android,platform}/src/main/java/org/conscrypt/Platform.java
|
||||
enum CipherSuite {
|
||||
UNKNOWN_CIPHER_SUITE = 0x0000;
|
||||
|
||||
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = 0xC00A;
|
||||
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = 0xC014;
|
||||
TLS_RSA_WITH_AES_256_CBC_SHA = 0x0035;
|
||||
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = 0xC009;
|
||||
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = 0xC013;
|
||||
TLS_RSA_WITH_AES_128_CBC_SHA = 0x002F;
|
||||
TLS_RSA_WITH_3DES_EDE_CBC_SHA = 0x000A;
|
||||
|
||||
// TLSv1.2 cipher suites
|
||||
TLS_RSA_WITH_AES_128_GCM_SHA256 = 0x009C;
|
||||
TLS_RSA_WITH_AES_256_GCM_SHA384 = 0x009D;
|
||||
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = 0xC02F;
|
||||
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = 0xC030;
|
||||
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = 0xC02B;
|
||||
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = 0xC02C;
|
||||
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = 0xCCA9;
|
||||
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = 0xCCA8;
|
||||
|
||||
// Pre-Shared Key (PSK) cipher suites
|
||||
TLS_PSK_WITH_AES_128_CBC_SHA = 0x008C;
|
||||
TLS_PSK_WITH_AES_256_CBC_SHA = 0x008D;
|
||||
TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA = 0xC035;
|
||||
TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA = 0xC036;
|
||||
TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 = 0xCCAC;
|
||||
|
||||
// TLS 1.3 cipher suites
|
||||
TLS_AES_128_GCM_SHA256 = 0x1301;
|
||||
TLS_AES_256_GCM_SHA384 = 0x1302;
|
||||
TLS_CHACHA20_POLY1305_SHA256 = 0x1303;
|
||||
}
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package android.stats.tv;
|
||||
option java_multiple_files = true;
|
||||
|
||||
// Enums for TV Input Framework
|
||||
option java_outer_classname = "TifStatsEnums";
|
||||
|
||||
// Tune State of a TV Input Service Framework
|
||||
enum TifTuneState {
|
||||
TIF_TUNE_STATE_UNKNOWN = 0;
|
||||
CREATED = 1;
|
||||
SURFACE_ATTACHED = 2;
|
||||
SURFACE_DETACHED = 3;
|
||||
RELEASED = 4;
|
||||
TUNE_STARTED = 5;
|
||||
VIDEO_AVAILABLE = 6;
|
||||
|
||||
// Keep in sync with TvInputManager
|
||||
// Use the TvInputManager value + 100
|
||||
VIDEO_UNAVAILABLE_REASON_UNKNOWN = 100;
|
||||
VIDEO_UNAVAILABLE_REASON_TUNING = 101;
|
||||
VIDEO_UNAVAILABLE_REASON_WEAK_SIGNAL = 102;
|
||||
VIDEO_UNAVAILABLE_REASON_BUFFERING = 103;
|
||||
VIDEO_UNAVAILABLE_REASON_AUDIO_ONLY = 104;
|
||||
VIDEO_UNAVAILABLE_REASON_NOT_CONNECTED = 105;
|
||||
VIDEO_UNAVAILABLE_REASON_INSUFFICIENT_RESOURCE = 106;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_INSUFFICIENT_OUTPUT_PROTECTION=107;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_PVR_RECORDING_NOT_ALLOWED=108;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_NO_LICENSE=109;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_LICENSE_EXPIRED=110;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_NEED_ACTIVATION=111;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_NEED_PAIRING=112;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_NO_CARD=113;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_CARD_MUTE=114;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_CARD_INVALID=115;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_BLACKOUT=116;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_REBOOTING=117;
|
||||
VIDEO_UNAVAILABLE_REASON_CAS_UNKNOWN=118;
|
||||
}
|
||||
@@ -1,203 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.telecom;
|
||||
|
||||
option java_outer_classname = "TelecomProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
/**
|
||||
* Call states, primarily used in CallState.java,
|
||||
* Call.java, and CallsManager.java in packages/services.
|
||||
*/
|
||||
enum CallStateEnum {
|
||||
/**
|
||||
* Indicates that a call is new and not connected. This is used as the default state internally
|
||||
* within Telecom and should not be used between Telecom and call services. Call services are
|
||||
* not expected to ever interact with NEW calls, but {@link android.telecom.InCallService}s will
|
||||
* see calls in this state.
|
||||
*/
|
||||
NEW = 0;
|
||||
|
||||
/**
|
||||
* The initial state of an outgoing {@code Call}.
|
||||
* Common transitions are to {@link #DIALING} state for a successful call or
|
||||
* {@link #DISCONNECTED} if it failed.
|
||||
*/
|
||||
CONNECTING = 1;
|
||||
|
||||
/**
|
||||
* The state of an outgoing {@code Call} when waiting on user to select a
|
||||
* {@link android.telecom.PhoneAccount} through which to place the call.
|
||||
*/
|
||||
SELECT_PHONE_ACCOUNT = 2;
|
||||
|
||||
/**
|
||||
* Indicates that a call is outgoing and in the dialing state. A call transitions to this state
|
||||
* once an outgoing call has begun (e.g., user presses the dial button in Dialer). Calls in this
|
||||
* state usually transition to {@link #ACTIVE} if the call was answered or {@link #DISCONNECTED}
|
||||
* if the call was disconnected somehow (e.g., failure or cancellation of the call by the user).
|
||||
*/
|
||||
DIALING = 3;
|
||||
|
||||
/**
|
||||
* Indicates that a call is incoming and the user still has the option of answering, rejecting,
|
||||
* or doing nothing with the call. This state is usually associated with some type of audible
|
||||
* ringtone. Normal transitions are to {@link #ACTIVE} if answered or {@link #DISCONNECTED}
|
||||
* otherwise.
|
||||
*/
|
||||
RINGING = 4;
|
||||
|
||||
/**
|
||||
* Indicates that a call is currently connected to another party and a communication channel is
|
||||
* open between them. The normal transition to this state is by the user answering a
|
||||
* {@link #DIALING} call or a {@link #RINGING} call being answered by the other party.
|
||||
*/
|
||||
ACTIVE = 5;
|
||||
|
||||
/**
|
||||
* Indicates that the call is currently on hold. In this state, the call is not terminated
|
||||
* but no communication is allowed until the call is no longer on hold. The typical transition
|
||||
* to this state is by the user putting an {@link #ACTIVE} call on hold by explicitly performing
|
||||
* an action, such as clicking the hold button.
|
||||
*/
|
||||
ON_HOLD = 6;
|
||||
|
||||
/**
|
||||
* Indicates that a call is currently disconnected. All states can transition to this state
|
||||
* by the call service giving notice that the connection has been severed. When the user
|
||||
* explicitly ends a call, it will not transition to this state until the call service confirms
|
||||
* the disconnection or communication was lost to the call service currently responsible for
|
||||
* this call (e.g., call service crashes).
|
||||
*/
|
||||
DISCONNECTED = 7;
|
||||
|
||||
/**
|
||||
* Indicates that the call was attempted (mostly in the context of outgoing, at least at the
|
||||
* time of writing) but cancelled before it was successfully connected.
|
||||
*/
|
||||
ABORTED = 8;
|
||||
|
||||
/**
|
||||
* Indicates that the call is in the process of being disconnected and will transition next
|
||||
* to a {@link #DISCONNECTED} state.
|
||||
* <p>
|
||||
* This state is not expected to be communicated from the Telephony layer, but will be reported
|
||||
* to the InCall UI for calls where disconnection has been initiated by the user but the
|
||||
* ConnectionService has confirmed the call as disconnected.
|
||||
*/
|
||||
DISCONNECTING = 9;
|
||||
|
||||
/**
|
||||
* Indicates that the call is in the process of being pulled to the local device.
|
||||
* <p>
|
||||
* This state should only be set on a call with
|
||||
* {@link android.telecom.Connection#PROPERTY_IS_EXTERNAL_CALL} and
|
||||
* {@link android.telecom.Connection#CAPABILITY_CAN_PULL_CALL}.
|
||||
*/
|
||||
PULLING = 10;
|
||||
|
||||
/**
|
||||
* Indicates that an incoming call has been answered by the in-call UI, but Telephony hasn't yet
|
||||
* set the call to active.
|
||||
*/
|
||||
ANSWERED = 11;
|
||||
|
||||
/**
|
||||
* Indicates that the call is undergoing audio processing by a different app in the background.
|
||||
* @see android.telecom.Call#STATE_AUDIO_PROCESSING
|
||||
*/
|
||||
AUDIO_PROCESSING = 12;
|
||||
|
||||
/**
|
||||
* Indicates that the call is in a fake ringing state.
|
||||
* @see android.telecom.Call#STATE_SIMULATED_RINGING
|
||||
*/
|
||||
SIMULATED_RINGING = 13;
|
||||
}
|
||||
|
||||
// Disconnect causes for a call. Primarily used by android/telecom/DisconnectCause.java
|
||||
enum DisconnectCauseEnum {
|
||||
/**
|
||||
* Disconnected because of an unknown or unspecified reason.
|
||||
*/
|
||||
UNKNOWN = 0;
|
||||
|
||||
/**
|
||||
* Disconnected because there was an error, such as a problem with the network.
|
||||
*/
|
||||
ERROR = 1;
|
||||
|
||||
/**
|
||||
* Disconnected because of a local user-initiated action, such as hanging up.
|
||||
*/
|
||||
LOCAL = 2;
|
||||
|
||||
/**
|
||||
* Disconnected because of a remote user-initiated action, such as the other party hanging up
|
||||
* up.
|
||||
*/
|
||||
REMOTE = 3;
|
||||
|
||||
/**
|
||||
* Disconnected because it has been canceled.
|
||||
*/
|
||||
CANCELED = 4;
|
||||
|
||||
/**
|
||||
* Disconnected because there was no response to an incoming call.
|
||||
*/
|
||||
MISSED = 5;
|
||||
|
||||
/**
|
||||
* Disconnected because the user rejected an incoming call.
|
||||
*/
|
||||
REJECTED = 6;
|
||||
|
||||
/**
|
||||
* Disconnected because the other party was busy.
|
||||
*/
|
||||
BUSY = 7;
|
||||
|
||||
/**
|
||||
* Disconnected because of a restriction on placing the call, such as dialing in airplane
|
||||
* mode.
|
||||
*/
|
||||
RESTRICTED = 8;
|
||||
|
||||
/**
|
||||
* Disconnected for reason not described by other disconnect codes.
|
||||
*/
|
||||
OTHER = 9;
|
||||
|
||||
/**
|
||||
* Disconnected because the connection manager did not support the call. The call will be tried
|
||||
* again without a connection manager. See {@link PhoneAccount#CAPABILITY_CONNECTION_MANAGER}.
|
||||
*/
|
||||
CONNECTION_MANAGER_NOT_SUPPORTED = 10;
|
||||
|
||||
/**
|
||||
* Disconnected because the user did not locally answer the incoming call, but it was answered
|
||||
* on another device where the call was ringing.
|
||||
*/
|
||||
ANSWERED_ELSEWHERE = 11;
|
||||
|
||||
/**
|
||||
* Disconnected because the call was pulled from the current device to another device.
|
||||
*/
|
||||
CALL_PULLED = 12;
|
||||
}
|
||||
@@ -1,288 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.telephony;
|
||||
|
||||
option java_outer_classname = "TelephonyProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
enum CallBearerEnum {
|
||||
/** Call bearer is unknown or invalid */
|
||||
CALL_BEARER_UNKNOWN = 0;
|
||||
|
||||
/** Call bearer is legacy CS */
|
||||
CALL_BEARER_CS = 1;
|
||||
|
||||
/** Call bearer is IMS */
|
||||
CALL_BEARER_IMS = 2;
|
||||
}
|
||||
|
||||
enum CallDirectionEnum {
|
||||
/** Call direction: unknown or invalid */
|
||||
CALL_DIRECTION_UNKNOWN = 0;
|
||||
|
||||
/** Call direction: mobile originated (outgoing for this device) */
|
||||
CALL_DIRECTION_MO = 1;
|
||||
|
||||
/** Call direction: mobile terminated (incoming for this device) */
|
||||
CALL_DIRECTION_MT = 2;
|
||||
}
|
||||
|
||||
// Call setup duration buckets.
|
||||
// See com.android.internal.telephony.metrics.VoiceCallSessionStats for definition.
|
||||
enum CallSetupDurationEnum {
|
||||
CALL_SETUP_DURATION_UNKNOWN = 0;
|
||||
CALL_SETUP_DURATION_EXTREMELY_FAST = 1;
|
||||
CALL_SETUP_DURATION_ULTRA_FAST = 2;
|
||||
CALL_SETUP_DURATION_VERY_FAST = 3;
|
||||
CALL_SETUP_DURATION_FAST = 4;
|
||||
CALL_SETUP_DURATION_NORMAL = 5;
|
||||
CALL_SETUP_DURATION_SLOW = 6;
|
||||
CALL_SETUP_DURATION_VERY_SLOW = 7;
|
||||
CALL_SETUP_DURATION_ULTRA_SLOW = 8;
|
||||
CALL_SETUP_DURATION_EXTREMELY_SLOW = 9;
|
||||
}
|
||||
|
||||
// Data conn. power states, primarily used by android/telephony/DataConnectionRealTimeInfo.java.
|
||||
enum DataConnectionPowerStateEnum {
|
||||
DATA_CONNECTION_POWER_STATE_LOW = 1;
|
||||
DATA_CONNECTION_POWER_STATE_MEDIUM = 2;
|
||||
DATA_CONNECTION_POWER_STATE_HIGH = 3;
|
||||
DATA_CONNECTION_POWER_STATE_UNKNOWN = 2147483647; // Java Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
// Network type enums, primarily used by android/telephony/TelephonyManager.java.
|
||||
// Do not add negative types.
|
||||
enum NetworkTypeEnum {
|
||||
NETWORK_TYPE_UNKNOWN = 0;
|
||||
NETWORK_TYPE_GPRS = 1;
|
||||
NETWORK_TYPE_EDGE = 2;
|
||||
NETWORK_TYPE_UMTS = 3;
|
||||
NETWORK_TYPE_CDMA = 4;
|
||||
NETWORK_TYPE_EVDO_0 = 5;
|
||||
NETWORK_TYPE_EVDO_A = 6;
|
||||
NETWORK_TYPE_1XRTT = 7;
|
||||
NETWORK_TYPE_HSDPA = 8;
|
||||
NETWORK_TYPE_HSUPA = 9;
|
||||
NETWORK_TYPE_HSPA = 10;
|
||||
NETWORK_TYPE_IDEN = 11;
|
||||
NETWORK_TYPE_EVDO_B = 12;
|
||||
NETWORK_TYPE_LTE = 13;
|
||||
NETWORK_TYPE_EHRPD = 14;
|
||||
NETWORK_TYPE_HSPAP = 15;
|
||||
NETWORK_TYPE_GSM = 16;
|
||||
NETWORK_TYPE_TD_SCDMA = 17;
|
||||
NETWORK_TYPE_IWLAN = 18;
|
||||
NETWORK_TYPE_LTE_CA = 19;
|
||||
NETWORK_TYPE_NR = 20;
|
||||
}
|
||||
|
||||
// Roaming type enums, see android.telephony.ServiceState.RoamingType for definitions.
|
||||
enum RoamingTypeEnum {
|
||||
ROAMING_TYPE_NOT_ROAMING = 0;
|
||||
ROAMING_TYPE_ROAMING = 1;
|
||||
ROAMING_TYPE_ROAMING_DOMESTIC = 2;
|
||||
ROAMING_TYPE_ROAMING_INTERNATIONAL = 3;
|
||||
}
|
||||
|
||||
// Signal strength levels, as defined in android/telephony/SignalStrength.java.
|
||||
enum SignalStrengthEnum {
|
||||
SIGNAL_STRENGTH_NONE_OR_UNKNOWN = 0;
|
||||
SIGNAL_STRENGTH_POOR = 1;
|
||||
SIGNAL_STRENGTH_MODERATE = 2;
|
||||
SIGNAL_STRENGTH_GOOD = 3;
|
||||
SIGNAL_STRENGTH_GREAT = 4;
|
||||
}
|
||||
|
||||
enum ServiceStateEnum {
|
||||
/**
|
||||
* Normal operation condition, the phone is registered
|
||||
* with an operator either in home network or in roaming.
|
||||
*/
|
||||
SERVICE_STATE_IN_SERVICE = 0;
|
||||
|
||||
/**
|
||||
* Phone is not registered with any operator, the phone
|
||||
* can be currently searching a new operator to register to, or not
|
||||
* searching to registration at all, or registration is denied, or radio
|
||||
* signal is not available.
|
||||
*/
|
||||
SERVICE_STATE_OUT_OF_SERVICE = 1;
|
||||
|
||||
/**
|
||||
* The phone is registered and locked. Only emergency numbers are allowed. {@more}
|
||||
*/
|
||||
SERVICE_STATE_EMERGENCY_ONLY = 2;
|
||||
|
||||
/**
|
||||
* Radio of telephony is explicitly powered off.
|
||||
*/
|
||||
SERVICE_STATE_POWER_OFF = 3;
|
||||
}
|
||||
|
||||
enum SimStateEnum {
|
||||
SIM_STATE_UNKNOWN = 0;
|
||||
/** SIM card state: no SIM card is available in the device */
|
||||
SIM_STATE_ABSENT = 1;
|
||||
/** SIM card state: Locked: requires the user's SIM PIN to unlock */
|
||||
SIM_STATE_PIN_REQUIRED = 2;
|
||||
/** SIM card state: Locked: requires the user's SIM PUK to unlock */
|
||||
SIM_STATE_PUK_REQUIRED = 3;
|
||||
/** SIM card state: Locked: requires a network PIN to unlock */
|
||||
SIM_STATE_NETWORK_LOCKED = 4;
|
||||
/** SIM card state: Ready */
|
||||
SIM_STATE_READY = 5;
|
||||
/** SIM card state: SIM Card is NOT READY */
|
||||
SIM_STATE_NOT_READY = 6;
|
||||
/** SIM card state: SIM Card Error, permanently disabled */
|
||||
SIM_STATE_PERM_DISABLED = 7;
|
||||
/** SIM card state: SIM Card Error, present but faulty */
|
||||
SIM_STATE_CARD_IO_ERROR = 8;
|
||||
/** SIM card state: SIM Card restricted, present but not usable due to
|
||||
* carrier restrictions.
|
||||
*/
|
||||
SIM_STATE_CARD_RESTRICTED = 9;
|
||||
/**
|
||||
* SIM card state: Loaded: SIM card applications have been loaded
|
||||
* @hide
|
||||
*/
|
||||
SIM_STATE_LOADED = 10;
|
||||
/**
|
||||
* SIM card state: SIM Card is present
|
||||
* @hide
|
||||
*/
|
||||
SIM_STATE_PRESENT = 11;
|
||||
}
|
||||
|
||||
// Format of SMS message
|
||||
enum SmsFormatEnum {
|
||||
/** Unknown format */
|
||||
SMS_FORMAT_UNKNOWN = 0;
|
||||
/** Format compliant with 3GPP TS 23.040 */
|
||||
SMS_FORMAT_3GPP = 1;
|
||||
/** Format compliant with 3GPP2 TS C.S0015-B */
|
||||
SMS_FORMAT_3GPP2 = 2;
|
||||
}
|
||||
|
||||
// Technology used to carry an SMS message
|
||||
enum SmsTechEnum {
|
||||
/**
|
||||
* Unknown SMS technology used to carry the SMS.
|
||||
* This value is also used for injected SMS.
|
||||
*/
|
||||
SMS_TECH_UNKNOWN = 0;
|
||||
/** The SMS was carried over CS bearer in 3GPP network */
|
||||
SMS_TECH_CS_3GPP = 1;
|
||||
/** The SMS was carried over CS bearer in 3GPP2 network */
|
||||
SMS_TECH_CS_3GPP2 = 2;
|
||||
/** The SMS was carried over IMS */
|
||||
SMS_TECH_IMS = 3;
|
||||
}
|
||||
|
||||
// Types of SMS message
|
||||
enum SmsTypeEnum {
|
||||
/** Normal type. */
|
||||
SMS_TYPE_NORMAL = 0;
|
||||
/** SMS-PP (point-to-point). */
|
||||
SMS_TYPE_SMS_PP = 1;
|
||||
/** Voicemail indication. */
|
||||
SMS_TYPE_VOICEMAIL_INDICATION = 2;
|
||||
/** Type 0 message (3GPP TS 23.040 9.2.3.9). */
|
||||
SMS_TYPE_ZERO = 3;
|
||||
/** WAP-PUSH message. */
|
||||
SMS_TYPE_WAP_PUSH = 4;
|
||||
}
|
||||
|
||||
// Incoming SMS errors
|
||||
enum SmsIncomingErrorEnum {
|
||||
SMS_SUCCESS = 0;
|
||||
SMS_ERROR_GENERIC = 1;
|
||||
SMS_ERROR_NO_MEMORY = 2;
|
||||
SMS_ERROR_NOT_SUPPORTED = 3;
|
||||
}
|
||||
|
||||
// Outgoing SMS results
|
||||
enum SmsSendResultEnum {
|
||||
// Unknown error
|
||||
SMS_SEND_RESULT_UNKNOWN = 0;
|
||||
// Success
|
||||
SMS_SEND_RESULT_SUCCESS = 1;
|
||||
// Permanent error
|
||||
SMS_SEND_RESULT_ERROR = 2;
|
||||
// Temporary error, retry
|
||||
SMS_SEND_RESULT_ERROR_RETRY = 3;
|
||||
// Error over IMS, retry on CS
|
||||
SMS_SEND_RESULT_ERROR_FALLBACK = 4;
|
||||
}
|
||||
|
||||
// Data profile of the data call. From
|
||||
// frameworks/base/telephony/java/com/android/internal/telephony/RILConstants.java
|
||||
enum DataProfileEnum {
|
||||
DATA_PROFILE_DEFAULT = 0;
|
||||
DATA_PROFILE_TETHERED = 1;
|
||||
DATA_PROFILE_IMS = 2;
|
||||
DATA_PROFILE_FOTA = 3;
|
||||
DATA_PROFILE_CBS = 4;
|
||||
DATA_PROFILE_OEM_BASE = 1000;
|
||||
DATA_PROFILE_INVALID = -1;
|
||||
}
|
||||
|
||||
// Reason of data call deactivation. From
|
||||
// frameworks/base/telephony/java/android/telephony/data/DataService.java#DeactivateDataReason
|
||||
enum DataDeactivateReasonEnum {
|
||||
DEACTIVATE_REASON_UNKNOWN = 0;
|
||||
DEACTIVATE_REASON_NORMAL = 1;
|
||||
DEACTIVATE_REASON_RADIO_OFF = 2;
|
||||
DEACTIVATE_REASON_HANDOVER = 3;
|
||||
}
|
||||
|
||||
// IP type of the data call
|
||||
// see frameworks/base/telephony/java/android/telephony/data/ApnSetting.java#ProtocolType
|
||||
enum ApnProtocolEnum {
|
||||
APN_PROTOCOL_IPV4 = 0;
|
||||
APN_PROTOCOL_IPV6 = 1;
|
||||
APN_PROTOCOL_IPV4V6 = 2;
|
||||
APN_PROTOCOL_PPP = 3;
|
||||
}
|
||||
|
||||
// Action taken to recover a data call that is stalled. From
|
||||
// frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTracker.java
|
||||
// #RecoveryAction
|
||||
enum DataStallRecoveryActionEnum {
|
||||
RECOVERY_ACTION_GET_DATA_CALL_LIST = 0;
|
||||
RECOVERY_ACTION_CLEANUP = 1;
|
||||
RECOVERY_ACTION_REREGISTER = 2;
|
||||
RECOVERY_ACTION_RADIO_RESTART = 3;
|
||||
}
|
||||
|
||||
// Codec quality
|
||||
enum CodecQuality {
|
||||
/** Codec quality: unknown */
|
||||
CODEC_QUALITY_UNKNOWN = 0;
|
||||
|
||||
/** Codec quality: narrowband */
|
||||
CODEC_QUALITY_NARROWBAND = 1;
|
||||
|
||||
/** Codec quality: wideband */
|
||||
CODEC_QUALITY_WIDEBAND = 2;
|
||||
|
||||
/** Codec quality: super-wideband */
|
||||
CODEC_QUALITY_SUPER_WIDEBAND = 3;
|
||||
|
||||
/** Codec quality: fullband */
|
||||
CODEC_QUALITY_FULLBAND = 4;
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.view;
|
||||
|
||||
option java_outer_classname = "ViewProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
// Screen states, primarily used by android/view/Display.java.
|
||||
enum DisplayStateEnum {
|
||||
// The display state is unknown.
|
||||
DISPLAY_STATE_UNKNOWN = 0;
|
||||
// The display state is off.
|
||||
DISPLAY_STATE_OFF = 1;
|
||||
// The display state is on.
|
||||
DISPLAY_STATE_ON = 2;
|
||||
// The display is dozing in a low power state; it is still on but is
|
||||
// optimized for showing system-provided content while the device is
|
||||
// non-interactive.
|
||||
DISPLAY_STATE_DOZE = 3;
|
||||
// The display is dozing in a suspended low power state; it is still on
|
||||
// but is optimized for showing static system-provided content while the
|
||||
// device is non-interactive.
|
||||
DISPLAY_STATE_DOZE_SUSPEND = 4;
|
||||
// The display is on and optimized for VR mode.
|
||||
DISPLAY_STATE_VR = 5;
|
||||
// The display is in a suspended full power state; it is still on but the
|
||||
// CPU is not updating it.
|
||||
DISPLAY_STATE_ON_SUSPEND = 6;
|
||||
}
|
||||
|
||||
// Constants found in android.view.WindowManager.
|
||||
enum TransitionTypeEnum {
|
||||
TRANSIT_NONE = 0;
|
||||
TRANSIT_UNSET = -1;
|
||||
TRANSIT_ACTIVITY_OPEN = 6;
|
||||
TRANSIT_ACTIVITY_CLOSE = 7;
|
||||
TRANSIT_TASK_OPEN = 8;
|
||||
TRANSIT_TASK_CLOSE = 9;
|
||||
TRANSIT_TASK_TO_FRONT = 10;
|
||||
TRANSIT_TASK_TO_BACK = 11;
|
||||
TRANSIT_WALLPAPER_CLOSE = 12;
|
||||
TRANSIT_WALLPAPER_OPEN = 13;
|
||||
TRANSIT_WALLPAPER_INTRA_OPEN = 14;
|
||||
TRANSIT_WALLPAPER_INTRA_CLOSE = 15;
|
||||
TRANSIT_TASK_OPEN_BEHIND = 16;
|
||||
TRANSIT_TASK_IN_PLACE = 17;
|
||||
TRANSIT_ACTIVITY_RELAUNCH = 18;
|
||||
TRANSIT_DOCK_TASK_FROM_RECENTS = 19 [deprecated=true];
|
||||
TRANSIT_KEYGUARD_GOING_AWAY = 20;
|
||||
TRANSIT_KEYGUARD_GOING_AWAY_ON_WALLPAPER = 21;
|
||||
TRANSIT_KEYGUARD_OCCLUDE = 22;
|
||||
TRANSIT_KEYGUARD_UNOCCLUDE = 23;
|
||||
TRANSIT_TRANSLUCENT_ACTIVITY_OPEN = 24;
|
||||
TRANSIT_TRANSLUCENT_ACTIVITY_CLOSE = 25;
|
||||
TRANSIT_CRASHING_ACTIVITY_CLOSE = 26;
|
||||
}
|
||||
@@ -1,112 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto2";
|
||||
package android.net.wifi;
|
||||
|
||||
option java_outer_classname = "WifiProtoEnums";
|
||||
option java_multiple_files = true;
|
||||
|
||||
/**
|
||||
* Wifi Lock modes, primarily used in
|
||||
* frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiLockManager.java.
|
||||
*/
|
||||
enum WifiModeEnum {
|
||||
/**
|
||||
* Deprecated.
|
||||
* Wi-Fi will be kept active, and will behave normally.
|
||||
*/
|
||||
WIFI_MODE_FULL = 1 [deprecated=true];
|
||||
|
||||
/**
|
||||
* Deprecated.
|
||||
* Wi-Fi will be kept active, but the only operation that will be supported is initiation of
|
||||
* scans, and the subsequent reporting of scan results.
|
||||
*/
|
||||
WIFI_MODE_SCAN_ONLY = 2 [deprecated=true];
|
||||
|
||||
/**
|
||||
* Wi-Fi will not go to power save.
|
||||
*/
|
||||
WIFI_MODE_FULL_HIGH_PERF = 3;
|
||||
|
||||
/**
|
||||
* Wi-Fi will operate with a priority to achieve low latency.
|
||||
*/
|
||||
WIFI_MODE_FULL_LOW_LATENCY = 4;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wifi authentication type.
|
||||
*/
|
||||
enum WifiAuthType {
|
||||
AUTH_TYPE_NONE = 0;
|
||||
|
||||
// WPA pre-shared key.
|
||||
AUTH_TYPE_WPA_PSK = 1;
|
||||
// WPA using EAP authentication. Generally used with an external authentication server.
|
||||
AUTH_TYPE_WPA_EAP = 2;
|
||||
// IEEE 802.1X using EAP authentication and (optionally) dynamically generated WEP keys.
|
||||
AUTH_TYPE_IEEE8021X = 3;
|
||||
// WPA2 pre-shared key for use with soft access point.
|
||||
AUTH_TYPE_WPA2_PSK = 4;
|
||||
// Hotspot 2.0 r2 OSEN.
|
||||
AUTH_TYPE_OSEN = 5;
|
||||
// IEEE 802.11r Fast BSS Transition with PSK authentication.
|
||||
AUTH_TYPE_FT_PSK = 6;
|
||||
// IEEE 802.11r Fast BSS Transition with EAP authentication.
|
||||
AUTH_TYPE_FT_EAP = 7;
|
||||
// Simultaneous Authentication of Equals.
|
||||
AUTH_TYPE_SAE = 8;
|
||||
// Opportunistic Wireless Encryption.
|
||||
AUTH_TYPE_OWE = 9;
|
||||
// SUITE_B_192 192 bit level
|
||||
AUTH_TYPE_SUITE_B_192 = 10;
|
||||
// WPA pre-shared key with stronger SHA256-based algorithms.
|
||||
AUTH_TYPE_WPA_PSK_SHA256 = 11;
|
||||
// WPA using EAP authentication with stronger SHA256-based algorithms.
|
||||
AUTH_TYPE_WPA_EAP_SHA256 = 12;
|
||||
// WAPI pre-shared key.
|
||||
AUTH_TYPE_WAPI_PSK = 13;
|
||||
// WAPI certificate to be specified.
|
||||
AUTH_TYPE_WAPI_CERT = 14;
|
||||
// IEEE 802.11ai FILS SK with SHA256.
|
||||
AUTH_TYPE_FILS_SHA256 = 15;
|
||||
// IEEE 802.11ai FILS SK with SHA384.
|
||||
AUTH_TYPE_FILS_SHA384 = 16;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bucketed wifi band.
|
||||
*/
|
||||
enum WifiBandBucket {
|
||||
BAND_UNKNOWN = 0;
|
||||
|
||||
// All of 2.4GHz band
|
||||
BAND_2G = 1;
|
||||
// Frequencies in the range of [5150, 5250) GHz
|
||||
BAND_5G_LOW = 2;
|
||||
// Frequencies in the range of [5250, 5725) GHz
|
||||
BAND_5G_MIDDLE = 3;
|
||||
// Frequencies in the range of [5725, 5850) GHz
|
||||
BAND_5G_HIGH = 4;
|
||||
// Frequencies in the range of [5925, 6425) GHz
|
||||
BAND_6G_LOW = 5;
|
||||
// Frequencies in the range of [6425, 6875) GHz
|
||||
BAND_6G_MIDDLE = 6;
|
||||
// Frequencies in the range of [6875, 7125) GHz
|
||||
BAND_6G_HIGH = 7;
|
||||
}
|
||||
Reference in New Issue
Block a user