/*
 * Copyright (C) 2025 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 com.android.server.connectivity;
option java_multiple_files = true;

import "frameworks/proto_logging/stats/enums/server/connectivity/data_stall_event.proto";

// Cellular specific information.
message CellularData {
    // Indicate the radio technology at the time of data stall suspected.
    optional RadioTech rat_type = 1;
    // True if device is in roaming network at the time of data stall suspected.
    optional bool is_roaming = 2;
    // Registered network MccMnc when data stall happen
    optional string network_mccmnc = 3;
    // Indicate the SIM card carrier.
    optional string sim_mccmnc = 4;
    // Signal strength level at the time of data stall suspected.
    optional int32 signal_strength = 5;
}

// Wifi specific information.
message WifiData {
    // Signal strength at the time of data stall suspected.
    // RSSI range is between -55 to -110.
    optional int32 signal_strength = 1;
    // AP band.
    optional ApBand wifi_band = 2;
}

message DnsEvent {
    // The dns return code.
    repeated int32 dns_return_code = 1;
    // Indicate the timestamp of the dns event.
    repeated int64 dns_time = 2;
}
