Hui Wang | fe47a86 | 2024-09-17 17:05:30 +0000 | [diff] [blame] | 1 | syntax = "proto2"; |
| 2 | |
| 3 | package com.android.server.telecom; |
| 4 | |
| 5 | option java_package = "com.android.server.telecom"; |
| 6 | option java_outer_classname = "PulledAtomsClass"; |
| 7 | |
| 8 | message PulledAtoms { |
| 9 | repeated CallStats call_stats = 1; |
| 10 | optional int64 call_stats_pull_timestamp_millis = 2; |
| 11 | repeated CallAudioRouteStats call_audio_route_stats = 3; |
| 12 | optional int64 call_audio_route_stats_pull_timestamp_millis = 4; |
| 13 | repeated TelecomApiStats telecom_api_stats = 5; |
| 14 | optional int64 telecom_api_stats_pull_timestamp_millis = 6; |
| 15 | repeated TelecomErrorStats telecom_error_stats = 7; |
| 16 | optional int64 telecom_error_stats_pull_timestamp_millis = 8; |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Pulled atom to capture stats of the calls |
| 21 | * From frameworks/proto_logging/stats/atoms/telecomm/telecom_extension_atom.proto |
| 22 | */ |
| 23 | message CallStats { |
| 24 | // The value should be converted to android.telecom.CallDirectionEnum |
| 25 | // From frameworks/proto_logging/stats/enums/telecomm/enums.proto |
| 26 | optional int32 call_direction = 1; |
| 27 | |
| 28 | // True if call is external. External calls are calls on connected Wear |
| 29 | // devices but show up in Telecom so the user can pull them onto the device. |
| 30 | optional bool external_call = 2; |
| 31 | |
| 32 | // True if call is emergency call. |
| 33 | optional bool emergency_call = 3; |
| 34 | |
| 35 | // True if there are multiple audio routes available |
| 36 | optional bool multiple_audio_available = 4; |
| 37 | |
| 38 | // The value should be converted to android.telecom.AccountTypeEnum |
| 39 | // From frameworks/proto_logging/stats/enums/telecomm/enums.proto |
| 40 | optional int32 account_type = 5; |
| 41 | |
| 42 | // UID of the package to init the call. This should always be -1/unknown for |
| 43 | // the private space calls |
| 44 | optional int32 uid = 6; |
| 45 | |
| 46 | // Total number of the calls |
| 47 | optional int32 count = 7; |
| 48 | |
| 49 | // Average elapsed time between CALL_STATE_ACTIVE to CALL_STATE_DISCONNECTED. |
| 50 | optional int32 average_duration_ms = 8; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Pulled atom to capture stats of the call audio route |
| 55 | * From frameworks/proto_logging/stats/atoms/telecomm/telecom_extension_atom.proto |
| 56 | */ |
| 57 | message CallAudioRouteStats { |
| 58 | // The value should be converted to android.telecom.CallAudioEnum |
| 59 | // From frameworks/proto_logging/stats/enums/telecomm/enums.proto |
| 60 | optional int32 call_audio_route_source = 1; |
| 61 | |
| 62 | // The value should be converted to android.telecom.CallAudioEnum |
| 63 | // From frameworks/proto_logging/stats/enums/telecomm/enums.proto |
| 64 | optional int32 call_audio_route_dest = 2; |
| 65 | |
| 66 | // True if the route is successful. |
| 67 | optional bool success = 3; |
| 68 | |
| 69 | // True if the route is revert |
| 70 | optional bool revert = 4; |
| 71 | |
| 72 | // Total number of the audio route |
| 73 | optional int32 count = 5; |
| 74 | |
| 75 | // Average time from the audio route start to complete |
| 76 | optional int32 average_latency_ms = 6; |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Pulled atom to capture stats of Telecom API usage |
| 81 | * From frameworks/proto_logging/stats/atoms/telecomm/telecom_extension_atom.proto |
| 82 | */ |
| 83 | message TelecomApiStats { |
| 84 | // The value should be converted to android.telecom.ApiNameEnum |
| 85 | // From frameworks/proto_logging/stats/enums/telecomm/enums.proto |
| 86 | optional int32 api_name = 1; |
| 87 | |
| 88 | // UID of the caller. This is always -1/unknown for the private space. |
| 89 | optional int32 uid = 2; |
| 90 | |
| 91 | // The value should be converted to android.telecom.ApiResultEnum |
| 92 | // From frameworks/proto_logging/stats/enums/telecomm/enums.proto |
| 93 | optional int32 api_result = 3; |
| 94 | |
| 95 | // The number of times this event occurs |
| 96 | optional int32 count = 4; |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Pulled atom to capture stats of Telecom module errors |
| 101 | * From frameworks/proto_logging/stats/atoms/telecomm/telecom_extension_atom.proto |
| 102 | */ |
| 103 | message TelecomErrorStats { |
Hui Wang | 74a5666 | 2024-09-24 18:37:22 -0500 | [diff] [blame] | 104 | // The value should be converted to android.telecom.SubmoduleEnum |
Hui Wang | fe47a86 | 2024-09-17 17:05:30 +0000 | [diff] [blame] | 105 | // From frameworks/proto_logging/stats/enums/telecomm/enums.proto |
Hui Wang | 74a5666 | 2024-09-24 18:37:22 -0500 | [diff] [blame] | 106 | optional int32 submodule = 1; |
Hui Wang | fe47a86 | 2024-09-17 17:05:30 +0000 | [diff] [blame] | 107 | |
Hui Wang | 74a5666 | 2024-09-24 18:37:22 -0500 | [diff] [blame] | 108 | // The value should be converted to android.telecom.ErrorEnum |
Hui Wang | fe47a86 | 2024-09-17 17:05:30 +0000 | [diff] [blame] | 109 | // From frameworks/proto_logging/stats/enums/telecomm/enums.proto |
Hui Wang | 74a5666 | 2024-09-24 18:37:22 -0500 | [diff] [blame] | 110 | optional int32 error = 2; |
Hui Wang | fe47a86 | 2024-09-17 17:05:30 +0000 | [diff] [blame] | 111 | |
| 112 | // The number of times this error occurs |
| 113 | optional int32 count = 3; |
| 114 | } |