1<?xml version="1.0" encoding="UTF-8"?> 2<issues format="6" by="lint 8.4.0-alpha08" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha08"> 3 4 <issue 5 id="ApplySharedPref" 6 message="Consider using `apply()` instead; `commit` writes its data to persistent storage immediately, whereas `apply` will handle it in the background" 7 errorLine1=" editor.commit();" 8 errorLine2=" ~~~~~~~~"> 9 <location 10 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 11 line="2583" 12 column="16"/> 13 </issue> 14 15 <issue 16 id="ApplySharedPref" 17 message="Consider using `apply()` instead; `commit` writes its data to persistent storage immediately, whereas `apply` will handle it in the background" 18 errorLine1=" editor.commit();" 19 errorLine2=" ~~~~~~~~"> 20 <location 21 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 22 line="2738" 23 column="16"/> 24 </issue> 25 26 <issue 27 id="ApplySharedPref" 28 message="Consider using `apply()` instead; `commit` writes its data to persistent storage immediately, whereas `apply` will handle it in the background" 29 errorLine1=" editor.commit();" 30 errorLine2=" ~~~~~~~~"> 31 <location 32 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 33 line="2507" 34 column="16"/> 35 </issue> 36 37 <issue 38 id="ApplySharedPref" 39 message="Consider using `apply()` instead; `commit` writes its data to persistent storage immediately, whereas `apply` will handle it in the background" 40 errorLine1=" editor.commit();" 41 errorLine2=" ~~~~~~~~"> 42 <location 43 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 44 line="2677" 45 column="16"/> 46 </issue> 47 48 <issue 49 id="CommitPrefEdits" 50 message="`SharedPreferences.edit()` without a corresponding `commit()` or `apply()` call" 51 errorLine1=" doReturn(editor).when(sharedPreferences).edit();" 52 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 53 <location 54 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 55 line="2622" 56 column="9"/> 57 </issue> 58 59 <issue 60 id="CommitPrefEdits" 61 message="`SharedPreferences.edit()` without a corresponding `commit()` or `apply()` call" 62 errorLine1=" doReturn(editor).when(sharedPreferences).edit();" 63 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 64 <location 65 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 66 line="2550" 67 column="9"/> 68 </issue> 69 70 <issue 71 id="CommitPrefEdits" 72 message="`SharedPreferences.edit()` without a corresponding `commit()` or `apply()` call" 73 errorLine1=" doReturn(mEditor).when(mSharedPreferences).edit();" 74 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 75 <location 76 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/ConsentNotificationResetChannelTest.java" 77 line="105" 78 column="9"/> 79 </issue> 80 81 <issue 82 id="CommitPrefEdits" 83 message="`SharedPreferences.edit()` without a corresponding `commit()` or `apply()` call" 84 errorLine1=" doReturn(mEditor).when(mSharedPreferences).edit();" 85 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 86 <location 87 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/ConsentNotificationResetChannelTest.java" 88 line="121" 89 column="9"/> 90 </issue> 91 92 <issue 93 id="CommitPrefEdits" 94 message="`SharedPreferences.edit()` without a corresponding `commit()` or `apply()` call" 95 errorLine1=" doReturn(mEditor).when(mSharedPreferences).edit();" 96 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 97 <location 98 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/ConsentNotificationResetChannelTest.java" 99 line="138" 100 column="9"/> 101 </issue> 102 103 <issue 104 id="CommitPrefEdits" 105 message="`SharedPreferences.edit()` without a corresponding `commit()` or `apply()` call" 106 errorLine1=" doReturn(mEditor).when(mSharedPreferences).edit();" 107 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 108 <location 109 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/util/UxEngineUtilTest.java" 110 line="234" 111 column="9"/> 112 </issue> 113 114 <issue 115 id="CommitPrefEdits" 116 message="`SharedPreferences.edit()` without a corresponding `commit()` or `apply()` call" 117 errorLine1=" doReturn(mEditor).when(mSharedPreferences).edit();" 118 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 119 <location 120 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/util/UxEngineUtilTest.java" 121 line="387" 122 column="9"/> 123 </issue> 124 125 <issue 126 id="CommitPrefEdits" 127 message="`SharedPreferences.edit()` without a corresponding `commit()` or `apply()` call" 128 errorLine1=" doReturn(mEditor).when(mSharedPreferences).edit();" 129 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 130 <location 131 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/util/UxEngineUtilTest.java" 132 line="454" 133 column="9"/> 134 </issue> 135 136 <issue 137 id="VisibleForTests" 138 message="This method should only be accessed from tests or within private scope" 139 errorLine1=" mAdServicesManager = new AdServicesManager(mMockIAdServicesManager);" 140 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 141 <location 142 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/AdServicesStorageManagerTest.java" 143 line="103" 144 column="30"/> 145 </issue> 146 147 <issue 148 id="VisibleForTests" 149 message="This method should only be accessed from tests or within private scope" 150 errorLine1=" new AdServicesStorageManager(" 151 errorLine2=" ^"> 152 <location 153 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/AdServicesStorageManagerTest.java" 154 line="108" 155 column="25"/> 156 </issue> 157 158 <issue 159 id="VisibleForTests" 160 message="This method should only be accessed from tests or within private scope" 161 errorLine1=" doReturn(uid).when(mAdServicesStorageManager).getUidForInstalledPackageName(packageName);" 162 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 163 <location 164 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/AdServicesStorageManagerTest.java" 165 line="377" 166 column="55"/> 167 </issue> 168 169 <issue 170 id="VisibleForTests" 171 message="This method should only be accessed from tests or within private scope" 172 errorLine1=" .getUidForInstalledPackageName(packageName);" 173 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 174 <location 175 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/AdServicesStorageManagerTest.java" 176 line="387" 177 column="18"/> 178 </issue> 179 180 <issue 181 id="VisibleForTests" 182 message="This method should only be accessed from tests or within private scope" 183 errorLine1=" mSpyContext, AppConsentDao.DATASTORE_NAME, AppConsentDao.DATASTORE_VERSION);" 184 errorLine2=" ~~~~~~~~~~~~~~"> 185 <location 186 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/AppConsentForRStorageManagerTest.java" 187 line="68" 188 column="52"/> 189 </issue> 190 191 <issue 192 id="VisibleForTests" 193 message="This method should only be accessed from tests or within private scope" 194 errorLine1=" mSpyContext, AppConsentDao.DATASTORE_NAME, AppConsentDao.DATASTORE_VERSION);" 195 errorLine2=" ~~~~~~~~~~~~~~~~~"> 196 <location 197 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/AppConsentForRStorageManagerTest.java" 198 line="68" 199 column="82"/> 200 </issue> 201 202 <issue 203 id="VisibleForTests" 204 message="This method should only be accessed from tests or within private scope" 205 errorLine1=" spy(new AppConsentDao(mAppDaoDatastore, mSpyContext.getPackageManager()));" 206 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 207 <location 208 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/AppConsentForRStorageManagerTest.java" 209 line="71" 210 column="21"/> 211 </issue> 212 213 <issue 214 id="VisibleForTests" 215 message="This method should only be accessed from tests or within private scope" 216 errorLine1=" mContextSpy, AppConsentDao.DATASTORE_NAME, AppConsentDao.DATASTORE_VERSION);" 217 errorLine2=" ~~~~~~~~~~~~~~"> 218 <location 219 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/AppConsentStorageManagerTest.java" 220 line="89" 221 column="52"/> 222 </issue> 223 224 <issue 225 id="VisibleForTests" 226 message="This method should only be accessed from tests or within private scope" 227 errorLine1=" mContextSpy, AppConsentDao.DATASTORE_NAME, AppConsentDao.DATASTORE_VERSION);" 228 errorLine2=" ~~~~~~~~~~~~~~~~~"> 229 <location 230 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/AppConsentStorageManagerTest.java" 231 line="89" 232 column="82"/> 233 </issue> 234 235 <issue 236 id="VisibleForTests" 237 message="This method should only be accessed from tests or within private scope" 238 errorLine1=" spy(new AppConsentDao(mAppDaoDatastore, mContextSpy.getPackageManager()));" 239 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 240 <location 241 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/AppConsentStorageManagerTest.java" 242 line="92" 243 column="21"/> 244 </issue> 245 246 <issue 247 id="VisibleForTests" 248 message="This method should only be accessed from tests or within private scope" 249 errorLine1=" verifyReadMethods(consentCompositeStorage.getConsentStorageList().get(0));" 250 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 251 <location 252 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentCompositeStorageTest.java" 253 line="90" 254 column="51"/> 255 </issue> 256 257 <issue 258 id="VisibleForTests" 259 message="This method should only be accessed from tests or within private scope" 260 errorLine1=" List<IConsentStorage> storageList = consentCompositeStorage.getConsentStorageList();" 261 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 262 <location 263 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentCompositeStorageTest.java" 264 line="118" 265 column="69"/> 266 </issue> 267 268 <issue 269 id="VisibleForTests" 270 message="This method should only be accessed from tests or within private scope" 271 errorLine1=" mSpyContext, AppConsentDao.DATASTORE_NAME, AppConsentDao.DATASTORE_VERSION);" 272 errorLine2=" ~~~~~~~~~~~~~~"> 273 <location 274 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 275 line="267" 276 column="52"/> 277 </issue> 278 279 <issue 280 id="VisibleForTests" 281 message="This method should only be accessed from tests or within private scope" 282 errorLine1=" mSpyContext, AppConsentDao.DATASTORE_NAME, AppConsentDao.DATASTORE_VERSION);" 283 errorLine2=" ~~~~~~~~~~~~~~~~~"> 284 <location 285 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 286 line="267" 287 column="82"/> 288 </issue> 289 290 <issue 291 id="VisibleForTests" 292 message="This method should only be accessed from tests or within private scope" 293 errorLine1=" mConsentDatastore = ConsentManager.createAndInitializeDataStore(mSpyContext);" 294 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 295 <location 296 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 297 line="270" 298 column="44"/> 299 </issue> 300 301 <issue 302 id="VisibleForTests" 303 message="This method should only be accessed from tests or within private scope" 304 errorLine1=" mAppConsentDaoSpy = spy(new AppConsentDao(mDatastore, mSpyContext.getPackageManager()));" 305 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 306 <location 307 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 308 line="271" 309 column="33"/> 310 </issue> 311 312 <issue 313 id="VisibleForTests" 314 message="This method should only be accessed from tests or within private scope" 315 errorLine1=" new EnrollmentDao(" 316 errorLine2=" ^"> 317 <location 318 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 319 line="274" 320 column="25"/> 321 </issue> 322 323 <issue 324 id="VisibleForTests" 325 message="This method should only be accessed from tests or within private scope" 326 errorLine1=" mAdServicesManager = new AdServicesManager(mMockIAdServicesManager);" 327 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 328 <location 329 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 330 line="276" 331 column="30"/> 332 </issue> 333 334 <issue 335 id="VisibleForTests" 336 message="This method should only be accessed from tests or within private scope" 337 errorLine1=" verify(spyConsentManager, times(0)).setConsentToPpApi(isGiven);" 338 errorLine2=" ~~~~~~~~~~~~~~~~~"> 339 <location 340 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 341 line="445" 342 column="45"/> 343 </issue> 344 345 <issue 346 id="VisibleForTests" 347 message="This method should only be accessed from tests or within private scope" 348 errorLine1=" verify(spyConsentManager).setConsentToPpApi(isGiven);" 349 errorLine2=" ~~~~~~~~~~~~~~~~~"> 350 <location 351 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 352 line="462" 353 column="35"/> 354 </issue> 355 356 <issue 357 id="VisibleForTests" 358 message="This method should only be accessed from tests or within private scope" 359 errorLine1=" verify(spyConsentManager, never()).resetByApi(eq(AdServicesApiType.MEASUREMENTS));" 360 errorLine2=" ~~~~~~~~~~"> 361 <location 362 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 363 line="487" 364 column="44"/> 365 </issue> 366 367 <issue 368 id="VisibleForTests" 369 message="This method should only be accessed from tests or within private scope" 370 errorLine1=" verify(spyConsentManager).resetByApi(eq(AdServicesApiType.MEASUREMENTS));" 371 errorLine2=" ~~~~~~~~~~"> 372 <location 373 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 374 line="510" 375 column="35"/> 376 </issue> 377 378 <issue 379 id="VisibleForTests" 380 message="This method should only be accessed from tests or within private scope" 381 errorLine1=" ConsentManager.clearPpApiConsent(mSpyContext, mConsentDatastore);" 382 errorLine2=" ~~~~~~~~~~~~~~~~~"> 383 <location 384 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 385 line="2521" 386 column="24"/> 387 </issue> 388 389 <issue 390 id="VisibleForTests" 391 message="This method should only be accessed from tests or within private scope" 392 errorLine1=" ConsentManager.clearPpApiConsent(mSpyContext, mConsentDatastore);" 393 errorLine2=" ~~~~~~~~~~~~~~~~~"> 394 <location 395 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 396 line="2531" 397 column="24"/> 398 </issue> 399 400 <issue 401 id="VisibleForTests" 402 message="This method should only be accessed from tests or within private scope" 403 errorLine1=" ConsentManager.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_PPAPI_HAS_CLEARED);" 404 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 405 <location 406 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 407 line="2536" 408 column="24"/> 409 </issue> 410 411 <issue 412 id="VisibleForTests" 413 message="This method should only be accessed from tests or within private scope" 414 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 415 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 416 <location 417 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 418 line="2550" 419 column="24"/> 420 </issue> 421 422 <issue 423 id="VisibleForTests" 424 message="This method should only be accessed from tests or within private scope" 425 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 426 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 427 <location 428 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 429 line="2557" 430 column="24"/> 431 </issue> 432 433 <issue 434 id="VisibleForTests" 435 message="This method should only be accessed from tests or within private scope" 436 errorLine1=" ConsentManager.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED);" 437 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 438 <location 439 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 440 line="2563" 441 column="24"/> 442 </issue> 443 444 <issue 445 id="VisibleForTests" 446 message="This method should only be accessed from tests or within private scope" 447 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 448 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 449 <location 450 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 451 line="2586" 452 column="24"/> 453 </issue> 454 455 <issue 456 id="VisibleForTests" 457 message="This method should only be accessed from tests or within private scope" 458 errorLine1=" ConsentManager.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED);" 459 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 460 <location 461 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 462 line="2605" 463 column="24"/> 464 </issue> 465 466 <issue 467 id="VisibleForTests" 468 message="This method should only be accessed from tests or within private scope" 469 errorLine1=" ConsentManager.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_APPSEARCH_HAS_MIGRATED);" 470 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 471 <location 472 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 473 line="2606" 474 column="24"/> 475 </issue> 476 477 <issue 478 id="VisibleForTests" 479 message="This method should only be accessed from tests or within private scope" 480 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 481 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 482 <location 483 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 484 line="2629" 485 column="24"/> 486 </issue> 487 488 <issue 489 id="VisibleForTests" 490 message="This method should only be accessed from tests or within private scope" 491 errorLine1=" ConsentManager.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED);" 492 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 493 <location 494 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 495 line="2649" 496 column="24"/> 497 </issue> 498 499 <issue 500 id="VisibleForTests" 501 message="This method should only be accessed from tests or within private scope" 502 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 503 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 504 <location 505 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 506 line="2663" 507 column="24"/> 508 </issue> 509 510 <issue 511 id="VisibleForTests" 512 message="This method should only be accessed from tests or within private scope" 513 errorLine1=" ConsentManager.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED);" 514 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 515 <location 516 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 517 line="2680" 518 column="24"/> 519 </issue> 520 521 <issue 522 id="VisibleForTests" 523 message="This method should only be accessed from tests or within private scope" 524 errorLine1=" ConsentManager.handleConsentMigrationIfNeeded(" 525 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 526 <location 527 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 528 line="2689" 529 column="24"/> 530 </issue> 531 532 <issue 533 id="VisibleForTests" 534 message="This method should only be accessed from tests or within private scope" 535 errorLine1=" ConsentManager.handleConsentMigrationFromAppSearchIfNeeded(" 536 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 537 <location 538 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 539 line="2706" 540 column="24"/> 541 </issue> 542 543 <issue 544 id="VisibleForTests" 545 message="This method should only be accessed from tests or within private scope" 546 errorLine1=" resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_PPAPI_HAS_CLEARED);" 547 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 548 <location 549 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 550 line="2749" 551 column="9"/> 552 </issue> 553 554 <issue 555 id="VisibleForTests" 556 message="This method should only be accessed from tests or within private scope" 557 errorLine1=" resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED);" 558 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 559 <location 560 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 561 line="2750" 562 column="9"/> 563 </issue> 564 565 <issue 566 id="VisibleForTests" 567 message="This method should only be accessed from tests or within private scope" 568 errorLine1=" ConsentManager.resetSharedPreference(" 569 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 570 <location 571 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 572 line="2764" 573 column="48"/> 574 </issue> 575 576 <issue 577 id="VisibleForTests" 578 message="This method should only be accessed from tests or within private scope" 579 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 580 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 581 <location 582 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 583 line="2769" 584 column="48"/> 585 </issue> 586 587 <issue 588 id="VisibleForTests" 589 message="This method should only be accessed from tests or within private scope" 590 errorLine1=" doNothing().when(() -> ConsentManager.clearPpApiConsent(mSpyContext, mConsentDatastore));" 591 errorLine2=" ~~~~~~~~~~~~~~~~~"> 592 <location 593 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 594 line="2774" 595 column="47"/> 596 </issue> 597 598 <issue 599 id="VisibleForTests" 600 message="This method should only be accessed from tests or within private scope" 601 errorLine1=" ConsentManager.handleConsentMigrationIfNeeded(" 602 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 603 <location 604 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 605 line="2777" 606 column="24"/> 607 </issue> 608 609 <issue 610 id="VisibleForTests" 611 message="This method should only be accessed from tests or within private scope" 612 errorLine1=" ConsentManager.resetSharedPreference(" 613 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 614 <location 615 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 616 line="2786" 617 column="40"/> 618 </issue> 619 620 <issue 621 id="VisibleForTests" 622 message="This method should only be accessed from tests or within private scope" 623 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 624 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 625 <location 626 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 627 line="2790" 628 column="40"/> 629 </issue> 630 631 <issue 632 id="VisibleForTests" 633 message="This method should only be accessed from tests or within private scope" 634 errorLine1=" verify(() -> ConsentManager.clearPpApiConsent(mSpyContext, mConsentDatastore), never());" 635 errorLine2=" ~~~~~~~~~~~~~~~~~"> 636 <location 637 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 638 line="2796" 639 column="37"/> 640 </issue> 641 642 <issue 643 id="VisibleForTests" 644 message="This method should only be accessed from tests or within private scope" 645 errorLine1=" ConsentManager.resetSharedPreference(" 646 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 647 <location 648 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 649 line="2805" 650 column="48"/> 651 </issue> 652 653 <issue 654 id="VisibleForTests" 655 message="This method should only be accessed from tests or within private scope" 656 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 657 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 658 <location 659 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 660 line="2810" 661 column="48"/> 662 </issue> 663 664 <issue 665 id="VisibleForTests" 666 message="This method should only be accessed from tests or within private scope" 667 errorLine1=" doNothing().when(() -> ConsentManager.clearPpApiConsent(mSpyContext, mConsentDatastore));" 668 errorLine2=" ~~~~~~~~~~~~~~~~~"> 669 <location 670 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 671 line="2815" 672 column="47"/> 673 </issue> 674 675 <issue 676 id="VisibleForTests" 677 message="This method should only be accessed from tests or within private scope" 678 errorLine1=" ConsentManager.handleConsentMigrationIfNeeded(" 679 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 680 <location 681 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 682 line="2818" 683 column="24"/> 684 </issue> 685 686 <issue 687 id="VisibleForTests" 688 message="This method should only be accessed from tests or within private scope" 689 errorLine1=" ConsentManager.resetSharedPreference(" 690 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 691 <location 692 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 693 line="2827" 694 column="40"/> 695 </issue> 696 697 <issue 698 id="VisibleForTests" 699 message="This method should only be accessed from tests or within private scope" 700 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 701 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 702 <location 703 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 704 line="2832" 705 column="40"/> 706 </issue> 707 708 <issue 709 id="VisibleForTests" 710 message="This method should only be accessed from tests or within private scope" 711 errorLine1=" verify(() -> ConsentManager.clearPpApiConsent(mSpyContext, mConsentDatastore));" 712 errorLine2=" ~~~~~~~~~~~~~~~~~"> 713 <location 714 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 715 line="2837" 716 column="37"/> 717 </issue> 718 719 <issue 720 id="VisibleForTests" 721 message="This method should only be accessed from tests or within private scope" 722 errorLine1=" ConsentManager.resetSharedPreference(" 723 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 724 <location 725 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 726 line="2846" 727 column="48"/> 728 </issue> 729 730 <issue 731 id="VisibleForTests" 732 message="This method should only be accessed from tests or within private scope" 733 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 734 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 735 <location 736 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 737 line="2851" 738 column="48"/> 739 </issue> 740 741 <issue 742 id="VisibleForTests" 743 message="This method should only be accessed from tests or within private scope" 744 errorLine1=" doNothing().when(() -> ConsentManager.clearPpApiConsent(mSpyContext, mConsentDatastore));" 745 errorLine2=" ~~~~~~~~~~~~~~~~~"> 746 <location 747 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 748 line="2856" 749 column="47"/> 750 </issue> 751 752 <issue 753 id="VisibleForTests" 754 message="This method should only be accessed from tests or within private scope" 755 errorLine1=" ConsentManager.handleConsentMigrationIfNeeded(" 756 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 757 <location 758 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 759 line="2859" 760 column="24"/> 761 </issue> 762 763 <issue 764 id="VisibleForTests" 765 message="This method should only be accessed from tests or within private scope" 766 errorLine1=" ConsentManager.resetSharedPreference(" 767 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 768 <location 769 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 770 line="2868" 771 column="40"/> 772 </issue> 773 774 <issue 775 id="VisibleForTests" 776 message="This method should only be accessed from tests or within private scope" 777 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 778 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 779 <location 780 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 781 line="2873" 782 column="40"/> 783 </issue> 784 785 <issue 786 id="VisibleForTests" 787 message="This method should only be accessed from tests or within private scope" 788 errorLine1=" verify(() -> ConsentManager.clearPpApiConsent(mSpyContext, mConsentDatastore), never());" 789 errorLine2=" ~~~~~~~~~~~~~~~~~"> 790 <location 791 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 792 line="2878" 793 column="37"/> 794 </issue> 795 796 <issue 797 id="VisibleForTests" 798 message="This method should only be accessed from tests or within private scope" 799 errorLine1=" ConsentManager.resetSharedPreference(" 800 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 801 <location 802 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 803 line="2887" 804 column="48"/> 805 </issue> 806 807 <issue 808 id="VisibleForTests" 809 message="This method should only be accessed from tests or within private scope" 810 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 811 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 812 <location 813 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 814 line="2892" 815 column="48"/> 816 </issue> 817 818 <issue 819 id="VisibleForTests" 820 message="This method should only be accessed from tests or within private scope" 821 errorLine1=" doNothing().when(() -> ConsentManager.clearPpApiConsent(mSpyContext, mConsentDatastore));" 822 errorLine2=" ~~~~~~~~~~~~~~~~~"> 823 <location 824 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 825 line="2897" 826 column="47"/> 827 </issue> 828 829 <issue 830 id="VisibleForTests" 831 message="This method should only be accessed from tests or within private scope" 832 errorLine1=" ConsentManager.handleConsentMigrationIfNeeded(" 833 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 834 <location 835 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 836 line="2900" 837 column="24"/> 838 </issue> 839 840 <issue 841 id="VisibleForTests" 842 message="This method should only be accessed from tests or within private scope" 843 errorLine1=" ConsentManager.resetSharedPreference(" 844 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 845 <location 846 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 847 line="2909" 848 column="40"/> 849 </issue> 850 851 <issue 852 id="VisibleForTests" 853 message="This method should only be accessed from tests or within private scope" 854 errorLine1=" ConsentManager.migratePpApiConsentToSystemService(" 855 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 856 <location 857 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 858 line="2914" 859 column="40"/> 860 </issue> 861 862 <issue 863 id="VisibleForTests" 864 message="This method should only be accessed from tests or within private scope" 865 errorLine1=" verify(() -> ConsentManager.clearPpApiConsent(mSpyContext, mConsentDatastore), never());" 866 errorLine2=" ~~~~~~~~~~~~~~~~~"> 867 <location 868 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 869 line="2920" 870 column="37"/> 871 </issue> 872 873 <issue 874 id="VisibleForTests" 875 message="This method should only be accessed from tests or within private scope" 876 errorLine1=" ConsentManager.handleConsentMigrationFromAppSearchIfNeeded(" 877 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 878 <location 879 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 880 line="2935" 881 column="24"/> 882 </issue> 883 884 <issue 885 id="VisibleForTests" 886 message="This method should only be accessed from tests or within private scope" 887 errorLine1=" ConsentManager.handleConsentMigrationFromAppSearchIfNeeded(" 888 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 889 <location 890 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 891 line="2974" 892 column="24"/> 893 </issue> 894 895 <issue 896 id="VisibleForTests" 897 message="This method should only be accessed from tests or within private scope" 898 errorLine1=" ConsentManager.handleConsentMigrationFromAppSearchIfNeeded(" 899 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 900 <location 901 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 902 line="3053" 903 column="24"/> 904 </issue> 905 906 <issue 907 id="VisibleForTests" 908 message="This method should only be accessed from tests or within private scope" 909 errorLine1=" ConsentManager.handleConsentMigrationFromAppSearchIfNeeded(" 910 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 911 <location 912 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 913 line="3091" 914 column="24"/> 915 </issue> 916 917 <issue 918 id="VisibleForTests" 919 message="This method should only be accessed from tests or within protected scope" 920 errorLine1=" new TopicsWorker(" 921 errorLine2=" ^"> 922 <location 923 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 924 line="3120" 925 column="25"/> 926 </issue> 927 928 <issue 929 id="VisibleForTests" 930 message="This method should only be accessed from tests or within private scope" 931 errorLine1=" .setConsentPerApiToPpApi(eq(AdServicesApiType.TOPICS), eq(/* isGiven */ true));" 932 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> 933 <location 934 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 935 line="3196" 936 column="18"/> 937 </issue> 938 939 <issue 940 id="VisibleForTests" 941 message="This method should only be accessed from tests or within private scope" 942 errorLine1=" .setConsentPerApiToPpApi(eq(AdServicesApiType.TOPICS), eq(/* isGiven */ true));" 943 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> 944 <location 945 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 946 line="3246" 947 column="18"/> 948 </issue> 949 950 <issue 951 id="VisibleForTests" 952 message="This method should only be accessed from tests or within private scope" 953 errorLine1=" .setPerApiConsentToSourceOfTruth(eq(/* isGiven */ true), eq(apiType));" 954 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 955 <location 956 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 957 line="3262" 958 column="18"/> 959 </issue> 960 961 <issue 962 id="VisibleForTests" 963 message="This method should only be accessed from tests or within private scope" 964 errorLine1=" when(mAppSearchConsentManagerMock.getConsent(AdServicesApiType.CONSENT_TOPICS))" 965 errorLine2=" ~~~~~~~~~~~~~~"> 966 <location 967 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 968 line="3265" 969 column="72"/> 970 </issue> 971 972 <issue 973 id="VisibleForTests" 974 message="This method should only be accessed from tests or within private scope" 975 errorLine1=" .setPerApiConsentToSourceOfTruth(eq(/* isGiven */ true), eq(apiType));" 976 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 977 <location 978 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 979 line="3283" 980 column="18"/> 981 </issue> 982 983 <issue 984 id="VisibleForTests" 985 message="This method should only be accessed from tests or within private scope" 986 errorLine1=" .setPerApiConsentToSourceOfTruth(eq(/* isGiven */ false), eq(apiType));" 987 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 988 <location 989 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 990 line="3302" 991 column="18"/> 992 </issue> 993 994 <issue 995 id="VisibleForTests" 996 message="This method should only be accessed from tests or within private scope" 997 errorLine1=" .setConsentPerApiToPpApi(eq(AdServicesApiType.TOPICS), eq(/* isGiven */ true));" 998 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> 999 <location 1000 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1001 line="3587" 1002 column="18"/> 1003 </issue> 1004 1005 <issue 1006 id="VisibleForTests" 1007 message="This method should only be accessed from tests or within private scope" 1008 errorLine1=" .setConsentPerApiToPpApi(eq(AdServicesApiType.FLEDGE), eq(/* isGiven */ true));" 1009 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> 1010 <location 1011 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1012 line="3589" 1013 column="18"/> 1014 </issue> 1015 1016 <issue 1017 id="VisibleForTests" 1018 message="This method should only be accessed from tests or within private scope" 1019 errorLine1=" .setConsentPerApiToPpApi(" 1020 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> 1021 <location 1022 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1023 line="3591" 1024 column="18"/> 1025 </issue> 1026 1027 <issue 1028 id="VisibleForTests" 1029 message="This method should only be accessed from tests or within private scope" 1030 errorLine1=" verify(spyConsentManager, times(3)).setAggregatedConsentToPpApi();" 1031 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1032 <location 1033 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1034 line="3593" 1035 column="45"/> 1036 </issue> 1037 1038 <issue 1039 id="VisibleForTests" 1040 message="This method should only be accessed from tests or within private scope" 1041 errorLine1=" .setConsentPerApiToPpApi(eq(AdServicesApiType.TOPICS), eq(/* isGiven */ true));" 1042 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> 1043 <location 1044 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1045 line="3616" 1046 column="18"/> 1047 </issue> 1048 1049 <issue 1050 id="VisibleForTests" 1051 message="This method should only be accessed from tests or within private scope" 1052 errorLine1=" .setConsentPerApiToPpApi(eq(AdServicesApiType.FLEDGE), eq(/* isGiven */ true));" 1053 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> 1054 <location 1055 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1056 line="3618" 1057 column="18"/> 1058 </issue> 1059 1060 <issue 1061 id="VisibleForTests" 1062 message="This method should only be accessed from tests or within private scope" 1063 errorLine1=" .setConsentPerApiToPpApi(" 1064 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> 1065 <location 1066 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1067 line="3620" 1068 column="18"/> 1069 </issue> 1070 1071 <issue 1072 id="VisibleForTests" 1073 message="This method should only be accessed from tests or within private scope" 1074 errorLine1=" verify(spyConsentManager, times(3)).setAggregatedConsentToPpApi();" 1075 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1076 <location 1077 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1078 line="3622" 1079 column="45"/> 1080 </issue> 1081 1082 <issue 1083 id="VisibleForTests" 1084 message="This method should only be accessed from tests or within private scope" 1085 errorLine1=" doNothing().when(() -> ConsentManager.setConsentToSystemServer(any(), anyBoolean()));" 1086 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~"> 1087 <location 1088 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1089 line="3809" 1090 column="47"/> 1091 </issue> 1092 1093 <issue 1094 id="VisibleForTests" 1095 message="This method should only be accessed from tests or within private scope" 1096 errorLine1=" verify(consentManager, verificationMode(hasWrittenToPpApi)).setConsentToPpApi(isGiven);" 1097 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1098 <location 1099 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1100 line="3861" 1101 column="69"/> 1102 </issue> 1103 1104 <issue 1105 id="VisibleForTests" 1106 message="This method should only be accessed from tests or within private scope" 1107 errorLine1=" () -> ConsentManager.setConsentToSystemServer(any(), eq(isGiven))," 1108 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~"> 1109 <location 1110 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerTest.java" 1111 line="3863" 1112 column="38"/> 1113 </issue> 1114 1115 <issue 1116 id="VisibleForTests" 1117 message="This method should only be accessed from tests or within private scope" 1118 errorLine1=" AppConsentDao.DATASTORE_NAME," 1119 errorLine2=" ~~~~~~~~~~~~~~"> 1120 <location 1121 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1122 line="274" 1123 column="47"/> 1124 </issue> 1125 1126 <issue 1127 id="VisibleForTests" 1128 message="This method should only be accessed from tests or within private scope" 1129 errorLine1=" AppConsentDao.DATASTORE_VERSION));" 1130 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1131 <location 1132 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1133 line="275" 1134 column="47"/> 1135 </issue> 1136 1137 <issue 1138 id="VisibleForTests" 1139 message="This method should only be accessed from tests or within private scope" 1140 errorLine1=" mConsentDatastore = spy(ConsentManagerV2.createAndInitializeDataStore(mSpyContext));" 1141 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1142 <location 1143 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1144 line="278" 1145 column="50"/> 1146 </issue> 1147 1148 <issue 1149 id="VisibleForTests" 1150 message="This method should only be accessed from tests or within private scope" 1151 errorLine1=" mAppConsentDaoSpy = spy(new AppConsentDao(mDatastore, mSpyContext.getPackageManager()));" 1152 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1153 <location 1154 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1155 line="279" 1156 column="33"/> 1157 </issue> 1158 1159 <issue 1160 id="VisibleForTests" 1161 message="This method should only be accessed from tests or within private scope" 1162 errorLine1=" new EnrollmentDao(" 1163 errorLine2=" ^"> 1164 <location 1165 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1166 line="282" 1167 column="25"/> 1168 </issue> 1169 1170 <issue 1171 id="VisibleForTests" 1172 message="This method should only be accessed from tests or within private scope" 1173 errorLine1=" mAdServicesManager = new AdServicesManager(mMockIAdServicesManager);" 1174 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1175 <location 1176 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1177 line="296" 1178 column="30"/> 1179 </issue> 1180 1181 <issue 1182 id="VisibleForTests" 1183 message="This method should only be accessed from tests or within private scope" 1184 errorLine1=" spy(new AdServicesStorageManager(mAdServicesManager, mPackageManager));" 1185 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1186 <location 1187 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1188 line="301" 1189 column="21"/> 1190 </issue> 1191 1192 <issue 1193 id="VisibleForTests" 1194 message="This method should only be accessed from tests or within private scope" 1195 errorLine1=" verify(spyConsentManager, times(0)).setConsentToSourceOfTruth(isGiven);" 1196 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> 1197 <location 1198 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1199 line="461" 1200 column="45"/> 1201 </issue> 1202 1203 <issue 1204 id="VisibleForTests" 1205 message="This method should only be accessed from tests or within private scope" 1206 errorLine1=" verify(spyConsentManager).setConsentToSourceOfTruth(isGiven);" 1207 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> 1208 <location 1209 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1210 line="478" 1211 column="35"/> 1212 </issue> 1213 1214 <issue 1215 id="VisibleForTests" 1216 message="This method should only be accessed from tests or within private scope" 1217 errorLine1=" spyConsentManager.setPerApiConsentToSourceOfTruth(true, AdServicesApiType.ALL_API);" 1218 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1219 <location 1220 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1221 line="494" 1222 column="27"/> 1223 </issue> 1224 1225 <issue 1226 id="VisibleForTests" 1227 message="This method should only be accessed from tests or within private scope" 1228 errorLine1=" verify(spyConsentManager, never()).resetByApi(eq(AdServicesApiType.MEASUREMENTS));" 1229 errorLine2=" ~~~~~~~~~~"> 1230 <location 1231 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1232 line="497" 1233 column="44"/> 1234 </issue> 1235 1236 <issue 1237 id="VisibleForTests" 1238 message="This method should only be accessed from tests or within private scope" 1239 errorLine1=" verify(spyConsentManager).resetByApi(eq(AdServicesApiType.MEASUREMENTS));" 1240 errorLine2=" ~~~~~~~~~~"> 1241 <location 1242 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1243 line="515" 1244 column="35"/> 1245 </issue> 1246 1247 <issue 1248 id="VisibleForTests" 1249 message="This method should only be accessed from tests or within private scope" 1250 errorLine1=" mConsentManager.setConsentToSourceOfTruth(true);" 1251 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> 1252 <location 1253 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1254 line="1587" 1255 column="25"/> 1256 </issue> 1257 1258 <issue 1259 id="VisibleForTests" 1260 message="This method should only be accessed from tests or within private scope" 1261 errorLine1=" ConsentManagerV2.clearPpApiConsent(mSpyContext, mConsentDatastore);" 1262 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1263 <location 1264 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1265 line="2439" 1266 column="26"/> 1267 </issue> 1268 1269 <issue 1270 id="VisibleForTests" 1271 message="This method should only be accessed from tests or within private scope" 1272 errorLine1=" ConsentManagerV2.clearPpApiConsent(mSpyContext, mConsentDatastore);" 1273 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1274 <location 1275 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1276 line="2449" 1277 column="26"/> 1278 </issue> 1279 1280 <issue 1281 id="VisibleForTests" 1282 message="This method should only be accessed from tests or within private scope" 1283 errorLine1=" ConsentManagerV2.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_PPAPI_HAS_CLEARED);" 1284 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1285 <location 1286 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1287 line="2454" 1288 column="26"/> 1289 </issue> 1290 1291 <issue 1292 id="VisibleForTests" 1293 message="This method should only be accessed from tests or within private scope" 1294 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1295 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1296 <location 1297 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1298 line="2468" 1299 column="26"/> 1300 </issue> 1301 1302 <issue 1303 id="VisibleForTests" 1304 message="This method should only be accessed from tests or within private scope" 1305 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1306 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1307 <location 1308 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1309 line="2478" 1310 column="26"/> 1311 </issue> 1312 1313 <issue 1314 id="VisibleForTests" 1315 message="This method should only be accessed from tests or within private scope" 1316 errorLine1=" ConsentManagerV2.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED);" 1317 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1318 <location 1319 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1320 line="2487" 1321 column="26"/> 1322 </issue> 1323 1324 <issue 1325 id="VisibleForTests" 1326 message="This method should only be accessed from tests or within private scope" 1327 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1328 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1329 <location 1330 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1331 line="2510" 1332 column="26"/> 1333 </issue> 1334 1335 <issue 1336 id="VisibleForTests" 1337 message="This method should only be accessed from tests or within private scope" 1338 errorLine1=" ConsentManagerV2.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED);" 1339 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1340 <location 1341 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1342 line="2532" 1343 column="26"/> 1344 </issue> 1345 1346 <issue 1347 id="VisibleForTests" 1348 message="This method should only be accessed from tests or within private scope" 1349 errorLine1=" ConsentManagerV2.resetSharedPreference(" 1350 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1351 <location 1352 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1353 line="2533" 1354 column="26"/> 1355 </issue> 1356 1357 <issue 1358 id="VisibleForTests" 1359 message="This method should only be accessed from tests or within private scope" 1360 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1361 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1362 <location 1363 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1364 line="2557" 1365 column="26"/> 1366 </issue> 1367 1368 <issue 1369 id="VisibleForTests" 1370 message="This method should only be accessed from tests or within private scope" 1371 errorLine1=" ConsentManagerV2.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED);" 1372 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1373 <location 1374 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1375 line="2580" 1376 column="26"/> 1377 </issue> 1378 1379 <issue 1380 id="VisibleForTests" 1381 message="This method should only be accessed from tests or within private scope" 1382 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1383 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1384 <location 1385 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1386 line="2594" 1387 column="26"/> 1388 </issue> 1389 1390 <issue 1391 id="VisibleForTests" 1392 message="This method should only be accessed from tests or within private scope" 1393 errorLine1=" ConsentManagerV2.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED);" 1394 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1395 <location 1396 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1397 line="2614" 1398 column="26"/> 1399 </issue> 1400 1401 <issue 1402 id="VisibleForTests" 1403 message="This method should only be accessed from tests or within private scope" 1404 errorLine1=" ConsentManagerV2.handleConsentMigrationIfNeeded(" 1405 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1406 <location 1407 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1408 line="2623" 1409 column="26"/> 1410 </issue> 1411 1412 <issue 1413 id="VisibleForTests" 1414 message="This method should only be accessed from tests or within private scope" 1415 errorLine1=" ConsentManagerV2.handleConsentMigrationFromAppSearchIfNeeded(" 1416 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1417 <location 1418 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1419 line="2644" 1420 column="26"/> 1421 </issue> 1422 1423 <issue 1424 id="VisibleForTests" 1425 message="This method should only be accessed from tests or within private scope" 1426 errorLine1=" resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_PPAPI_HAS_CLEARED);" 1427 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1428 <location 1429 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1430 line="2688" 1431 column="9"/> 1432 </issue> 1433 1434 <issue 1435 id="VisibleForTests" 1436 message="This method should only be accessed from tests or within private scope" 1437 errorLine1=" resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED);" 1438 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1439 <location 1440 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1441 line="2689" 1442 column="9"/> 1443 </issue> 1444 1445 <issue 1446 id="VisibleForTests" 1447 message="This method should only be accessed from tests or within private scope" 1448 errorLine1=" ConsentManagerV2.resetSharedPreference(" 1449 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1450 <location 1451 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1452 line="2705" 1453 column="50"/> 1454 </issue> 1455 1456 <issue 1457 id="VisibleForTests" 1458 message="This method should only be accessed from tests or within private scope" 1459 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1460 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1461 <location 1462 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1463 line="2710" 1464 column="50"/> 1465 </issue> 1466 1467 <issue 1468 id="VisibleForTests" 1469 message="This method should only be accessed from tests or within private scope" 1470 errorLine1=" doNothing().when(() -> ConsentManagerV2.clearPpApiConsent(mSpyContext, mConsentDatastore));" 1471 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1472 <location 1473 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1474 line="2715" 1475 column="49"/> 1476 </issue> 1477 1478 <issue 1479 id="VisibleForTests" 1480 message="This method should only be accessed from tests or within private scope" 1481 errorLine1=" ConsentManagerV2.handleConsentMigrationIfNeeded(" 1482 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1483 <location 1484 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1485 line="2718" 1486 column="26"/> 1487 </issue> 1488 1489 <issue 1490 id="VisibleForTests" 1491 message="This method should only be accessed from tests or within private scope" 1492 errorLine1=" ConsentManagerV2.resetSharedPreference(" 1493 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1494 <location 1495 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1496 line="2727" 1497 column="42"/> 1498 </issue> 1499 1500 <issue 1501 id="VisibleForTests" 1502 message="This method should only be accessed from tests or within private scope" 1503 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1504 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1505 <location 1506 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1507 line="2731" 1508 column="42"/> 1509 </issue> 1510 1511 <issue 1512 id="VisibleForTests" 1513 message="This method should only be accessed from tests or within private scope" 1514 errorLine1=" verify(() -> ConsentManagerV2.clearPpApiConsent(mSpyContext, mConsentDatastore), never());" 1515 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1516 <location 1517 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1518 line="2737" 1519 column="39"/> 1520 </issue> 1521 1522 <issue 1523 id="VisibleForTests" 1524 message="This method should only be accessed from tests or within private scope" 1525 errorLine1=" ConsentManagerV2.resetSharedPreference(" 1526 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1527 <location 1528 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1529 line="2746" 1530 column="50"/> 1531 </issue> 1532 1533 <issue 1534 id="VisibleForTests" 1535 message="This method should only be accessed from tests or within private scope" 1536 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1537 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1538 <location 1539 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1540 line="2751" 1541 column="50"/> 1542 </issue> 1543 1544 <issue 1545 id="VisibleForTests" 1546 message="This method should only be accessed from tests or within private scope" 1547 errorLine1=" doNothing().when(() -> ConsentManagerV2.clearPpApiConsent(mSpyContext, mConsentDatastore));" 1548 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1549 <location 1550 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1551 line="2756" 1552 column="49"/> 1553 </issue> 1554 1555 <issue 1556 id="VisibleForTests" 1557 message="This method should only be accessed from tests or within private scope" 1558 errorLine1=" ConsentManagerV2.handleConsentMigrationIfNeeded(" 1559 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1560 <location 1561 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1562 line="2759" 1563 column="26"/> 1564 </issue> 1565 1566 <issue 1567 id="VisibleForTests" 1568 message="This method should only be accessed from tests or within private scope" 1569 errorLine1=" ConsentManagerV2.resetSharedPreference(" 1570 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1571 <location 1572 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1573 line="2768" 1574 column="42"/> 1575 </issue> 1576 1577 <issue 1578 id="VisibleForTests" 1579 message="This method should only be accessed from tests or within private scope" 1580 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1581 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1582 <location 1583 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1584 line="2773" 1585 column="42"/> 1586 </issue> 1587 1588 <issue 1589 id="VisibleForTests" 1590 message="This method should only be accessed from tests or within private scope" 1591 errorLine1=" verify(() -> ConsentManagerV2.clearPpApiConsent(mSpyContext, mConsentDatastore));" 1592 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1593 <location 1594 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1595 line="2778" 1596 column="39"/> 1597 </issue> 1598 1599 <issue 1600 id="VisibleForTests" 1601 message="This method should only be accessed from tests or within private scope" 1602 errorLine1=" ConsentManagerV2.resetSharedPreference(" 1603 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1604 <location 1605 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1606 line="2787" 1607 column="50"/> 1608 </issue> 1609 1610 <issue 1611 id="VisibleForTests" 1612 message="This method should only be accessed from tests or within private scope" 1613 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1614 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1615 <location 1616 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1617 line="2792" 1618 column="50"/> 1619 </issue> 1620 1621 <issue 1622 id="VisibleForTests" 1623 message="This method should only be accessed from tests or within private scope" 1624 errorLine1=" doNothing().when(() -> ConsentManagerV2.clearPpApiConsent(mSpyContext, mConsentDatastore));" 1625 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1626 <location 1627 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1628 line="2797" 1629 column="49"/> 1630 </issue> 1631 1632 <issue 1633 id="VisibleForTests" 1634 message="This method should only be accessed from tests or within private scope" 1635 errorLine1=" ConsentManagerV2.handleConsentMigrationIfNeeded(" 1636 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1637 <location 1638 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1639 line="2800" 1640 column="26"/> 1641 </issue> 1642 1643 <issue 1644 id="VisibleForTests" 1645 message="This method should only be accessed from tests or within private scope" 1646 errorLine1=" ConsentManagerV2.resetSharedPreference(" 1647 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1648 <location 1649 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1650 line="2809" 1651 column="42"/> 1652 </issue> 1653 1654 <issue 1655 id="VisibleForTests" 1656 message="This method should only be accessed from tests or within private scope" 1657 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1658 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1659 <location 1660 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1661 line="2814" 1662 column="42"/> 1663 </issue> 1664 1665 <issue 1666 id="VisibleForTests" 1667 message="This method should only be accessed from tests or within private scope" 1668 errorLine1=" verify(() -> ConsentManagerV2.clearPpApiConsent(mSpyContext, mConsentDatastore), never());" 1669 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1670 <location 1671 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1672 line="2819" 1673 column="39"/> 1674 </issue> 1675 1676 <issue 1677 id="VisibleForTests" 1678 message="This method should only be accessed from tests or within private scope" 1679 errorLine1=" ConsentManagerV2.resetSharedPreference(" 1680 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1681 <location 1682 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1683 line="2828" 1684 column="50"/> 1685 </issue> 1686 1687 <issue 1688 id="VisibleForTests" 1689 message="This method should only be accessed from tests or within private scope" 1690 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1691 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1692 <location 1693 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1694 line="2833" 1695 column="50"/> 1696 </issue> 1697 1698 <issue 1699 id="VisibleForTests" 1700 message="This method should only be accessed from tests or within private scope" 1701 errorLine1=" doNothing().when(() -> ConsentManagerV2.clearPpApiConsent(mSpyContext, mConsentDatastore));" 1702 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1703 <location 1704 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1705 line="2838" 1706 column="49"/> 1707 </issue> 1708 1709 <issue 1710 id="VisibleForTests" 1711 message="This method should only be accessed from tests or within private scope" 1712 errorLine1=" ConsentManagerV2.handleConsentMigrationIfNeeded(" 1713 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1714 <location 1715 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1716 line="2841" 1717 column="26"/> 1718 </issue> 1719 1720 <issue 1721 id="VisibleForTests" 1722 message="This method should only be accessed from tests or within private scope" 1723 errorLine1=" ConsentManagerV2.resetSharedPreference(" 1724 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> 1725 <location 1726 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1727 line="2850" 1728 column="42"/> 1729 </issue> 1730 1731 <issue 1732 id="VisibleForTests" 1733 message="This method should only be accessed from tests or within private scope" 1734 errorLine1=" ConsentManagerV2.migratePpApiConsentToSystemService(" 1735 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1736 <location 1737 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1738 line="2855" 1739 column="42"/> 1740 </issue> 1741 1742 <issue 1743 id="VisibleForTests" 1744 message="This method should only be accessed from tests or within private scope" 1745 errorLine1=" verify(() -> ConsentManagerV2.clearPpApiConsent(mSpyContext, mConsentDatastore), never());" 1746 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1747 <location 1748 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1749 line="2861" 1750 column="39"/> 1751 </issue> 1752 1753 <issue 1754 id="VisibleForTests" 1755 message="This method should only be accessed from tests or within private scope" 1756 errorLine1=" ConsentManagerV2.handleConsentMigrationFromAppSearchIfNeeded(" 1757 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1758 <location 1759 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1760 line="2876" 1761 column="26"/> 1762 </issue> 1763 1764 <issue 1765 id="VisibleForTests" 1766 message="This method should only be accessed from tests or within private scope" 1767 errorLine1=" ConsentManagerV2.handleConsentMigrationFromAppSearchIfNeeded(" 1768 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1769 <location 1770 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1771 line="2910" 1772 column="26"/> 1773 </issue> 1774 1775 <issue 1776 id="VisibleForTests" 1777 message="This method should only be accessed from tests or within private scope" 1778 errorLine1=" ConsentManagerV2.handleConsentMigrationFromAppSearchIfNeeded(" 1779 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1780 <location 1781 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1782 line="2978" 1783 column="26"/> 1784 </issue> 1785 1786 <issue 1787 id="VisibleForTests" 1788 message="This method should only be accessed from tests or within private scope" 1789 errorLine1=" ConsentManagerV2.handleConsentMigrationFromAppSearchIfNeeded(" 1790 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1791 <location 1792 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1793 line="3014" 1794 column="26"/> 1795 </issue> 1796 1797 <issue 1798 id="VisibleForTests" 1799 message="This method should only be accessed from tests or within protected scope" 1800 errorLine1=" new TopicsWorker(" 1801 errorLine2=" ^"> 1802 <location 1803 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1804 line="3043" 1805 column="25"/> 1806 </issue> 1807 1808 <issue 1809 id="VisibleForTests" 1810 message="This method should only be accessed from tests or within private scope" 1811 errorLine1=" .setPerApiConsentToSourceOfTruth(" 1812 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1813 <location 1814 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1815 line="3120" 1816 column="18"/> 1817 </issue> 1818 1819 <issue 1820 id="VisibleForTests" 1821 message="This method should only be accessed from tests or within private scope" 1822 errorLine1=" .setPerApiConsentToSourceOfTruth(" 1823 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1824 <location 1825 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1826 line="3169" 1827 column="18"/> 1828 </issue> 1829 1830 <issue 1831 id="VisibleForTests" 1832 message="This method should only be accessed from tests or within private scope" 1833 errorLine1=" .setPerApiConsentToSourceOfTruth(eq(/* isGiven */ true), eq(apiType));" 1834 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1835 <location 1836 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1837 line="3188" 1838 column="18"/> 1839 </issue> 1840 1841 <issue 1842 id="VisibleForTests" 1843 message="This method should only be accessed from tests or within private scope" 1844 errorLine1=" .setPerApiConsentToSourceOfTruth(eq(/* isGiven */ true), eq(apiType));" 1845 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1846 <location 1847 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1848 line="3208" 1849 column="18"/> 1850 </issue> 1851 1852 <issue 1853 id="VisibleForTests" 1854 message="This method should only be accessed from tests or within private scope" 1855 errorLine1=" .setPerApiConsentToSourceOfTruth(eq(/* isGiven */ false), eq(apiType));" 1856 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1857 <location 1858 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1859 line="3228" 1860 column="18"/> 1861 </issue> 1862 1863 <issue 1864 id="VisibleForTests" 1865 message="This method should only be accessed from tests or within private scope" 1866 errorLine1=" .setPerApiConsentToSourceOfTruth(" 1867 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1868 <location 1869 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1870 line="3289" 1871 column="18"/> 1872 </issue> 1873 1874 <issue 1875 id="VisibleForTests" 1876 message="This method should only be accessed from tests or within private scope" 1877 errorLine1=" .setPerApiConsentToSourceOfTruth(" 1878 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1879 <location 1880 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1881 line="3292" 1882 column="18"/> 1883 </issue> 1884 1885 <issue 1886 id="VisibleForTests" 1887 message="This method should only be accessed from tests or within private scope" 1888 errorLine1=" .setPerApiConsentToSourceOfTruth(" 1889 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1890 <location 1891 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1892 line="3295" 1893 column="18"/> 1894 </issue> 1895 1896 <issue 1897 id="VisibleForTests" 1898 message="This method should only be accessed from tests or within private scope" 1899 errorLine1=" .setPerApiConsentToSourceOfTruth(" 1900 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1901 <location 1902 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1903 line="3321" 1904 column="18"/> 1905 </issue> 1906 1907 <issue 1908 id="VisibleForTests" 1909 message="This method should only be accessed from tests or within private scope" 1910 errorLine1=" .setPerApiConsentToSourceOfTruth(" 1911 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1912 <location 1913 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1914 line="3324" 1915 column="18"/> 1916 </issue> 1917 1918 <issue 1919 id="VisibleForTests" 1920 message="This method should only be accessed from tests or within private scope" 1921 errorLine1=" .setPerApiConsentToSourceOfTruth(" 1922 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1923 <location 1924 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ConsentManagerV2Test.java" 1925 line="3327" 1926 column="18"/> 1927 </issue> 1928 1929 <issue 1930 id="VisibleForTests" 1931 message="This method should only be accessed from tests or within private scope" 1932 errorLine1=" mContext, UxStatesDao.TEST_DATASTORE_NAME, UxStatesDao.DATASTORE_VERSION);" 1933 errorLine2=" ~~~~~~~~~~~~~~~~~~~"> 1934 <location 1935 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/data/UxStatesDaoTest.java" 1936 line="43" 1937 column="47"/> 1938 </issue> 1939 1940 <issue 1941 id="VisibleForTests" 1942 message="This method should only be accessed from tests or within private scope" 1943 errorLine1=" mContext, UxStatesDao.TEST_DATASTORE_NAME, UxStatesDao.DATASTORE_VERSION);" 1944 errorLine2=" ~~~~~~~~~~~~~~~~~"> 1945 <location 1946 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/data/UxStatesDaoTest.java" 1947 line="43" 1948 column="80"/> 1949 </issue> 1950 1951 <issue 1952 id="VisibleForTests" 1953 message="This method should only be accessed from tests or within private scope" 1954 errorLine1=" mUxStatesDao = new UxStatesDao(atomicFileDatastore);" 1955 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 1956 <location 1957 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/data/UxStatesDaoTest.java" 1958 line="44" 1959 column="24"/> 1960 </issue> 1961 1962 <issue 1963 id="MissingVersion" 1964 message="Should set `android:versionCode` to specify the application version" 1965 errorLine1="<manifest xmlns:android="http://schemas.android.com/apk/res/android"" 1966 errorLine2=" ~~~~~~~~"> 1967 <location 1968 file="./out/soong/.intermediates/packages/modules/AdServices/adservices/tests/unittest/ui/AdServicesUIUnitTests/android_common/manifest_merger/AndroidManifest.xml" 1969 line="17" 1970 column="2"/> 1971 </issue> 1972 1973 <issue 1974 id="MissingVersion" 1975 message="Should set `android:versionName` to specify the application version" 1976 errorLine1="<manifest xmlns:android="http://schemas.android.com/apk/res/android"" 1977 errorLine2=" ~~~~~~~~"> 1978 <location 1979 file="./out/soong/.intermediates/packages/modules/AdServices/adservices/tests/unittest/ui/AdServicesUIUnitTests/android_common/manifest_merger/AndroidManifest.xml" 1980 line="17" 1981 column="2"/> 1982 </issue> 1983 1984 <issue 1985 id="HardcodedDebugMode" 1986 message="Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one" 1987 errorLine1=" android:debuggable="true"" 1988 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> 1989 <location 1990 file="./out/soong/.intermediates/packages/modules/AdServices/adservices/tests/unittest/ui/AdServicesUIUnitTests/android_common/manifest_merger/AndroidManifest.xml" 1991 line="57" 1992 column="9"/> 1993 </issue> 1994 1995 <issue 1996 id="QueryAllPackagesPermission" 1997 message="A `<queries>` declaration should generally be used instead of QUERY_ALL_PACKAGES; see https://g.co/dev/packagevisibility for details" 1998 errorLine1=" <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />" 1999 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 2000 <location 2001 file="./out/soong/.intermediates/packages/modules/AdServices/adservices/tests/unittest/ui/AdServicesUIUnitTests/android_common/manifest_merger/AndroidManifest.xml" 2002 line="31" 2003 column="22"/> 2004 </issue> 2005 2006 <issue 2007 id="ObsoleteSdkInt" 2008 message="Unnecessary; SDK_INT is always >= 31" 2009 errorLine1="@RequiresApi(Build.VERSION_CODES.S)" 2010 errorLine2="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 2011 <location 2012 file="packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/PasReconsentNotificationChannelTest.java" 2013 line="56" 2014 column="1"/> 2015 </issue> 2016 2017 <issue 2018 id="MissingApplicationIcon" 2019 message="Should explicitly set `android:icon`, there is no default" 2020 errorLine1=" <application" 2021 errorLine2=" ~~~~~~~~~~~"> 2022 <location 2023 file="./out/soong/.intermediates/packages/modules/AdServices/adservices/tests/unittest/ui/AdServicesUIUnitTests/android_common/manifest_merger/AndroidManifest.xml" 2024 line="55" 2025 column="6"/> 2026 </issue> 2027 2028</issues> 2029