Merge "Add RequiresApi annotation for T+ method call." into main am: 3bb8960d22

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/3014753

Change-Id: I78555540909754f073d7dbc83f19c59d88dc2dcd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Muhammad Qureshi 2024-03-27 06:41:48 +00:00 • committed by Automerger Merge Worker
commit a45e4c3685

View file

@ -29,6 +29,7 @@ import android.net.NetworkSpecifier;
import android.net.TelephonyNetworkSpecifier;
import android.net.TransportInfo;
import android.net.wifi.WifiInfo;
import android.os.Build;
import android.os.Handler;
import android.os.SystemClock;
import android.telephony.SubscriptionInfo;
@ -39,6 +40,8 @@ import android.util.Log;
import android.util.SparseArray;
import android.util.SparseIntArray;
import androidx.annotation.RequiresApi;
import com.android.internal.annotations.VisibleForTesting;
import com.android.metrics.DailykeepaliveInfoReported;
import com.android.metrics.DurationForNumOfKeepalive;
@ -279,6 +282,7 @@ public class KeepaliveStatsTracker {
*
* @param dailyKeepaliveInfoReported the proto to write to statsD.
*/
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
public void writeStats(DailykeepaliveInfoReported dailyKeepaliveInfoReported) {
ConnectivityStatsLog.write(
ConnectivityStatsLog.DAILY_KEEPALIVE_INFO_REPORTED,