Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b694a7c authored by Ben Blount's avatar Ben Blount Committed by android-build-merger
Browse files

Merge "Organize intelligence counters together" into qt-dev am: 54212ce7

am: 74cee4a6

Change-Id: I810df8256bee467e677afaa5d459b56c396e8337
parents 0eb4fb71 74cee4a6
Loading
Loading
Loading
Loading
+18 −3
Original line number Diff line number Diff line
@@ -22,8 +22,8 @@ option java_outer_classname = "AtomsProto";

import "frameworks/base/cmds/statsd/src/atom_field_options.proto";
import "frameworks/base/core/proto/android/app/enums.proto";
import "frameworks/base/core/proto/android/app/settings_enums.proto";
import "frameworks/base/core/proto/android/app/job/enums.proto";
import "frameworks/base/core/proto/android/app/settings_enums.proto";
import "frameworks/base/core/proto/android/bluetooth/a2dp/enums.proto";
import "frameworks/base/core/proto/android/bluetooth/enums.proto";
import "frameworks/base/core/proto/android/bluetooth/hci/enums.proto";
@@ -42,10 +42,11 @@ import "frameworks/base/core/proto/android/service/procstats_enum.proto";
import "frameworks/base/core/proto/android/service/usb.proto";
import "frameworks/base/core/proto/android/stats/connectivity/network_stack.proto";
import "frameworks/base/core/proto/android/stats/connectivity/resolv_stats.proto";
import "frameworks/base/core/proto/android/stats/enums.proto";
import "frameworks/base/core/proto/android/stats/docsui/docsui_enums.proto";
import "frameworks/base/core/proto/android/stats/devicepolicy/device_policy.proto";
import "frameworks/base/core/proto/android/stats/devicepolicy/device_policy_enums.proto";
import "frameworks/base/core/proto/android/stats/docsui/docsui_enums.proto";
import "frameworks/base/core/proto/android/stats/enums.proto";
import "frameworks/base/core/proto/android/stats/intelligence/enums.proto";
import "frameworks/base/core/proto/android/stats/launcher/launcher.proto";
import "frameworks/base/core/proto/android/stats/storage/storage_enums.proto";
import "frameworks/base/core/proto/android/stats/style/style_enums.proto";
@@ -277,6 +278,8 @@ message Atom {
        SystemServerWatchdogOccurred system_server_watchdog_occurred = 185;
        TombStoneOccurred tomb_stone_occurred = 186;
        BluetoothClassOfDeviceReported bluetooth_class_of_device_reported = 187;
        IntelligenceEventReported intelligence_event_reported =
            188 [(log_from_module) = "intelligence"];
    }

    // Pulled events will start at field 10000.
@@ -5981,3 +5984,15 @@ message CoolingDevice {
    // not in throttling, higher value means deeper throttling.
    optional int32 state = 3;
}

/**
 * Intelligence has several counter-type events that don't warrant a
 * full separate atom. These are primarily API call counters but also include
 * counters for feature usage and specific failure modes.
 *
 * Logged from the Intelligence mainline module.
 */
message IntelligenceEventReported {
  optional android.stats.intelligence.EventType event_id = 1;
  optional android.stats.intelligence.Status status = 2;
}
+40 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2019 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

syntax = "proto2";

package android.stats.intelligence;
option java_outer_classname = "IntelligenceStatsEnums";

enum Status {
  // The value wasn't set.
  // protoc requires enum values to be unique by package rather than enum type.
  // This forces us to prefix the enum values.
  STATUS_UNKNOWN = 0;
  // The event succeeded.
  STATUS_SUCCEEDED = 1;
  // The event had an error.
  STATUS_FAILED = 2;
}

enum EventType {
  // The value wasn't set.
  EVENT_UNKNOWN = 0;
  // ContentSuggestionsService classifyContentSelections call.
  EVENT_CONTENT_SUGGESTIONS_CLASSIFY_CONTENT_CALL = 1;
  // ContentSuggestionsService suggestContentSelections call.
  EVENT_CONTENT_SUGGESTIONS_SUGGEST_CONTENT_CALL = 2;
}