Merge "Expose setBindAppWidgetPermission as a testAPI" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c3406718ef
@@ -580,6 +580,14 @@ package android.app.usage {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package android.appwidget {
|
||||||
|
|
||||||
|
public class AppWidgetManager {
|
||||||
|
method public void setBindAppWidgetPermission(@NonNull String, int, boolean);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
package android.bluetooth {
|
package android.bluetooth {
|
||||||
|
|
||||||
public final class BluetoothClass implements android.os.Parcelable {
|
public final class BluetoothClass implements android.os.Parcelable {
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ import android.annotation.RequiresFeature;
|
|||||||
import android.annotation.SdkConstant;
|
import android.annotation.SdkConstant;
|
||||||
import android.annotation.SdkConstant.SdkConstantType;
|
import android.annotation.SdkConstant.SdkConstantType;
|
||||||
import android.annotation.SystemService;
|
import android.annotation.SystemService;
|
||||||
|
import android.annotation.TestApi;
|
||||||
|
import android.annotation.UserIdInt;
|
||||||
import android.app.IServiceConnection;
|
import android.app.IServiceConnection;
|
||||||
import android.app.PendingIntent;
|
import android.app.PendingIntent;
|
||||||
import android.compat.annotation.UnsupportedAppUsage;
|
import android.compat.annotation.UnsupportedAppUsage;
|
||||||
@@ -1095,7 +1097,9 @@ public class AppWidgetManager {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public void setBindAppWidgetPermission(String packageName, int userId, boolean permission) {
|
@TestApi
|
||||||
|
public void setBindAppWidgetPermission(
|
||||||
|
@NonNull String packageName, @UserIdInt int userId, boolean permission) {
|
||||||
if (mService == null) {
|
if (mService == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user