Merge "Expose the new brightness permissions as test APIs." into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-13 19:20:47 +00:00
committed by Android (Google) Code Review
2 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,12 @@
package android {
public static final class Manifest.permission {
field public static final java.lang.String BRIGHTNESS_SLIDER_USAGE = "android.permission.BRIGHTNESS_SLIDER_USAGE";
field public static final java.lang.String CONFIGURE_DISPLAY_BRIGHTNESS = "android.permission.CONFIGURE_DISPLAY_BRIGHTNESS";
}
}
package android.animation {
public class ValueAnimator extends android.animation.Animator {

View File

@@ -3089,7 +3089,8 @@
<!-- Allows an application to collect usage infomation about brightness slider changes.
<p>Not for use by third-party applications.</p>
@hide
@SystemApi -->
@SystemApi
@TestApi -->
<permission android:name="android.permission.BRIGHTNESS_SLIDER_USAGE"
android:protectionLevel="signature|privileged|development" />
@@ -3102,7 +3103,8 @@
<!-- Allows an application to modify the display brightness configuration
@hide
@SystemApi -->
@SystemApi
@TestApi -->
<permission android:name="android.permission.CONFIGURE_DISPLAY_BRIGHTNESS"
android:protectionLevel="signature|privileged|development" />