Loading Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -967,6 +967,7 @@ framework_docs_LOCAL_DROIDDOC_OPTIONS := \ -android \ -knowntags ./frameworks/base/docs/knowntags.txt \ -knowntags ./libcore/known_oj_tags.txt \ -manifest ./frameworks/base/core/res/AndroidManifest.xml \ -hidePackage com.android.org.conscrypt \ -since $(SRC_API_DIR)/1.xml 1 \ -since $(SRC_API_DIR)/2.xml 2 \ Loading core/java/android/app/admin/DevicePolicyManager.java +8 −4 Original line number Diff line number Diff line Loading @@ -1625,6 +1625,7 @@ public class DevicePolicyManager { * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public boolean packageHasActiveAdmins(String packageName) { return packageHasActiveAdmins(packageName, myUserId()); } Loading Loading @@ -4536,11 +4537,10 @@ public class DevicePolicyManager { /** * @return device owner component name, even if it's running on a different user. * * <p>Requires the MANAGE_USERS permission. * * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public ComponentName getDeviceOwnerComponentOnAnyUser() { return getDeviceOwnerComponentInner(/* callingUserOnly =*/ false); } Loading Loading @@ -4624,6 +4624,7 @@ public class DevicePolicyManager { * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public @Nullable String getDeviceOwner() { throwIfParentInstance("getDeviceOwner"); final ComponentName name = getDeviceOwnerComponentOnCallingUser(); Loading @@ -4641,6 +4642,7 @@ public class DevicePolicyManager { */ @SystemApi @TestApi @SuppressLint("Doclava125") public boolean isDeviceManaged() { try { return mService.hasDeviceOwner(); Loading @@ -4653,11 +4655,10 @@ public class DevicePolicyManager { * Returns the device owner name. Note this method *will* return the device owner * name when it's running on a different user. * * <p>Requires the MANAGE_USERS permission. * * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getDeviceOwnerNameOnAnyUser() { throwIfParentInstance("getDeviceOwnerNameOnAnyUser"); if (mService != null) { Loading Loading @@ -5030,6 +5031,7 @@ public class DevicePolicyManager { * @throws IllegalArgumentException if the userId is invalid. */ @SystemApi @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public @Nullable String getProfileOwnerNameAsUser(int userId) throws IllegalArgumentException { throwIfParentInstance("getProfileOwnerNameAsUser"); if (mService != null) { Loading Loading @@ -7548,6 +7550,7 @@ public class DevicePolicyManager { */ @SystemApi @TestApi @SuppressLint("Doclava125") public @Nullable CharSequence getDeviceOwnerOrganizationName() { try { return mService.getDeviceOwnerOrganizationName(); Loading Loading @@ -7759,6 +7762,7 @@ public class DevicePolicyManager { * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isDeviceProvisioningConfigApplied() { try { return mService.isDeviceProvisioningConfigApplied(); Loading core/java/android/hardware/hdmi/HdmiControlManager.java +8 −0 Original line number Diff line number Diff line Loading @@ -17,8 +17,10 @@ package android.hardware.hdmi; import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.annotation.SuppressLint; import android.content.Context; import android.annotation.SystemApi; import android.annotation.SystemService; Loading Loading @@ -298,6 +300,7 @@ public final class HdmiControlManager { * See {@link HdmiDeviceInfo#DEVICE_TV} */ @Nullable @SuppressLint("Doclava125") public HdmiClient getClient(int type) { if (mService == null) { return null; Loading @@ -322,6 +325,7 @@ public final class HdmiControlManager { * @return {@link HdmiPlaybackClient} instance. {@code null} on failure. */ @Nullable @SuppressLint("Doclava125") public HdmiPlaybackClient getPlaybackClient() { return (HdmiPlaybackClient) getClient(HdmiDeviceInfo.DEVICE_PLAYBACK); } Loading @@ -336,6 +340,7 @@ public final class HdmiControlManager { * @return {@link HdmiTvClient} instance. {@code null} on failure. */ @Nullable @SuppressLint("Doclava125") public HdmiTvClient getTvClient() { return (HdmiTvClient) getClient(HdmiDeviceInfo.DEVICE_TV); } Loading @@ -346,6 +351,7 @@ public final class HdmiControlManager { * * @param isStandbyModeOn target status of the system's standby mode */ @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void setStandbyMode(boolean isStandbyModeOn) { try { mService.setStandbyMode(isStandbyModeOn); Loading Loading @@ -406,6 +412,7 @@ public final class HdmiControlManager { * @param listener {@link HotplugEventListener} instance * @see HdmiControlManager#removeHotplugEventListener(HotplugEventListener) */ @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void addHotplugEventListener(HotplugEventListener listener) { if (mService == null) { Log.e(TAG, "HdmiControlService is not available"); Loading @@ -429,6 +436,7 @@ public final class HdmiControlManager { * * @param listener {@link HotplugEventListener} instance to be removed */ @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void removeHotplugEventListener(HotplugEventListener listener) { if (mService == null) { Log.e(TAG, "HdmiControlService is not available"); Loading core/java/android/os/storage/StorageManager.java +6 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.annotation.SdkConstant; import android.annotation.SuppressLint; import android.annotation.SystemApi; import android.annotation.SystemService; import android.annotation.WorkerThread; Loading Loading @@ -1699,6 +1700,7 @@ public class StorageManager { /** @hide */ @SystemApi @SuppressLint("Doclava125") public long getAllocatableBytes(@NonNull UUID storageUuid, @RequiresPermission @AllocateFlags int flags) throws IOException { try { Loading @@ -1713,6 +1715,7 @@ public class StorageManager { /** @removed */ @Deprecated @SuppressLint("Doclava125") public long getAllocatableBytes(@NonNull File path, @RequiresPermission @AllocateFlags int flags) throws IOException { return getAllocatableBytes(getUuidForPath(path), flags); Loading Loading @@ -1747,6 +1750,7 @@ public class StorageManager { /** @hide */ @SystemApi @SuppressLint("Doclava125") public void allocateBytes(@NonNull UUID storageUuid, @BytesLong long bytes, @RequiresPermission @AllocateFlags int flags) throws IOException { try { Loading @@ -1760,6 +1764,7 @@ public class StorageManager { /** @removed */ @Deprecated @SuppressLint("Doclava125") public void allocateBytes(@NonNull File path, @BytesLong long bytes, @RequiresPermission @AllocateFlags int flags) throws IOException { allocateBytes(getUuidForPath(path), bytes, flags); Loading Loading @@ -1796,6 +1801,7 @@ public class StorageManager { /** @hide */ @SystemApi @SuppressLint("Doclava125") public void allocateBytes(FileDescriptor fd, @BytesLong long bytes, @RequiresPermission @AllocateFlags int flags) throws IOException { final File file = ParcelFileDescriptor.getFile(fd); Loading location/java/android/location/LocationManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -828,6 +828,7 @@ public class LocationManager { * @hide */ @SystemApi @RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION}) public void requestLocationUpdates(LocationRequest request, LocationListener listener, Looper looper) { checkListener(listener); Loading Loading @@ -856,6 +857,7 @@ public class LocationManager { * @hide */ @SystemApi @RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION}) public void requestLocationUpdates(LocationRequest request, PendingIntent intent) { checkPendingIntent(intent); requestLocationUpdates(request, null, null, intent); Loading Loading
Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -967,6 +967,7 @@ framework_docs_LOCAL_DROIDDOC_OPTIONS := \ -android \ -knowntags ./frameworks/base/docs/knowntags.txt \ -knowntags ./libcore/known_oj_tags.txt \ -manifest ./frameworks/base/core/res/AndroidManifest.xml \ -hidePackage com.android.org.conscrypt \ -since $(SRC_API_DIR)/1.xml 1 \ -since $(SRC_API_DIR)/2.xml 2 \ Loading
core/java/android/app/admin/DevicePolicyManager.java +8 −4 Original line number Diff line number Diff line Loading @@ -1625,6 +1625,7 @@ public class DevicePolicyManager { * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public boolean packageHasActiveAdmins(String packageName) { return packageHasActiveAdmins(packageName, myUserId()); } Loading Loading @@ -4536,11 +4537,10 @@ public class DevicePolicyManager { /** * @return device owner component name, even if it's running on a different user. * * <p>Requires the MANAGE_USERS permission. * * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public ComponentName getDeviceOwnerComponentOnAnyUser() { return getDeviceOwnerComponentInner(/* callingUserOnly =*/ false); } Loading Loading @@ -4624,6 +4624,7 @@ public class DevicePolicyManager { * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public @Nullable String getDeviceOwner() { throwIfParentInstance("getDeviceOwner"); final ComponentName name = getDeviceOwnerComponentOnCallingUser(); Loading @@ -4641,6 +4642,7 @@ public class DevicePolicyManager { */ @SystemApi @TestApi @SuppressLint("Doclava125") public boolean isDeviceManaged() { try { return mService.hasDeviceOwner(); Loading @@ -4653,11 +4655,10 @@ public class DevicePolicyManager { * Returns the device owner name. Note this method *will* return the device owner * name when it's running on a different user. * * <p>Requires the MANAGE_USERS permission. * * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getDeviceOwnerNameOnAnyUser() { throwIfParentInstance("getDeviceOwnerNameOnAnyUser"); if (mService != null) { Loading Loading @@ -5030,6 +5031,7 @@ public class DevicePolicyManager { * @throws IllegalArgumentException if the userId is invalid. */ @SystemApi @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public @Nullable String getProfileOwnerNameAsUser(int userId) throws IllegalArgumentException { throwIfParentInstance("getProfileOwnerNameAsUser"); if (mService != null) { Loading Loading @@ -7548,6 +7550,7 @@ public class DevicePolicyManager { */ @SystemApi @TestApi @SuppressLint("Doclava125") public @Nullable CharSequence getDeviceOwnerOrganizationName() { try { return mService.getDeviceOwnerOrganizationName(); Loading Loading @@ -7759,6 +7762,7 @@ public class DevicePolicyManager { * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isDeviceProvisioningConfigApplied() { try { return mService.isDeviceProvisioningConfigApplied(); Loading
core/java/android/hardware/hdmi/HdmiControlManager.java +8 −0 Original line number Diff line number Diff line Loading @@ -17,8 +17,10 @@ package android.hardware.hdmi; import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.annotation.SuppressLint; import android.content.Context; import android.annotation.SystemApi; import android.annotation.SystemService; Loading Loading @@ -298,6 +300,7 @@ public final class HdmiControlManager { * See {@link HdmiDeviceInfo#DEVICE_TV} */ @Nullable @SuppressLint("Doclava125") public HdmiClient getClient(int type) { if (mService == null) { return null; Loading @@ -322,6 +325,7 @@ public final class HdmiControlManager { * @return {@link HdmiPlaybackClient} instance. {@code null} on failure. */ @Nullable @SuppressLint("Doclava125") public HdmiPlaybackClient getPlaybackClient() { return (HdmiPlaybackClient) getClient(HdmiDeviceInfo.DEVICE_PLAYBACK); } Loading @@ -336,6 +340,7 @@ public final class HdmiControlManager { * @return {@link HdmiTvClient} instance. {@code null} on failure. */ @Nullable @SuppressLint("Doclava125") public HdmiTvClient getTvClient() { return (HdmiTvClient) getClient(HdmiDeviceInfo.DEVICE_TV); } Loading @@ -346,6 +351,7 @@ public final class HdmiControlManager { * * @param isStandbyModeOn target status of the system's standby mode */ @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void setStandbyMode(boolean isStandbyModeOn) { try { mService.setStandbyMode(isStandbyModeOn); Loading Loading @@ -406,6 +412,7 @@ public final class HdmiControlManager { * @param listener {@link HotplugEventListener} instance * @see HdmiControlManager#removeHotplugEventListener(HotplugEventListener) */ @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void addHotplugEventListener(HotplugEventListener listener) { if (mService == null) { Log.e(TAG, "HdmiControlService is not available"); Loading @@ -429,6 +436,7 @@ public final class HdmiControlManager { * * @param listener {@link HotplugEventListener} instance to be removed */ @RequiresPermission(android.Manifest.permission.HDMI_CEC) public void removeHotplugEventListener(HotplugEventListener listener) { if (mService == null) { Log.e(TAG, "HdmiControlService is not available"); Loading
core/java/android/os/storage/StorageManager.java +6 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.annotation.SdkConstant; import android.annotation.SuppressLint; import android.annotation.SystemApi; import android.annotation.SystemService; import android.annotation.WorkerThread; Loading Loading @@ -1699,6 +1700,7 @@ public class StorageManager { /** @hide */ @SystemApi @SuppressLint("Doclava125") public long getAllocatableBytes(@NonNull UUID storageUuid, @RequiresPermission @AllocateFlags int flags) throws IOException { try { Loading @@ -1713,6 +1715,7 @@ public class StorageManager { /** @removed */ @Deprecated @SuppressLint("Doclava125") public long getAllocatableBytes(@NonNull File path, @RequiresPermission @AllocateFlags int flags) throws IOException { return getAllocatableBytes(getUuidForPath(path), flags); Loading Loading @@ -1747,6 +1750,7 @@ public class StorageManager { /** @hide */ @SystemApi @SuppressLint("Doclava125") public void allocateBytes(@NonNull UUID storageUuid, @BytesLong long bytes, @RequiresPermission @AllocateFlags int flags) throws IOException { try { Loading @@ -1760,6 +1764,7 @@ public class StorageManager { /** @removed */ @Deprecated @SuppressLint("Doclava125") public void allocateBytes(@NonNull File path, @BytesLong long bytes, @RequiresPermission @AllocateFlags int flags) throws IOException { allocateBytes(getUuidForPath(path), bytes, flags); Loading Loading @@ -1796,6 +1801,7 @@ public class StorageManager { /** @hide */ @SystemApi @SuppressLint("Doclava125") public void allocateBytes(FileDescriptor fd, @BytesLong long bytes, @RequiresPermission @AllocateFlags int flags) throws IOException { final File file = ParcelFileDescriptor.getFile(fd); Loading
location/java/android/location/LocationManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -828,6 +828,7 @@ public class LocationManager { * @hide */ @SystemApi @RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION}) public void requestLocationUpdates(LocationRequest request, LocationListener listener, Looper looper) { checkListener(listener); Loading Loading @@ -856,6 +857,7 @@ public class LocationManager { * @hide */ @SystemApi @RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION}) public void requestLocationUpdates(LocationRequest request, PendingIntent intent) { checkPendingIntent(intent); requestLocationUpdates(request, null, null, intent); Loading