summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2019-08-21 13:05:11 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-08-21 13:05:11 +0000
commit9ef59c953df0522c5f4d64a27ecf7fdda93e33e6 (patch)
tree6a91af9818ccb67060221b69f28cb637617706a4 /core/java/android
parent7ee4fe12b95a4ebae53e30cfd8cfd2cca217a61f (diff)
parenta10437f460bfa3d39f7a3845fa02514866827478 (diff)
Merge "Make some APIs used by ExtService module @SystemApi"
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/Notification.java7
-rw-r--r--core/java/android/app/NotificationChannel.java1
-rw-r--r--core/java/android/service/notification/StatusBarNotification.java2
3 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 372eab259f4c..ac531186b974 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -3278,6 +3278,7 @@ public class Notification implements Parcelable
* @hide
*/
@Nullable
+ @SystemApi
public Pair<RemoteInput, Action> findRemoteInputActionPair(boolean requiresFreeform) {
if (actions == null) {
return null;
@@ -3304,7 +3305,8 @@ public class Notification implements Parcelable
*
* @hide
*/
- public List<Notification.Action> getContextualActions() {
+ @SystemApi
+ public @NonNull List<Notification.Action> getContextualActions() {
if (actions == null) return Collections.emptyList();
List<Notification.Action> contextualActions = new ArrayList<>();
@@ -7730,7 +7732,8 @@ public class Notification implements Parcelable
* @hide
*/
@Nullable
- public static Message getMessageFromBundle(Bundle bundle) {
+ @SystemApi
+ public static Message getMessageFromBundle(@NonNull Bundle bundle) {
try {
if (!bundle.containsKey(KEY_TEXT) || !bundle.containsKey(KEY_TIMESTAMP)) {
return null;
diff --git a/core/java/android/app/NotificationChannel.java b/core/java/android/app/NotificationChannel.java
index 3effd11798fb..93e4ddcbb016 100644
--- a/core/java/android/app/NotificationChannel.java
+++ b/core/java/android/app/NotificationChannel.java
@@ -110,6 +110,7 @@ public final class NotificationChannel implements Parcelable {
/**
* @hide
*/
+ @SystemApi
public static final int USER_LOCKED_SOUND = 0x00000020;
/**
diff --git a/core/java/android/service/notification/StatusBarNotification.java b/core/java/android/service/notification/StatusBarNotification.java
index 905c7811e457..205df7e12483 100644
--- a/core/java/android/service/notification/StatusBarNotification.java
+++ b/core/java/android/service/notification/StatusBarNotification.java
@@ -17,6 +17,7 @@
package android.service.notification;
import android.annotation.NonNull;
+import android.annotation.SystemApi;
import android.annotation.UnsupportedAppUsage;
import android.app.Notification;
import android.app.NotificationManager;
@@ -172,6 +173,7 @@ public class StatusBarNotification implements Parcelable {
*
* @hide
*/
+ @SystemApi
public boolean isAppGroup() {
if (getNotification().getGroup() != null || getNotification().getSortKey() != null) {
return true;