From 93fa94507391a36851d12b34d69e5fc23fbe554d Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Sat, 12 Sep 2020 22:48:54 +0800 Subject: sdm660-common: ifaa: Use new UnsupportedAppUsage annotation Change-Id: Ife370a74a7eec384b6732c63ce78408afef5d95c --- org.ifaa.android.manager/Android.bp | 5 ++++- .../src/org/ifaa/android/manager/IFAAManager.java | 2 +- .../src/org/ifaa/android/manager/IFAAManagerFactory.java | 2 +- .../src/org/ifaa/android/manager/IFAAManagerV2.java | 2 +- .../src/org/ifaa/android/manager/IFAAManagerV3.java | 2 +- .../src/org/ifaa/android/manager/IFAAManagerV4.java | 2 +- 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/org.ifaa.android.manager/Android.bp b/org.ifaa.android.manager/Android.bp index a77c477..2c7d12d 100644 --- a/org.ifaa.android.manager/Android.bp +++ b/org.ifaa.android.manager/Android.bp @@ -1,5 +1,5 @@ /* -* Copyright (C) 2017-2019 The LineageOS Project +* Copyright (C) 2017-2020 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,9 @@ java_library { name: "org.ifaa.android.manager", installable: true, + libs: [ + "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage + ], srcs: [ "src/**/*.java", "src/**/I*.aidl", diff --git a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java index d9a2f6e..d40c940 100644 --- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java +++ b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java @@ -1,6 +1,6 @@ package org.ifaa.android.manager; -import android.annotation.UnsupportedAppUsage; +import android.compat.annotation.UnsupportedAppUsage; import android.content.Context; import android.os.Build.VERSION; import android.os.SystemProperties; diff --git a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java index a948fd2..3697874 100644 --- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java +++ b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java @@ -1,6 +1,6 @@ package org.ifaa.android.manager; -import android.annotation.UnsupportedAppUsage; +import android.compat.annotation.UnsupportedAppUsage; import android.content.Context; public class IFAAManagerFactory { diff --git a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV2.java b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV2.java index 7a62da1..d634ef0 100644 --- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV2.java +++ b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV2.java @@ -1,6 +1,6 @@ package org.ifaa.android.manager; -import android.annotation.UnsupportedAppUsage; +import android.compat.annotation.UnsupportedAppUsage; import android.content.Context; public abstract class IFAAManagerV2 extends IFAAManager { diff --git a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV3.java b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV3.java index a33d3d9..328fd75 100644 --- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV3.java +++ b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV3.java @@ -1,6 +1,6 @@ package org.ifaa.android.manager; -import android.annotation.UnsupportedAppUsage; +import android.compat.annotation.UnsupportedAppUsage; public abstract class IFAAManagerV3 extends IFAAManagerV2 { @UnsupportedAppUsage diff --git a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV4.java b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV4.java index 6e9c0b6..7a4c63d 100644 --- a/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV4.java +++ b/org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV4.java @@ -1,6 +1,6 @@ package org.ifaa.android.manager; -import android.annotation.UnsupportedAppUsage; +import android.compat.annotation.UnsupportedAppUsage; public abstract class IFAAManagerV4 extends IFAAManagerV3 { @UnsupportedAppUsage -- cgit v1.2.3