| <?xml version="1.0" encoding="UTF-8"?> |
| <issues format="6" by="lint 8.0.0-dev" type="baseline" dependencies="true" variant="all" version="8.0.0-dev"> |
| |
| <issue |
| id="NewApi" |
| message="Call requires API level 24 (current min is 23): `android.os.UserHandle#of`" |
| errorLine1=" context.startActivityAsUser(intent, UserHandle.of(targetUserId));" |
| errorLine2=" ~~"> |
| <location |
| file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java" |
| line="97" |
| column="56"/> |
| </issue> |
| |
| <issue |
| id="NewApi" |
| message="Call requires API level 24 (current min is 23): `android.os.UserHandle#of`" |
| errorLine1=" return um.getUserProfiles().contains(UserHandle.of(userId));" |
| errorLine2=" ~~"> |
| <location |
| file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java" |
| line="140" |
| column="57"/> |
| </issue> |
| |
| <issue |
| id="NewApi" |
| message="Call requires API level 26 (current min is 23): `android.app.admin.DevicePolicyManager#getDeviceOwnerComponentOnAnyUser`" |
| errorLine1=" adminComponent = dpm.getDeviceOwnerComponentOnAnyUser();" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java" |
| line="75" |
| column="34"/> |
| </issue> |
| |
| <issue |
| id="NewApi" |
| message="Call requires API level 28 (current min is 23): `android.content.Context#createPackageContextAsUser`" |
| errorLine1=" userContext = context.createPackageContextAsUser(context.getPackageName(), 0, user);" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java" |
| line="64" |
| column="35"/> |
| </issue> |
| |
| <issue |
| id="NewApi" |
| message="Call requires API level 29 (current min is 23): `android.app.admin.DevicePolicyManager#getDeviceOwnerUser`" |
| errorLine1=" if (Objects.equals(dpm.getDeviceOwnerUser(), user)) {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java" |
| line="74" |
| column="32"/> |
| </issue> |
| |
| <issue |
| id="NewApi" |
| message="Call requires API level 29 (current min is 23): `android.content.Context#startActivityAsUser`" |
| errorLine1=" context.startActivityAsUser(intent, UserHandle.of(targetUserId));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java" |
| line="97" |
| column="17"/> |
| </issue> |
| |
| </issues> |