lint-baseline-launcher3.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <issues format="5" by="lint 4.1.0" client="cli" variant="all" version="4.1.0">
  3. <issue
  4. id="NewApi"
  5. message="Call requires API level 28 (current min is 26): `android.os.UserManager#requestQuietModeEnabled`"
  6. errorLine1=" showConfirm |= !userManager.requestQuietModeEnabled(!toState, userProfile);"
  7. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
  8. <location
  9. file="packages/apps/Launcher3/src/com/android/launcher3/allapps/WorkModeSwitch.java"
  10. line="110"
  11. column="41"/>
  12. </issue>
  13. <issue
  14. id="NewApi"
  15. message="Call requires API level R (current min is 26): `android.view.View#getWindowInsetsController`"
  16. errorLine1=" getWindowInsetsController().hide(WindowInsets.Type.ime());"
  17. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
  18. <location
  19. file="packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsContainerView.java"
  20. line="203"
  21. column="9"/>
  22. </issue>
  23. <issue
  24. id="NewApi"
  25. message="Call requires API level R (current min is 26): `android.view.WindowInsets.Type#ime`"
  26. errorLine1=" getWindowInsetsController().hide(WindowInsets.Type.ime());"
  27. errorLine2=" ~~~">
  28. <location
  29. file="packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsContainerView.java"
  30. line="203"
  31. column="60"/>
  32. </issue>
  33. <issue
  34. id="NewApi"
  35. message="Call requires API level R (current min is 26): `android.view.WindowInsetsController#hide`"
  36. errorLine1=" getWindowInsetsController().hide(WindowInsets.Type.ime());"
  37. errorLine2=" ~~~~">
  38. <location
  39. file="packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsContainerView.java"
  40. line="203"
  41. column="37"/>
  42. </issue>
  43. <issue
  44. id="NewApi"
  45. message="Call requires API level R (current min is 26): `android.view.View#getWindowInsetsController`"
  46. errorLine1=" getWindowInsetsController().hide(WindowInsets.Type.ime());"
  47. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
  48. <location
  49. file="packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsRecyclerView.java"
  50. line="193"
  51. column="17"/>
  52. </issue>
  53. <issue
  54. id="NewApi"
  55. message="Call requires API level R (current min is 26): `android.view.WindowInsets.Type#ime`"
  56. errorLine1=" getWindowInsetsController().hide(WindowInsets.Type.ime());"
  57. errorLine2=" ~~~">
  58. <location
  59. file="packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsRecyclerView.java"
  60. line="193"
  61. column="68"/>
  62. </issue>
  63. <issue
  64. id="NewApi"
  65. message="Call requires API level R (current min is 26): `android.view.WindowInsetsController#hide`"
  66. errorLine1=" getWindowInsetsController().hide(WindowInsets.Type.ime());"
  67. errorLine2=" ~~~~">
  68. <location
  69. file="packages/apps/Launcher3/src/com/android/launcher3/allapps/AllAppsRecyclerView.java"
  70. line="193"
  71. column="45"/>
  72. </issue>
  73. <issue
  74. id="NewApi"
  75. message="Call requires API level 31 (current min is 26): `android.appwidget.AppWidgetHostView#updateAppWidgetSize`"
  76. errorLine1=" widgetView.updateAppWidgetSize(new Bundle(), sizes);"
  77. errorLine2=" ~~~~~~~~~~~~~~~~~~~">
  78. <location
  79. file="packages/apps/Launcher3/src/com/android/launcher3/AppWidgetResizeFrame.java"
  80. line="399"
  81. column="24"/>
  82. </issue>
  83. <issue
  84. id="NewApi"
  85. message="Call requires API level R (current min is 26): `android.view.WindowManager#getCurrentWindowMetrics`"
  86. errorLine1=" .getCurrentWindowMetrics().getWindowInsets();"
  87. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
  88. <location
  89. file="packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java"
  90. line="236"
  91. column="22"/>
  92. </issue>
  93. <issue
  94. id="NewApi"
  95. message="Call requires API level R (current min is 26): `android.view.WindowMetrics#getWindowInsets`"
  96. errorLine1=" .getCurrentWindowMetrics().getWindowInsets();"
  97. errorLine2=" ~~~~~~~~~~~~~~~">
  98. <location
  99. file="packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java"
  100. line="236"
  101. column="48"/>
  102. </issue>
  103. <issue
  104. id="NewApi"
  105. message="Call requires API level 29 (current min is 26): `android.content.res.Resources#getFloat`"
  106. errorLine1=" folderLabelTextScale = res.getFloat(R.dimen.folder_label_text_scale);"
  107. errorLine2=" ~~~~~~~~">
  108. <location
  109. file="packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java"
  110. line="256"
  111. column="36"/>
  112. </issue>
  113. <issue
  114. id="NewApi"
  115. message="Call requires API level 29 (current min is 26): `android.content.res.Resources#getFloat`"
  116. errorLine1=" return mContext.getResources().getFloat(resId);"
  117. errorLine2=" ~~~~~~~~">
  118. <location
  119. file="packages/apps/Launcher3/src/com/android/launcher3/util/DynamicResource.java"
  120. line="73"
  121. column="40"/>
  122. </issue>
  123. <issue
  124. id="NewApi"
  125. message="Call requires API level 31 (current min is 26): `android.appwidget.AppWidgetHostView#resetColorResources`"
  126. errorLine1=" resetColorResources();"
  127. errorLine2=" ~~~~~~~~~~~~~~~~~~~">
  128. <location
  129. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetHostView.java"
  130. line="137"
  131. column="13"/>
  132. </issue>
  133. <issue
  134. id="NewApi"
  135. message="Call requires API level R (current min is 26): `java.util.List#of`"
  136. errorLine1=" mColorExtractor.addLocation(List.of(mLastLocationRegistered));"
  137. errorLine2=" ~~">
  138. <location
  139. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetHostView.java"
  140. line="367"
  141. column="46"/>
  142. </issue>
  143. <issue
  144. id="NewApi"
  145. message="Call requires API level R (current min is 26): `java.util.List#of`"
  146. errorLine1=" mColorExtractor.addLocation(List.of(mLastLocationRegistered));"
  147. errorLine2=" ~~">
  148. <location
  149. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetHostView.java"
  150. line="390"
  151. column="50"/>
  152. </issue>
  153. <issue
  154. id="NewApi"
  155. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#maxResizeWidth`"
  156. errorLine1=" (ATLEAST_S &amp;&amp; maxResizeWidth > 0)"
  157. errorLine2=" ~~~~~~~~~~~~~~">
  158. <location
  159. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetProviderInfo.java"
  160. line="91"
  161. column="31"/>
  162. </issue>
  163. <issue
  164. id="NewApi"
  165. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#maxResizeWidth`"
  166. errorLine1=" ? getSpanX(widgetPadding, maxResizeWidth, smallestCellWidth)"
  167. errorLine2=" ~~~~~~~~~~~~~~">
  168. <location
  169. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetProviderInfo.java"
  170. line="92"
  171. column="51"/>
  172. </issue>
  173. <issue
  174. id="NewApi"
  175. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#maxResizeHeight`"
  176. errorLine1=" (ATLEAST_S &amp;&amp; maxResizeHeight > 0)"
  177. errorLine2=" ~~~~~~~~~~~~~~~">
  178. <location
  179. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetProviderInfo.java"
  180. line="95"
  181. column="31"/>
  182. </issue>
  183. <issue
  184. id="NewApi"
  185. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#maxResizeHeight`"
  186. errorLine1=" ? getSpanY(widgetPadding, maxResizeHeight, smallestCellHeight)"
  187. errorLine2=" ~~~~~~~~~~~~~~~">
  188. <location
  189. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetProviderInfo.java"
  190. line="96"
  191. column="51"/>
  192. </issue>
  193. <issue
  194. id="NewApi"
  195. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#targetCellWidth`"
  196. errorLine1=" if (ATLEAST_S &amp;&amp; targetCellWidth >= minSpanX &amp;&amp; targetCellWidth &lt;= maxSpanX"
  197. errorLine2=" ~~~~~~~~~~~~~~~">
  198. <location
  199. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetProviderInfo.java"
  200. line="101"
  201. column="26"/>
  202. </issue>
  203. <issue
  204. id="NewApi"
  205. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#targetCellWidth`"
  206. errorLine1=" if (ATLEAST_S &amp;&amp; targetCellWidth >= minSpanX &amp;&amp; targetCellWidth &lt;= maxSpanX"
  207. errorLine2=" ~~~~~~~~~~~~~~~">
  208. <location
  209. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetProviderInfo.java"
  210. line="101"
  211. column="57"/>
  212. </issue>
  213. <issue
  214. id="NewApi"
  215. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#targetCellHeight`"
  216. errorLine1=" &amp;&amp; targetCellHeight >= minSpanY &amp;&amp; targetCellHeight &lt;= maxSpanY) {"
  217. errorLine2=" ~~~~~~~~~~~~~~~~">
  218. <location
  219. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetProviderInfo.java"
  220. line="102"
  221. column="20"/>
  222. </issue>
  223. <issue
  224. id="NewApi"
  225. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#targetCellHeight`"
  226. errorLine1=" &amp;&amp; targetCellHeight >= minSpanY &amp;&amp; targetCellHeight &lt;= maxSpanY) {"
  227. errorLine2=" ~~~~~~~~~~~~~~~~">
  228. <location
  229. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetProviderInfo.java"
  230. line="102"
  231. column="52"/>
  232. </issue>
  233. <issue
  234. id="NewApi"
  235. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#targetCellWidth`"
  236. errorLine1=" spanX = targetCellWidth;"
  237. errorLine2=" ~~~~~~~~~~~~~~~">
  238. <location
  239. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetProviderInfo.java"
  240. line="103"
  241. column="21"/>
  242. </issue>
  243. <issue
  244. id="NewApi"
  245. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#targetCellHeight`"
  246. errorLine1=" spanY = targetCellHeight;"
  247. errorLine2=" ~~~~~~~~~~~~~~~~">
  248. <location
  249. file="packages/apps/Launcher3/src/com/android/launcher3/widget/LauncherAppWidgetProviderInfo.java"
  250. line="104"
  251. column="21"/>
  252. </issue>
  253. <issue
  254. id="NewApi"
  255. message="Call requires API level 28 (current min is 26): `android.app.Person#getKey`"
  256. errorLine1=" return people.stream().filter(person -> person.getKey() != null)"
  257. errorLine2=" ~~~~~~">
  258. <location
  259. file="packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationKeyData.java"
  260. line="72"
  261. column="56"/>
  262. </issue>
  263. <issue
  264. id="NewApi"
  265. message="Method reference requires API level 28 (current min is 26): `Person::getKey`"
  266. errorLine1=" .map(Person::getKey).sorted().toArray(String[]::new);"
  267. errorLine2=" ~~~~~~~~~~~~~~">
  268. <location
  269. file="packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationKeyData.java"
  270. line="73"
  271. column="22"/>
  272. </issue>
  273. <issue
  274. id="NewApi"
  275. message="Call requires API level 31 (current min is 26): `android.content.pm.LauncherActivityInfo#getLoadingProgress`"
  276. errorLine1=" return (int) (100 * info.getLoadingProgress());"
  277. errorLine2=" ~~~~~~~~~~~~~~~~~~">
  278. <location
  279. file="packages/apps/Launcher3/src/com/android/launcher3/util/PackageManagerHelper.java"
  280. line="338"
  281. column="38"/>
  282. </issue>
  283. <issue
  284. id="NewApi"
  285. message="Field requires API level 29 (current min is 26): `android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_PAGE_LEFT`"
  286. errorLine1=" AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_LEFT"
  287. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  288. <location
  289. file="packages/apps/Launcher3/src/com/android/launcher3/PagedView.java"
  290. line="1752"
  291. column="17"/>
  292. </issue>
  293. <issue
  294. id="NewApi"
  295. message="Field requires API level 29 (current min is 26): `android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_PAGE_RIGHT`"
  296. errorLine1=" : AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_RIGHT);"
  297. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  298. <location
  299. file="packages/apps/Launcher3/src/com/android/launcher3/PagedView.java"
  300. line="1753"
  301. column="19"/>
  302. </issue>
  303. <issue
  304. id="NewApi"
  305. message="Field requires API level 29 (current min is 26): `android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_PAGE_RIGHT`"
  306. errorLine1=" AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_RIGHT"
  307. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  308. <location
  309. file="packages/apps/Launcher3/src/com/android/launcher3/PagedView.java"
  310. line="1760"
  311. column="17"/>
  312. </issue>
  313. <issue
  314. id="NewApi"
  315. message="Field requires API level 29 (current min is 26): `android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_PAGE_LEFT`"
  316. errorLine1=" : AccessibilityNodeInfo.AccessibilityAction.ACTION_PAGE_LEFT);"
  317. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  318. <location
  319. file="packages/apps/Launcher3/src/com/android/launcher3/PagedView.java"
  320. line="1761"
  321. column="19"/>
  322. </issue>
  323. <issue
  324. id="NewApi"
  325. message="Call requires API level R (current min is 26): `java.util.List#of`"
  326. errorLine1=" private List&lt;WidgetsListBaseEntry> mAllWidgets = List.of();"
  327. errorLine2=" ~~">
  328. <location
  329. file="packages/apps/Launcher3/src/com/android/launcher3/popup/PopupDataProvider.java"
  330. line="64"
  331. column="59"/>
  332. </issue>
  333. <issue
  334. id="NewApi"
  335. message="Call requires API level R (current min is 26): `java.util.List#of`"
  336. errorLine1=" private List&lt;ItemInfo> mRecommendedWidgets = List.of();"
  337. errorLine2=" ~~">
  338. <location
  339. file="packages/apps/Launcher3/src/com/android/launcher3/popup/PopupDataProvider.java"
  340. line="66"
  341. column="55"/>
  342. </issue>
  343. <issue
  344. id="NewApi"
  345. message="Call requires API level R (current min is 26): `new android.view.SurfaceControlViewHost`"
  346. errorLine1=" .submit(() -> new SurfaceControlViewHost(mContext, mDisplay, mHostToken))"
  347. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~">
  348. <location
  349. file="packages/apps/Launcher3/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java"
  350. line="91"
  351. column="35"/>
  352. </issue>
  353. <issue
  354. id="NewApi"
  355. message="Call requires API level R (current min is 26): `android.view.SurfaceControlViewHost#getSurfacePackage`"
  356. errorLine1=" surfacePackage = mSurfaceControlViewHost.getSurfacePackage();"
  357. errorLine2=" ~~~~~~~~~~~~~~~~~">
  358. <location
  359. file="packages/apps/Launcher3/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java"
  360. line="93"
  361. column="54"/>
  362. </issue>
  363. <issue
  364. id="NewApi"
  365. message="Call requires API level R (current min is 26): `android.view.SurfaceControlViewHost#setView`"
  366. errorLine1=" host.setView(view, view.getMeasuredWidth(), view.getMeasuredHeight());"
  367. errorLine2=" ~~~~~~~">
  368. <location
  369. file="packages/apps/Launcher3/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java"
  370. line="127"
  371. column="22"/>
  372. </issue>
  373. <issue
  374. id="NewApi"
  375. message="Cast from `SurfacePackage` to `Parcelable` requires API level 30 (current min is 26)"
  376. errorLine1=" result.putParcelable(KEY_SURFACE_PACKAGE, surfacePackage);"
  377. errorLine2=" ~~~~~~~~~~~~~~">
  378. <location
  379. file="packages/apps/Launcher3/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java"
  380. line="132"
  381. column="51"/>
  382. </issue>
  383. <issue
  384. id="NewApi"
  385. message="Call requires API level R (current min is 26): `android.view.SurfaceControlViewHost#release`"
  386. errorLine1=" mSurfaceControlViewHost.release();"
  387. errorLine2=" ~~~~~~~">
  388. <location
  389. file="packages/apps/Launcher3/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java"
  390. line="149"
  391. column="41"/>
  392. </issue>
  393. <issue
  394. id="NewApi"
  395. message="Call requires API level R (current min is 26): `android.graphics.Outline#setPath`"
  396. errorLine1=" outline.setPath(mPath);"
  397. errorLine2=" ~~~~~~~">
  398. <location
  399. file="packages/apps/Launcher3/src/com/android/launcher3/popup/RoundedArrowDrawable.java"
  400. line="88"
  401. column="17"/>
  402. </issue>
  403. <issue
  404. id="NewApi"
  405. message="Call requires API level 31 (current min is 26): `new android.widget.EdgeEffect`"
  406. errorLine1=" ? new EdgeEffect(context, attrs) : new EdgeEffect(context);"
  407. errorLine2=" ~~~~~~~~~~~~~~">
  408. <location
  409. file="packages/apps/Launcher3/src/com/android/launcher3/views/SpringRelativeLayout.java"
  410. line="49"
  411. column="19"/>
  412. </issue>
  413. <issue
  414. id="NewApi"
  415. message="Call requires API level 31 (current min is 26): `new android.widget.EdgeEffect`"
  416. errorLine1=" ? new EdgeEffect(context, attrs) : new EdgeEffect(context);"
  417. errorLine2=" ~~~~~~~~~~~~~~">
  418. <location
  419. file="packages/apps/Launcher3/src/com/android/launcher3/views/SpringRelativeLayout.java"
  420. line="51"
  421. column="19"/>
  422. </issue>
  423. <issue
  424. id="NewApi"
  425. message="Call requires API level 29 (current min is 26): `android.view.WindowInsets#getTappableElementInsets`"
  426. errorLine1=" return windowInsets.getTappableElementInsets().bottom > 0;"
  427. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
  428. <location
  429. file="packages/apps/Launcher3/src/com/android/launcher3/graphics/SysUiScrim.java"
  430. line="190"
  431. column="33"/>
  432. </issue>
  433. <issue
  434. id="NewApi"
  435. message="Field requires API level 29 (current min is 26): `android.graphics.Insets#bottom`"
  436. errorLine1=" return windowInsets.getTappableElementInsets().bottom > 0;"
  437. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  438. <location
  439. file="packages/apps/Launcher3/src/com/android/launcher3/graphics/SysUiScrim.java"
  440. line="190"
  441. column="20"/>
  442. </issue>
  443. <issue
  444. id="NewApi"
  445. message="Field requires API level 28 (current min is 26): `android.appwidget.AppWidgetProviderInfo#widgetFeatures`"
  446. errorLine1=" int featureFlags = mProviderInfo.widgetFeatures;"
  447. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  448. <location
  449. file="packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetAddFlowHandler.java"
  450. line="93"
  451. column="28"/>
  452. </issue>
  453. <issue
  454. id="NewApi"
  455. message="Call requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#loadDescription`"
  456. errorLine1=" CharSequence description = mItem.widgetInfo.loadDescription(getContext());"
  457. errorLine2=" ~~~~~~~~~~~~~~~">
  458. <location
  459. file="packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetCell.java"
  460. line="193"
  461. column="57"/>
  462. </issue>
  463. <issue
  464. id="NewApi"
  465. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#previewLayout`"
  466. errorLine1=" &amp;&amp; item.widgetInfo.previewLayout != Resources.ID_NULL) {"
  467. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  468. <location
  469. file="packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetCell.java"
  470. line="214"
  471. column="20"/>
  472. </issue>
  473. <issue
  474. id="NewApi"
  475. message="Field requires API level 31 (current min is 26): `android.appwidget.AppWidgetProviderInfo#previewLayout`"
  476. errorLine1=" launcherAppWidgetProviderInfo.initialLayout = item.widgetInfo.previewLayout;"
  477. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
  478. <location
  479. file="packages/apps/Launcher3/src/com/android/launcher3/widget/WidgetCell.java"
  480. line="222"
  481. column="59"/>
  482. </issue>
  483. <issue
  484. id="NewApi"
  485. message="Call requires API level R (current min is 26): `android.view.View#getWindowInsetsController`"
  486. errorLine1=" getWindowInsetsController().hide(WindowInsets.Type.ime());"
  487. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
  488. <location
  489. file="packages/apps/Launcher3/src/com/android/launcher3/widget/picker/WidgetsFullSheet.java"
  490. line="558"
  491. column="9"/>
  492. </issue>
  493. <issue
  494. id="NewApi"
  495. message="Call requires API level R (current min is 26): `android.view.WindowInsets.Type#ime`"
  496. errorLine1=" getWindowInsetsController().hide(WindowInsets.Type.ime());"
  497. errorLine2=" ~~~">
  498. <location
  499. file="packages/apps/Launcher3/src/com/android/launcher3/widget/picker/WidgetsFullSheet.java"
  500. line="558"
  501. column="60"/>
  502. </issue>
  503. <issue
  504. id="NewApi"
  505. message="Call requires API level R (current min is 26): `android.view.WindowInsetsController#hide`"
  506. errorLine1=" getWindowInsetsController().hide(WindowInsets.Type.ime());"
  507. errorLine2=" ~~~~">
  508. <location
  509. file="packages/apps/Launcher3/src/com/android/launcher3/widget/picker/WidgetsFullSheet.java"
  510. line="558"
  511. column="37"/>
  512. </issue>
  513. <issue
  514. id="NewApi"
  515. message="Call requires API level R (current min is 26): `java.util.List#of`"
  516. errorLine1=" return new RecommendationTableData(List.of(), previewScale);"
  517. errorLine2=" ~~">
  518. <location
  519. file="packages/apps/Launcher3/src/com/android/launcher3/widget/picker/WidgetsRecommendationTableLayout.java"
  520. line="139"
  521. column="53"/>
  522. </issue>
  523. <issue
  524. id="NewApi"
  525. message="Method reference requires API level 28 (current min is 26): `Person::getKey`"
  526. errorLine1=" : Arrays.stream(persons).map(Person::getKey).sorted().toArray(String[]::new);"
  527. errorLine2=" ~~~~~~~~~~~~~~">
  528. <location
  529. file="packages/apps/Launcher3/src/com/android/launcher3/model/data/WorkspaceItemInfo.java"
  530. line="178"
  531. column="42"/>
  532. </issue>
  533. <issue
  534. id="NewApi"
  535. message="Call requires API level 31 (current min is 26): `android.appwidget.AppWidgetHostView#setColorResources`"
  536. errorLine1=" setColorResources(mWallpaperColorResources);"
  537. errorLine2=" ~~~~~~~~~~~~~~~~~">
  538. <location
  539. file="packages/apps/Launcher3/src/com/android/launcher3/graphics/LauncherPreviewRenderer.java"
  540. line="528"
  541. column="17"/>
  542. </issue>
  543. <issue
  544. id="NewApi"
  545. message="Call requires API level 27 (current min is 26): `android.app.WallpaperManager#getWallpaperColors`"
  546. errorLine1=" : WallpaperManager.getInstance(context).getWallpaperColors(FLAG_SYSTEM);"
  547. errorLine2=" ~~~~~~~~~~~~~~~~~~">
  548. <location
  549. file="packages/apps/Launcher3/src/com/android/launcher3/graphics/LauncherPreviewRenderer.java"
  550. line="288"
  551. column="61"/>
  552. </issue>
  553. <issue
  554. id="NewApi"
  555. message="Call requires API level 33 (current min is 26): `android.app.Activity#getOnBackInvokedDispatcher`">
  556. <location
  557. file="packages/apps/Launcher3/src/com/android/launcher3/BaseActivity.java"
  558. line="182"/>
  559. </issue>
  560. <issue
  561. id="NewApi"
  562. message="Call requires API level 33 (current min is 26): `android.window.OnBackInvokedDispatcher#registerOnBackInvokedCallback`">
  563. <location
  564. file="packages/apps/Launcher3/src/com/android/launcher3/BaseActivity.java"
  565. line="182"/>
  566. </issue>
  567. </issues>