Merge "Cleaning up frameworks protos." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4738c7d0ab
@@ -23,14 +23,14 @@ option java_outer_classname = "ActivityManagerProto";
|
||||
|
||||
// ActivityManager.java UID_OBSERVERs flags
|
||||
enum UidObserverFlag {
|
||||
// report changes in process state, original value is 1 << 0
|
||||
UID_OBSERVER_FLAG_PROCSTATE = 1;
|
||||
// report uid gone, original value is 1 << 1
|
||||
UID_OBSERVER_FLAG_GONE = 2;
|
||||
// report uid has become idle, original value is 1 << 2
|
||||
UID_OBSERVER_FLAG_IDLE = 3;
|
||||
// report uid has become active, original value is 1 << 3
|
||||
UID_OBSERVER_FLAG_ACTIVE = 4;
|
||||
// report uid cached state has changed, original value is 1 << 4
|
||||
UID_OBSERVER_FLAG_CACHED = 5;
|
||||
// report changes in process state, original value is 1 << 0
|
||||
UID_OBSERVER_FLAG_PROCSTATE = 1;
|
||||
// report uid gone, original value is 1 << 1
|
||||
UID_OBSERVER_FLAG_GONE = 2;
|
||||
// report uid has become idle, original value is 1 << 2
|
||||
UID_OBSERVER_FLAG_IDLE = 3;
|
||||
// report uid has become active, original value is 1 << 3
|
||||
UID_OBSERVER_FLAG_ACTIVE = 4;
|
||||
// report uid cached state has changed, original value is 1 << 4
|
||||
UID_OBSERVER_FLAG_CACHED = 5;
|
||||
}
|
||||
|
||||
@@ -27,31 +27,31 @@ package android.app;
|
||||
* An android.app.AlarmManager object.
|
||||
*/
|
||||
message AlarmManagerProto {
|
||||
enum AlarmType {
|
||||
// Alarm time in System.currentTimeMillis() (wall clock time in UTC), which
|
||||
// will wake up the device when it goes off.
|
||||
RTC_WAKEUP = 0;
|
||||
// Alarm time in System.currentTimeMillis() (wall clock time in UTC). This
|
||||
// alarm does not wake the device up; if it goes off while the device is
|
||||
// asleep, it will not be delivered until the next time the device wakes up.
|
||||
RTC = 1;
|
||||
// Alarm time in SystemClock.elapsedRealtime() (time since boot, including
|
||||
// sleep), which will wake up the device when it goes off.
|
||||
ELAPSED_REALTIME_WAKEUP = 2;
|
||||
// Alarm time in SystemClock.elapsedRealtime() (time since boot, including
|
||||
// sleep). This alarm does not wake the device up; if it goes off while the
|
||||
// device is asleep, it will not be delivered until the next time the device
|
||||
// wakes up.
|
||||
ELAPSED_REALTIME = 3;
|
||||
}
|
||||
enum AlarmType {
|
||||
// Alarm time in System.currentTimeMillis() (wall clock time in UTC), which
|
||||
// will wake up the device when it goes off.
|
||||
RTC_WAKEUP = 0;
|
||||
// Alarm time in System.currentTimeMillis() (wall clock time in UTC). This
|
||||
// alarm does not wake the device up; if it goes off while the device is
|
||||
// asleep, it will not be delivered until the next time the device wakes up.
|
||||
RTC = 1;
|
||||
// Alarm time in SystemClock.elapsedRealtime() (time since boot, including
|
||||
// sleep), which will wake up the device when it goes off.
|
||||
ELAPSED_REALTIME_WAKEUP = 2;
|
||||
// Alarm time in SystemClock.elapsedRealtime() (time since boot, including
|
||||
// sleep). This alarm does not wake the device up; if it goes off while the
|
||||
// device is asleep, it will not be delivered until the next time the device
|
||||
// wakes up.
|
||||
ELAPSED_REALTIME = 3;
|
||||
}
|
||||
}
|
||||
|
||||
// An android.app.AlarmManager.AlarmClockInfo object.
|
||||
message AlarmClockInfoProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// This value is UTC wall clock time in milliseconds, as returned by
|
||||
// System#currentTimeMillis() for example.
|
||||
optional int64 trigger_time_ms = 1;
|
||||
optional android.app.PendingIntentProto show_intent = 2;
|
||||
// This value is UTC wall clock time in milliseconds, as returned by
|
||||
// System#currentTimeMillis() for example.
|
||||
optional int64 trigger_time_ms = 1;
|
||||
optional android.app.PendingIntentProto show_intent = 2;
|
||||
}
|
||||
|
||||
@@ -24,10 +24,10 @@ 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_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;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
* An android.app.PendingIntent object.
|
||||
*/
|
||||
message PendingIntentProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional string target = 1;
|
||||
optional string target = 1;
|
||||
}
|
||||
|
||||
@@ -19,15 +19,15 @@ package android.app;
|
||||
option java_multiple_files = true;
|
||||
|
||||
message StatusBarManagerProto {
|
||||
enum WindowState {
|
||||
WINDOW_STATE_SHOWING = 0;
|
||||
WINDOW_STATE_HIDING = 1;
|
||||
WINDOW_STATE_HIDDEN = 2;
|
||||
}
|
||||
enum TransientWindowState {
|
||||
TRANSIENT_BAR_NONE = 0;
|
||||
TRANSIENT_BAR_SHOW_REQUESTED = 1;
|
||||
TRANSIENT_BAR_SHOWING = 2;
|
||||
TRANSIENT_BAR_HIDING = 3;
|
||||
}
|
||||
enum WindowState {
|
||||
WINDOW_STATE_SHOWING = 0;
|
||||
WINDOW_STATE_HIDING = 1;
|
||||
WINDOW_STATE_HIDDEN = 2;
|
||||
}
|
||||
enum TransientWindowState {
|
||||
TRANSIENT_BAR_NONE = 0;
|
||||
TRANSIENT_BAR_SHOW_REQUESTED = 1;
|
||||
TRANSIENT_BAR_SHOWING = 2;
|
||||
TRANSIENT_BAR_HIDING = 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,9 +25,9 @@ import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
|
||||
/** Proto representation for WindowConfiguration.java class. */
|
||||
message WindowConfigurationProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional .android.graphics.RectProto app_bounds = 1;
|
||||
optional int32 windowing_mode = 2;
|
||||
optional int32 activity_type = 3;
|
||||
optional .android.graphics.RectProto app_bounds = 1;
|
||||
optional int32 windowing_mode = 2;
|
||||
optional int32 activity_type = 3;
|
||||
}
|
||||
|
||||
@@ -22,22 +22,22 @@ 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;
|
||||
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_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;
|
||||
}
|
||||
|
||||
@@ -19,24 +19,24 @@ package android.content;
|
||||
option java_multiple_files = true;
|
||||
|
||||
message ActivityInfoProto {
|
||||
enum ScreenOrientation {
|
||||
SCREEN_ORIENTATION_UNSET = -2;
|
||||
SCREEN_ORIENTATION_UNSPECIFIED = -1;
|
||||
SCREEN_ORIENTATION_LANDSCAPE = 0;
|
||||
SCREEN_ORIENTATION_PORTRAIT = 1;
|
||||
SCREEN_ORIENTATION_USER = 2;
|
||||
SCREEN_ORIENTATION_BEHIND = 3;
|
||||
SCREEN_ORIENTATION_SENSOR = 4;
|
||||
SCREEN_ORIENTATION_NOSENSOR = 5;
|
||||
SCREEN_ORIENTATION_SENSOR_LANDSCAPE = 6;
|
||||
SCREEN_ORIENTATION_SENSOR_PORTRAIT = 7;
|
||||
SCREEN_ORIENTATION_REVERSE_LANDSCAPE = 8;
|
||||
SCREEN_ORIENTATION_REVERSE_PORTRAIT = 9;
|
||||
SCREEN_ORIENTATION_FULL_SENSOR = 10;
|
||||
SCREEN_ORIENTATION_USER_LANDSCAPE = 11;
|
||||
SCREEN_ORIENTATION_USER_PORTRAIT = 12;
|
||||
SCREEN_ORIENTATION_FULL_USER = 13;
|
||||
SCREEN_ORIENTATION_LOCKED = 14;
|
||||
}
|
||||
enum ScreenOrientation {
|
||||
SCREEN_ORIENTATION_UNSET = -2;
|
||||
SCREEN_ORIENTATION_UNSPECIFIED = -1;
|
||||
SCREEN_ORIENTATION_LANDSCAPE = 0;
|
||||
SCREEN_ORIENTATION_PORTRAIT = 1;
|
||||
SCREEN_ORIENTATION_USER = 2;
|
||||
SCREEN_ORIENTATION_BEHIND = 3;
|
||||
SCREEN_ORIENTATION_SENSOR = 4;
|
||||
SCREEN_ORIENTATION_NOSENSOR = 5;
|
||||
SCREEN_ORIENTATION_SENSOR_LANDSCAPE = 6;
|
||||
SCREEN_ORIENTATION_SENSOR_PORTRAIT = 7;
|
||||
SCREEN_ORIENTATION_REVERSE_LANDSCAPE = 8;
|
||||
SCREEN_ORIENTATION_REVERSE_PORTRAIT = 9;
|
||||
SCREEN_ORIENTATION_FULL_SENSOR = 10;
|
||||
SCREEN_ORIENTATION_USER_LANDSCAPE = 11;
|
||||
SCREEN_ORIENTATION_USER_PORTRAIT = 12;
|
||||
SCREEN_ORIENTATION_FULL_USER = 13;
|
||||
SCREEN_ORIENTATION_LOCKED = 14;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,63 +28,63 @@ import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
* An android Configuration object.
|
||||
*/
|
||||
message ConfigurationProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional float font_scale = 1;
|
||||
optional uint32 mcc = 2;
|
||||
optional uint32 mnc = 3 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
repeated LocaleProto locales = 4;
|
||||
optional uint32 screen_layout = 5;
|
||||
optional uint32 color_mode = 6;
|
||||
optional uint32 touchscreen = 7;
|
||||
optional uint32 keyboard = 8;
|
||||
optional uint32 keyboard_hidden = 9;
|
||||
optional uint32 hard_keyboard_hidden = 10;
|
||||
optional uint32 navigation = 11;
|
||||
optional uint32 navigation_hidden = 12;
|
||||
optional uint32 orientation = 13;
|
||||
optional uint32 ui_mode = 14;
|
||||
optional uint32 screen_width_dp = 15;
|
||||
optional uint32 screen_height_dp = 16;
|
||||
optional uint32 smallest_screen_width_dp = 17;
|
||||
optional uint32 density_dpi = 18;
|
||||
optional .android.app.WindowConfigurationProto window_configuration = 19;
|
||||
optional float font_scale = 1;
|
||||
optional uint32 mcc = 2;
|
||||
optional uint32 mnc = 3 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
repeated LocaleProto locales = 4;
|
||||
optional uint32 screen_layout = 5;
|
||||
optional uint32 color_mode = 6;
|
||||
optional uint32 touchscreen = 7;
|
||||
optional uint32 keyboard = 8;
|
||||
optional uint32 keyboard_hidden = 9;
|
||||
optional uint32 hard_keyboard_hidden = 10;
|
||||
optional uint32 navigation = 11;
|
||||
optional uint32 navigation_hidden = 12;
|
||||
optional uint32 orientation = 13;
|
||||
optional uint32 ui_mode = 14;
|
||||
optional uint32 screen_width_dp = 15;
|
||||
optional uint32 screen_height_dp = 16;
|
||||
optional uint32 smallest_screen_width_dp = 17;
|
||||
optional uint32 density_dpi = 18;
|
||||
optional .android.app.WindowConfigurationProto window_configuration = 19;
|
||||
}
|
||||
|
||||
/**
|
||||
* All current configuration data used to select resources.
|
||||
*/
|
||||
message ResourcesConfigurationProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
required ConfigurationProto configuration = 1;
|
||||
required ConfigurationProto configuration = 1;
|
||||
|
||||
optional uint32 sdk_version = 2;
|
||||
optional uint32 screen_width_px = 3;
|
||||
optional uint32 screen_height_px = 4;
|
||||
optional uint32 sdk_version = 2;
|
||||
optional uint32 screen_width_px = 3;
|
||||
optional uint32 screen_height_px = 4;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overall device configuration data.
|
||||
*/
|
||||
message DeviceConfigurationProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional uint32 stable_screen_width_px = 1;
|
||||
optional uint32 stable_screen_height_px = 2;
|
||||
optional uint32 stable_density_dpi = 3;
|
||||
optional uint32 stable_screen_width_px = 1;
|
||||
optional uint32 stable_screen_height_px = 2;
|
||||
optional uint32 stable_density_dpi = 3;
|
||||
|
||||
optional uint64 total_ram = 4;
|
||||
optional bool low_ram = 5;
|
||||
optional uint32 max_cores = 6;
|
||||
optional bool has_secure_screen_lock = 7;
|
||||
optional uint64 total_ram = 4;
|
||||
optional bool low_ram = 5;
|
||||
optional uint32 max_cores = 6;
|
||||
optional bool has_secure_screen_lock = 7;
|
||||
|
||||
optional uint32 opengl_version = 8;
|
||||
repeated string opengl_extensions = 9;
|
||||
optional uint32 opengl_version = 8;
|
||||
repeated string opengl_extensions = 9;
|
||||
|
||||
repeated string shared_libraries = 10;
|
||||
repeated string features = 11;
|
||||
repeated string cpu_architectures = 12;
|
||||
repeated string shared_libraries = 10;
|
||||
repeated string features = 11;
|
||||
repeated string cpu_architectures = 12;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -92,8 +92,8 @@ message DeviceConfigurationProto {
|
||||
* to filter and target apps.
|
||||
*/
|
||||
message GlobalConfigurationProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional ResourcesConfigurationProto resources = 1;
|
||||
optional DeviceConfigurationProto device = 2;
|
||||
optional ResourcesConfigurationProto resources = 1;
|
||||
optional DeviceConfigurationProto device = 2;
|
||||
}
|
||||
|
||||
@@ -23,10 +23,10 @@ import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
package android.content;
|
||||
|
||||
message LocaleProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional string language = 1;
|
||||
optional string country = 2;
|
||||
optional string variant = 3;
|
||||
optional string language = 1;
|
||||
optional string country = 2;
|
||||
optional string variant = 3;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,16 +19,16 @@ package android.graphics;
|
||||
option java_multiple_files = true;
|
||||
|
||||
message PixelFormatProto {
|
||||
enum Format {
|
||||
UNKNOWN = 0;
|
||||
TRANSLUCENT = -3;
|
||||
TRANSPARENT = -2;
|
||||
OPAQUE = -1;
|
||||
RGBA_8888 = 1;
|
||||
RGBX_8888 = 2;
|
||||
RGB_888 = 3;
|
||||
RGB_565 = 4;
|
||||
RGBA_F16 = 0x16;
|
||||
RGBA_1010102 = 0x2B;
|
||||
}
|
||||
enum Format {
|
||||
UNKNOWN = 0;
|
||||
TRANSLUCENT = -3;
|
||||
TRANSPARENT = -2;
|
||||
OPAQUE = -1;
|
||||
RGBA_8888 = 1;
|
||||
RGBX_8888 = 2;
|
||||
RGB_888 = 3;
|
||||
RGB_565 = 4;
|
||||
RGBA_F16 = 0x16;
|
||||
RGBA_1010102 = 0x2B;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@ import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
option java_multiple_files = true;
|
||||
|
||||
message PointProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 x = 1;
|
||||
optional int32 y = 2;
|
||||
optional int32 x = 1;
|
||||
optional int32 y = 2;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,11 +22,11 @@ import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
option java_multiple_files = true;
|
||||
|
||||
message RectProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 left = 1;
|
||||
optional int32 top = 2;
|
||||
optional int32 right = 3;
|
||||
optional int32 bottom = 4;
|
||||
optional int32 left = 1;
|
||||
optional int32 top = 2;
|
||||
optional int32 right = 3;
|
||||
optional int32 bottom = 4;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ option java_multiple_files = true;
|
||||
import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
|
||||
message LocalLogProto {
|
||||
option (.android.msg_privacy).dest = DEST_EXPLICIT;
|
||||
option (.android.msg_privacy).dest = DEST_EXPLICIT;
|
||||
|
||||
repeated string lines = 1;
|
||||
repeated string lines = 1;
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@ syntax = "proto2";
|
||||
package com.android.internal.app.procstats;
|
||||
|
||||
message ProcessStatsProto {
|
||||
enum MemoryFactor {
|
||||
MEM_FACTOR_NORMAL = 0;
|
||||
MEM_FACTOR_MODERATE = 1;
|
||||
MEM_FACTOR_LOW = 2;
|
||||
MEM_FACTOR_CRITICAL = 3;
|
||||
}
|
||||
enum MemoryFactor {
|
||||
MEM_FACTOR_NORMAL = 0;
|
||||
MEM_FACTOR_MODERATE = 1;
|
||||
MEM_FACTOR_LOW = 2;
|
||||
MEM_FACTOR_CRITICAL = 3;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -29,254 +29,254 @@ option java_multiple_files = true;
|
||||
|
||||
// next ID: 43
|
||||
message AlarmManagerServiceDumpProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int64 current_time = 1;
|
||||
optional int64 elapsed_realtime = 2;
|
||||
optional int64 last_time_change_clock_time = 3;
|
||||
optional int64 last_time_change_realtime = 4;
|
||||
// Current settings
|
||||
optional ConstantsProto settings = 5;
|
||||
|
||||
// Dump from ForceAppStandbyTracker.
|
||||
optional ForceAppStandbyTrackerProto force_app_standby_tracker = 6;
|
||||
|
||||
optional bool is_interactive = 7;
|
||||
// Only valid if is_interactive is false.
|
||||
optional int64 time_since_non_interactive_ms = 8;
|
||||
// Only valid if is_interactive is false.
|
||||
optional int64 max_wakeup_delay_ms = 9;
|
||||
// Only valid if is_interactive is false.
|
||||
optional int64 time_since_last_dispatch_ms = 10;
|
||||
// Only valid if is_interactive is false.
|
||||
optional int64 time_until_next_non_wakeup_delivery_ms = 11;
|
||||
|
||||
// Can be negative if the non-wakeup alarm time is in the past (non-wakeup
|
||||
// alarms aren't delivered unil the next time the device wakes up).
|
||||
optional int64 time_until_next_non_wakeup_alarm_ms = 12;
|
||||
optional int64 time_until_next_wakeup_ms = 13;
|
||||
optional int64 time_since_last_wakeup_ms = 14;
|
||||
// Time since the last wakeup was set.
|
||||
optional int64 time_since_last_wakeup_set_ms = 15;
|
||||
optional int64 time_change_event_count = 16;
|
||||
// The current set of user whitelisted apps for device idle mode, meaning
|
||||
// these are allowed to freely schedule alarms. These are app IDs, not UIDs.
|
||||
repeated int32 device_idle_user_whitelist_app_ids = 17;
|
||||
|
||||
repeated AlarmClockMetadataProto next_alarm_clock_metadata = 18;
|
||||
|
||||
repeated BatchProto pending_alarm_batches = 19;
|
||||
|
||||
// List of alarms per uid deferred due to user applied background restrictions
|
||||
// on the source app.
|
||||
repeated AlarmProto pending_user_blocked_background_alarms = 20;
|
||||
|
||||
// When idling mode will end. Will be empty if the device is not currently
|
||||
// idling.
|
||||
optional AlarmProto pending_idle_until = 21;
|
||||
|
||||
// Any alarms that we don't want to run during idle mode. Will be empty if the
|
||||
// device is not currently idling.
|
||||
repeated AlarmProto pending_while_idle_alarms = 22;
|
||||
|
||||
// This is a special alarm that will put the system into idle until it goes
|
||||
// off. The caller has given the time they want this to happen at.
|
||||
optional AlarmProto next_wake_from_idle = 23;
|
||||
|
||||
repeated AlarmProto past_due_non_wakeup_alarms = 24;
|
||||
|
||||
// Number of delayed alarms.
|
||||
optional int32 delayed_alarm_count = 25;
|
||||
// The total amount of time alarms had been delayed. Overlapping alarms are
|
||||
// only counted once (ie. If two alarms were meant to trigger at the same time
|
||||
// but were delayed by 5 seconds, the total time would be 5 seconds).
|
||||
optional int64 total_delay_time_ms = 26;
|
||||
optional int64 max_delay_duration_ms = 27;
|
||||
optional int64 max_non_interactive_duration_ms = 28;
|
||||
|
||||
optional int32 broadcast_ref_count = 29;
|
||||
// Canonical count of (operation.send() - onSendFinished()) and listener
|
||||
// send/complete/timeout invocations.
|
||||
optional int32 pending_intent_send_count = 30;
|
||||
optional int32 pending_intent_finish_count = 31;
|
||||
optional int32 listener_send_count = 32;
|
||||
optional int32 listener_finish_count = 33;
|
||||
|
||||
repeated InFlightProto outstanding_deliveries = 34;
|
||||
|
||||
message LastAllowWhileIdleDispatch {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 uid = 1;
|
||||
// In the 'elapsed' timebase.
|
||||
optional int64 time_ms = 2;
|
||||
optional int64 current_time = 1;
|
||||
optional int64 elapsed_realtime = 2;
|
||||
optional int64 last_time_change_clock_time = 3;
|
||||
optional int64 last_time_change_realtime = 4;
|
||||
// Current settings
|
||||
optional ConstantsProto settings = 5;
|
||||
|
||||
// Time when the next while-idle is allowed, in the 'elapsed' timebase.
|
||||
optional int64 next_allowed_ms = 3;
|
||||
}
|
||||
// Dump from ForceAppStandbyTracker.
|
||||
optional ForceAppStandbyTrackerProto force_app_standby_tracker = 6;
|
||||
|
||||
// Whether the short or long while-idle timeout should be used for each UID.
|
||||
repeated int32 use_allow_while_idle_short_time = 35;
|
||||
optional bool is_interactive = 7;
|
||||
// Only valid if is_interactive is false.
|
||||
optional int64 time_since_non_interactive_ms = 8;
|
||||
// Only valid if is_interactive is false.
|
||||
optional int64 max_wakeup_delay_ms = 9;
|
||||
// Only valid if is_interactive is false.
|
||||
optional int64 time_since_last_dispatch_ms = 10;
|
||||
// Only valid if is_interactive is false.
|
||||
optional int64 time_until_next_non_wakeup_delivery_ms = 11;
|
||||
|
||||
// For each uid, this is the last time we dispatched an "allow while idle"
|
||||
// alarm, used to determine the earliest we can dispatch the next such alarm.
|
||||
repeated LastAllowWhileIdleDispatch last_allow_while_idle_dispatch_times = 36;
|
||||
// Can be negative if the non-wakeup alarm time is in the past (non-wakeup
|
||||
// alarms aren't delivered unil the next time the device wakes up).
|
||||
optional int64 time_until_next_non_wakeup_alarm_ms = 12;
|
||||
optional int64 time_until_next_wakeup_ms = 13;
|
||||
optional int64 time_since_last_wakeup_ms = 14;
|
||||
// Time since the last wakeup was set.
|
||||
optional int64 time_since_last_wakeup_set_ms = 15;
|
||||
optional int64 time_change_event_count = 16;
|
||||
// The current set of user whitelisted apps for device idle mode, meaning
|
||||
// these are allowed to freely schedule alarms. These are app IDs, not UIDs.
|
||||
repeated int32 device_idle_user_whitelist_app_ids = 17;
|
||||
|
||||
optional com.android.internal.util.LocalLogProto recent_problems = 37;
|
||||
repeated AlarmClockMetadataProto next_alarm_clock_metadata = 18;
|
||||
|
||||
message TopAlarm {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
repeated BatchProto pending_alarm_batches = 19;
|
||||
|
||||
optional int32 uid = 1;
|
||||
optional string package_name = 2;
|
||||
optional FilterStatsProto filter = 3;
|
||||
}
|
||||
repeated TopAlarm top_alarms = 38;
|
||||
// List of alarms per uid deferred due to user applied background restrictions
|
||||
// on the source app.
|
||||
repeated AlarmProto pending_user_blocked_background_alarms = 20;
|
||||
|
||||
message AlarmStat {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
// When idling mode will end. Will be empty if the device is not currently
|
||||
// idling.
|
||||
optional AlarmProto pending_idle_until = 21;
|
||||
|
||||
optional BroadcastStatsProto broadcast = 1;
|
||||
repeated FilterStatsProto filters = 2;
|
||||
}
|
||||
repeated AlarmStat alarm_stats = 39;
|
||||
// Any alarms that we don't want to run during idle mode. Will be empty if the
|
||||
// device is not currently idling.
|
||||
repeated AlarmProto pending_while_idle_alarms = 22;
|
||||
|
||||
repeated IdleDispatchEntryProto allow_while_idle_dispatches = 40;
|
||||
repeated WakeupEventProto recent_wakeup_history = 41;
|
||||
// This is a special alarm that will put the system into idle until it goes
|
||||
// off. The caller has given the time they want this to happen at.
|
||||
optional AlarmProto next_wake_from_idle = 23;
|
||||
|
||||
repeated AlarmProto past_due_non_wakeup_alarms = 24;
|
||||
|
||||
// Number of delayed alarms.
|
||||
optional int32 delayed_alarm_count = 25;
|
||||
// The total amount of time alarms had been delayed. Overlapping alarms are
|
||||
// only counted once (ie. If two alarms were meant to trigger at the same time
|
||||
// but were delayed by 5 seconds, the total time would be 5 seconds).
|
||||
optional int64 total_delay_time_ms = 26;
|
||||
optional int64 max_delay_duration_ms = 27;
|
||||
optional int64 max_non_interactive_duration_ms = 28;
|
||||
|
||||
optional int32 broadcast_ref_count = 29;
|
||||
// Canonical count of (operation.send() - onSendFinished()) and listener
|
||||
// send/complete/timeout invocations.
|
||||
optional int32 pending_intent_send_count = 30;
|
||||
optional int32 pending_intent_finish_count = 31;
|
||||
optional int32 listener_send_count = 32;
|
||||
optional int32 listener_finish_count = 33;
|
||||
|
||||
repeated InFlightProto outstanding_deliveries = 34;
|
||||
|
||||
message LastAllowWhileIdleDispatch {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 uid = 1;
|
||||
// In the 'elapsed' timebase.
|
||||
optional int64 time_ms = 2;
|
||||
|
||||
// Time when the next while-idle is allowed, in the 'elapsed' timebase.
|
||||
optional int64 next_allowed_ms = 3;
|
||||
}
|
||||
|
||||
// Whether the short or long while-idle timeout should be used for each UID.
|
||||
repeated int32 use_allow_while_idle_short_time = 35;
|
||||
|
||||
// For each uid, this is the last time we dispatched an "allow while idle"
|
||||
// alarm, used to determine the earliest we can dispatch the next such alarm.
|
||||
repeated LastAllowWhileIdleDispatch last_allow_while_idle_dispatch_times = 36;
|
||||
|
||||
optional com.android.internal.util.LocalLogProto recent_problems = 37;
|
||||
|
||||
message TopAlarm {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 uid = 1;
|
||||
optional string package_name = 2;
|
||||
optional FilterStatsProto filter = 3;
|
||||
}
|
||||
repeated TopAlarm top_alarms = 38;
|
||||
|
||||
message AlarmStat {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional BroadcastStatsProto broadcast = 1;
|
||||
repeated FilterStatsProto filters = 2;
|
||||
}
|
||||
repeated AlarmStat alarm_stats = 39;
|
||||
|
||||
repeated IdleDispatchEntryProto allow_while_idle_dispatches = 40;
|
||||
repeated WakeupEventProto recent_wakeup_history = 41;
|
||||
}
|
||||
|
||||
// This is a soft wrapper for alarm clock information. It is not representative
|
||||
// of an android.app.AlarmManager.AlarmClockInfo object.
|
||||
message AlarmClockMetadataProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 user = 1;
|
||||
optional bool is_pending_send = 2;
|
||||
// This value is UTC wall clock time in milliseconds, as returned by
|
||||
// System#currentTimeMillis() for example.
|
||||
optional int64 trigger_time_ms = 3;
|
||||
optional int32 user = 1;
|
||||
optional bool is_pending_send = 2;
|
||||
// This value is UTC wall clock time in milliseconds, as returned by
|
||||
// System#currentTimeMillis() for example.
|
||||
optional int64 trigger_time_ms = 3;
|
||||
}
|
||||
|
||||
// A com.android.server.AlarmManagerService.Alarm object.
|
||||
message AlarmProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional string tag = 1 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional .android.app.AlarmManagerProto.AlarmType type = 2;
|
||||
// How long until the alarm goes off, in the 'elapsed' timebase. Can be
|
||||
// negative if 'when' is in the past.
|
||||
optional int64 time_until_when_elapsed_ms = 3;
|
||||
optional int64 window_length_ms = 4;
|
||||
optional int64 repeat_interval_ms = 5;
|
||||
optional int32 count = 6;
|
||||
optional int32 flags = 7;
|
||||
optional .android.app.AlarmClockInfoProto alarm_clock = 8;
|
||||
optional .android.app.PendingIntentProto operation = 9;
|
||||
optional string listener = 10 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional string tag = 1 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional .android.app.AlarmManagerProto.AlarmType type = 2;
|
||||
// How long until the alarm goes off, in the 'elapsed' timebase. Can be
|
||||
// negative if 'when' is in the past.
|
||||
optional int64 time_until_when_elapsed_ms = 3;
|
||||
optional int64 window_length_ms = 4;
|
||||
optional int64 repeat_interval_ms = 5;
|
||||
optional int32 count = 6;
|
||||
optional int32 flags = 7;
|
||||
optional .android.app.AlarmClockInfoProto alarm_clock = 8;
|
||||
optional .android.app.PendingIntentProto operation = 9;
|
||||
optional string listener = 10 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
}
|
||||
|
||||
// A com.android.server.AlarmManagerService.Batch object.
|
||||
message BatchProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// Start time in terms of elapsed realtime.
|
||||
optional int64 start_realtime = 1;
|
||||
// End time in terms of elapsed realtime.
|
||||
optional int64 end_realtime = 2;
|
||||
optional int32 flags = 3;
|
||||
repeated AlarmProto alarms = 4;
|
||||
// Start time in terms of elapsed realtime.
|
||||
optional int64 start_realtime = 1;
|
||||
// End time in terms of elapsed realtime.
|
||||
optional int64 end_realtime = 2;
|
||||
optional int32 flags = 3;
|
||||
repeated AlarmProto alarms = 4;
|
||||
}
|
||||
|
||||
// A com.android.server.AlarmManagerService.BroadcastStats object.
|
||||
message BroadcastStatsProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 uid = 1;
|
||||
optional string package_name = 2;
|
||||
// The total amount of time this broadcast was in flight.
|
||||
optional int64 total_flight_duration_ms = 3;
|
||||
optional int32 count = 4;
|
||||
optional int32 wakeup_count = 5;
|
||||
// The last time this first became active (when nesting changed from 0 to 1)
|
||||
// in terms of elapsed realtime.
|
||||
optional int64 start_time_realtime = 6;
|
||||
// The broadcast is active if nesting > 0.
|
||||
optional int32 nesting = 7;
|
||||
optional int32 uid = 1;
|
||||
optional string package_name = 2;
|
||||
// The total amount of time this broadcast was in flight.
|
||||
optional int64 total_flight_duration_ms = 3;
|
||||
optional int32 count = 4;
|
||||
optional int32 wakeup_count = 5;
|
||||
// The last time this first became active (when nesting changed from 0 to 1)
|
||||
// in terms of elapsed realtime.
|
||||
optional int64 start_time_realtime = 6;
|
||||
// The broadcast is active if nesting > 0.
|
||||
optional int32 nesting = 7;
|
||||
}
|
||||
|
||||
// A com.android.server.AlarmManagerService.Constants object.
|
||||
message ConstantsProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// Minimum futurity of a new alarm.
|
||||
optional int64 min_futurity_duration_ms = 1;
|
||||
// Minimum alarm recurrence interval.
|
||||
optional int64 min_interval_duration_ms = 2;
|
||||
// Direct alarm listener callback timeout.
|
||||
optional int64 listener_timeout_duration_ms = 3;
|
||||
// Minimum time between ALLOW_WHILE_IDLE alarms when system is not idle.
|
||||
optional int64 allow_while_idle_short_duration_ms = 4;
|
||||
// Minimum time between ALLOW_WHILE_IDLE alarms when system is idling.
|
||||
optional int64 allow_while_idle_long_duration_ms = 5;
|
||||
// BroadcastOptions.setTemporaryAppWhitelistDuration() to use for FLAG_ALLOW_WHILE_IDLE.
|
||||
optional int64 allow_while_idle_whitelist_duration_ms = 6;
|
||||
// Maximum alarm recurrence interval.
|
||||
optional int64 max_interval_duration_ms = 7;
|
||||
// Minimum futurity of a new alarm.
|
||||
optional int64 min_futurity_duration_ms = 1;
|
||||
// Minimum alarm recurrence interval.
|
||||
optional int64 min_interval_duration_ms = 2;
|
||||
// Direct alarm listener callback timeout.
|
||||
optional int64 listener_timeout_duration_ms = 3;
|
||||
// Minimum time between ALLOW_WHILE_IDLE alarms when system is not idle.
|
||||
optional int64 allow_while_idle_short_duration_ms = 4;
|
||||
// Minimum time between ALLOW_WHILE_IDLE alarms when system is idling.
|
||||
optional int64 allow_while_idle_long_duration_ms = 5;
|
||||
// BroadcastOptions.setTemporaryAppWhitelistDuration() to use for FLAG_ALLOW_WHILE_IDLE.
|
||||
optional int64 allow_while_idle_whitelist_duration_ms = 6;
|
||||
// Maximum alarm recurrence interval.
|
||||
optional int64 max_interval_duration_ms = 7;
|
||||
}
|
||||
|
||||
// A com.android.server.AlarmManagerService.FilterStats object.
|
||||
message FilterStatsProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional string tag = 1 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
// The last time this filter when in flight, in terms of elapsed realtime.
|
||||
optional int64 last_flight_time_realtime = 2;
|
||||
// The total amount of time this filter was in flight.
|
||||
optional int64 total_flight_duration_ms = 3;
|
||||
optional int32 count = 4;
|
||||
optional int32 wakeup_count = 5;
|
||||
// The last time this first became active (when nesting changed from 0 to 1)
|
||||
// in terms of elapsed realtime.
|
||||
optional int64 start_time_realtime = 6;
|
||||
// The filter is active if nesting > 0.
|
||||
optional int32 nesting = 7;
|
||||
optional string tag = 1 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
// The last time this filter when in flight, in terms of elapsed realtime.
|
||||
optional int64 last_flight_time_realtime = 2;
|
||||
// The total amount of time this filter was in flight.
|
||||
optional int64 total_flight_duration_ms = 3;
|
||||
optional int32 count = 4;
|
||||
optional int32 wakeup_count = 5;
|
||||
// The last time this first became active (when nesting changed from 0 to 1)
|
||||
// in terms of elapsed realtime.
|
||||
optional int64 start_time_realtime = 6;
|
||||
// The filter is active if nesting > 0.
|
||||
optional int32 nesting = 7;
|
||||
}
|
||||
|
||||
// A com.android.server.AlarmManagerService.IdleDispatchEntry object.
|
||||
message IdleDispatchEntryProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 uid = 1;
|
||||
optional string pkg = 2;
|
||||
optional string tag = 3 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional string op = 4;
|
||||
// Time when this entry was created, in terms of elapsed realtime.
|
||||
optional int64 entry_creation_realtime = 5;
|
||||
// For a RESCHEDULED op, this is the last time we dispatched an "allow while
|
||||
// idle" alarm for the UID. For a SET op, this is when the alarm was
|
||||
// triggered. Times are in the 'elapsed' timebase.
|
||||
optional int64 arg_realtime = 6;
|
||||
optional int32 uid = 1;
|
||||
optional string pkg = 2;
|
||||
optional string tag = 3 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional string op = 4;
|
||||
// Time when this entry was created, in terms of elapsed realtime.
|
||||
optional int64 entry_creation_realtime = 5;
|
||||
// For a RESCHEDULED op, this is the last time we dispatched an "allow while
|
||||
// idle" alarm for the UID. For a SET op, this is when the alarm was
|
||||
// triggered. Times are in the 'elapsed' timebase.
|
||||
optional int64 arg_realtime = 6;
|
||||
}
|
||||
|
||||
// A com.android.server.AlarmManagerService.InFlight object.
|
||||
message InFlightProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 uid = 1;
|
||||
optional string tag = 2 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional int64 when_elapsed_ms = 3;
|
||||
optional .android.app.AlarmManagerProto.AlarmType alarm_type = 4;
|
||||
optional .android.app.PendingIntentProto pending_intent = 5;
|
||||
optional BroadcastStatsProto broadcast_stats = 6;
|
||||
optional FilterStatsProto filter_stats = 7;
|
||||
optional .android.os.WorkSourceProto work_source = 8;
|
||||
optional int32 uid = 1;
|
||||
optional string tag = 2 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional int64 when_elapsed_ms = 3;
|
||||
optional .android.app.AlarmManagerProto.AlarmType alarm_type = 4;
|
||||
optional .android.app.PendingIntentProto pending_intent = 5;
|
||||
optional BroadcastStatsProto broadcast_stats = 6;
|
||||
optional FilterStatsProto filter_stats = 7;
|
||||
optional .android.os.WorkSourceProto work_source = 8;
|
||||
}
|
||||
|
||||
// A com.android.server.AlarmManagerService.WakeupEvent object.
|
||||
message WakeupEventProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 uid = 1;
|
||||
optional string action = 2;
|
||||
optional int64 when = 3;
|
||||
optional int32 uid = 1;
|
||||
optional string action = 2;
|
||||
optional int64 when = 3;
|
||||
}
|
||||
|
||||
@@ -24,55 +24,55 @@ package com.android.server.wm;
|
||||
option java_multiple_files = true;
|
||||
|
||||
message AnimationAdapterProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional LocalAnimationAdapterProto local = 1;
|
||||
optional RemoteAnimationAdapterWrapperProto remote = 2;
|
||||
optional LocalAnimationAdapterProto local = 1;
|
||||
optional RemoteAnimationAdapterWrapperProto remote = 2;
|
||||
}
|
||||
|
||||
/* represents RemoteAnimationAdapterWrapper */
|
||||
message RemoteAnimationAdapterWrapperProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional .android.view.RemoteAnimationTargetProto target = 1;
|
||||
optional .android.view.RemoteAnimationTargetProto target = 1;
|
||||
}
|
||||
|
||||
/* represents LocalAnimationAdapter */
|
||||
message LocalAnimationAdapterProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional AnimationSpecProto animation_spec = 1;
|
||||
optional AnimationSpecProto animation_spec = 1;
|
||||
}
|
||||
|
||||
message AnimationSpecProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional WindowAnimationSpecProto window = 1;
|
||||
optional MoveAnimationSpecProto move = 2;
|
||||
optional AlphaAnimationSpecProto alpha = 3;
|
||||
optional WindowAnimationSpecProto window = 1;
|
||||
optional MoveAnimationSpecProto move = 2;
|
||||
optional AlphaAnimationSpecProto alpha = 3;
|
||||
}
|
||||
|
||||
/* represents WindowAnimationSpec */
|
||||
message WindowAnimationSpecProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional string animation = 1;
|
||||
optional string animation = 1;
|
||||
}
|
||||
|
||||
/* represents MoveAnimationSpec*/
|
||||
message MoveAnimationSpecProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional .android.graphics.PointProto from = 1;
|
||||
optional .android.graphics.PointProto to = 2;
|
||||
optional int64 duration = 3;
|
||||
optional .android.graphics.PointProto from = 1;
|
||||
optional .android.graphics.PointProto to = 2;
|
||||
optional int64 duration_ms = 3;
|
||||
}
|
||||
|
||||
/* represents AlphaAnimationSpec */
|
||||
message AlphaAnimationSpecProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional float from = 1;
|
||||
optional float to = 2;
|
||||
optional int64 duration = 3;
|
||||
}
|
||||
optional float from = 1;
|
||||
optional float to = 2;
|
||||
optional int64 duration_ms = 3;
|
||||
}
|
||||
|
||||
@@ -26,9 +26,9 @@ option java_multiple_files = true;
|
||||
* Represents a {@link com.android.server.wm.AppWindowThumbnail} object.
|
||||
*/
|
||||
message AppWindowThumbnailProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 width = 1;
|
||||
optional int32 height = 2;
|
||||
optional SurfaceAnimatorProto surface_animator = 3;
|
||||
}
|
||||
optional int32 width = 1;
|
||||
optional int32 height = 2;
|
||||
optional SurfaceAnimatorProto surface_animator = 3;
|
||||
}
|
||||
|
||||
@@ -27,51 +27,51 @@ option java_multiple_files = true;
|
||||
//
|
||||
// Next ID: 12
|
||||
message ForceAppStandbyTrackerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// Whether all apps are forced standby or not.
|
||||
optional bool force_all_apps_standby = 1;
|
||||
|
||||
// UIDs currently active.
|
||||
repeated int32 active_uids = 2;
|
||||
|
||||
// UIDs currently in the foreground.
|
||||
repeated int32 foreground_uids = 11;
|
||||
|
||||
// App ids that are in power-save whitelist.
|
||||
repeated int32 power_save_whitelist_app_ids = 3;
|
||||
|
||||
// App ids that are in temporary power-save whitelist.
|
||||
repeated int32 temp_power_save_whitelist_app_ids = 4;
|
||||
|
||||
message RunAnyInBackgroundRestrictedPackages {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 uid = 1;
|
||||
optional string package_name = 2;
|
||||
}
|
||||
// Packages that are disallowed OP_RUN_ANY_IN_BACKGROUND.
|
||||
repeated RunAnyInBackgroundRestrictedPackages run_any_in_background_restricted_packages = 5;
|
||||
// Whether all apps are forced standby or not.
|
||||
optional bool force_all_apps_standby = 1;
|
||||
|
||||
// Whether device is a small battery device
|
||||
optional bool is_small_battery_device = 6;
|
||||
// UIDs currently active.
|
||||
repeated int32 active_uids = 2;
|
||||
|
||||
// Whether force app standby for small battery device setting is enabled
|
||||
optional bool force_all_apps_standby_for_small_battery = 7;
|
||||
// UIDs currently in the foreground.
|
||||
repeated int32 foreground_uids = 11;
|
||||
|
||||
// Whether device is plugged in to the charger
|
||||
optional bool is_plugged_in = 8;
|
||||
// App ids that are in power-save whitelist.
|
||||
repeated int32 power_save_whitelist_app_ids = 3;
|
||||
|
||||
// Performance stats.
|
||||
optional StatLoggerProto stats = 9;
|
||||
// App ids that are in temporary power-save whitelist.
|
||||
repeated int32 temp_power_save_whitelist_app_ids = 4;
|
||||
|
||||
message ExemptedPackage {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
message RunAnyInBackgroundRestrictedPackages {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 userId = 1;
|
||||
optional string package_name = 2;
|
||||
}
|
||||
optional int32 uid = 1;
|
||||
optional string package_name = 2;
|
||||
}
|
||||
// Packages that are disallowed OP_RUN_ANY_IN_BACKGROUND.
|
||||
repeated RunAnyInBackgroundRestrictedPackages run_any_in_background_restricted_packages = 5;
|
||||
|
||||
// Packages that are in the EXEMPT bucket.
|
||||
repeated ExemptedPackage exempted_packages = 10;
|
||||
// Whether device is a small battery device
|
||||
optional bool is_small_battery_device = 6;
|
||||
|
||||
// Whether force app standby for small battery device setting is enabled
|
||||
optional bool force_all_apps_standby_for_small_battery = 7;
|
||||
|
||||
// Whether device is plugged in to the charger
|
||||
optional bool is_plugged_in = 8;
|
||||
|
||||
// Performance stats.
|
||||
optional StatLoggerProto stats = 9;
|
||||
|
||||
message ExemptedPackage {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 userId = 1;
|
||||
optional string package_name = 2;
|
||||
}
|
||||
|
||||
// Packages that are in the EXEMPT bucket.
|
||||
repeated ExemptedPackage exempted_packages = 10;
|
||||
}
|
||||
|
||||
@@ -219,23 +219,6 @@ message ConstantsProto {
|
||||
message StateControllerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
message AppIdleController {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional bool is_parole_on = 1;
|
||||
|
||||
message TrackedJob {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional JobStatusShortInfoProto info = 1;
|
||||
optional int32 source_uid = 2;
|
||||
optional string source_package_name = 3;
|
||||
// If the constraints are satisfied, then the controller will mark
|
||||
// the job as RUNNABLE, otherwise, it will be WAITING.
|
||||
optional bool are_constraints_satisfied = 4;
|
||||
}
|
||||
repeated TrackedJob tracked_jobs = 2;
|
||||
}
|
||||
message BackgroundJobsController {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
@@ -413,15 +396,14 @@ message StateControllerProto {
|
||||
repeated TrackedJob tracked_jobs = 4;
|
||||
}
|
||||
oneof controller {
|
||||
AppIdleController app_idle = 1;
|
||||
BackgroundJobsController background = 2;
|
||||
BatteryController battery = 3;
|
||||
ConnectivityController connectivity = 4;
|
||||
ContentObserverController content_observer = 5;
|
||||
DeviceIdleJobsController device_idle = 6;
|
||||
IdleController idle = 7;
|
||||
StorageController storage = 8;
|
||||
TimeController time = 9;
|
||||
BackgroundJobsController background = 1;
|
||||
BatteryController battery = 2;
|
||||
ConnectivityController connectivity = 3;
|
||||
ContentObserverController content_observer = 4;
|
||||
DeviceIdleJobsController device_idle = 5;
|
||||
IdleController idle = 6;
|
||||
StorageController storage = 7;
|
||||
TimeController time = 8;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -618,8 +600,8 @@ message JobStatusDumpProto {
|
||||
CONSTRAINT_DEADLINE = 5;
|
||||
CONSTRAINT_IDLE = 6;
|
||||
CONSTRAINT_CONNECTIVITY = 7;
|
||||
CONSTRAINT_CONTENT_TRIGGER = 9;
|
||||
CONSTRAINT_DEVICE_NOT_DOZING = 10;
|
||||
CONSTRAINT_CONTENT_TRIGGER = 8;
|
||||
CONSTRAINT_DEVICE_NOT_DOZING = 9;
|
||||
}
|
||||
repeated Constraint required_constraints = 7;
|
||||
repeated Constraint satisfied_constraints = 8;
|
||||
|
||||
@@ -313,36 +313,41 @@ message PowerServiceSettingsAndConfigurationDumpProto {
|
||||
}
|
||||
|
||||
message BatterySaverStateMachineProto {
|
||||
// Whether battery saver is enabled.
|
||||
optional bool enabled = 1;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
// Whether system has booted.
|
||||
optional bool boot_completed = 2;
|
||||
// Whether battery saver is enabled.
|
||||
optional bool enabled = 1;
|
||||
|
||||
// Whether settings have been loaded already.
|
||||
optional bool settings_loaded = 3;
|
||||
// Whether system has booted.
|
||||
optional bool boot_completed = 2;
|
||||
|
||||
// Whether battery status has been set at least once.
|
||||
optional bool battery_status_set = 4;
|
||||
// Whether settings have been loaded already.
|
||||
optional bool settings_loaded = 3;
|
||||
|
||||
// Whether automatic battery saver has been canceled by the user.
|
||||
optional bool battery_saver_snoozing = 5;
|
||||
// Whether battery status has been set at least once.
|
||||
optional bool battery_status_set = 4;
|
||||
|
||||
// Whether the device is connected to any power source.
|
||||
optional bool is_powered = 6;
|
||||
// Whether automatic battery saver has been canceled by the user.
|
||||
optional bool battery_saver_snoozing = 5;
|
||||
|
||||
// Current battery level in %, 0-100.
|
||||
optional int32 battery_level = 7;
|
||||
// Whether the device is connected to any power source.
|
||||
optional bool is_powered = 6;
|
||||
|
||||
// Whether battery level is low or not.
|
||||
optional bool is_battery_level_low = 8;
|
||||
// Current battery level in %, 0-100.
|
||||
optional int32 battery_level = 7;
|
||||
|
||||
// The value of Global.LOW_POWER_MODE.
|
||||
optional bool setting_battery_saver_enabled = 9;
|
||||
// Whether battery level is low or not.
|
||||
optional bool is_battery_level_low = 8;
|
||||
|
||||
// The value of Global.LOW_POWER_MODE_STICKY.
|
||||
optional bool setting_battery_saver_enabled_sticky = 10;
|
||||
// The value of Global.LOW_POWER_MODE. This is a cached value, so it could
|
||||
// be slightly different from what's in GlobalSettingsProto.LowPowerMode.
|
||||
optional bool setting_battery_saver_enabled = 9;
|
||||
|
||||
// The value of Global.LOW_POWER_MODE_TRIGGER_LEVEL.
|
||||
optional int32 setting_battery_saver_trigger_threshold = 11;
|
||||
}
|
||||
// The value of Global.LOW_POWER_MODE_STICKY. This is a cached value, so it could
|
||||
// be slightly different from what's in GlobalSettingsProto.LowPowerMode.
|
||||
optional bool setting_battery_saver_enabled_sticky = 10;
|
||||
|
||||
// The value of Global.LOW_POWER_MODE_TRIGGER_LEVEL. This is a cached value, so it could
|
||||
// be slightly different from what's in GlobalSettingsProto.LowPowerMode.
|
||||
optional int32 setting_battery_saver_trigger_threshold = 11;
|
||||
}
|
||||
|
||||
@@ -24,17 +24,17 @@ import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
|
||||
// Dump from StatLogger.
|
||||
message StatLoggerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
message Event {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 eventId = 1;
|
||||
// Labels are hard-coded in Android framework code.
|
||||
optional string label = 2;
|
||||
optional int32 count = 3;
|
||||
optional int64 total_duration_micros = 4;
|
||||
}
|
||||
message Event {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
repeated Event events = 1;
|
||||
optional int32 eventId = 1;
|
||||
// Labels are hard-coded in Android framework code.
|
||||
optional string label = 2;
|
||||
optional int32 count = 3;
|
||||
optional int64 total_duration_micros = 4;
|
||||
}
|
||||
|
||||
repeated Event events = 1;
|
||||
}
|
||||
|
||||
@@ -27,10 +27,9 @@ option java_multiple_files = true;
|
||||
* Represents a {@link com.android.server.wm.SurfaceAnimator} object.
|
||||
*/
|
||||
message SurfaceAnimatorProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
reserved 1; // Was string animation_adapter = 1
|
||||
optional .android.view.SurfaceControlProto leash = 2;
|
||||
optional bool animation_start_delayed = 3;
|
||||
optional AnimationAdapterProto animation_adapter = 4;
|
||||
}
|
||||
optional .android.view.SurfaceControlProto leash = 1;
|
||||
optional bool animation_start_delayed = 2;
|
||||
optional AnimationAdapterProto animation_adapter = 3;
|
||||
}
|
||||
|
||||
@@ -33,350 +33,350 @@ package com.android.server.wm;
|
||||
option java_multiple_files = true;
|
||||
|
||||
message WindowManagerServiceDumpProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional WindowManagerPolicyProto policy = 1;
|
||||
/* window hierarchy root */
|
||||
optional RootWindowContainerProto root_window_container = 2;
|
||||
optional IdentifierProto focused_window = 3;
|
||||
optional string focused_app = 4;
|
||||
optional IdentifierProto input_method_window = 5;
|
||||
optional bool display_frozen = 6;
|
||||
optional int32 rotation = 7;
|
||||
optional int32 last_orientation = 8;
|
||||
optional AppTransitionProto app_transition = 9;
|
||||
optional WindowManagerPolicyProto policy = 1;
|
||||
/* window hierarchy root */
|
||||
optional RootWindowContainerProto root_window_container = 2;
|
||||
optional IdentifierProto focused_window = 3;
|
||||
optional string focused_app = 4;
|
||||
optional IdentifierProto input_method_window = 5;
|
||||
optional bool display_frozen = 6;
|
||||
optional int32 rotation = 7;
|
||||
optional int32 last_orientation = 8;
|
||||
optional AppTransitionProto app_transition = 9;
|
||||
}
|
||||
|
||||
/* represents DisplayContent */
|
||||
message RootWindowContainerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional WindowContainerProto window_container = 1;
|
||||
repeated DisplayProto displays = 2;
|
||||
/* window references in top down z order */
|
||||
repeated IdentifierProto windows = 3;
|
||||
optional WindowContainerProto window_container = 1;
|
||||
repeated DisplayProto displays = 2;
|
||||
/* window references in top down z order */
|
||||
repeated IdentifierProto windows = 3;
|
||||
}
|
||||
|
||||
message BarControllerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional .android.app.StatusBarManagerProto.WindowState state = 1;
|
||||
optional .android.app.StatusBarManagerProto.TransientWindowState transient_state = 2;
|
||||
optional .android.app.StatusBarManagerProto.WindowState state = 1;
|
||||
optional .android.app.StatusBarManagerProto.TransientWindowState transient_state = 2;
|
||||
}
|
||||
|
||||
message WindowOrientationListenerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional bool enabled = 1;
|
||||
optional .android.view.SurfaceProto.Rotation rotation = 2;
|
||||
optional bool enabled = 1;
|
||||
optional .android.view.SurfaceProto.Rotation rotation = 2;
|
||||
}
|
||||
|
||||
message KeyguardServiceDelegateProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional bool showing = 1;
|
||||
optional bool occluded = 2;
|
||||
optional bool secure = 3;
|
||||
enum ScreenState {
|
||||
SCREEN_STATE_OFF = 0;
|
||||
SCREEN_STATE_TURNING_ON = 1;
|
||||
SCREEN_STATE_ON = 2;
|
||||
SCREEN_STATE_TURNING_OFF = 3;
|
||||
}
|
||||
optional ScreenState screen_state = 4;
|
||||
enum InteractiveState {
|
||||
INTERACTIVE_STATE_SLEEP = 0;
|
||||
INTERACTIVE_STATE_WAKING = 1;
|
||||
INTERACTIVE_STATE_AWAKE = 2;
|
||||
INTERACTIVE_STATE_GOING_TO_SLEEP = 3;
|
||||
}
|
||||
optional InteractiveState interactive_state = 5;
|
||||
optional bool showing = 1;
|
||||
optional bool occluded = 2;
|
||||
optional bool secure = 3;
|
||||
enum ScreenState {
|
||||
SCREEN_STATE_OFF = 0;
|
||||
SCREEN_STATE_TURNING_ON = 1;
|
||||
SCREEN_STATE_ON = 2;
|
||||
SCREEN_STATE_TURNING_OFF = 3;
|
||||
}
|
||||
optional ScreenState screen_state = 4;
|
||||
enum InteractiveState {
|
||||
INTERACTIVE_STATE_SLEEP = 0;
|
||||
INTERACTIVE_STATE_WAKING = 1;
|
||||
INTERACTIVE_STATE_AWAKE = 2;
|
||||
INTERACTIVE_STATE_GOING_TO_SLEEP = 3;
|
||||
}
|
||||
optional InteractiveState interactive_state = 5;
|
||||
}
|
||||
|
||||
/* represents PhoneWindowManager */
|
||||
message WindowManagerPolicyProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 last_system_ui_flags = 1;
|
||||
enum UserRotationMode {
|
||||
USER_ROTATION_FREE = 0;
|
||||
USER_ROTATION_LOCKED = 1;
|
||||
}
|
||||
optional UserRotationMode rotation_mode = 2;
|
||||
optional .android.view.SurfaceProto.Rotation rotation = 3;
|
||||
optional .android.content.ActivityInfoProto.ScreenOrientation orientation = 4;
|
||||
optional bool screen_on_fully = 5;
|
||||
optional bool keyguard_draw_complete = 6;
|
||||
optional bool window_manager_draw_complete = 7;
|
||||
optional string focused_app_token = 8;
|
||||
optional IdentifierProto focused_window = 9;
|
||||
optional IdentifierProto top_fullscreen_opaque_window = 10;
|
||||
optional IdentifierProto top_fullscreen_opaque_or_dimming_window = 11;
|
||||
optional bool keyguard_occluded = 12;
|
||||
optional bool keyguard_occluded_changed = 13;
|
||||
optional bool keyguard_occluded_pending = 14;
|
||||
optional bool force_status_bar = 15;
|
||||
optional bool force_status_bar_from_keyguard = 16;
|
||||
optional BarControllerProto status_bar = 17;
|
||||
optional BarControllerProto navigation_bar = 18;
|
||||
optional WindowOrientationListenerProto orientation_listener = 19;
|
||||
optional KeyguardServiceDelegateProto keyguard_delegate = 20;
|
||||
optional int32 last_system_ui_flags = 1;
|
||||
enum UserRotationMode {
|
||||
USER_ROTATION_FREE = 0;
|
||||
USER_ROTATION_LOCKED = 1;
|
||||
}
|
||||
optional UserRotationMode rotation_mode = 2;
|
||||
optional .android.view.SurfaceProto.Rotation rotation = 3;
|
||||
optional .android.content.ActivityInfoProto.ScreenOrientation orientation = 4;
|
||||
optional bool screen_on_fully = 5;
|
||||
optional bool keyguard_draw_complete = 6;
|
||||
optional bool window_manager_draw_complete = 7;
|
||||
optional string focused_app_token = 8;
|
||||
optional IdentifierProto focused_window = 9;
|
||||
optional IdentifierProto top_fullscreen_opaque_window = 10;
|
||||
optional IdentifierProto top_fullscreen_opaque_or_dimming_window = 11;
|
||||
optional bool keyguard_occluded = 12;
|
||||
optional bool keyguard_occluded_changed = 13;
|
||||
optional bool keyguard_occluded_pending = 14;
|
||||
optional bool force_status_bar = 15;
|
||||
optional bool force_status_bar_from_keyguard = 16;
|
||||
optional BarControllerProto status_bar = 17;
|
||||
optional BarControllerProto navigation_bar = 18;
|
||||
optional WindowOrientationListenerProto orientation_listener = 19;
|
||||
optional KeyguardServiceDelegateProto keyguard_delegate = 20;
|
||||
}
|
||||
|
||||
/* represents AppTransition */
|
||||
message AppTransitionProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
enum AppState {
|
||||
APP_STATE_IDLE = 0;
|
||||
APP_STATE_READY = 1;
|
||||
APP_STATE_RUNNING = 2;
|
||||
APP_STATE_TIMEOUT = 3;
|
||||
}
|
||||
optional AppState app_transition_state = 1;
|
||||
/* definitions for constants found in {@link com.android.server.wm.AppTransition} */
|
||||
enum TransitionType {
|
||||
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;
|
||||
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;
|
||||
}
|
||||
optional TransitionType last_used_app_transition = 2;
|
||||
enum AppState {
|
||||
APP_STATE_IDLE = 0;
|
||||
APP_STATE_READY = 1;
|
||||
APP_STATE_RUNNING = 2;
|
||||
APP_STATE_TIMEOUT = 3;
|
||||
}
|
||||
optional AppState app_transition_state = 1;
|
||||
/* definitions for constants found in {@link com.android.server.wm.AppTransition} */
|
||||
enum TransitionType {
|
||||
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;
|
||||
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;
|
||||
}
|
||||
optional TransitionType last_used_app_transition = 2;
|
||||
}
|
||||
|
||||
/* represents DisplayContent */
|
||||
message DisplayProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional WindowContainerProto window_container = 1;
|
||||
optional int32 id = 2;
|
||||
repeated StackProto stacks = 3;
|
||||
optional DockedStackDividerControllerProto docked_stack_divider_controller = 4;
|
||||
optional PinnedStackControllerProto pinned_stack_controller = 5;
|
||||
/* non app windows */
|
||||
repeated WindowTokenProto above_app_windows = 6;
|
||||
repeated WindowTokenProto below_app_windows = 7;
|
||||
repeated WindowTokenProto ime_windows = 8;
|
||||
optional int32 dpi = 9;
|
||||
optional .android.view.DisplayInfoProto display_info = 10;
|
||||
optional int32 rotation = 11;
|
||||
optional ScreenRotationAnimationProto screen_rotation_animation = 12;
|
||||
optional DisplayFramesProto display_frames = 13;
|
||||
optional WindowContainerProto window_container = 1;
|
||||
optional int32 id = 2;
|
||||
repeated StackProto stacks = 3;
|
||||
optional DockedStackDividerControllerProto docked_stack_divider_controller = 4;
|
||||
optional PinnedStackControllerProto pinned_stack_controller = 5;
|
||||
/* non app windows */
|
||||
repeated WindowTokenProto above_app_windows = 6;
|
||||
repeated WindowTokenProto below_app_windows = 7;
|
||||
repeated WindowTokenProto ime_windows = 8;
|
||||
optional int32 dpi = 9;
|
||||
optional .android.view.DisplayInfoProto display_info = 10;
|
||||
optional int32 rotation = 11;
|
||||
optional ScreenRotationAnimationProto screen_rotation_animation = 12;
|
||||
optional DisplayFramesProto display_frames = 13;
|
||||
}
|
||||
|
||||
/* represents DisplayFrames */
|
||||
message DisplayFramesProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional .android.graphics.RectProto stable_bounds = 1;
|
||||
optional .android.graphics.RectProto stable_bounds = 1;
|
||||
}
|
||||
|
||||
/* represents DockedStackDividerController */
|
||||
message DockedStackDividerControllerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional bool minimized_dock = 1;
|
||||
optional bool minimized_dock = 1;
|
||||
}
|
||||
|
||||
/* represents PinnedStackController */
|
||||
message PinnedStackControllerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional .android.graphics.RectProto default_bounds = 1;
|
||||
optional .android.graphics.RectProto movement_bounds = 2;
|
||||
optional .android.graphics.RectProto default_bounds = 1;
|
||||
optional .android.graphics.RectProto movement_bounds = 2;
|
||||
}
|
||||
|
||||
/* represents TaskStack */
|
||||
message StackProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional WindowContainerProto window_container = 1;
|
||||
optional int32 id = 2;
|
||||
repeated TaskProto tasks = 3;
|
||||
optional bool fills_parent = 4;
|
||||
optional .android.graphics.RectProto bounds = 5;
|
||||
optional bool animation_background_surface_is_dimming = 6;
|
||||
optional bool defer_removal = 7;
|
||||
optional float minimize_amount = 8;
|
||||
optional bool adjusted_for_ime = 9;
|
||||
optional float adjust_ime_amount = 10;
|
||||
optional float adjust_divider_amount = 11;
|
||||
optional .android.graphics.RectProto adjusted_bounds = 12;
|
||||
optional bool animating_bounds = 13;
|
||||
optional WindowContainerProto window_container = 1;
|
||||
optional int32 id = 2;
|
||||
repeated TaskProto tasks = 3;
|
||||
optional bool fills_parent = 4;
|
||||
optional .android.graphics.RectProto bounds = 5;
|
||||
optional bool animation_background_surface_is_dimming = 6;
|
||||
optional bool defer_removal = 7;
|
||||
optional float minimize_amount = 8;
|
||||
optional bool adjusted_for_ime = 9;
|
||||
optional float adjust_ime_amount = 10;
|
||||
optional float adjust_divider_amount = 11;
|
||||
optional .android.graphics.RectProto adjusted_bounds = 12;
|
||||
optional bool animating_bounds = 13;
|
||||
}
|
||||
|
||||
/* represents Task */
|
||||
message TaskProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional WindowContainerProto window_container = 1;
|
||||
optional int32 id = 2;
|
||||
repeated AppWindowTokenProto app_window_tokens = 3;
|
||||
optional bool fills_parent = 4;
|
||||
optional .android.graphics.RectProto bounds = 5;
|
||||
optional .android.graphics.RectProto temp_inset_bounds = 6;
|
||||
optional bool defer_removal = 7;
|
||||
optional WindowContainerProto window_container = 1;
|
||||
optional int32 id = 2;
|
||||
repeated AppWindowTokenProto app_window_tokens = 3;
|
||||
optional bool fills_parent = 4;
|
||||
optional .android.graphics.RectProto bounds = 5;
|
||||
optional .android.graphics.RectProto temp_inset_bounds = 6;
|
||||
optional bool defer_removal = 7;
|
||||
}
|
||||
|
||||
/* represents AppWindowToken */
|
||||
message AppWindowTokenProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
/* obtained from ActivityRecord */
|
||||
optional string name = 1 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional WindowTokenProto window_token = 2;
|
||||
optional bool last_surface_showing = 3;
|
||||
optional bool is_waiting_for_transition_start = 4;
|
||||
optional bool is_really_animating = 5;
|
||||
optional AppWindowThumbnailProto thumbnail = 6;
|
||||
optional bool fills_parent = 7;
|
||||
optional bool app_stopped = 8;
|
||||
optional bool hidden_requested = 9;
|
||||
optional bool client_hidden = 10;
|
||||
optional bool defer_hiding_client = 11;
|
||||
optional bool reported_drawn = 12;
|
||||
optional bool reported_visible = 13;
|
||||
optional int32 num_interesting_windows = 14;
|
||||
optional int32 num_drawn_windows = 15;
|
||||
optional bool all_drawn = 16;
|
||||
optional bool last_all_drawn = 17;
|
||||
optional bool removed = 18;
|
||||
optional IdentifierProto starting_window = 19;
|
||||
optional bool starting_displayed = 20;
|
||||
optional bool starting_moved = 21;
|
||||
optional bool hidden_set_from_transferred_starting_window = 22;
|
||||
repeated .android.graphics.RectProto frozen_bounds = 23;
|
||||
/* obtained from ActivityRecord */
|
||||
optional string name = 1 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional WindowTokenProto window_token = 2;
|
||||
optional bool last_surface_showing = 3;
|
||||
optional bool is_waiting_for_transition_start = 4;
|
||||
optional bool is_really_animating = 5;
|
||||
optional AppWindowThumbnailProto thumbnail = 6;
|
||||
optional bool fills_parent = 7;
|
||||
optional bool app_stopped = 8;
|
||||
optional bool hidden_requested = 9;
|
||||
optional bool client_hidden = 10;
|
||||
optional bool defer_hiding_client = 11;
|
||||
optional bool reported_drawn = 12;
|
||||
optional bool reported_visible = 13;
|
||||
optional int32 num_interesting_windows = 14;
|
||||
optional int32 num_drawn_windows = 15;
|
||||
optional bool all_drawn = 16;
|
||||
optional bool last_all_drawn = 17;
|
||||
optional bool removed = 18;
|
||||
optional IdentifierProto starting_window = 19;
|
||||
optional bool starting_displayed = 20;
|
||||
optional bool starting_moved = 21;
|
||||
optional bool hidden_set_from_transferred_starting_window = 22;
|
||||
repeated .android.graphics.RectProto frozen_bounds = 23;
|
||||
}
|
||||
|
||||
/* represents WindowToken */
|
||||
message WindowTokenProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional WindowContainerProto window_container = 1;
|
||||
optional int32 hash_code = 2;
|
||||
repeated WindowStateProto windows = 3;
|
||||
optional bool hidden = 4;
|
||||
optional bool waiting_to_show = 5;
|
||||
optional bool paused = 6;
|
||||
optional WindowContainerProto window_container = 1;
|
||||
optional int32 hash_code = 2;
|
||||
repeated WindowStateProto windows = 3;
|
||||
optional bool hidden = 4;
|
||||
optional bool waiting_to_show = 5;
|
||||
optional bool paused = 6;
|
||||
}
|
||||
|
||||
/* represents WindowState */
|
||||
message WindowStateProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional WindowContainerProto window_container = 1;
|
||||
optional IdentifierProto identifier = 2;
|
||||
optional int32 display_id = 3;
|
||||
optional int32 stack_id = 4;
|
||||
optional .android.view.WindowLayoutParamsProto attributes = 5;
|
||||
optional .android.graphics.RectProto given_content_insets = 6;
|
||||
optional .android.graphics.RectProto frame = 7;
|
||||
optional .android.graphics.RectProto containing_frame = 8;
|
||||
optional .android.graphics.RectProto parent_frame = 9;
|
||||
optional .android.graphics.RectProto content_frame = 10;
|
||||
optional .android.graphics.RectProto content_insets = 11;
|
||||
optional .android.graphics.RectProto surface_insets = 12;
|
||||
optional WindowStateAnimatorProto animator = 13;
|
||||
optional bool animating_exit = 14;
|
||||
repeated WindowStateProto child_windows = 15;
|
||||
optional .android.graphics.RectProto surface_position = 16;
|
||||
optional int32 requested_width = 18;
|
||||
optional int32 requested_height = 19;
|
||||
optional int32 view_visibility = 20;
|
||||
optional int32 system_ui_visibility = 21;
|
||||
optional bool has_surface = 22;
|
||||
optional bool is_ready_for_display = 23;
|
||||
optional .android.graphics.RectProto display_frame = 24;
|
||||
optional .android.graphics.RectProto overscan_frame = 25;
|
||||
optional .android.graphics.RectProto visible_frame = 26;
|
||||
optional .android.graphics.RectProto decor_frame = 27;
|
||||
optional .android.graphics.RectProto outset_frame = 28;
|
||||
optional .android.graphics.RectProto overscan_insets = 29;
|
||||
optional .android.graphics.RectProto visible_insets = 30;
|
||||
optional .android.graphics.RectProto stable_insets = 31;
|
||||
optional .android.graphics.RectProto outsets = 32;
|
||||
optional .android.view.DisplayCutoutProto cutout = 33;
|
||||
optional bool remove_on_exit = 34;
|
||||
optional bool destroying = 35;
|
||||
optional bool removed = 36;
|
||||
optional bool is_on_screen = 37;
|
||||
optional bool is_visible = 38;
|
||||
optional WindowContainerProto window_container = 1;
|
||||
optional IdentifierProto identifier = 2;
|
||||
optional int32 display_id = 3;
|
||||
optional int32 stack_id = 4;
|
||||
optional .android.view.WindowLayoutParamsProto attributes = 5;
|
||||
optional .android.graphics.RectProto given_content_insets = 6;
|
||||
optional .android.graphics.RectProto frame = 7;
|
||||
optional .android.graphics.RectProto containing_frame = 8;
|
||||
optional .android.graphics.RectProto parent_frame = 9;
|
||||
optional .android.graphics.RectProto content_frame = 10;
|
||||
optional .android.graphics.RectProto content_insets = 11;
|
||||
optional .android.graphics.RectProto surface_insets = 12;
|
||||
optional WindowStateAnimatorProto animator = 13;
|
||||
optional bool animating_exit = 14;
|
||||
repeated WindowStateProto child_windows = 15;
|
||||
optional .android.graphics.RectProto surface_position = 16;
|
||||
optional int32 requested_width = 18;
|
||||
optional int32 requested_height = 19;
|
||||
optional int32 view_visibility = 20;
|
||||
optional int32 system_ui_visibility = 21;
|
||||
optional bool has_surface = 22;
|
||||
optional bool is_ready_for_display = 23;
|
||||
optional .android.graphics.RectProto display_frame = 24;
|
||||
optional .android.graphics.RectProto overscan_frame = 25;
|
||||
optional .android.graphics.RectProto visible_frame = 26;
|
||||
optional .android.graphics.RectProto decor_frame = 27;
|
||||
optional .android.graphics.RectProto outset_frame = 28;
|
||||
optional .android.graphics.RectProto overscan_insets = 29;
|
||||
optional .android.graphics.RectProto visible_insets = 30;
|
||||
optional .android.graphics.RectProto stable_insets = 31;
|
||||
optional .android.graphics.RectProto outsets = 32;
|
||||
optional .android.view.DisplayCutoutProto cutout = 33;
|
||||
optional bool remove_on_exit = 34;
|
||||
optional bool destroying = 35;
|
||||
optional bool removed = 36;
|
||||
optional bool is_on_screen = 37;
|
||||
optional bool is_visible = 38;
|
||||
}
|
||||
|
||||
message IdentifierProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 hash_code = 1;
|
||||
optional int32 user_id = 2;
|
||||
optional string title = 3 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional int32 hash_code = 1;
|
||||
optional int32 user_id = 2;
|
||||
optional string title = 3 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
}
|
||||
|
||||
/* represents WindowStateAnimator */
|
||||
message WindowStateAnimatorProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional .android.graphics.RectProto last_clip_rect = 1;
|
||||
optional WindowSurfaceControllerProto surface = 2;
|
||||
enum DrawState {
|
||||
NO_SURFACE = 0;
|
||||
DRAW_PENDING = 1;
|
||||
COMMIT_DRAW_PENDING = 2;
|
||||
READY_TO_SHOW = 3;
|
||||
HAS_DRAWN = 4;
|
||||
}
|
||||
optional DrawState draw_state = 3;
|
||||
optional .android.graphics.RectProto system_decor_rect = 4;
|
||||
optional .android.graphics.RectProto last_clip_rect = 1;
|
||||
optional WindowSurfaceControllerProto surface = 2;
|
||||
enum DrawState {
|
||||
NO_SURFACE = 0;
|
||||
DRAW_PENDING = 1;
|
||||
COMMIT_DRAW_PENDING = 2;
|
||||
READY_TO_SHOW = 3;
|
||||
HAS_DRAWN = 4;
|
||||
}
|
||||
optional DrawState draw_state = 3;
|
||||
optional .android.graphics.RectProto system_decor_rect = 4;
|
||||
}
|
||||
|
||||
/* represents WindowSurfaceController */
|
||||
message WindowSurfaceControllerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional bool shown = 1;
|
||||
optional int32 layer = 2;
|
||||
optional bool shown = 1;
|
||||
optional int32 layer = 2;
|
||||
}
|
||||
|
||||
/* represents ScreenRotationAnimation */
|
||||
message ScreenRotationAnimationProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional bool started = 1;
|
||||
optional bool animation_running = 2;
|
||||
optional bool started = 1;
|
||||
optional bool animation_running = 2;
|
||||
}
|
||||
|
||||
/* represents WindowContainer */
|
||||
message WindowContainerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional ConfigurationContainerProto configuration_container = 1;
|
||||
optional int32 orientation = 2;
|
||||
optional bool visible = 3;
|
||||
optional SurfaceAnimatorProto surface_animator = 4;
|
||||
optional ConfigurationContainerProto configuration_container = 1;
|
||||
optional int32 orientation = 2;
|
||||
optional bool visible = 3;
|
||||
optional SurfaceAnimatorProto surface_animator = 4;
|
||||
}
|
||||
|
||||
/* represents ConfigurationContainer */
|
||||
message ConfigurationContainerProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional .android.content.ConfigurationProto override_configuration = 1;
|
||||
optional .android.content.ConfigurationProto full_configuration = 2;
|
||||
optional .android.content.ConfigurationProto merged_override_configuration = 3;
|
||||
optional .android.content.ConfigurationProto override_configuration = 1;
|
||||
optional .android.content.ConfigurationProto full_configuration = 2;
|
||||
optional .android.content.ConfigurationProto merged_override_configuration = 3;
|
||||
}
|
||||
|
||||
@@ -22,18 +22,18 @@ option java_outer_classname = "AppWidgetServiceProto";
|
||||
|
||||
// represents the object holding the dump info of the app widget service
|
||||
message AppWidgetServiceDumpProto {
|
||||
repeated WidgetProto widgets = 1; // the array of bound widgets
|
||||
repeated WidgetProto widgets = 1; // the array of bound widgets
|
||||
}
|
||||
|
||||
// represents a bound widget
|
||||
message WidgetProto {
|
||||
optional bool isCrossProfile = 1; // true if host and provider belong to diff users
|
||||
optional bool isHostStopped = 2; // true if host has not called startListening yet
|
||||
optional string hostPackage = 3;
|
||||
optional string providerPackage = 4;
|
||||
optional string providerClass = 5;
|
||||
optional int32 minWidth = 6;
|
||||
optional int32 minHeight = 7;
|
||||
optional int32 maxWidth = 8;
|
||||
optional int32 maxHeight = 9;
|
||||
optional bool isCrossProfile = 1; // true if host and provider belong to diff users
|
||||
optional bool isHostStopped = 2; // true if host has not called startListening yet
|
||||
optional string hostPackage = 3;
|
||||
optional string providerPackage = 4;
|
||||
optional string providerClass = 5;
|
||||
optional int32 minWidth = 6;
|
||||
optional int32 minHeight = 7;
|
||||
optional int32 maxWidth = 8;
|
||||
optional int32 maxHeight = 9;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ import "frameworks/base/core/proto/android/os/batterystats.proto";
|
||||
import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
|
||||
message BatteryStatsServiceDumpProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional android.os.BatteryStatsProto batterystats = 1;
|
||||
optional android.os.BatteryStatsProto batterystats = 1;
|
||||
}
|
||||
|
||||
@@ -23,14 +23,14 @@ option java_multiple_files = true;
|
||||
// generate network watchlist report.
|
||||
message NetworkWatchlistReportProto {
|
||||
|
||||
optional int32 report_version = 1;
|
||||
optional int32 report_version = 1;
|
||||
|
||||
optional string watchlist_config_hash = 2;
|
||||
optional string watchlist_config_hash = 2;
|
||||
|
||||
repeated NetworkWatchlistAppResultProto app_result = 3;
|
||||
repeated NetworkWatchlistAppResultProto app_result = 3;
|
||||
}
|
||||
|
||||
message NetworkWatchlistAppResultProto {
|
||||
optional string app_digest = 1;
|
||||
optional bool encoded_result = 2;
|
||||
optional string app_digest = 1;
|
||||
optional bool encoded_result = 2;
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ package android.view;
|
||||
option java_multiple_files = true;
|
||||
|
||||
message DisplayCutoutProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional .android.graphics.RectProto insets = 1;
|
||||
optional .android.graphics.RectProto bounds = 2;
|
||||
optional .android.graphics.RectProto insets = 1;
|
||||
optional .android.graphics.RectProto bounds = 2;
|
||||
}
|
||||
|
||||
@@ -23,11 +23,11 @@ option java_multiple_files = true;
|
||||
|
||||
/* represents DisplayInfo */
|
||||
message DisplayInfoProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 logical_width = 1;
|
||||
optional int32 logical_height = 2;
|
||||
optional int32 app_width = 3;
|
||||
optional int32 app_height = 4;
|
||||
optional string name = 5 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional int32 logical_width = 1;
|
||||
optional int32 logical_height = 2;
|
||||
optional int32 app_width = 3;
|
||||
optional int32 app_height = 4;
|
||||
optional string name = 5 [ (.android.privacy).dest = DEST_EXPLICIT ];
|
||||
}
|
||||
|
||||
@@ -28,16 +28,16 @@ import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
|
||||
/** Proto representation for RemoteAnimationTarget.java class. */
|
||||
message RemoteAnimationTargetProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 task_id = 1;
|
||||
optional int32 mode = 2;
|
||||
optional .android.view.SurfaceControlProto leash = 3;
|
||||
optional bool is_translucent = 4;
|
||||
optional .android.graphics.RectProto clip_rect = 5;
|
||||
optional .android.graphics.RectProto contentInsets = 6;
|
||||
optional int32 prefix_order_index = 7;
|
||||
optional .android.graphics.PointProto position = 8;
|
||||
optional .android.graphics.RectProto source_container_bounds = 9;
|
||||
optional .android.app.WindowConfigurationProto window_configuration = 10;
|
||||
optional int32 task_id = 1;
|
||||
optional int32 mode = 2;
|
||||
optional .android.view.SurfaceControlProto leash = 3;
|
||||
optional bool is_translucent = 4;
|
||||
optional .android.graphics.RectProto clip_rect = 5;
|
||||
optional .android.graphics.RectProto contentInsets = 6;
|
||||
optional int32 prefix_order_index = 7;
|
||||
optional .android.graphics.PointProto position = 8;
|
||||
optional .android.graphics.RectProto source_container_bounds = 9;
|
||||
optional .android.app.WindowConfigurationProto window_configuration = 10;
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@ package android.view;
|
||||
option java_multiple_files = true;
|
||||
|
||||
message SurfaceProto {
|
||||
enum Rotation {
|
||||
ROTATION_0 = 0;
|
||||
ROTATION_90 = 1;
|
||||
ROTATION_180 = 2;
|
||||
ROTATION_270 = 3;
|
||||
}
|
||||
enum Rotation {
|
||||
ROTATION_0 = 0;
|
||||
ROTATION_90 = 1;
|
||||
ROTATION_180 = 2;
|
||||
ROTATION_270 = 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,8 +25,8 @@ import "frameworks/base/libs/incident/proto/android/privacy.proto";
|
||||
* Represents a {@link android.view.SurfaceControl} object.
|
||||
*/
|
||||
message SurfaceControlProto {
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 hash_code = 1;
|
||||
optional string name = 2 [ (android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional int32 hash_code = 1;
|
||||
optional string name = 2 [ (android.privacy).dest = DEST_EXPLICIT ];
|
||||
}
|
||||
|
||||
@@ -25,43 +25,47 @@ option java_multiple_files = true;
|
||||
|
||||
/* represents WindowManager.LayoutParams */
|
||||
message WindowLayoutParamsProto {
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
option (.android.msg_privacy).dest = DEST_AUTOMATIC;
|
||||
|
||||
optional int32 type = 1;
|
||||
optional int32 x = 2;
|
||||
optional int32 y = 3;
|
||||
optional int32 width = 4;
|
||||
optional int32 height = 5;
|
||||
optional float horizontal_margin = 6;
|
||||
optional float vertical_margin = 7;
|
||||
optional int32 gravity = 8;
|
||||
optional int32 soft_input_mode = 9;
|
||||
optional .android.graphics.PixelFormatProto.Format format = 10;
|
||||
optional int32 window_animations = 11;
|
||||
optional float alpha = 12;
|
||||
optional float screen_brightness = 13;
|
||||
optional float button_brightness = 14;
|
||||
enum RotationAnimation {
|
||||
ROTATION_ANIMATION_UNSPECIFIED = -1;
|
||||
ROTATION_ANIMATION_CROSSFADE = 1;
|
||||
ROTATION_ANIMATION_JUMPCUT = 2;
|
||||
ROTATION_ANIMATION_SEAMLESS = 3;
|
||||
}
|
||||
optional RotationAnimation rotation_animation = 15;
|
||||
optional float preferred_refresh_rate = 16;
|
||||
optional int32 preferred_display_mode_id = 17;
|
||||
optional bool has_system_ui_listeners = 18;
|
||||
optional uint32 input_feature_flags = 19;
|
||||
optional int64 user_activity_timeout = 20;
|
||||
enum NeedsMenuState {
|
||||
NEEDS_MENU_UNSET = 0;
|
||||
NEEDS_MENU_SET_TRUE = 1;
|
||||
NEEDS_MENU_SET_FALSE = 2;
|
||||
}
|
||||
optional NeedsMenuState needs_menu_key = 22;
|
||||
optional .android.view.DisplayProto.ColorMode color_mode = 23;
|
||||
optional uint32 flags = 24;
|
||||
optional uint32 private_flags = 26;
|
||||
optional uint32 system_ui_visibility_flags = 27;
|
||||
optional uint32 subtree_system_ui_visibility_flags = 28;
|
||||
optional int32 type = 1;
|
||||
optional int32 x = 2;
|
||||
optional int32 y = 3;
|
||||
optional int32 width = 4;
|
||||
optional int32 height = 5;
|
||||
optional float horizontal_margin = 6;
|
||||
optional float vertical_margin = 7;
|
||||
optional int32 gravity = 8;
|
||||
optional int32 soft_input_mode = 9;
|
||||
optional .android.graphics.PixelFormatProto.Format format = 10;
|
||||
optional int32 window_animations = 11;
|
||||
optional float alpha = 12;
|
||||
optional float screen_brightness = 13;
|
||||
optional float button_brightness = 14;
|
||||
|
||||
enum RotationAnimation {
|
||||
ROTATION_ANIMATION_UNSPECIFIED = -1;
|
||||
ROTATION_ANIMATION_CROSSFADE = 1;
|
||||
ROTATION_ANIMATION_JUMPCUT = 2;
|
||||
ROTATION_ANIMATION_SEAMLESS = 3;
|
||||
}
|
||||
optional RotationAnimation rotation_animation = 15;
|
||||
|
||||
optional float preferred_refresh_rate = 16;
|
||||
optional int32 preferred_display_mode_id = 17;
|
||||
optional bool has_system_ui_listeners = 18;
|
||||
optional uint32 input_feature_flags = 19;
|
||||
optional int64 user_activity_timeout = 20;
|
||||
|
||||
enum NeedsMenuState {
|
||||
NEEDS_MENU_UNSET = 0;
|
||||
NEEDS_MENU_SET_TRUE = 1;
|
||||
NEEDS_MENU_SET_FALSE = 2;
|
||||
}
|
||||
optional NeedsMenuState needs_menu_key = 22;
|
||||
|
||||
optional .android.view.DisplayProto.ColorMode color_mode = 23;
|
||||
optional uint32 flags = 24;
|
||||
optional uint32 private_flags = 26;
|
||||
optional uint32 system_ui_visibility_flags = 27;
|
||||
optional uint32 subtree_system_ui_visibility_flags = 28;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.android.server.wm;
|
||||
|
||||
import static com.android.server.wm.AlphaAnimationSpecProto.DURATION;
|
||||
import static com.android.server.wm.AlphaAnimationSpecProto.DURATION_MS;
|
||||
import static com.android.server.wm.AlphaAnimationSpecProto.FROM;
|
||||
import static com.android.server.wm.AlphaAnimationSpecProto.TO;
|
||||
import static com.android.server.wm.AnimationSpecProto.ALPHA;
|
||||
@@ -35,6 +35,7 @@ import java.io.PrintWriter;
|
||||
*/
|
||||
class Dimmer {
|
||||
private static final String TAG = "WindowManager";
|
||||
// This is in milliseconds.
|
||||
private static final int DEFAULT_DIM_ANIM_DURATION = 200;
|
||||
|
||||
private class DimAnimatable implements SurfaceAnimator.Animatable {
|
||||
@@ -370,7 +371,7 @@ class Dimmer {
|
||||
final long token = proto.start(ALPHA);
|
||||
proto.write(FROM, mFromAlpha);
|
||||
proto.write(TO, mToAlpha);
|
||||
proto.write(DURATION, mDuration);
|
||||
proto.write(DURATION_MS, mDuration);
|
||||
proto.end(token);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ import static com.android.server.wm.IdentifierProto.HASH_CODE;
|
||||
import static com.android.server.wm.IdentifierProto.TITLE;
|
||||
import static com.android.server.wm.IdentifierProto.USER_ID;
|
||||
import static com.android.server.wm.AnimationSpecProto.MOVE;
|
||||
import static com.android.server.wm.MoveAnimationSpecProto.DURATION;
|
||||
import static com.android.server.wm.MoveAnimationSpecProto.DURATION_MS;
|
||||
import static com.android.server.wm.MoveAnimationSpecProto.FROM;
|
||||
import static com.android.server.wm.MoveAnimationSpecProto.TO;
|
||||
import static com.android.server.wm.WindowStateProto.ANIMATING_EXIT;
|
||||
@@ -4826,7 +4826,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
|
||||
final long token = proto.start(MOVE);
|
||||
mFrom.writeToProto(proto, FROM);
|
||||
mTo.writeToProto(proto, TO);
|
||||
proto.write(DURATION, mDuration);
|
||||
proto.write(DURATION_MS, mDuration);
|
||||
proto.end(token);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user