From 206445526b0fcfd149fa8a81a049b0fc33080406 Mon Sep 17 00:00:00 2001 From: "Philip P. Moltmann" Date: Thu, 4 Apr 2019 10:00:05 -0700 Subject: [PATCH] Remove Gallery and Music role Test: atest CtsRoleTestCases Bug: 129789528 Change-Id: I10b43f5186e27f2087bbb37d731c557cc1b57cf6 --- api/current.txt | 2 -- core/java/android/app/role/RoleManager.java | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/api/current.txt b/api/current.txt index f78dfde30c3e..5aa42d4db925 100644 --- a/api/current.txt +++ b/api/current.txt @@ -7443,9 +7443,7 @@ package android.app.role { field public static final String ROLE_CALL_SCREENING = "android.app.role.CALL_SCREENING"; field public static final String ROLE_DIALER = "android.app.role.DIALER"; field public static final String ROLE_EMERGENCY = "android.app.role.EMERGENCY"; - field public static final String ROLE_GALLERY = "android.app.role.GALLERY"; field public static final String ROLE_HOME = "android.app.role.HOME"; - field public static final String ROLE_MUSIC = "android.app.role.MUSIC"; field public static final String ROLE_SMS = "android.app.role.SMS"; } diff --git a/core/java/android/app/role/RoleManager.java b/core/java/android/app/role/RoleManager.java index d1f8ed20cf0f..87597a7bf5f3 100644 --- a/core/java/android/app/role/RoleManager.java +++ b/core/java/android/app/role/RoleManager.java @@ -113,20 +113,6 @@ public final class RoleManager { public static final String ROLE_HOME = "android.app.role.HOME"; /** - * The name of the music player role. - * - * @see Intent#CATEGORY_APP_MUSIC - */ - public static final String ROLE_MUSIC = "android.app.role.MUSIC"; - - /** - * The name of the gallery role. - * - * @see Intent#CATEGORY_APP_GALLERY - */ - public static final String ROLE_GALLERY = "android.app.role.GALLERY"; - - /** * The name of the car mode dialer app role. *

* Similar to the {@link #ROLE_DIALER dialer} role, this role determines which app is -- 2.11.0