summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-09-12 22:48:54 +0800
committerMichael Bestas <mkbestas@lineageos.org>2020-12-20 18:55:01 +0200
commit93fa94507391a36851d12b34d69e5fc23fbe554d (patch)
treee82ebbc5caab270b08a69dd5de2658dac81a0581
parent64c574a5b03b71f57c5e040829c804adf95889fd (diff)
sdm660-common: ifaa: Use new UnsupportedAppUsage annotation
Change-Id: Ife370a74a7eec384b6732c63ce78408afef5d95c
-rw-r--r--org.ifaa.android.manager/Android.bp5
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManager.java2
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerFactory.java2
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV2.java2
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV3.java2
-rw-r--r--org.ifaa.android.manager/src/org/ifaa/android/manager/IFAAManagerV4.java2
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