Mute devices when they're being used if the --mute-master option is given.

This commit is contained in:
Simo Kinnunen
2015-07-29 19:06:42 +09:00
parent aca27428b0
commit d9d47cc3bf
7 changed files with 65 additions and 2 deletions

Binary file not shown.

View File

@@ -24,6 +24,7 @@ enum MessageType {
SET_ROTATION = 12;
SET_WAKE_LOCK = 11;
SET_WIFI_ENABLED = 22;
SET_MASTER_MUTE = 28;
EVENT_AIRPLANE_MODE = 13;
EVENT_BATTERY = 14;
EVENT_CONNECTIVITY = 15;
@@ -251,6 +252,14 @@ message GetSdStatusResponse {
required bool mounted = 2;
}
message SetMasterMuteRequest {
required bool enabled = 1;
}
message SetMasterMuteResponse {
required bool success = 1;
}
// Agent
enum KeyEvent {