• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<issues format="6" by="lint 8.4.0-alpha01" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha01">
3
4    <issue
5        id="NewApi"
6        message="Call requires API level 28 (current min is 23): `android.content.Context#createPackageContextAsUser`"
7        errorLine1="            userContext = context.createPackageContextAsUser(context.getPackageName(), 0, user);"
8        errorLine2="                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~">
9        <location
10            file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java"
11            line="64"
12            column="35"/>
13    </issue>
14
15    <issue
16        id="NewApi"
17        message="Call requires API level 29 (current min is 23): `android.app.admin.DevicePolicyManager#getDeviceOwnerUser`"
18        errorLine1="        if (Objects.equals(dpm.getDeviceOwnerUser(), user)) {"
19        errorLine2="                               ~~~~~~~~~~~~~~~~~~">
20        <location
21            file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java"
22            line="74"
23            column="32"/>
24    </issue>
25
26    <issue
27        id="NewApi"
28        message="Call requires API level 26 (current min is 23): `android.app.admin.DevicePolicyManager#getDeviceOwnerComponentOnAnyUser`"
29        errorLine1="            adminComponent = dpm.getDeviceOwnerComponentOnAnyUser();"
30        errorLine2="                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
31        <location
32            file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java"
33            line="75"
34            column="34"/>
35    </issue>
36
37    <issue
38        id="NewApi"
39        message="Call requires API level 24 (current min is 23): `android.os.UserHandle#of`"
40        errorLine1="        context.startActivityAsUser(intent, UserHandle.of(targetUserId));"
41        errorLine2="                                                       ~~">
42        <location
43            file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java"
44            line="97"
45            column="56"/>
46    </issue>
47
48    <issue
49        id="NewApi"
50        message="Call requires API level 29 (current min is 23): `android.content.Context#startActivityAsUser`"
51        errorLine1="        context.startActivityAsUser(intent, UserHandle.of(targetUserId));"
52        errorLine2="                ~~~~~~~~~~~~~~~~~~~">
53        <location
54            file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java"
55            line="97"
56            column="17"/>
57    </issue>
58
59    <issue
60        id="NewApi"
61        message="Call requires API level 24 (current min is 23): `android.os.UserHandle#of`"
62        errorLine1="        return um.getUserProfiles().contains(UserHandle.of(userId));"
63        errorLine2="                                                        ~~">
64        <location
65            file="frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/RestrictedLockUtils.java"
66            line="120"
67            column="57"/>
68    </issue>
69
70</issues>