• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2024 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19package android.os.statsd.appfunctions;
20
21import "frameworks/proto_logging/stats/atoms.proto";
22import "frameworks/proto_logging/stats/atom_field_options.proto";
23
24option java_package = "com.android.os.appfunctions";
25option java_multiple_files = true;
26
27extend Atom {
28  optional AppFunctionsRequestReported app_functions_request_reported = 998 [(module) = "appfunctions"];
29}
30
31/** Logs information on AppFunction execution requests. */
32message AppFunctionsRequestReported {
33  // Uid of the agent app.
34  optional int32 caller_package_uid = 1 [(is_uid) = true];
35  // Uid of the app that hosts the function.
36  optional int32 target_package_uid = 2 [(is_uid) = true];
37  // The error code of the response, or -1 if no error is present.
38  optional int32 error_code = 3;
39  // The size of the request in bytes.
40  optional int32 request_size_bytes = 4;
41  // The size of the response in bytes.
42  optional int32 response_size_bytes = 5;
43  // The e2e latency of the request in milliseconds.
44  optional int64 request_duration_ms = 6;
45  // The overhead duration of the request in milliseconds.
46  optional int64 request_overhead_ms = 7;
47}
48